/*-------HEADER STYLES----------*/
header {
  position: relative;
  z-index: 999;
  min-height: 80px;
}

@media (max-width: 1024px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
}
@media (min-width: 1024px) {
  header {
    margin-bottom: -50px;
  }
}

body.admin-bar .header {
  margin-top: 32px;
}

.header {
  background-color: var(--wp--preset--color--hwb-white) !important;
  transition: background-color 0.35s ease-in-out;
  color: var(--wp--preset--color--hwb-dark);
}

/* Hide top header on mobile */
@media (max-width: 992px) {
  .header {
    display: none;
  }
  body.admin-bar .header-bottom {
    margin-top: 32px;
  }
}

/*----------------HEADER BOTTOM------------------*/
.header-bottom {
  background-color: var(--wp--preset--color--hwb-white) !important;
  min-height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hwb-light-border-color);
  z-index: 999;
}
@media screen and (min-width: 1024px) {
  .header-bottom .hwb-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Mobile Logo */
@media (min-width: 992px) {
  .header-bottom .mobile-logo {
    display: none;
  }
}

/* Desktop Nav Style*/
.header-bottom .desktop-menu ul li a {
  transition: all 0.35s ease-in-out;
}

.header-bottom .desktop-menu ul li a:hover {
  text-decoration: none;
  color: var(--wp--preset--color--hwb-dark);
}

.header-bottom .desktop-menu ul li.current-menu-item a {
  color: var(--wp--preset--color--hwb-light-dark);
}

/* Search Icon */
.header-bottom .menu-toggle::before,
.header-bottom .bi-search::before {
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.header-bottom .menu-toggle::before {
  font-size: 32px !important;
}

.header-bottom #theme-toggle::before {
  cursor: pointer;
}

/*----------------WEBSITE SEARCH----------------*/
.website-search {
  backdrop-filter: blur(5px);
  display: none;
  z-index: -1;
}

/*------Search Form------*/
.website-search .wp-block-search__button-inside {
  width: 100% !important;
  font-weight: 600;
  border-radius: var(--hwb-input-border-radius);
}
.website-search
  .wp-block-search__button-inside
  .wp-block-search__inside-wrapper {
  width: 100% !important;
  font-weight: 600;
  border: 1px solid var(--hwb-light-border-color);
  border-radius: var(--hwb-input-border-radius);
}

.website-search
  .wp-block-search__button-inside
  .wp-block-search__inside-wrapper
  input {
  border-radius: var(--hwb-input-border-radius);
  background: var(--wp--preset--color--hwb-secondary-white) !important;
}

/*-------------WEBSITE MENU-----------------------*/
.nav-menu {
  backdrop-filter: blur(5px);
  transform: translateY(-200%);
  transition: all 0.35s ease-in-out;
  position: absolute;
  width: 100% !important;
  height: 100vh;
  z-index: -1;
}

@media (min-width: 1650px) {
  .nav-menu {
    height: 70vh;
  }
}

.nav-menu.active {
  transform: translateY(0%);
}
.nav-menu .hwb-container {
  transition: all 0.35s ease-in-out;
  justify-content: space-around !important;
}

.nav-menu .bi {
  cursor: pointer;
}
@media screen and (max-width: 1024px) {
  .nav-menu {
    height: 80vh;
    padding-top: 10px !important;
  }
  .nav-menu .hwb-container + .wp-block-group {
    min-height: 0 !important;
  }
  .nav-menu .hwb-container .wp-block-columns .right {
    display: none !important;
  }
  .nav-menu .bi {
    display: none;
  }
}

.nav-menu .bi::before {
  font-size: 32px;
  color: var(--wp--preset--color--dapo-white);
  transition: color 0.35s ease-in-out;
}

.nav-menu .bi:hover::before {
  color: var(--wp--preset--color--dapo-blue);
}

.nav-menu .hwb-container .menu-inner {
  max-width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between !important;
  overflow-x: hidden;
  /* margin-left: 0!important; */
}
.nav-menu .hwb-container .menu-inner > nav ul li {
  width: fit-content;
  position: relative;
  z-index: 2;
}

.nav-menu .hwb-container .menu-inner > nav ul li span {
  background-color: var(--wp--preset--color--dapo-white);
}

.nav-menu .menu-inner > nav ul li.current-menu-item a {
  color: var(--wp--preset--color--hwb-dark);
}

.nav-menu
  .hwb-container
  .menu-inner
  > nav
  ul
  li.wp-block-navigation-submenu
  ul
  li {
  font-size: 1rem;
}

.nav-menu .hwb-container .menu-inner > nav ul li {
  font-size: 1.25rem;
  font-weight: 600;
  opacity: 0.2;
  transform: translateX(-100%) !important;
  transition: transform 1s, opacity 1s ease-in-out;
}

.nav-menu .hwb-container .wp-block-columns {
  width: 100%;
  justify-content: space-between !important;
}

/*---------------WEBSITE SEARCH--------------------*/
@media (max-width: 992px) {
  .website-search .search-loop ul {
    height: 400px !important;
    overflow-y: auto;
  }
}

/*---Newsletter Pop---*/
.newsletter-pop {
  backdrop-filter: blur(5px);
  position: absolute;
  display: none;
  align-items: center;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100vh !important;
  z-index: 999;
}

.newsletter-pop.opened {
  display: flex;
}

@media screen and (max-width: 767px) {
  .newsletter-pop__wrapper {
    flex-wrap: wrap !important;
  }
}

.newsletter-pop__wrapper .close-pop::before {
  font-size: 2rem;
  color: var(--wp--preset--color--hwb-white);
  cursor: pointer;
  transition: color 0.35s ease-in-out;
}

.newsletter-pop__wrapper .close-pop:hover::before {
  color: var(--wp--preset--color--hwb-dark);
}

.newsletter-pop__wrapper--inner {
  width: 100%;
  max-width: 500px;
  background-color: var(--wp--preset--color--hwb-white);
}
