* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f1f5f9;
  direction: rtl;
  font-family: "Amiri", serif;
  font-size: 20px;
}

:root {
  --main-color: #2196f3;
  --main-alt-color: #1787e0;
  --second-color: #19283f;
  --section-color: #eee;
  --padding-section: 50px 0;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-menu[data-bs-popper] {
  right: 0;
  left: auto;
}

/* navbar */
header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 0 10px;
  background-color: #fff;
  z-index: 10;
}
nav h1 {
  margin-right: 30px;
}

header nav .dropdown-menu {
  text-align: right;
}

.links a {
  padding: 10px;
  font-size: 18px;
  background-color: transparent;
  color: #000;
}

.homelink {
  color: #000;
}

.links a.active,
.links a:hover {
  color: var(--main-color);
  background-color: transparent;
}

header .buttons {
  gap: 10px;
  padding: 10px;
}

.search {
  position: relative;
  width: 120px;
}
.search::after {
  content: "\f002";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 72%;
  top: 4px;
  background-color: var(--main-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search:hover:after {
  background-color: var(--second-color);
}

.log,
.lang {
  background-color: var(--main-color);
  border-radius: 25px;
  color: #fff;
  padding: 10px 15px;
  font-size: 17px;
  transition: 0.3s;
}
.log:hover,
.lang:hover {
  background-color: var(--second-color);
}
.log a,
.lang a {
  color: #fff;
}
/* navbar */

/* Start Sidebar */

.sidebar {
  position: relative;
  top: 0;
  right: 0;
  width: 300px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 20px;
  transition: 0.3s;
}

.sidebar h1 {
  position: relative;
  text-align: center;
  color: #000;
  margin-bottom: 50px;
}

.sidebar h1::before,
.sidebar h1::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar h1::before {
  width: 100px;
  height: 4px;
  border-radius: 10px;
  background-color: #000;
  bottom: -15px;
}

.sidebar h1::after {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #000;
  background-color: #fff;
  bottom: -23px;
}

.toggle {
  position: fixed;
  right: 0;
  top: 150px;
  width: fit-content;
  border: none;
  background-color: var(--main-color);
  color: #fff;
  font-size: 20px;
  padding: 10px;
  display: none;
  transition: 0.3s;
}

.toggle:hover {
  transform: rotate(180deg);
}

.sidebar li a {
  display: block;
  padding: 10px;
  color: #000;
  font-weight: bold;
}

.sidebar li a:hover,
.sidebar li a.active {
  background-color: #f6f6f6;
}

@media (min-width: 768px) {
  .sidebar {
    height: 100vh;
  }
}

@media (max-width: 767px) {
  .toggle {
    display: block;
  }

  .toggle:hover {
    right: 300px;
  }

  .toggle:hover + .sidebar {
    right: 0;
    z-index: 10;
  }

  .sidebar {
    position: fixed;
    top: 60px;
    right: -300px;
    height: 120vh;
  }
}

/* End Sidebar */

/* Start News */
.news-details {
  position: relative;
  padding: 100px 0;
}
.news-details .details {
  padding: 0 10px;
}
.news-details .details h1 {
  font-size: 50px;
}
.news-details .details .box {
  background-color: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 50px;
}
.news-details .details .box img {
  width: 100%;
}
.news-details .details .box .date {
  padding: 10px;
}
.news-details .details .box h2 {
  font-weight: bold;
}
.news-details .details .box p {
  color: #777;
  line-height: 1.7;
  font-size: 18px;
}
/* End News */

/* Footer */

footer {
  padding: var(--padding-section);
  background-color: var(--second-color);
}

footer h4 {
  color: var(--main-color);
  text-transform: uppercase;
}

footer li {
  padding: 6px 0;
}

footer a {
  color: #fff;
  font-size: 20px;
  transition: 0.3s;
}

footer a:hover {
  color: var(--main-color);
}

footer .icons ul {
  gap: 30px;
}
footer .icons i {
  font-size: 30px;
}

.foot {
  background-color: var(--main-color);
  color: #fff;
}
.foot p {
  font-weight: 600;
  font-size: 25px;
  margin: 0;
}

/* Footer */

.up {
  position: fixed;
  bottom: 10px;
  left: -100px;
  background-color: var(--main-color);
  color: white;
  font-weight: bold;
  padding: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.up.show {
  left: 10px;
}
