.module-header-mega-menu {
  width: 100%;
}

.module-header-mega-menu .link__container svg {
  height: 0.8rem;
  width: 0.8rem;
  fill: #050485;
  top: 3px;
  position: relative;
  margin-left: 5px;
}
.head-logo img.hs-image-widget{
  width: 150px !important;
}
.head-menu .menu__link{
  color: #050485;
  font-size: 14px;
}
.head-btns .head-btn.button a,
.head-btns .head-btn a{
  font-size: 14px;
}
.head-menu .menu__link:hover,
.menu__item--depth-1[aria-expanded="true"]>div>.menu__link{
  color: #e52581;
}
.menu__item-has-submenu[aria-expanded="true"] .link__container svg{
  fill: #e52581;
  rotate: 180deg;
}
.head-menu .menu__link,
.head-menu .menu__link:hover,
.module-header-mega-menu .link__container svg,
.menu__item-has-submenu[aria-expanded="true"] .link__container svg{
  transition: all .2s;
  background: none;
}

.module-header-mega-menu .menu__item-has-submenu[aria-expanded="false"] .menu__submenu,
.mega-submenu-bg[aria-expanded="false"] {
  display: none;
}

.module-header-mega-menu .menu__item-has-submenu[aria-expanded="true"] .menu__submenu,
.mega-submenu-bg[aria-expanded="true"] {
  display: grid;
}

@media only screen and (min-width: 992px) {
  .module-header-mega-menu .head-hamburger {
    display: none;
  }
}

.head-inner, .head-menu, .head-btns{
  display: flex;
  flex: auto;
}
.head-inner{
  gap: 0;
}
.head-menu{
  gap: 5vw;
}
.head-btns{
  gap: 0;
  width: auto;
}
.head-logo{
  flex: auto;
  width: auto;
}
.head-menu li{
  list-style: none;
  cursor: pointer;
}
.menu__item-has-submenu:hover>ul{
  display: flex;
}
.head-btns{
  margin: auto 0 auto auto;
}
.head-right{
  margin: auto 0;
  flex: auto;
  width: auto;
  
}

/*MEGAMENU SUBMENUS*/
.head-menu{
  position: relative;
}
.head-menu .menu__submenu.menu__submenu--depth-2{
  display: none;
  font-size: 16px;
  grid-auto-flow: column;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 3rem);
  padding-top: 50px;
  padding-bottom: 25px;
  width: max-content;
  background: white;
  margin: auto;
  box-shadow: 0 10px 10px -10px #9e9e9e;
  position: absolute;
  padding-left: 50vw;
  padding-right: 50vw;
  margin-left: -50vw;
  margin-top: 2px;
  left: 0;
}
.head-btn.link:hover a{
  color: #e52581;
}
.head-btn.button a{
  font-size: 18px;
}




/** MOBILE **/
/* Prevent scrolling when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Hamburger Button Styles */
.hamburger-button {
  width: 20px;
  cursor: pointer;
  z-index: 1000;
  position: relative;
}

/* Hamburger Icon Bars */
.hamburger-button span {
  transform: rotate(0deg);
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

/* Active state (when menu is open) */
.hamburger-button.active span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

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

.hamburger-button.active span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #fff;
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  margin: 100px 0px 0px;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.mobile-menu {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Open state for mobile menu */
.mobile-menu.open {
  right: 0;
}
.hamburger-button>span:nth-of-type(1),
.hamburger-button.active>span:nth-of-type(2){
  display: block;
  opacity: 1;
}
.hamburger-button.active>span:nth-of-type(1),
.hamburger-button>span:nth-of-type(2){
  display: none;
  opacity: 0;
}

/* Overlay when menu is open */
.mobile-menu::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: -1;
}

.mobile-menu.open::before {
  opacity: 1;
  visibility: visible;
}

/* Menu items styling */
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li.menu__item--depth-1 {
  border-bottom: 1px solid #eee;
  list-style: none;
  padding: 10px 25px;
}

.mobile-menu li:last-child {
  border-bottom: none;
}
.module-header-mega-menu li.menu__item--depth-2{
  padding: 10px 50px 10px 0 !important;
}
.menu__item--depth-1>div>.menu__link{
  font-weight: 900;
}
.mobile-menu a,
.mobile-menu span{
  font-size: 16px;
  color: #050485;
}
.module-header-mega-menu .mobile-menu .menu__item-has-submenu[aria-expanded="true"] .menu__submenu{
  display: block;
}

/* Handle responsive adjustments */
@media (min-width: 992px) {
  .hamburger-button {
    display: none; /* Hide hamburger on desktop */
  }
  
  .mobile-menu {
    display: none; /* Optional: hide completely on desktop if you have a separate desktop menu */
  }
}
@media (max-width: 992px) {
  .module-header-mega-menu.fixed{
    position: fixed;
  }
  .head-menu {
    display: none; /* Optional: hide completely on desktop if you have a separate desktop menu */
  }
  .head-inner{
    flex-wrap: wrap;
  }
  .head-right{
    margin: auto 0 auto auto;
    display: contents;
  }
  .head-inner>.head-btns{
    display: none;
  }
  .head-logo{
    position: relative;
    z-index: 1000;
  }
  .head-logo img{
    margin-left: -13px;
  }
  .head-btns{
    flex-direction: column-reverse;
    gap: 20px;
    margin-top: 20px;
    padding: 0px 25px;
  }
  .head-btns>* {
    text-align: center;
  }
  .head-btns>*>a{
    display: block;
    width: 80%;
    margin: auto;
  }
  .head-btn.link a{
    border: 1px solid #e82584;
    border-radius: 36px;
    font-style: normal;
    padding: 10px 22px;
    text-decoration: none;
    text-transform: none;
  }
  .head-btn.button a{
    color: white;
  }
  .head-btn.button a:hover
    color: #e82584;
  }
  .menu__item--depth-2 a:hover,
  .menu__item--depth-2 span:hover{
    background-color: transparent !important;
    color: #e52581 !important;
  }
  .menu__item--depth-2 a,
  .menu__item--depth-2 span{
    color: #050485 !important;
  }
  .menu__item-has-submenu .hs_cos_wrapper_type_icon{
    float: right;
  }
}