/* =========================================
   WLTARA HEADER
========================================= */

.wlt-header{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  padding: 40px 20px 0;
  box-sizing: border-box;
}

.wlt-header__inner{
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 80px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 40px;
  border: 1px solid rgba(222, 229, 237, 0.5);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-sizing: border-box;
}

/* =========================================
   LOGO
========================================= */

.wlt-header__logo-link{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wlt-header__logo{
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.wlt-header__logo-link span{
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #003A5C;
}

/* =========================================
   DESKTOP MENU
========================================= */

.wlt-header__nav{
  display: flex;
  justify-content: center;
  align-items: center;
}

.wlt-header__menu{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wlt-header__menu li{
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wlt-header__menu a{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: #003A5C;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.25s ease;
  padding-bottom: 14px;
}

/* =========================================
   ACTIVE + HOVER INDICATOR
========================================= */

.wlt-header__menu a::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 6px;
  height: 6px;
  background: #DC8629;
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s ease;
}

/* Hover */
.wlt-header__menu li:hover > a::before{
  transform: translateX(-50%) scale(1);
}

/* Active Page */
.wlt-header__menu .current-menu-item > a::before,
.wlt-header__menu .current-menu-ancestor > a::before{
  transform: translateX(-50%) scale(1);
}

.wlt-header__menu a:hover,
.wlt-header__menu .current-menu-item > a,
.wlt-header__menu .current-menu-ancestor > a{
  color: #003A5C;
}

/* Dropdown parent arrow */
.wlt-header__menu .menu-item-has-children > a::after{
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  border-right: 2px solid #003A5C;
  border-bottom: 2px solid #003A5C;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}

.wlt-header__menu .menu-item-has-children:hover > a::after{
  transform: rotate(225deg) translateY(-2px);
}

/* Dropdown menu */
.wlt-header__menu .sub-menu{
  position: absolute;
  top: 95%;
  left: 100%;
  transform: translateX(-50%) translateY(10px);
  min-width: 200px;
  margin: 0;
  padding: 12px 12px 12px;
  list-style: none;
  border: 1px solid rgba(222, 229, 237, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 45px rgba(0, 58, 92, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.wlt-header__menu .menu-item-has-children:hover > .sub-menu,
.wlt-header__menu .menu-item-has-children:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.wlt-header__menu .sub-menu li{
  width: 100%;
}

.wlt-header__menu .sub-menu a{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 24px;
  color: #003A5C;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Remove indicator from dropdown links */
.wlt-header__menu .sub-menu a::before{
  display: none;
}

.wlt-header__menu .sub-menu a:hover{
  background: rgba(0, 58, 92, 0.08);
}

/* =========================================
   CTA BUTTON
========================================= */

.wlt-header__action{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.wlt-header__button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 9px 9px 20px;
  border-radius: 50px;
  background: #003A5C;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease;
}

.wlt-header__button:hover{
  transform: translateY(-1px);
  background: #002f4a;
  color: #FFFFFF;
}

.wlt-header__button-icon{
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #FFFFFF;
}

.wlt-header__button-icon img{
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  transform-origin: center center;
}

/* hover on the full button */
.wlt-header:hover .wlt-header__button-icon img{
  transform: rotate(45deg);
}


/* Do not show orange box on parent items that have dropdowns */
.wlt-header__menu > .menu-item-has-children:hover > a::before,
.wlt-header__menu > .menu-item-has-children:focus-within > a::before{
	transform: translateX(-50%) scale(0);
}
/* =========================================
   HAMBURGER
========================================= */

.wlt-header__hamburger{
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  padding: 0;
  border-radius: 500px;
  background: #003A5C;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wlt-header__hamburger img{
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* =========================================
   MOBILE OFFCANVAS
========================================= */

.wlt-mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  pointer-events: none;
}

.wlt-mobile-menu.is-open{
  visibility: visible;
  pointer-events: auto;
}

.wlt-mobile-menu__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 32, 0.55);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.wlt-mobile-menu.is-open .wlt-mobile-menu__overlay{
  opacity: 1;
}

.wlt-mobile-menu__panel{
  position: relative;
  width: min(88vw, 420px);
  height: 100%;
  padding: 24px;
  background: #FFFFFF;
  box-shadow: 24px 0 60px rgba(0, 58, 92, 0.18);
  transform: translateX(-105%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
  overflow-y: auto;
}

.wlt-mobile-menu.is-open .wlt-mobile-menu__panel{
  transform: translateX(0);
}

.wlt-mobile-menu__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 58, 92, 0.12);
}

.wlt-mobile-menu__logo{
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}

.wlt-mobile-menu__close{
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 0;
  padding: 0;
  border-radius: 500px;
  background: rgba(0, 58, 92, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.wlt-mobile-menu__close img{
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wlt-mobile-menu__nav{
  padding: 28px 0;
}

.wlt-mobile-menu__list,
.wlt-mobile-menu__list .sub-menu{
  margin: 0;
  padding: 0;
  list-style: none;
}

.wlt-mobile-menu__list{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wlt-mobile-menu__list li{
  list-style: none;
}

.wlt-mobile-menu__list a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 28px;
  font-weight: 500;
  color: #003A5C;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 58, 92, 0.08);
}

/* Mobile submenu closed by default */
.wlt-mobile-menu__list .menu-item-has-children{
  position: relative;
}

.wlt-mobile-menu__list .menu-item-has-children > a{
  padding-right: 42px;
}

/* Submenu icon */
.wlt-mobile-menu__list .menu-item-has-children > a::after{
  content: "";
  position: absolute;
  right: 0;
  width: 17px;
  height: 17px;
  background-image: url("../images/menu_sub_close.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Open state icon */
.wlt-mobile-menu__list .menu-item-has-children.is-submenu-open > a::after{
  transform: rotate(0deg);
}

/* Hide submenu by default */
.wlt-mobile-menu__list .sub-menu{
  max-height: 0;
  overflow: hidden;
  padding: 0 0 0 16px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

/* Show submenu */
.wlt-mobile-menu__list .menu-item-has-children.is-submenu-open > .sub-menu{
  max-height: 300px;
  padding: 4px 0 8px 16px;
}
.wlt-mobile-menu__list .sub-menu a{
  font-size: 15px;
  line-height: 24px;
  padding: 10px 0;
  color: rgba(0, 58, 92, 0.78);
}

.wlt-mobile-menu__bottom{
  margin-top: 10px;
}

.wlt-mobile-menu__button{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 12px 20px;
  border-radius: 50px;
  background: #003A5C;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  box-sizing: border-box;
}

.wlt-mobile-menu__button-icon{
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  background: #FFFFFF;
}

.wlt-mobile-menu__button-icon img{
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

body.wlt-menu-open{
  overflow: hidden;
}

/* =========================================
   LAPTOP
========================================= */

@media (min-width: 1025px) and (max-width: 1600px){
  .wlt-header{
    padding: 30px 20px 0;
  }

  .wlt-header__inner{
    padding: 18px 24px;
    grid-template-columns: 180px 1fr auto;
    gap: 32px;
  }

  .wlt-header__logo{
    width: 180px;
  }

  .wlt-header__menu{
    gap: 32px;
  }
}

/* =========================================
   TABLET + MOBILE
========================================= */

@media (min-width: 768px) and (max-width: 1024px){
  .wlt-header{
    padding: 30px 20px 0;
  }

  .wlt-header__inner{
    grid-template-columns: 180px 1fr;
    padding: 16px 24px;
  }

  .wlt-header__logo{
    width: 180px;
  }

  .wlt-header__nav,
  .wlt-header__action{
    display: none;
  }

  .wlt-header__hamburger{
    display: inline-flex;
    justify-self: end;
  }
}

@media (min-width: 320px) and (max-width: 767px){
  .wlt-header{
    padding: 20px 10px 0;
  }

  .wlt-header__inner{
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .wlt-header__logo{
    width: 150px;
  }

  .wlt-header__nav,
  .wlt-header__action{
    display: none;
  }
  

  .wlt-header__hamburger{
    display: inline-flex;
    justify-self: end;
    width: 44px;
    height: 44px;
  }

  .wlt-mobile-menu__panel{
    width: min(90vw, 380px);
    padding: 22px 20px;
  }

  .wlt-mobile-menu__logo{
    width: 150px;
  }
}