:root {
  --header-height: 102px;
}

.site-header {
  position: static;
  width: 100%;
  z-index: 9999;
  transition: transform 0.4s ease-in-out;
}

@media screen and (min-width: 768px) {
  .site-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    transform: translateY(0);
  }
  .site-header.sticky.hide {
    transform: translateY(-100%);
  }
  .mega-menu-dropdown {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100vw;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 520px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 25px;
    justify-content: start;
    z-index: 998;
    transition: opacity 0.3s ease, max-height 0.4s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    align-content: start;
  }
  .mega-menu li:hover > .mega-menu-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 520px;
  }
}

.mega-menu {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.mega-menu > li {
  position: static !important;
}

.mega-menu > li > a {
  margin: 36px 12px;
  padding-bottom: 8px;
  display: block;
  color: white;
  text-decoration: none;

  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0%; 

}

#mobile-menu .mega-menu > li > a {
  margin: 12px;
  padding-bottom: 0;
  display: block;
  color: black;
  text-decoration: none;
}

.mega-menu-dropdown li {
  list-style: none;
}

.mega-menu-dropdown li a {
  display: block;
  padding: 16px;
  color: #000;
  text-decoration: none;
}

.mega-menu-dropdown li a:hover {
  background-color: #f4f4f4;
  border-radius: 16px;
}

.mega-menu-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  width: 100%;
  margin-top: 16px;
  row-gap: 4px;
}

.scroll-lock {
  overflow: hidden;
  height: 100vh;
}

@media screen and (min-width: 768px) {
  .mega-menu > li.current-menu-item > a,
  .mega-menu > li.current_page_item > a {
    border-bottom: 2px solid #FFCC32;
  }
}
