/* ============================================
   Kasturi College and Secondary School - DESIGN SYSTEM
   ============================================ */

/* Kasturi Brand Font */
@font-face {
    font-family: 'Revue';
    src: url('../assets/fonts/reve_fixed.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.font-revue, .brand-name {
    font-family: 'Revue', serif !important;
    font-weight: normal !important;
    color: #2596be !important;
}

.secondary-brand-title {
  color: #2596be !important;
}

/* FIX #1: Prevent horizontal scroll on mobile */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Unified Branding (The Trust Anchor) */
  --kasturi-green: #006837;
  --kasturi-green-dark: #004d29;
  --kasturi-green-light: #22a366;
  
  /* Division Accent Colors - Unified Branding */
  --academy-blue: #006837;
  --academy-bg: rgba(0, 104, 55, 0.08);
  
  --secondary-red: #006837;
  --secondary-bg: rgba(0, 104, 55, 0.08);

  --college-blue: #006837;
  --college-bg: rgba(0, 104, 55, 0.08);

  --management-gold: #006837;
  --management-bg: rgba(0, 104, 55, 0.08);

  /* Child-Friendly Playful Colors */
  --clr-primary: #FF6B6B;      /* Warm red */
  --clr-secondary: #00AEEF;    /* Bright blue */
  --clr-accent-1: #FFD93D;     /* Sunny yellow */
  --clr-accent-2: #6BCB77;     /* Fresh green */
  --clr-accent-3: #FF85C1;     /* Pink */
  
  /* Gray Scale & Surface Colors */
  --clr-dark: #1A1A1A;
  --clr-gray: #666666;
  --clr-gray-light: #F0F4F8;
  --clr-bg: #F9FAFB;
  --clr-white: #FFFFFF;
  --clr-glass: rgba(255, 255, 255, 0.9);
  
  /* Shadows - Playful & Soft */
  --shadow-bubbly: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(255, 107, 107, 0.15);
  
  /* Typography Scale - Fun & Engaging */
  --font-heading: 'Outfit', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Quicksand', sans-serif;
  
  --h1: 3.5rem;
  --h2: 2.5rem;
  --h3: 1.75rem;
  --h4: 1.25rem;
  --p: 1.125rem;
  
  /* Layout & Spacing */
  --container-max: 1280px;
  --radius-card: 24px;
  --radius-button: 20px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);

  /* Aliases used throughout CSS but previously undefined */
  --dark: #1A1A1A;
  --white: #FFFFFF;
  --glass: rgba(255, 255, 255, 0.9);
  --gray-50:  #F9FAFB;
  --gray-100: #F0F4F8;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-700: #374151;
  --shadow-soft: 0 2px 16px rgba(0,0,0,0.06);
}

@media (max-width: 768px) {
  :root {
    --h1: 2rem;
    --h2: 1.75rem;
    --h3: 1.5rem;
    --p: 14px;
  }
}

/* Light theme variables (default) */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --border: #e0e0e0;
}

/* Dark theme variables */
:root[data-theme='dark'] {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);

  /* clr- palette flipped */
  --clr-dark: #f8fafc;
  --clr-gray: #94a3b8;
  --clr-white: #111827;
  --clr-bg: #0a0e17;
  --clr-gray-light: #162235;
  --clr-glass: rgba(17, 24, 39, 0.85);

  /* aliased vars flipped to match */
  --dark: #f8fafc;
  --white: #111827;
  --glass: rgba(17, 24, 39, 0.85);
  --gray-50:  #0a0e17;
  --gray-100: #111827;
  --gray-200: #162235;
  --gray-400: #475569;
  --gray-700: #94a3b8;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.4);

  /* Brighter Emerald green for better readability & premium contrast */
  --kasturi-green: #10b981;
  --kasturi-green-dark: #059669;
  --kasturi-green-light: #34d399;
}

