.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 245, 249, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 70px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 85px;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.header-logo .logo-icon {
  width: 30px;
  height: 23px;
  object-fit: contain;
}

.header-logo .logo-text {
  width: 114px;
  height: 29px;
  object-fit: contain;
  margin-left: 2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 41px;
}

.header-nav .nav-link {
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 22.5px;
  color: #B5BEC8;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav .nav-link:hover {
  color: #205CD4;
}

.header-nav .nav-link.active {
  font-weight: 700;
  color: #205CD4;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-dropdown .chevron-icon {
  width: 13px;
  height: 6.5px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .chevron-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(8px);
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #0F2B5B;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(32, 92, 212, 0.1);
  color: #205CD4;
}

.header-cta {
  flex-shrink: 0;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #F7BB33;
  border-radius: 12px;
  padding: 11px 24px;
  box-shadow: 0 2px 0 0 #C27E0C, 0 2px 4px rgba(37, 43, 47, 0.06);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 18px;
  color: #0F2B5B;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 0 #C27E0C, 0 4px 8px rgba(37, 43, 47, 0.1);
}

.btn-login:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 #C27E0C, 0 1px 2px rgba(37, 43, 47, 0.06);
}

.btn-login .login-icon {
  width: 16px;
  height: 18px;
  flex-shrink: 0;
}

/* ===================== Hubs Mega Menu ===================== */
.hubs-mega-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 998;
  background: #ffffff;
  border-top: 1px solid rgba(26, 79, 186, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.hubs-mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hubs-mega-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 85px 32px;
}

.hubs-mega-label {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 19.5px;
  color: #6E7F93;
}

.hubs-mega-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F8F9FC;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hubs-mega-close:hover {
  background: #EBEEF3;
}

.hubs-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  background: #F8F9FC;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover {
  border-color: rgba(32, 92, 212, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hub-card-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.hub-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 43, 91, 0.6), transparent);
}

.hub-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-family: "DM Sans", "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 16.5px;
  color: #2DC543;
}

.hub-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DC543;
  flex-shrink: 0;
}

.hub-card-link-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.hub-card-info {
  padding: 16px;
}

.hub-card-info h3 {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #0F2B5B;
  margin: 0 0 4px;
}

.hub-card-info p {
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  line-height: 19.5px;
  color: #6E7F93;
  margin: 0;
}

.hubs-mega-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 997;
  background: transparent;
  display: none;
}

.hubs-mega-overlay.active {
  display: block;
}

/* Mobile hamburger */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0F2B5B;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-menu-overlay {
  display: none;
}

/* CTA duplicate for mobile menu */
.header-cta-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .header-inner {
    padding: 0 24px;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Slide-in drawer from left */
  .header-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 80vw;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 90px 28px 32px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
  }

  .header-nav.open {
    transform: translateX(0);
  }

  .header-nav .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    color: #0F2B5B;
    border-bottom: 1px solid #F0F2F5;
  }

  .header-nav .nav-link.active {
    color: #205CD4;
  }

  /* Dropdowns in mobile */
  .nav-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0 16px;
    min-width: auto;
    width: 100%;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, visibility 0.3s ease;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    visibility: visible;
    max-height: 300px;
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 10px 0;
    border-radius: 0;
    font-size: 15px;
    color: #6B7280;
  }

  /* CTA inside mobile menu */
  .header-cta-mobile {
    display: block;
    margin-top: auto;
    padding-top: 24px;
    width: 100%;
  }

  .header-cta-mobile .btn-login {
    width: 100%;
    justify-content: center;
  }

  /* Overlay */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .hubs-mega-menu {
    display: none;
  }

  .hubs-mega-overlay {
    display: none !important;
  }
}
