/*  ------------ header nav ----------- */
.header {
  left: 0;
  top: 0;
  width: 100%;
  z-index: 10;
  background: var(--background-color2);
  transition: background-color 0.3s ease;
}
.header.sticky {
  position: sticky;
  top: 0;
  background-color: var(--background-color6);
  border-bottom-width: 0;
}

.container {
  max-width: 1170px;
  margin: auto;
  padding: 5px 5px;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo a {
  cursor: pointer;
}
.header .logo img {
  vertical-align: middle;
  height: 70px;
  width: 70px;
}
.header .menu .head {
  display: none;
}
.header .menu ul {
  list-style: none;
}
.header .menu > ul > li {
  display: inline-block;
  margin-right: 40px;
}
.header[dir="rtl"] .menu > ul > li {
  margin-right: auto;
  margin-left: 40px;
}
.header .menu .dropdown {
  position: relative;
}
.header .menu a {
  text-decoration: none;
  text-transform: capitalize;
  font-size: 18px;
  color: var(--text-color);
  line-height: 1.5;
  display: block;
}
.header .menu > ul > li > a {
  padding: 24px 0;
}
.header .menu > ul > .dropdown > a {
  padding-right: 15px;
}
.header[dir="rtl"] .menu > ul > .dropdown > a {
  padding-left: 15px;
}
.menu a:hover {
  text-decoration: underline;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.menu a:active,
.menu a.active {
  text-decoration: underline;
  color: var(--text-color2);
  font-weight: bold;
}
.header .menu i {
  font-size: 10px;
  pointer-events: none;
  user-select: none;
  position: absolute;
  color: var(--text-color);
  top: calc(50% - 5px);
}
.header .menu > ul > li > i {
  right: 0;
}
.header[dir="rtl"] .menu > ul > li > i {
  right: auto;
  left: 0;
}
.header .menu .sub-menu {
  position: absolute;
  top: 80%;
  left: 0;
  width: 230px;
  padding: 5px 0;
  background-color: var(--background-color);
  box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.5);
  z-index: 9;
  transform-origin: top;
  transform: scaleY(0);
  visibility: hidden;
  opacity: 0;
}
.header[dir="rtl"] .menu .sub-menu {
  left: auto;
  right: 0;
}
.header .menu .sub-menu-right {
  left: 100%;
  top: 0;
}
.header[dir="rtl"] .menu .sub-menu-right {
  left: auto;
  right: 100%;
}
.header .menu .sub-menu-left {
  top: 0;
  left: auto;
  right: 100%;
}
.header[dir="rtl"] .menu .sub-menu-left {
  left: 100%;
  right: auto;
}
.header .menu li:hover > .sub-menu {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: all 0.5s ease;
}
.header .menu .sub-menu a {
  padding: 6px 24px;
}
.header .menu .sub-menu .dropdown > a {
  padding-right: 34px;
}
.header[dir="rtl"] .menu .sub-menu .dropdown > a {
  padding-right: 24px;
}
.header .menu .sub-menu span {
  background-image: linear-gradient(var(--text-color), var(--text-color));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s ease;
}
.header .menu .sub-menu li:hover > a > span {
  background-size: 100% 1px;
}
.header .menu .sub-menu i {
  transform: rotate(-90deg);
  right: 24px;
}
.header[dir="rtl"] .menu .sub-menu i {
  transform: rotate(-270deg);
  right: 200px;
}
.header-right {
  display: flex;
  margin-left: 25px;
}
.header-right[dir="rtl"] {
  margin-left: 0;
  margin-right: 25px;
}
.header-right .icon-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 16px;
}
.header-right .open-menu-btn {
  display: none;
}
/* ------------------------------------------------- */

