/* ==========================================================
   TOP UTILITY BAR
   ========================================================== */
.top-bar {
  background: #050810;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-family: var(--font-primary);
  position: relative;
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 42px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

.top-bar-contact, .top-bar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.top-bar-link i { color: #ff8534; font-size: 14px; }
.top-bar-link:hover { color: #ffffff; }
.top-bar-link:hover i { color: #ffb88c; }

.top-bar-link--accent { color: #ffb88c; }
.top-bar-link--accent i { color: #ff8534; }

/* TOP BAR MOBILE */
@media (max-width: 767px) {
  .top-bar-inner {
    flex-direction: row !important;
    justify-content: space-between !important;
    height: 48px !important;
    padding: 0 20px !important;
  }
  .top-bar-contact, .top-bar-links { gap: 20px !important; }
  .top-bar-text { display: none !important; }
  .top-bar-link i { font-size: 18px !important; }
}

/* ==========================================================
   SITE HEADER
   ========================================================== */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: #0a0e27;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.35s ease;
  width: 100%;
  isolation: isolate;
  /* NO OVERFLOW HIDDEN TO KEEP STICKY WORKING */
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(0, 51, 160, 0.65), transparent 45%),
    radial-gradient(circle at 90% 50%, rgba(242, 101, 34, 0.45), transparent 45%);
  z-index: -2;
  pointer-events: none;
  animation: headerMeshShift 25s ease-in-out infinite alternate;
}

@keyframes headerMeshShift {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.2) rotate(3deg); }
}

.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 85%);
}

.site-header.scrolled {
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 15px 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  max-height: 70px;
  width: auto;
  transition: transform 0.4s ease;
}

.site-logo:hover .logo-img {
  transform: scale(1.04);
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-link {
  padding: 12px 18px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(242, 101, 34, 0.3), rgba(242, 101, 34, 0.12));
  border: 1px solid rgba(242, 101, 34, 0.5);
  box-shadow: 0 8px 22px -8px rgba(242, 101, 34, 0.6);
}

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #F26522, #ff8534);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 800;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 25px -8px rgba(242, 101, 34, 0.6);
  transition: all 0.3s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px -10px rgba(242, 101, 34, 0.75);
}

.cta-btn i { font-size: 14px; }
.cta-btn:hover i { transform: translateX(4px); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
  background: #F26522;
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
  background: #F26522;
}

/* ==========================================================
   MOBILE / TABLET
   ========================================================== */
@media (max-width: 1200px) {
  .hamburger {
    display: flex !important;
  }

  .header-inner {
    padding: 12px 20px;
  }

  .logo-img {
    max-height: 50px;
  }

  .main-nav {
    position: fixed !important;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #0a0e27 !important;
    padding: 100px 30px 40px !important;
    z-index: 99999;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav .nav-link {
    color: #ffffff !important;
    font-size: 18px !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    border-radius: 0;
  }

  .main-nav .header-actions {
    display: flex !important;
    width: 100% !important;
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
  }

  .main-nav .header-actions .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
  }
}

/* ==========================================================
   HEADER MARQUEE
   ========================================================== */
.header-marquee {
  position: relative;
  background: linear-gradient(90deg, #0a0e27 0%, #0033A0 50%, #0a0e27 100%);
  color: #ffffff;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: 46px;
  display: flex;
  align-items: center;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
}

.header-marquee::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F26522, #ff8534);
  z-index: 2;
  box-shadow: 0 0 12px rgba(242, 101, 34, 0.6);
}

.header-marquee::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(-90deg, #0a0e27, transparent);
  z-index: 2;
  pointer-events: none;
}

.header-marquee-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}

.header-marquee-track {
  display: flex;
  align-items: center;
  gap: 52px;
  animation: headerMarqueeScroll 45s linear infinite;
  width: max-content;
  padding-left: 24px;
}

.header-marquee:hover .header-marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.marquee-item i { color: #ff8534; font-size: 13px; }
.marquee-item strong { color: #ffffff; font-weight: 800; }
.marquee-item em { font-style: normal; font-weight: 800; color: #ffb88c; }

@keyframes headerMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.site-header.scrolled + .header-marquee {
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(12px);
}

@media (max-width: 767px) {
  .header-marquee { height: 40px; }
  .header-marquee-track { gap: 36px; animation-duration: 35s; padding-left: 16px; }
  .marquee-item { font-size: 13.5px; gap: 8px; }
}


/* ==========================================================
   HIDE HAMBURGER ON DESKTOP
   ========================================================== */
@media (min-width: 1201px) {
  .hamburger {
    display: none !important;
  }
}


/* ==========================================================
   CONTAIN GRADIENT INSIDE HEADER (KEEP DROPDOWN VISIBLE)
   ========================================================== */
.site-header {
  background-color: #0a0e27 !important; /* Solid base */
  overflow: clip !important;            /* Chop off any gradient bleeding */
}@media (min-width: 1201px) { .hamburger { display: none !important; } }

/* ==========================================================
   ABSOLUTE FINAL HAMBURGER FIX (TARGETS EVERYTHING)
   ========================================================== */
.hamburger {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-evenly !important;
  align-items: center !important;
  width: 40px !important;
  height: 30px !important;
  background: transparent !important;
  border: 2px solid transparent !important; 
  cursor: pointer !important;
  padding: 0 !important;
  z-index: 100001 !important;
}

.hamburger > span,
.hamburger span:nth-child(1),
.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  display: block !important;
  width: 100% !important;
  height: 3px !important;
  min-height: 3px !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 3px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Hide on Desktop */
@media (min-width: 1201px) {
  .hamburger { display: none !important; }
}

/* Show on Mobile */
@media (max-width: 1200px) {
  .hamburger { display: flex !important; }
}

/* ==========================================================
   HEADER SPACING CORRECTION
   ========================================================== */
.header-inner {
  gap: 40px !important;      /* Space between logo, nav, and CTA */
  padding: 18px 40px !important; /* Slightly more vertical breathing room */
}

.main-nav ul {
  gap: 8px !important;       /* Space between each nav link */
}

.main-nav {
  margin: 0 20px !important; /* Pull nav away from logo and CTA */
}

.nav-link {
  padding: 12px 22px !important; /* Wider clickable area for each link */
}

.header-actions {
  gap: 12px !important;      /* Space between Contact and Check Eligibility */
  margin-left: 24px !important;
}

/* Specifically separate the Contact button from the CTA */
.header-actions .nav-link,
.header-actions a:not(.cta-btn) {
  margin-right: 8px !important;
}

.cta-btn {
  padding: 14px 32px !important; /* Make the CTA button slightly wider */
}

/* ==========================================================
   MACBOOK / SMALL LAPTOP HEADER FIX (1024px - 1400px)
   ========================================================== */
@media (min-width: 992px) and (max-width: 1400px) {
  
  /* 1. Tighten the overall header padding */
  .header-inner {
    padding: 12px 20px !important;
    gap: 20px !important;
  }

  /* 2. Shrink the logo */
  .logo-img {
    max-height: 50px !important;
    width: auto !important;
  }

  /* 3. Reduce nav link padding and font size */
  .nav-link {
    padding: 10px 12px !important;
    font-size: 14px !important;
  }
  
  /* 4. Reduce the gap between nav items */
  .main-nav ul {
    gap: 2px !important;
  }

  /* 5. Shrink the CTA button */
  .cta-btn {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }

  /* 6. Hide the "Contact" link in the nav if it gets too crowded */
  /* (Uncomment the next line if the header STILL cuts off) */
  /* .nav-link[href*="contact"] { display: none !important; } */
}