/* Dark Mode Override Helpers */
:root[data-theme='dark'] .btn-primary {
  color: #ffffff !important;
  background: var(--kasturi-green) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
:root[data-theme='dark'] .btn-primary:hover {
  background: var(--kasturi-green-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}
:root[data-theme='dark'] .btn-secondary {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
:root[data-theme='dark'] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px) !important;
}
:root[data-theme='dark'] .btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--text-primary) !important;
  background: transparent !important;
}
:root[data-theme='dark'] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
:root[data-theme='dark'] .hero-content {
  color: #ffffff !important;
}
:root[data-theme='dark'] .hero-content p {
  color: rgba(255, 255, 255, 0.9) !important;
}
:root[data-theme='dark'] .hero .btn-bubbly {
  color: #0a0e17 !important; /* contrast text for light button */
}
:root[data-theme='dark'] .hero-overlay {
  background: linear-gradient(135deg, rgba(10, 14, 23, 0.95) 0%, rgba(0, 77, 41, 0.4) 60%, rgba(10, 14, 23, 0.96) 100%) !important;
}
:root[data-theme='dark'] .main-nav {
  background: rgba(10, 14, 23, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
:root[data-theme='dark'] .main-header.scrolled {
  background: rgba(10, 14, 23, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
:root[data-theme='dark'] .desktop-links .nav-links li a:hover,
:root[data-theme='dark'] .desktop-links .nav-links li a.active {
  color: var(--kasturi-green) !important;
}
:root[data-theme='dark'] .form-group input:focus,
:root[data-theme='dark'] .form-group select:focus,
:root[data-theme='dark'] .form-group textarea:focus {
  border-color: var(--kasturi-green) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }

p {
  font-size: var(--p);
  color: var(--gray-700);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

select, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Ensure all sections don't overflow on mobile */
section, main {
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Mobile: enforce padding instead of margin on full-width sections */
@media (max-width: 768px) {
  section, main {
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sticky {
  position: sticky;
}

.highlight {
  color: var(--kasturi-green);
}

.rounded {
  border-radius: var(--radius-lg);
}

.shadow {
  box-shadow: var(--shadow-lg);
}

.full-width {
  width: 100%;
}

.centered {
  text-align: center;
}

/* Visibility & Contrast Utilities */
.text-contrast {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
}

/* Unified Wing Mesh Backgrounds (Using Kasturi Green shades) */
.division-hero.theme-secondary { background: linear-gradient(135deg, rgba(0, 104, 55, 0.95) 0%, rgba(34, 163, 102, 0.4) 100%) !important; }
.division-hero.theme-college { background: linear-gradient(135deg, rgba(0, 104, 55, 0.92) 0%, rgba(0, 77, 41, 0.88) 100%) !important; }
.division-hero.theme-management { background: linear-gradient(135deg, rgba(0, 104, 55, 0.92) 0%, rgba(34, 163, 102, 0.88) 100%) !important; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}



.main-header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  background: var(--kasturi-green);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 1.5px;
  color: var(--kasturi-green);
  line-height: 0.9;
  transition: var(--transition);
}

.brand-tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.165em;
  color: var(--gray-700);
  margin-top: 2px;
  text-transform: uppercase;
}

.desktop-nav .nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links > li > a {
  font-weight: 600;
  color: var(--dark);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 4px 0;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--kasturi-green);
  transition: var(--transition);
}

.nav-links > li > a:hover {
  color: var(--kasturi-green);
}

.nav-links > li > a:hover::after {
  width: 100%;
}

.nav-links > li > a i {
  font-size: 10px;
  transition: var(--transition);
}

.nav-links > li:hover > a i {
  transform: rotate(180deg);
}

/* Mega Menu */
.has-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 40px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.performers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.performer-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    flex: 1 1 380px;
    max-width: 500px;
}

.mega-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}

.mega-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  transform: scaleX(0);
  transition: var(--transition);
}

.mega-card.academy::after { background: var(--academy-blue); }
.mega-card.secondary::after { background: var(--secondary-red); }
.mega-card.college::after { background: var(--college-blue); }
.mega-card.management::after { background: var(--management-gold); }

.mega-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mega-card:hover::after {
  transform: scaleX(1);
}

.mega-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.academy .mega-icon { background: var(--academy-bg); color: var(--academy-blue); }
.secondary .mega-icon { background: var(--secondary-bg); color: var(--secondary-red); }
.college .mega-icon { background: var(--college-bg); color: var(--college-blue); }
.management .mega-icon { background: var(--management-bg); color: var(--management-gold); }

.mega-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.mega-card p {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.view-link {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--kasturi-green);
  transition: var(--transition);
}

.view-link i {
  transition: var(--transition);
}

.mega-card:hover .view-link i,
.division-card:hover .view-link i {
  transform: translateX(4px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle — base (gateway/index page) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1600;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   UNIFIED WING NAVIGATION (Secondary / College / Management)
   Uses --branch-primary for per-wing color theming.
   ============================================ */

/* Branch color defaults — Unified to Green */
.branch-nav { --branch-primary: #006837; }

/* The shared main-nav style for wing pages */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

body.has-wing-switcher .main-nav {
  top: 36px;
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

/* Dark-mode glassy scrolled header */
html[data-theme='dark'] .main-nav.scrolled {
  background: rgba(20, 25, 40, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
}

/* Logo bubble — pill-shaped white capsule */
.main-nav .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  transition: box-shadow 0.3s ease;
  text-decoration: none;
}

.main-nav .logo:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}

.main-nav .logo img {
  height: 46px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  border-radius: 0;
}

/* Desktop nav links (wing pages) */
.main-nav .desktop-nav .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 38px);
}

.main-nav .nav-links li { list-style: none; }

.main-nav .nav-links a:not(.btn-apply) {
  font-weight: 600;
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--dark, #1a1a1a);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

/* Scrolled — ensure link text is visible against white bg */
.main-nav.scrolled .nav-links a:not(.btn-apply) {
  color: var(--dark, #1a1a1a);
}

/* Before scroll — links appear white for hero image contrast */
.main-nav:not(.scrolled) .nav-links a:not(.btn-apply) {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.main-nav .nav-links a:not(.btn-apply):hover {
  color: var(--branch-primary, #133557);
  text-shadow: none;
}

.main-nav .nav-links a:not(.btn-apply):hover::after {
  width: 100%;
  opacity: 1;
}

/* Apply button in desktop nav */
.main-nav .nav-links .btn-apply {
  display: inline-block;
  padding: 10px 24px;
  background: var(--branch-primary, #133557);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-shadow: none !important;
}

.main-nav .nav-links .btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Pill Hamburger button (wing pages) */
.main-nav .mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: var(--branch-primary, #133557);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  z-index: 1300;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
  gap: 0;
}

.main-nav .mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  margin: 3px 0;
}

.main-nav .mobile-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.main-nav .mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.main-nav .mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.main-nav .mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .main-nav .desktop-nav { display: none; }
  .main-nav .mobile-toggle { display: flex; }
}

/* ============ MOBILE OVERLAY (wing pages rich version) ============ */
.mobile-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100dvh;
  z-index: 1500;
  background: var(--white, #fff);
  padding: 90px 28px 40px;
  overflow-y: auto;
  transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

html[data-theme='dark'] .mobile-overlay {
  background: #0f1424;
}

.mobile-overlay.active {
  right: 0;
}

.mobile-overlay-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--dark, #1a1a1a);
  background: var(--gray-100, #f0f4f8);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 1600;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

html[data-theme='dark'] .mobile-overlay-close {
  background: rgba(255,255,255,0.08);
  color: #e6eef8;
}

.mobile-overlay-close:hover {
  background: var(--branch-primary, #133557);
  color: #fff;
  transform: rotate(90deg);
}

/* Rich overlay nav links */
.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-overlay-nav a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 18px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 700;
  color: var(--dark, #1a1a1a);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

html[data-theme='dark'] .mobile-overlay-nav a {
  color: #e6eef8;
}

.mobile-overlay-nav a i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  color: var(--branch-primary, #133557);
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

html[data-theme='dark'] .mobile-overlay-nav a i {
  background: rgba(255,255,255,0.08);
}

.mobile-overlay-nav a:hover,
.mobile-overlay-nav a.active {
  background: color-mix(in srgb, var(--branch-primary, #133557) 10%, transparent);
  color: var(--branch-primary, #133557);
  transform: translateX(4px);
}

.mobile-overlay-nav a:hover i,
.mobile-overlay-nav a.active i {
  background: var(--branch-primary, #133557);
  color: #fff;
}

/* CTA link at bottom of overlay nav */
.mobile-overlay-nav a.mobile-apply {
  margin-top: 12px;
  background: var(--branch-primary, #133557);
  color: #fff !important;
  justify-content: center;
  border-radius: 30px;
  padding: 18px 24px;
  font-size: 16px;
  transform: none;
}

.mobile-overlay-nav a.mobile-apply:hover {
  opacity: 0.9;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.mobile-overlay-nav a.mobile-apply i {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Overlay footer — socials */
.mobile-overlay-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.07);
  text-align: center;
}

html[data-theme='dark'] .mobile-overlay-footer {
  border-top-color: rgba(255,255,255,0.08);
}

.mobile-overlay-footer p {
  font-size: 12px;
  color: var(--gray-400, #94a3b8);
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mobile-overlay-footer .social-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  font-size: 24px;
}

.mobile-overlay-footer .social-row a {
  color: var(--branch-primary, #133557);
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-overlay-footer .social-row a:hover {
  transform: scale(1.15) translateY(-2px);
  opacity: 0.85;
}

/* ============ FLOATING PILL MOBILE NAV BAR (wing pages) ============ */
.wing-mobile-nav {
  display: none;
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 400px;
  background: var(--white, #fff);
  padding: 10px 20px;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1001;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.8);
}

html[data-theme='dark'] .wing-mobile-nav {
  background: #1a1f3a;
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.wing-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  color: var(--gray-400, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 8px;
  border-radius: 10px;
}

.wing-mobile-nav-item i {
  font-size: 19px;
  transition: transform 0.2s ease;
}

.wing-mobile-nav-item:hover,
.wing-mobile-nav-item.active {
  color: var(--branch-primary, #133557);
}

.wing-mobile-nav-item:hover i {
  transform: translateY(-2px);
}

/* The "Apply" pill tab in floating nav */
.wing-mobile-nav-item.nav-apply {
  background: var(--branch-primary, #133557);
  color: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 10px;
}

.wing-mobile-nav-item.nav-apply:hover {
  color: #fff;
  opacity: 0.9;
}

.wing-mobile-nav-item.nav-apply i {
  font-size: 16px;
}

@media (max-width: 900px) {
  .wing-mobile-nav { display: flex; }
  body.has-wing-switcher .division-hero { padding-top: 136px; }
  body.has-wing-switcher main { padding-bottom: 90px; }
}

/* Wing switcher — already styled, just ensure main-nav offset */
body.has-wing-switcher .main-nav { top: 36px; }

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 480px) {
  /* On very small phones, hide the tagline but keep brand name */
  .brand-tagline { display: none; }
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 1500;
  padding: 100px 24px 40px;
  transition: var(--transition);
  overflow-y: auto;
}

.mobile-overlay.active {
  right: 0;
}

.mobile-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--dark);
  background: var(--gray-100);
  border-radius: 50%;
  z-index: 1600;
  cursor: pointer;
  border: none;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-links > li {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 8px;
}

.mobile-links a, .mobile-accordion {
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 700;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: var(--dark);
  border: none;
  background: none;
  cursor: pointer;
}

.mobile-links a:hover, .mobile-accordion:hover {
  color: var(--kasturi-green);
}

.accordion-content {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 16px 16px;
}

.accordion-content a {
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 0;
}

.accordion-content a:hover {
  color: var(--kasturi-green);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--kasturi-green);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 104, 55, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 104, 55, 0.4);
  background: var(--kasturi-green-dark);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 104, 55, 0.92) 0%, rgba(0, 77, 41, 0.85) 50%, rgba(0, 40, 20, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding: 120px 0 80px;
}

.hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content h1 .highlight {
  color: #7ee8a8;
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

.mouse-icon {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 13px;
  position: relative;
}

.mouse-icon::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
  }
  .hero-content {
    padding: 100px 0 60px;
    text-align: center;
  }
  .hero-label {
    font-size: 14px;
    margin-bottom: 20px;
  }
  .hero-content h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .hero-content p {
    font-size: 1rem;
    margin-bottom: 32px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .hero-scroll-indicator {
    display: none;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 100px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-title {
  font-size: var(--h2);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-text p {
  margin-bottom: 24px;
  line-height: 1.8;
}

.about-visual {
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.video-preview-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
}

.video-preview-card i {
  width: 40px;
  height: 40px;
  background: var(--kasturi-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.video-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-item {
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--kasturi-green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .about-section {
    padding: 60px 0;
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-visual {
    order: -1;
  }
  .about-visual img {
    height: 280px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-number {
    font-size: 1.75rem;
  }
}

/* ============================================
   DIVISIONS SECTION
   ============================================ */
.divisions-section {
  padding: 100px 0;
  background: var(--gray-100);
}

.section-header {
  margin-bottom: 48px;
}

.section-header p {
  max-width: 600px;
  margin: 12px auto 0;
  font-size: 1.05rem;
}

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.division-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: block;
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.division-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.division-card:hover img {
  transform: scale(1.05);
}

.division-card > div:first-child:not(.division-info) {
  overflow: hidden;
}

.division-info {
  padding: 24px;
}

.division-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.division-info p {
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Division card color accents */
.highlight-academy .view-link { color: var(--academy-blue); }
.highlight-secondary .view-link { color: var(--secondary-red); }
.highlight-college .view-link { color: var(--college-blue); }
.highlight-management .view-link { color: var(--management-gold); }

.highlight-academy:hover { box-shadow: 0 8px 30px rgba(0, 174, 239, 0.15); }
.highlight-secondary:hover { box-shadow: 0 8px 30px rgba(37, 150, 190, 0.18); }
.highlight-college:hover { box-shadow: 0 8px 30px rgba(46, 49, 146, 0.15); }
.highlight-management:hover { box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15); }

@media (max-width: 768px) {
  .divisions-section {
    padding: 60px 0;
  }
  .divisions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .division-card img {
    height: 180px;
  }
}

/* ============================================
   ADMISSIONS SECTION
   ============================================ */
.admissions-section {
  padding: 100px 0;
}

.funnel-container {
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.funnel-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 104, 55, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.funnel-text h2 {
  margin-bottom: 16px;
}

.funnel-text p {
  margin-bottom: 28px;
  line-height: 1.7;
}

.funnel-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funnel-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  color: var(--dark);
}

.funnel-perks li i {
  color: var(--kasturi-green);
  font-size: 18px;
}

/* Form Styles */
.funnel-form-wrapper {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--kasturi-green);
  box-shadow: 0 0 0 4px rgba(0, 104, 55, 0.1);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4A4A' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 768px) {
  .admissions-section {
    padding: 60px 0;
  }
  .funnel-container {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }
  .funnel-form-wrapper {
    padding: 24px;
  }
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-section {
  padding: 100px 0;
  background: var(--gray-100);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-img {
  height: 200px;
  background: var(--kasturi-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.news-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.news-date {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: var(--white);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
}

.news-card-body {
  padding: 24px;
}

.news-tag {
  display: inline-block;
  background: var(--gray-100);
  color: var(--kasturi-green);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.news-card-body p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.contact-info-card .icon-circle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--kasturi-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-card h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--gray-700);
}

.contact-form-wrapper {
  background: var(--gray-100);
  padding: 36px;
  border-radius: var(--radius-md);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand .logo {
  margin-bottom: 20px;
}

.footer-brand .logo-symbol {
  background: var(--kasturi-green-light);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-tagline {
  color: var(--gray-400);
}

.footer-desc {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--kasturi-green);
  transform: translateY(-3px);
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--white);
  font-weight: 700;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--gray-400);
  font-size: 14px;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gray-400);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.footer-contact p i {
  color: var(--kasturi-green-light);
  margin-top: 3px;
  min-width: 16px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-content p {
  font-size: 13px;
  color: var(--gray-400);
}

.bottom-links {
  display: flex;
  gap: 24px;
}

.bottom-links a {
  font-size: 13px;
  color: var(--gray-400);
}

.bottom-links a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .main-footer {
    padding-top: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .bottom-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================
   DIVISION HERO (for sub-pages)
   ============================================ */
.division-hero {
  background-size: cover;
  background-position: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: white;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
}

.division-hero .hero-label {
  background: rgba(255, 255, 255, 0.2);
}

.division-hero h1 {
  font-size: var(--h1);
  max-width: 650px;
  margin-bottom: 16px;
}

.division-hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 500px;
}

@media (max-width: 768px) {
  .division-hero {
    min-height: 50vh;
    padding-top: 120px;
  }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal.in-view > *:nth-child(1) { transition-delay: 0.1s; }
.reveal.in-view > *:nth-child(2) { transition-delay: 0.2s; }
.reveal.in-view > *:nth-child(3) { transition-delay: 0.3s; }
.reveal.in-view > *:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-700);
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--kasturi-green);
  outline-offset: 2px;
}

/* ============================================
   SELECTION STYLING
   ============================================ */
::selection {
  background: var(--kasturi-green);
  color: var(--white);
}

/* ============================================
    SCROLLYTELLING & REVEAL ANIMATIONS
    ============================================ */

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(40px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-60px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(60px);
  }
  to { 
    opacity: 1; 
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from { 
    opacity: 0; 
    transform: scale(0.9);
  }
  to { 
    opacity: 1; 
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes floatAway {
  0% { 
    opacity: 1; 
    transform: translateY(0);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-30px);
  }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.6); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Scroll-triggered reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.active {
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-left.active {
  animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-right.active {
  animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
}

.reveal-scale.active {
  animation: scaleUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Stagger animation delays */
.reveal-stagger-1.active { animation-delay: 0.1s; }
.reveal-stagger-2.active { animation-delay: 0.2s; }
.reveal-stagger-3.active { animation-delay: 0.3s; }
.reveal-stagger-4.active { animation-delay: 0.4s; }
.reveal-stagger-5.active { animation-delay: 0.5s; }

/* Playful hover animations */
.bounce-on-hover:hover {
  animation: bounce 0.6s ease-in-out;
}

.pulse-on-hover:hover {
  animation: pulse 0.6s ease-in-out;
}

.floating {
  animation: floatingAnimation 3s ease-in-out infinite;
}

@keyframes floatingAnimation {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Interactive elements */
.interactive-btn {
  position: relative;
  overflow: hidden;
}

.interactive-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.interactive-btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Child-friendly decorative elements */
.star-burst {
  position: relative;
}

.star-burst::before {
  content: '✨';
  position: absolute;
  font-size: 2rem;
  animation: floatAway 2s ease-out forwards;
}

/* Parallax effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Inquiry Success State */
.inquiry-success-banner {
  background: var(--kasturi-green);
  color: white;
  text-align: center;
  padding: 16px;
  font-weight: 600;
  font-size: 15px;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   GLASSMORPHISM EFFECTS (FIX #5)
   ============================================ */

:root {
  --glass-bg-light: rgba(255, 255, 255, 0.65);
  --glass-bg-dark: rgba(255, 255, 255, 0.1);
  --glass-border-light: rgba(255, 255, 255, 0.4);
  --glass-border-dark: rgba(255, 255, 255, 0.15);
  --glass-blur: 8px;
}

:root[data-theme='dark'] {
  --glass-bg-light: rgba(17, 24, 39, 0.75);
  --glass-bg-dark: rgba(17, 24, 39, 0.45);
  --glass-border-light: rgba(255, 255, 255, 0.09);
  --glass-border-dark: rgba(255, 255, 255, 0.04);
}

/* Glass card base style */
.glass-card {
  background: linear-gradient(135deg, var(--glass-bg-light), var(--glass-bg-dark));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-light);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--glass-border-light);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ============================================
   LIGHTBOX / OVERLAY MODAL STYLING
   ============================================ */
.modal,
.lightbox {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.open,
.lightbox.open,
.modal.active,
.lightbox.active {
  display: flex !important;
  opacity: 1;
}

.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15010;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15010;
  user-select: none;
}

.lightbox-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg) scale(1.05);
}

.lightbox-img {
  max-width: min(90%, 1100px);
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.open .lightbox-img {
  animation: lightboxScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lightboxScaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15005;
  user-select: none;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.lightbox-nav-btn.prev-btn {
  left: 32px;
}

.lightbox-nav-btn.next-btn {
  right: 32px;
}

.lightbox-caption {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 28px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  max-width: min(85%, 650px);
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
  z-index: 15005;
}

/* Responsive Overrides for Lightbox */
@media (max-width: 768px) {
  .lightbox {
    padding: 16px;
  }
  
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .lightbox-img {
    max-width: 96%;
    max-height: 65vh;
    border-radius: 12px;
  }

  .lightbox-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  
  .lightbox-nav-btn.prev-btn {
    left: 12px;
  }

  .lightbox-nav-btn.next-btn {
    right: 12px;
  }

  .lightbox-caption {
    font-size: 13px;
    padding: 10px 20px;
    margin-top: 16px;
  }

  .lightbox-counter {
    top: 16px;
    left: 16px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Apply glassmorphism to performer cards */
.performer-card {
  background: linear-gradient(135deg, var(--glass-bg-light), var(--glass-bg-dark));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.performer-card:hover {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--glass-border-light);
}

/* Apply glassmorphism to hero CTA buttons */
.hero .btn-bubbly {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .btn-bubbly:hover {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.8) !important;
}

.hero .btn-bubbly:active {
  transform: scale(0.98);
}

/* Apply glassmorphism to sticky header on scroll */
header.scrolled {
  background: linear-gradient(180deg, var(--glass-bg-light), var(--glass-bg-dark));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Apply to all primary buttons for consistency */
.btn-primary,
.btn-bubbly {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-bubbly:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Glassmorphism for cards with data sections */
.data-card,
.stat-card {
  background: linear-gradient(135deg, var(--glass-bg-light), var(--glass-bg-dark));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.data-card:hover,
.stat-card:hover {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Optional: Glassmorphism on filter buttons */
.btn-filter {
  transition: all 0.3s ease;
}

.btn-filter.active {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 107, 107, 0.6)) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

/* Glassmorphism for modal/lightbox contents */

.modal-content,
.lightbox-content {
  background: linear-gradient(135deg, var(--glass-bg-light), var(--glass-bg-dark));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-light);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Ensure glassmorphism works in dark mode */
:root[data-theme='dark'] .performer-card,
:root[data-theme='dark'] .glass-card,
:root[data-theme='dark'] .data-card,
:root[data-theme='dark'] .stat-card {
  background: linear-gradient(135deg, var(--glass-bg-light), var(--glass-bg-dark));
  border-color: var(--glass-border-light);
}

/* Accessibility: Reduce motion for users with motion preferences */
@media (prefers-reduced-motion: reduce) {
  .glass-card,
  .performer-card,
  .data-card,
  .stat-card,
  .btn-bubbly,
  .btn-filter.active {
    transition: none;
    animation: none;
  }
}

/* ============================================
   ACADEMY HERO SECTION
   ============================================ */

/* Hero: full-viewport height, vertically centered */
.hero {
  min-height: calc(100vh - 64px);
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.hero-content {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center !important;
}

.hero-content h1,
.hero-content p {
  text-align: center;
}

/* Hero tag pill */
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.5);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hero CTA buttons */
.btn-hero-primary {
  background: white !important;
  color: var(--clr-primary, #FF6B6B) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

.btn-hero-primary:hover {
  background: rgba(255,255,255,0.9) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2) !important;
}

.btn-hero-secondary {
  background: var(--clr-accent-1, #FFD93D) !important;
  color: rgba(0,0,0,0.8) !important;
  box-shadow: 0 8px 24px rgba(255,217,61,0.4) !important;
}

.btn-hero-secondary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 32px rgba(255,217,61,0.5) !important;
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 52px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 20px 32px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  gap: 8px 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 768px) {
  .hero {
    min-height: 110svh;
    padding: 40px 20px 100px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 16px;
    gap: 16px;
    margin-top: 32px;
  }

  .hero-stat {
    padding: 8px 4px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-scroll-hint {
    display: none;
  }
}

/* ============================================
   ACADEMY PAGES - MISSING COMPONENT STYLES
   ============================================ */

/* Welcome Banner Overlay */
.welcome-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FF6B6B 0%, #FFD93D 40%, #FF85C1 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  text-align: center;
  padding: 20px;
}

.welcome-banner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: white;
  text-shadow: 2px 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 16px;
}

.welcome-banner p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 32px;
}

.welcome-banner.hidden {
  display: none;
}

/* Academy Main Nav (header) */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 0;
  /* support display:flex !important set by inline media query */
  align-items: stretch;
}

:root[data-theme='dark'] .main-nav {
  background: rgba(11, 15, 26, 0.96);
}
:root[data-theme='dark'] .main-nav .logo {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
:root[data-theme='dark'] .main-nav .logo img {
  mix-blend-mode: normal !important;
}
:root[data-theme='dark'] .main-nav .logo img:not([src*="seal"]) {
  filter: brightness(0) invert(1) !important;
}

:root[data-theme='dark'] .desktop-links .nav-links li a {
  color: #e6eef8;
}

:root[data-theme='dark'] .main-nav .logo span {
  color: var(--clr-secondary, #00AEEF) !important;
}

/* When main-nav is flex (inline media query), inner container must fill width */
.main-nav > .container,
.main-nav > .nav-container {
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* Use higher specificity to override inline styles that fight the nav layout */
header.main-nav .nav-container,
header.main-nav .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 32px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  height: 64px;
  box-sizing: border-box !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  width: 100%;
  height: 64px;
  box-sizing: border-box;
}

.desktop-links {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.desktop-links .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
}

.desktop-links .nav-links li {
  flex: 0 0 auto;
}

.desktop-links .nav-links li a {
  display: block;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  color: var(--clr-dark, #1A1A1A);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}

.desktop-links .nav-links li a:hover,
.desktop-links .nav-links li a.active {
  background: var(--clr-primary, #FF6B6B);
  color: white;
}

@media (max-width: 1280px) {
  header.main-nav .nav-container,
  header.main-nav .container,
  .nav-container {
    padding: 0 20px !important;
  }

  .desktop-links .nav-links {
    gap: 6px 8px;
  }

  .desktop-links .nav-links li a {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}

@media (max-width: 1080px) {
  header.main-nav .nav-container,
  header.main-nav .container,
  .nav-container {
    align-items: flex-start !important;
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .desktop-links {
    flex-basis: 100%;
    width: 100%;
  }

  .desktop-links .nav-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .desktop-links {
    display: none;
  }
}

/* Section Padding Utility */
.section-padding {
  padding: 80px 24px;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 16px;
  }
}

/* Academy Events */
.academy-events-page {
  background:
    radial-gradient(circle at top left, rgba(0, 174, 239, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(34, 163, 102, 0.12), transparent 28%),
    linear-gradient(180deg, #f6fbff 0%, #ffffff 46%, #fffdf7 100%);
}

.events-hero {
  padding-top: 56px !important;
  padding-bottom: 72px;
}

.events-hero .centered {
  max-width: 760px;
  margin: 0 auto 40px;
}

.events-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 20px;
  font-family: var(--font-heading);
  color: var(--clr-dark);
}

.events-hero p {
  color: var(--clr-gray);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.event-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.filter-btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 174, 239, 0.15);
  background: rgba(255, 255, 255, 0.88);
  color: var(--clr-dark);
  font-size: 0.94rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 174, 239, 0.08);
}

.filter-btn:hover,
.filter-btn.active {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent-1));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 28px rgba(0, 174, 239, 0.22);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.event-card {
  --event-accent: var(--clr-primary);
  --event-accent-soft: rgba(0, 174, 239, 0.12);
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 174, 239, 0.1);
  box-shadow: 0 18px 44px rgba(0, 174, 239, 0.08);
  overflow: hidden;
  animation: event-card-in 0.5s ease both;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 28px 0 0 28px;
  background: var(--event-accent);
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 174, 239, 0.18);
  box-shadow: 0 24px 54px rgba(0, 174, 239, 0.16);
}

.event-card.upcoming {
  --event-accent: var(--clr-primary);
  --event-accent-soft: rgba(0, 174, 239, 0.14);
}

.event-card.ongoing {
  --event-accent: var(--clr-accent-2);
  --event-accent-soft: rgba(34, 163, 102, 0.16);
}

.event-card.completed {
  --event-accent: var(--clr-accent-1);
  --event-accent-soft: rgba(255, 217, 61, 0.2);
}

.event-card.cancelled {
  --event-accent: #f05d5e;
  --event-accent-soft: rgba(240, 93, 94, 0.15);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 124px;
  padding: 16px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--event-accent), var(--event-accent));
  color: #fff;
  box-shadow: 0 14px 24px var(--event-accent-soft);
  text-align: center;
}

.event-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.event-month {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.event-year {
  font-size: 0.82rem;
  opacity: 0.9;
}

.event-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.event-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--clr-dark);
  margin-bottom: 12px;
}

.event-desc {
  color: var(--clr-gray);
  line-height: 1.8;
  margin-bottom: 18px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: auto;
}

.event-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 174, 239, 0.08);
  color: var(--clr-dark);
  font-weight: 600;
}

.event-location span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-status.upcoming {
  background: rgba(0, 174, 239, 0.12);
  color: #007db3;
}

.event-status.ongoing {
  background: rgba(34, 163, 102, 0.14);
  color: #0d7a48;
}

.event-status.completed {
  background: rgba(255, 217, 61, 0.2);
  color: #9a7400;
}

.event-status.cancelled {
  background: rgba(240, 93, 94, 0.14);
  color: #b93031;
}

.event-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--clr-gray);
  font-size: 0.92rem;
  font-weight: 600;
}

.no-events {
  grid-column: 1 / -1;
  padding: 56px 28px;
  border-radius: 28px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px dashed rgba(0, 174, 239, 0.16);
  box-shadow: 0 18px 36px rgba(0, 174, 239, 0.08);
}

.no-events i {
  font-size: 2.5rem;
  color: var(--clr-primary);
}

@keyframes event-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .events-hero {
    padding-top: 28px !important;
    padding-bottom: 56px;
  }

  .events-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .event-card {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
  }

  .event-date {
    min-height: 110px;
    padding: 14px 10px;
    border-radius: 20px;
  }

  .event-day {
    font-size: 1.7rem;
  }

  .event-title {
    font-size: 1.2rem;
  }

  .event-location {
    max-width: 100%;
  }
}

/* btn-bubbly - Full Button Style */
.btn-bubbly {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: var(--clr-primary, #FF6B6B);
  color: white;
  box-shadow: 0 4px 16px rgba(255,107,107,0.3);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 2px solid var(--border, #e0e0e0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--clr-dark, #1A1A1A);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

:root[data-theme='dark'] .theme-toggle {
  background: rgba(11,15,26,0.9);
  border-color: #2a3a5a;
  color: #e6eef8;
}

/* First mobile nav (legacy - lines 487-493 in index.html) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border, #e0e0e0);
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 998;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 68px;
  padding: 6px 10px;
  white-space: nowrap;
}

.mobile-nav-item i { font-size: 20px; }

.mobile-nav-item span,
.mobile-nav-item small {
  white-space: nowrap;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
  color: var(--clr-primary, #FF6B6B);
}

/* Academy pages use a floating pill nav instead of the full-width bottom bar */
.main-nav ~ .mobile-nav {
  display: none;
  left: 50%;
  bottom: 18px;
  width: min(calc(100% - 32px), 384px);
  transform: translateX(-50%);
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  justify-content: space-between;
  gap: 2px;
  padding: 10px 14px calc(env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 1002;
  box-sizing: border-box;
  overflow: hidden;
}

.main-nav ~ .mobile-nav .mobile-nav-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #8f9a9a;
}

.main-nav ~ .mobile-nav .mobile-nav-item i {
  font-size: 18px;
}

.main-nav ~ .mobile-nav .mobile-nav-item.active,
.main-nav ~ .mobile-nav .mobile-nav-item:active {
  color: var(--clr-secondary, #006837);
}

.mobile-bottom-nav {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-bottom-nav::-webkit-scrollbar {
  display: none;
}

.mobile-bottom-nav .mobile-nav-content {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  min-width: 100%;
  padding: 8px 10px calc(env(safe-area-inset-bottom, 0px) + 8px);
}

.mobile-bottom-nav .mobile-nav-item {
  min-width: 72px;
  padding: 6px 10px;
}

@media (max-width: 480px) {
  .mobile-bottom-nav .mobile-nav-content {
    gap: 4px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .mobile-bottom-nav .mobile-nav-item,
  .mobile-nav-item {
    min-width: 64px;
    font-size: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .mobile-nav-item i {
    font-size: 18px;
  }

  .main-nav ~ .mobile-nav {
    width: min(calc(100% - 48px), 360px);
    bottom: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .main-nav ~ .mobile-nav .mobile-nav-item {
    font-size: 9px;
  }

  .main-nav ~ .mobile-nav .mobile-nav-item i {
    font-size: 17px;
  }
}

/* Show bottom nav bar on mobile for wing pages; hide top header (matches academy pattern) */
@media (max-width: 1024px) {
  .mobile-nav { display: flex; }
  .mobile-toggle { display: none; }
  .main-header { display: none; }
  main { padding-top: 0; padding-bottom: 80px; }
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
}

/* Mobile Menu Toggle Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 2100;
  background: var(--clr-bg);
  border-radius: 12px;
  transition: var(--transition);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-secondary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle span:nth-child(2) { margin: 6px 0; }

.mobile-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); width: 28px; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 28px; }

/* Full Screen Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 100px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-overlay-nav a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

.mobile-overlay-nav a:hover,
.mobile-overlay-nav a.active {
  color: var(--clr-secondary);
  transform: translateX(10px);
}

.mobile-overlay-nav a i {
  font-size: 1.5rem;
  opacity: 0.5;
}

.mobile-overlay-footer {
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  body.has-wing-switcher .main-nav,
  body.has-wing-switcher .main-nav.scrolled {
    display: none;
  }
}

/* Switch-wing top bar */
.wing-switcher {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wing-switcher a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: normal;
  font-family: 'Revue', serif;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.3px;
}
.wing-switcher a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.wing-switcher .ws-home {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  margin-right: 4px;
  padding-right: 12px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 768px) {
  .wing-switcher { gap: 2px; padding: 5px 8px; }
  .wing-switcher a { padding: 4px 8px; font-size: 11px; }
  .wing-switcher .ws-home { display: inline-flex; }
}
/* Keep the main site header stacked below the wing switcher on wing pages */
body.has-wing-switcher .main-header,
body.has-wing-switcher .main-header.scrolled,
body.has-wing-switcher .main-nav,
body.has-wing-switcher .main-nav.scrolled {
  top: 36px;
}

body.has-wing-switcher .theme-toggle {
  top: 116px;
}

body.has-wing-switcher .main-nav ~ main {
  padding-top: calc(36px + 64px);
}

/* Push wing-page content below the fixed navigation stack */
body.has-wing-switcher main {
  padding-top: calc(36px + 72px);
}

body.has-wing-switcher .division-hero {
  padding-top: 100px;
}

@media (max-width: 1024px) {
  body.has-wing-switcher main { padding-top: 36px; }
  body.has-wing-switcher .main-nav ~ main { padding-top: 36px; }
  body.has-wing-switcher .division-hero { padding-top: 60px; }
}

@media (max-width: 768px) {
  body.has-wing-switcher .theme-toggle {
    top: 52px;
  }
}

/* Add top padding to body so content clears the fixed nav */
body {
  padding-top: 0;
}

main {
  padding-top: 72px;
}

/* ============================================
   EVENTS PAGE STYLES
   ============================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.event-card {
  background: var(--clr-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-bubbly);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-bg);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}

.event-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.event-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-image-wrapper img {
  transform: scale(1.05);
}

.event-date-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--clr-white);
  padding: 10px 15px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2;
}

.event-date-tag .day {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-secondary);
  line-height: 1;
}

.event-date-tag .month {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clr-gray);
  margin-top: 2px;
}

.event-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-upcoming { background: var(--academy-bg); color: var(--clr-secondary); }
.status-completed { background: var(--clr-bg); color: var(--clr-gray); }

.event-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--clr-dark);
}

.event-details {
  list-style: none;
  padding: 0;
  margin: 15px 0 25px;
}

.event-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--clr-gray);
  font-size: 14px;
  margin-bottom: 8px;
}

.event-details i {
  color: var(--clr-secondary);
  width: 16px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-card, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-bubbly, 0 8px 24px rgba(0,0,0,0.08));
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

/* Utility */
.shadow-soft { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}

/* ============================================
   DARK MODE COMPREHENSIVE FIXES
   ============================================ */

/* Scrolled header - fix white background in dark mode */
:root[data-theme='dark'] .main-header.scrolled {
  background: rgba(11, 15, 26, 0.95);
  border-bottom: 1px solid rgba(42, 58, 90, 0.5);
}

/* Footer - fix inverted background in dark mode
   (.main-footer uses var(--dark) which flips to a light color in dark mode) */
:root[data-theme='dark'] .main-footer {
  background: #0d1117;
}

/* Mobile nav - fix white background in dark mode */
:root[data-theme='dark'] .mobile-nav {
  background: rgba(11, 15, 26, 0.96);
  border-color: rgba(42, 58, 90, 0.7);
}

:root[data-theme='dark'] .main-nav ~ .mobile-nav {
  background: rgba(11, 15, 26, 0.96);
  border-color: rgba(42, 58, 90, 0.7);
}

:root[data-theme='dark'] .mobile-nav-item {
  color: #6b7fa3;
}

:root[data-theme='dark'] .mobile-nav-item.active,
:root[data-theme='dark'] .mobile-nav-item:active {
  color: var(--clr-primary, #006837);
}

/* Form inputs - fix border & background in dark mode */
:root[data-theme='dark'] .form-group input,
:root[data-theme='dark'] .form-group select,
:root[data-theme='dark'] .form-group textarea {
  border-color: #2a3a5a;
  background: #1a1f3a;
  color: #e6eef8;
}

:root[data-theme='dark'] .form-group input::placeholder {
  color: #4a5a7a;
}

/* Select arrow - light version for dark mode */
:root[data-theme='dark'] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239fb3d6' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* Logo images - disable multiply blend mode on dark backgrounds */
:root[data-theme='dark'] footer img {
  mix-blend-mode: normal !important;
}

/* News tag background */
:root[data-theme='dark'] .news-tag {
  background: rgba(0, 104, 55, 0.2);
  color: #22a366;
}

/* Events filter sticky bar */
:root[data-theme='dark'] .events-filter-wrap {
  background: #141927;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Academy event cards */
:root[data-theme='dark'] .event-card {
  background: rgba(26, 31, 58, 0.94);
  border-color: rgba(42, 58, 90, 0.3);
}

/* Stat items */
:root[data-theme='dark'] .stat-item {
  background: #1e2944;
}

/* Mega menu */
:root[data-theme='dark'] .mega-menu {
  background: #141927;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

:root[data-theme='dark'] .mega-card {
  background: #1e2944;
}

:root[data-theme='dark'] .mega-card:hover {
  background: #253558;
  box-shadow: var(--shadow);
}

/* Mobile overlay nav links separator */
:root[data-theme='dark'] .mobile-links > li {
  border-bottom-color: #2a3a5a;
}

/* Mobile overlay close button */
:root[data-theme='dark'] .mobile-overlay-close {
  background: #1e2944;
  color: #e6eef8;
}

/* Contact info cards and form wrapper */
:root[data-theme='dark'] .contact-info-card,
:root[data-theme='dark'] .contact-form-wrapper {
  background: #1e2944;
}

/* Division cards */
:root[data-theme='dark'] .division-card {
  background: #1e293b;
}

/* News cards */
:root[data-theme='dark'] .news-card {
  background: #1e293b;
}

/* Division sections */
:root[data-theme='dark'] .divisions-section,
:root[data-theme='dark'] .news-section {
  background: #141927;
}

/* Funnel / admissions form */
:root[data-theme='dark'] .funnel-form-wrapper {
  background: #1e293b;
}

/* Video card modal info */
:root[data-theme='dark'] #modalVideoTitle {
  color: #e6eef8;
}

/* Event date badge */
:root[data-theme='dark'] .event-date-badge {
  background: #1e293b;
}

:root[data-theme='dark'] .event-date-badge .day {
  color: #e6eef8;
}