/*  header */
@media only screen and (max-width: 767px) {
  .header {
    padding: 0;
    z-index: 2000;
  }
  .header .logo img {
    vertical-align: middle;
    height: 50px;
    width: 50px;
  }
  .header .menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    padding: 15px 30px 30px;
    overflow-y: auto;
    z-index: 10;
    transform: translateX(100%);
  }
  .header[dir="rtl"] .menu {
    transform: translateX(-100%);
  }
  .header .menu.open {
    transform: none;
  }
  .header .menu .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
  }
  .container {
    max-width: 762px;
    margin: auto;
    padding: 5px 5px;
  }
  .header .menu .close-menu-btn {
    height: 25px;
    width: 25px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
  }
  .header .menu .close-menu-btn::before,
  .header .menu .close-menu-btn::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: var(--text-color);
  }
  .header .menu .close-menu-btn::before {
    transform: rotate(45deg);
  }
  .header .menu .close-menu-btn::after {
    transform: rotate(-45deg);
  }
  .header .menu > ul > li {
    display: block;
    margin-right: 0;
  }
  .header[dir="rtl"] .menu > ul > li {
    margin-left: 0;
  }
  .header .menu li {
    border-bottom: 1px solid var(--border-color);
  }
  .header .menu li:first-child {
    border-top: 1px solid var(--border-color);
  }
  .header .menu > ul > li > a {
    padding: 12px 0;
  }
  .header .menu > ul > .dropdown > a {
    padding-right: 34px;
  }
  .header[dir="rtl"] .menu > ul > .dropdown > a {
    padding-right: 0;
  }
  .header .menu i {
    height: 34px;
    width: 34px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    top: 7px;
  }
  .header .menu .dropdown.active > i {
    background-color: var(--background-color);
    transform: rotate(180deg);
  }
  .header .menu .sub-menu {
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    padding: 0;
    transition: none;
    box-shadow: none;
    width: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0);
  }
  .header .menu .dropdown.active > .sub-menu {
    display: block;
  }
  .header .menu .sub-menu li:last-child {
    border: none;
  }
  .header .menu .sub-menu a {
    padding: 12px 0 12px 15px;
  }
  .header .menu .sub-menu .sub-menu a {
    padding-left: 30px;
  }
  .header .menu .sub-menu .sub-menu .sub-menu a {
    padding-left: 45px;
  }
  .header .menu .sub-menu span {
    background-image: none;
  }
  .header .menu .sub-menu i {
    transform: none;
    right: 0;
  }
  .header-right {
    margin-left: 0;
  }
  .header-right .open-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 44px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    border: none;
  }
  .header-right .open-menu-btn .line {
    height: 2px;
    width: 30px;
    background-color: var(--text-color);
    position: absolute;
  }
  .header-right .open-menu-btn .line-1 {
    transform: translateY(-8px);
  }
  .header-right .open-menu-btn .line-3 {
    transform: translateY(8px);
  }
  .header[dir="rtl"] .menu .sub-menu a {
    padding: 12px 15px 12px 0px;
  }
  .header[dir="rtl"] .menu .sub-menu .sub-menu a {
    padding-right: 30px;
  }

  .header[dir="rtl"] .menu .sub-menu i {
    transform: rotate(0deg);
    right: 280px;
  }
  .header[dir="rtl"] .menu .dropdown.active > i {
    transform: rotate(180deg);
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .header .logo img {
    height: 60px;
    width: 60px;
  }
  .header .menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    padding: 15px 30px 30px;
    overflow-y: auto;
    z-index: 10;
    transform: translateX(100%);
  }
  .header[dir="rtl"] .menu {
    transform: translateX(-100%);
  }
  .header .menu.open {
    transform: none;
  }
  .header .menu .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
  }
  .container {
    max-width: 1018px;
    margin: auto;
    padding: 5px 5px;
  }
  .header .menu .close-menu-btn {
    height: 30px;
    width: 30px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    cursor: pointer;
    border: none;
  }
  .header .menu .close-menu-btn::before,
  .header .menu .close-menu-btn::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 2px;
    background-color: var(--text-color);
  }
  .header .menu .close-menu-btn::before {
    transform: rotate(45deg);
  }
  .header .menu .close-menu-btn::after {
    transform: rotate(-45deg);
  }
  .header .menu > ul > li {
    display: block;
    margin-right: 0;
  }
  .header[dir="rtl"] .menu > ul > li {
    margin-left: 0;
  }
  .header .menu li {
    border-bottom: 1px solid var(--border-color);
  }
  .header .menu li:first-child {
    border-top: 1px solid var(--border-color);
  }
  .header .menu > ul > li > a {
    padding: 12px 0;
  }
  .header .menu > ul > .dropdown > a {
    padding-right: 34px;
  }
  .header[dir="rtl"] .menu > ul > .dropdown > a {
    padding-right: 0;
  }
  .header .menu i {
    height: 34px;
    width: 34px;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    top: 7px;
  }
  .header .menu .dropdown.active > i {
    background-color: var(--background-color);
    transform: rotate(180deg);
  }
  .header .menu .sub-menu {
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    padding: 0;
    transition: none;
    box-shadow: none;
    width: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0);
  }
  .header .menu .dropdown.active > .sub-menu {
    display: block;
  }
  .header .menu .sub-menu li:last-child {
    border: none;
  }
  .header .menu .sub-menu a {
    padding: 12px 0 12px 15px;
  }
  .header .menu .sub-menu .sub-menu a {
    padding-left: 30px;
  }
  .header .menu .sub-menu .sub-menu .sub-menu a {
    padding-left: 45px;
  }
  .header .menu .sub-menu span {
    background-image: none;
  }
  .header .menu .sub-menu i {
    transform: none;
    right: 0;
  }
  .header-right {
    margin-left: 0;
  }
  .header-right .open-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 44px;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    border: none;
  }
  .header-right .open-menu-btn .line {
    height: 2px;
    width: 30px;
    background-color: var(--text-color);
    position: absolute;
  }
  .header-right .open-menu-btn .line-1 {
    transform: translateY(-8px);
  }
  .header-right .open-menu-btn .line-3 {
    transform: translateY(8px);
  }
  .header[dir="rtl"] .menu .sub-menu .dropdown > a {
    padding-right: 0;
  }
  .header[dir="rtl"] .menu .sub-menu i {
    transform: rotate(0deg);
    right: 280px;
  }
  .header[dir="rtl"] .menu .dropdown.active > i {
    transform: rotate(180deg);
  }
}

