/*
* ----------[MEGA MENU MODULE]--------*
*/

.site-header-wrap {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1080px;
  z-index: 1000;
}

.site-header-wrap {
  --gw-mega-insights-col: 120px;
  --gw-mega-about-col: 128px;
  --gw-mega-gap: 0;
  --gw-mega-offset-left: 40px;
}

.site-header {
  position: relative;
  width: 100%;
}

.d-none {
  display: none;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  background: #000;
  border: 1px solid #484f57;
  border-radius: 35px;
  position: relative;
  z-index: 9;
}

.header-inner::after {
  content: '';
  position: absolute;
  left: -1px;
  bottom: -5px;
  width: 100%;
  height: 35px;
  background: #000;
  border-left: 1px solid #484f57;
  border-right: 1px solid #484f57;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.site-header:hover .header-inner::after {
  opacity: 1;
}

.header-logo {
  width: 123px;
  flex: 0 0 auto;
}

.header-logo .site-title {
  display: flex;
}

.header-logo img {
  width: 40px;
  margin: 10px;
}

.main-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.main-nav ul {
  display: grid;
  grid-template-columns: var(--gw-mega-insights-col) var(--gw-mega-about-col);
  column-gap: var(--gw-mega-gap);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--gw-mega-offset-left);
  min-width: 0;
  width: fit-content;
}

.main-nav li {
  /* justify-self: center; */
  width: max-content;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.85;
  white-space: nowrap;
}

.main-nav a:hover {
  opacity: 1;
  color: #f0f0f0;
}

.header-cta {
  margin-left: auto;
  flex: 0 0 auto;
}

.btn-cta {
  background: #bff67e;
  color: #000 !important;
  padding: 6px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-right: 10px;
  text-align: center;
  display: inline-block;
}

.mega-menu {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  background: #000;
  border: solid #484f57;
  border-width: 0 1px 1px 1px;
  border-radius: 0 0 35px 35px;
}

.site-header:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 9;
}

.mega-menu-content {
  display: grid;
  grid-template-columns: var(--gw-mega-insights-col) var(--gw-mega-about-col);
  column-gap: var(--gw-mega-gap);
  justify-content: center;
  align-items: start;
  width: fit-content;
  max-width: 100%;
  margin: -10px auto 0;
  padding: 0 0 20px var(--gw-mega-offset-left);
}

.mega-menu-content > div {
  justify-self: center;
  width: 100%;
}

.mega-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-menu li {
  margin: 15px 0;
}

.mega-menu a {
  color: #bdc3c9;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.mega-menu a:hover {
  color: #f0f0f0;
}

.menu-toggle {
  cursor: pointer;
  margin: 0 5px 0 auto;
  background: none;
  border: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  height: 100%;
  background: #000;
  padding: 24px;
  transition: right 0.3s ease;
  z-index: 1100;
}

.mobile-menu .sub-menu {
  margin: 0;
}

.mobile-menu.active {
  right: 0;
  overflow-y: auto;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #fff;
  text-decoration: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1090;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 991px) {
  .site-header-wrap {
    width: calc(100% - 32px);
    top: 16px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .header-inner {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .mega-menu {
    display: none !important;
  }
}
