/* HEADER */
.mobile-header-spacer {
  display: none;
}

header {
  background: var(--white);
  color: var(--primary);
  /* position: fixed; */
  /* top: 0; */
  /* z-index: 9999; */
  width: 100%;
}
header.dark {
  /* background-color: var(--darkHeaderBg); */
}

.header-banner {
  background-color: var(--primary);
  height: 20px;
}
.hr_header {
  border: 0.1px solid var(--primary);
}
.header-wrapper {
  padding: 2.4rem 8rem;
  position: relative;
}

.logo-box {
  text-decoration-line: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu.right {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3rem;
}

.menu.right a {
  display: flex;
  align-items: center;
}

.menu.right svg {
  cursor: pointer;
}

.instagram-icon {
  width: 20px;
  height: 20px;
}

.toggle-box {
  z-index: 1000;
}

.toggle-box {
  display: flex;
  align-items: center;
}

.toggle-box__menu {
  display: none;
  /* color: var(--white); */
  font-size: 3rem;
}

.nav {
  display: flex;
}

.menu-box {
  display: flex;
  align-items: center;
  gap: 4rem;
  list-style: none;
  width: 100%;
}

.menu__link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: var(--font-lable-XS);
}

.dropdown {
  position: relative;
  /* right: 5rem; */
}

.menu.dropdown.open .submenu-box {
  max-height: 1024px;
  transition: all 0.5s linear;
}

.submenu-box {
  z-index: 1000;
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 22rem;
  background-color: var(--white);
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  border-radius: 1rem;
  list-style: none;
  max-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: all 0.5s linear;
}

.submenu {
  padding: 1.6rem 2rem;
}

.submenu:not(:last-child) {
  border-bottom: 1px solid var(--primary50);
}

.submenu__link {
  text-decoration: none;
  font-weight: 400;
  font-size: var(--font-size-medium);
  color: var(--gray120);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.submenu__link2 {
  text-decoration: none;
  font-weight: 400;
  font-size: var(--font-size-medium);
  color: var(--gray120);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.profile-icon {
  width: 24px;
  height: 24px;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.login {
  background-color: var(--buttonSecondaryNormal);
  border: 0.1rem solid var(--primary);
  font-weight: 400;
  color: var(--primary600);
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 1.4rem 0.5rem 1.4rem;
  font-size: var(--font-lable-XS);
  text-align: center;
}

.login:hover {
  background-color: var(--buttonSecondaryHover);
  border: 0.1rem solid var(--primary500);
  color: var(--primary600);
  cursor: pointer;
}

.login:active {
  background-color: var(--buttonSecondaryPressed);
  border: 0.1rem solid var(--primary700);
  color: var(--white);
  cursor: pointer;
}

.logo-str {
  color: var(--primary);

  font-size: var(--font-title-XL);
  font-weight: 600;
}

.logo-box__link {
  text-decoration-line: none;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

/* MOBAIL STYLES */
/* Mobile nav */
.navbar {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 100%;
  min-height: 5rem;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  background-color: var(--primary600);
}

.nav-menu {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.nav-menu > .nav-item:nth-child(4) {
  margin-top: 1rem;
  border-top: 1px solid gray;
}

.nav-item > .nav-link {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  padding-left: 3rem;
  padding-right: 3rem;
  justify-content: space-between;
}

.nav-link {
  transition: 0.7s ease;
  color: #fff;
  text-decoration: none;
}

.nav-item:nth-child(2) > .nav-link,
.nav-item:nth-child(3) .nav-link {
  font-size: 2rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  background-color: white;
}

/* Large smartphones and small tablets (up to 768px) */
@media only screen and (max-width: 768px) {
  .mobile-header-spacer {
    display: block;
    height: 5rem;
  }

  .header-banner,
  .header-wrapper,
  .hr_header {
    display: none;
  }

  .navbar,
  .nav-menu {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 5rem;
    left: -100%;
    gap: 0;
    flex-direction: column;
    background-color: var(--primary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    list-style: none;
    z-index: 9999;
    box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  }

  .nav-item {
    width: 100%;
  }

  .nav-item:hover,
  .nav-item:active {
    background-color: var(--primary700);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link > .logo-str {
    color: inherit;
  }

  .submenu-box {
    transform: translateX(-85%);
  }

  .dropdown > .menu__link {
    color: #fff;
  }
}