@media only screen and (min-width: 1024px) {
  .header .logo img {
    height: 70px;
    width: 70px;
  }
}

/* ----------change lnaguage-------- */

.dropdown {
  position: relative;
}

.lnaguage {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 80px;
  height: 30px;
  padding: 0 6px;
  background-color: orange;
  color: var(--text-color);
  font-weight: normal;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.lnaguage:hover {
  background-color: #baaeae;
}
.dropdown button i {
  font-size: 20px;
  color: #000000;
}
.dropdown-options {
  align-items: center;
  display: none;
  position: absolute;
  overflow: auto;
  background-color: orange;
  border-radius: 5px;
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.4);
}
.dropdown:hover .dropdown-options {
  display: block;
  z-index: 1;
}
.dropdown-options a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  text-decoration: none;
  padding: 10px 13px;
}
.dropdown-options a:hover {
  color: #0a0a23;
  background-color: #ddd;
  border-radius: 5px;
}
@media only screen and (max-width: 767px) {
  .lnaguage {
    width: 60px;
    height: 30px;
    padding: 11px 5px;
    font-size: 10px;
  }
  .dropdown button i {
    font-size: 15px;
  }
  .dropdown-options a {
    padding: 8px 7px;
    font-size: 14px;
  }
}

/* -----language and dark mode container------- */
.first-line {
  display: flex;
  align-self: center;
  justify-content: end;
}

/* --------------dark light button------------ */
.toggle-btn {
  margin-left: 8px;
  margin-right: 8px;
  background: #4864ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  width: 80px;
  height: 30px;
  font-size: 13px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.toggle-btn:hover {
  background-color: #baaeae;
}
.toggle-btn.clicked {
  background-color: #baaeae;
}
.toggle-btn img {
  width: 19px;
  height: 19px;
}
@media only screen and (max-width: 767px) {
  .toggle-btn {
    width: 60px;
    height: 30px;
    padding: 11px 5px;
    font-size: 10px;
    transition: background-color 0.3s ease;
  }
  .toggle-btn:hover {
    background-color: #4864ff;
  }
  .toggle-btn img {
    width: 15px;
    height: 15px;
  }
}

/* ------------social-media------------ */
.social-media {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}
.social-media a {
  font-size: 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s ease-in-out;
}
.social-media a:hover {
  opacity: 0.7;
  transform: scale(1.2);
}
@media only screen and (max-width: 767px) {
  .social-media {
    display: none;
  }
  @media only screen and (min-width: 768px) and (max-width: 1023px) {
    .social-media a {
      font-size: 22px;
    }
  }
}
