:root {
  --bg-main: #FAFBFC; /* Professional soft slate off-white */
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  
  /* Brand Colors */
  --navy: #0F172A; /* Sleek YC-style dark slate */
  --teal: #2AB4B8; /* Logo Teal */
  --gold: #FDC62D; /* Logo Yellow */
  --crimson: #B34158; /* Logo Crimson */
  
  --text-main: #0F172A; /* Sleek slate */
  --text-muted: #475569; /* Balanced slate gray */
  --text-light: #94A3B8;
  --btn-primary-text: #FFFFFF;
  --btn-primary-hover-bg: #020617;
  
  --border-color: #E2E8F0;
  --card-border: rgba(255, 255, 255, 0.8);
  --border-radius-card: 32px;
  --border-radius-pill: 999px;

  /* Theme Gradients */
  --body-grad-1: rgba(42, 180, 184, 0.04);
  --body-grad-2: rgba(253, 198, 45, 0.03);
  --body-grad-3: rgba(179, 65, 88, 0.04);
  --body-grad-4: rgba(15, 23, 42, 0.02);

  --section-grad-slate: linear-gradient(180deg, transparent 0%, #F4F6FB 100%);
  --section-grad-teal: linear-gradient(180deg, transparent 0%, #F0FAFA 100%);
  --section-grad-teal-to-slate: linear-gradient(180deg, #F0FAFA 0%, #F4F6FB 100%);
  --section-grad-slate-out: linear-gradient(180deg, #F4F6FB 0%, transparent 100%);
  --section-grad-slate-out-bottom: linear-gradient(to bottom, #F4F6FB, transparent);
  
  --card-grad-slate: linear-gradient(135deg, #FFFFFF, #F8FAFC);
  --card-grad-teal: linear-gradient(135deg, #FFFFFF, #F0FAFA);
  --card-grad-gold: linear-gradient(135deg, #FFFFFF, #FFFDF0);
  --card-grad-crimson: linear-gradient(135deg, #FFFFFF, #FFF5F7);

  --hero-glow-teal: radial-gradient(circle at top right, #F0FAFA, transparent 60%);
  --hero-glow-gold: radial-gradient(circle at top right, #FFFDF0, transparent 60%);
  --hero-glow-crimson: radial-gradient(circle at top right, #FFF5F7, transparent 60%);

  --nav-bg: rgba(15, 23, 42, 0.85);
  --nav-scrolled-bg: rgba(15, 23, 42, 0.95);
  --nav-text: #F8FAFC;
  --nav-text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-nav: 0 8px 32px rgba(0, 0, 0, 0.3);

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme {
  --bg-main: #020617; /* Very dark slate / nearly black */
  --surface: #0F172A;
  --surface-hover: #1E293B;
  
  --navy: #F8FAFC; /* Swap navy (dark) for very light slate */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-light: #64748B;
  --btn-primary-text: #020617;
  --btn-primary-hover-bg: #CBD5E1;
  
  --border-color: #334155;
  --card-border: rgba(255, 255, 255, 0.05);
  
  /* Update gradients */
  --body-grad-1: rgba(42, 180, 184, 0.15);
  --body-grad-2: rgba(253, 198, 45, 0.1);
  --body-grad-3: rgba(179, 65, 88, 0.15);
  --body-grad-4: rgba(15, 23, 42, 0.5);

  --section-grad-slate: linear-gradient(180deg, transparent 0%, #0F172A 100%);
  --section-grad-teal: linear-gradient(180deg, transparent 0%, rgba(42,180,184,0.05) 100%);
  --section-grad-teal-to-slate: linear-gradient(180deg, rgba(42,180,184,0.05) 0%, #0F172A 100%);
  --section-grad-slate-out: linear-gradient(180deg, #0F172A 0%, transparent 100%);
  --section-grad-slate-out-bottom: linear-gradient(to bottom, #0F172A, transparent);
  
  --card-grad-slate: linear-gradient(135deg, #0F172A, #1E293B);
  --card-grad-teal: linear-gradient(135deg, #0F172A, rgba(42,180,184,0.1));
  --card-grad-gold: linear-gradient(135deg, #0F172A, rgba(253,198,45,0.05));
  --card-grad-crimson: linear-gradient(135deg, #0F172A, rgba(179,65,88,0.1));

  --hero-glow-teal: radial-gradient(circle at top right, rgba(42,180,184,0.15), transparent 60%);
  --hero-glow-gold: radial-gradient(circle at top right, rgba(253,198,45,0.15), transparent 60%);
  --hero-glow-crimson: radial-gradient(circle at top right, rgba(179,65,88,0.15), transparent 60%);

  --nav-bg: rgba(15, 23, 42, 0.85);
  --nav-scrolled-bg: rgba(15, 23, 42, 0.95);
  --nav-text: #F8FAFC;
  --nav-text-muted: #94A3B8;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-nav: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 0% 0%, var(--body-grad-1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, var(--body-grad-2) 0px, transparent 50%),
    radial-gradient(at 100% 100%, var(--body-grad-3) 0px, transparent 50%),
    radial-gradient(at 0% 100%, var(--body-grad-4) 0px, transparent 50%);
  color: var(--text-main);
  line-height: 1.5;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
  letter-spacing: -0.04em;
}

h1 { font-size: 4.5rem; letter-spacing: -0.05em; }
h2 { font-size: 3rem; letter-spacing: -0.03em; }
h3 { font-size: 1.75rem; letter-spacing: -0.02em; }

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

/* Utilities */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
}

.section-header p {
  max-width: 800px;
  margin: 0 auto;
}

.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--teal), var(--crimson));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.highlight-gold {
  background: linear-gradient(transparent 60%, rgba(253, 198, 45, 0.5) 60%);
  display: inline;
  color: inherit;
  padding: 0 0.05em;
}

.highlight-teal {
  background: linear-gradient(transparent 60%, rgba(42, 180, 184, 0.4) 60%);
  display: inline;
  color: inherit;
  padding: 0 0.05em;
}

.highlight-crimson {
  background: linear-gradient(transparent 60%, rgba(179, 65, 88, 0.35) 60%);
  display: inline;
  color: inherit;
  padding: 0 0.05em;
}

/* LearnEdge Cards */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-card);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at 50% 50%, rgba(42, 180, 184, 0.04), transparent 40%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
  pointer-events: none;
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px -12px rgba(15, 23, 42, 0.12);
}

/* Webflow-style Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.05rem;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--navy);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
  background: var(--btn-primary-hover-bg);
}

/* Replicating the circular icon background inside the button */
.btn-primary i {
  background: var(--teal);
  color: white;
  border-radius: 50%;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-primary:hover i {
  transform: scale(1.1) translateX(4px);
  background: var(--gold);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}

.btn-white-pill {
  background: #FFFFFF !important;
  color: #020617 !important;
  padding: 1.25rem 3.5rem !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  border-radius: 999px !important;
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-white-pill:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(255, 255, 255, 0.15);
  background: #F8FAFC !important;
}

.btn-white-pill i {
  background: #020617 !important;
  color: #FFFFFF !important;
  width: 28px !important;
  height: 28px !important;
  padding: 6px !important;
}

.btn-white-pill:hover i {
  transform: translateX(4px) scale(1.1);
}

/* Floating Pill Navigation - Aesthetic Refinement */
nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4rem);
  max-width: 1200px;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: rgba(15, 23, 42, 0.75); /* Refined glassmorphism */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--border-radius-pill);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  top: 1rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.nav-container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%; 
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 0;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo i { 
  color: var(--teal); 
  filter: drop-shadow(0 0 8px rgba(42, 180, 184, 0.3));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .container { max-width: 95%; padding: 0 1.5rem; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.75rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 992px) {
  nav {
    width: calc(100% - 2rem);
    padding: 0.5rem 1rem;
    top: 1rem;
  }
  .logo { font-size: 1.5rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero { padding-top: 140px; }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: calc(100% - 2rem);
    max-width: 400px;
    background: var(--nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2.5rem 2rem;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    gap: 1.25rem;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item:hover .dropdown {
    max-height: 500px;
  }

  nav .btn-primary {
    display: none; /* Hide pilot button in nav on mobile, use floating CTA or footer CTA */
  }
}

.nav-links { 
  display: flex; 
  gap: 1.5rem; 
  align-items: center; 
}

.nav-item { 
  position: relative; 
  font-weight: 600; 
  font-size: 0.9rem; 
  color: #94A3B8; 
  white-space: nowrap; 
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-item:hover::after, .nav-item.active::after {
  width: 60%;
}

.nav-item:hover, .nav-item.active { 
  color: #FFFFFF; 
}

.nav-item a { 
  color: inherit; 
  text-decoration: none; 
  display: flex; 
  align-items: center; 
  gap: 0.25rem; 
}

/* Dropdowns */
.dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(12px) scale(0.98);
  background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
  min-width: 280px; padding: 1.25rem; opacity: 0; visibility: hidden; transition: var(--transition);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  color: #94A3B8 !important;
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
}

.dropdown a:hover {
  background: rgba(42, 180, 184, 0.15) !important;
  color: #FFFFFF !important;
}

.dropdown a:hover strong {
  color: #FFFFFF !important;
}

.dropdown a strong {
  display: block;
  color: #FFFFFF;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

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

/* Sections */
section { padding: 3.5rem 0; position: relative; }

.hero { min-height: 80vh; display: flex; align-items: center; padding-top: 120px; text-align: center; }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2.5rem; color: var(--text-muted); }

/* Badges (Crimson Accent mappings for better readability and pop) */
.badge {
  display: inline-flex; align-items: center; padding: 0.5rem 1.25rem; border-radius: var(--border-radius-pill);
  background: rgba(179, 65, 88, 0.08); color: var(--crimson); font-weight: 700; font-size: 0.875rem;
  margin-bottom: 2rem; border: 1px solid rgba(179, 65, 88, 0.15); letter-spacing: 0.02em;
}

/* Trust Bar */
.trust-bar { padding: 4rem 0; text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.stat-item { display: flex; flex-direction: column; background: var(--surface); padding: 2rem; border-radius: 24px; box-shadow: var(--shadow-sm); }
.stat-item .num { font-size: 3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.04em; }
.stat-item .label { color: var(--text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-top: 0.5rem; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

/* Forced 3-2 Deck Layout */
.deck-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.deck-row-top, .deck-row-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.deck-row-top > div, .deck-row-bottom > div {
  flex: 1 1 320px;
  max-width: 380px;
}

@media (min-width: 1024px) {
  .deck-row-bottom {
    margin-top: 0;
  }
}


.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 1200px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .grid-6 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

/* Image wrappers */
.image-wrapper { position: relative; border-radius: var(--border-radius-card); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); border: 1px solid rgba(255,255,255,0.7); }
.image-wrapper:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.image-wrapper img { width: 100%; display: block; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.image-wrapper:hover img { transform: scale(1.03); }

/* Features/Programs */
.program-card { display: flex; flex-direction: column; height: 100%; padding: 2.5rem; }
.program-card:nth-child(1) { background: var(--card-grad-teal); }
.program-card:nth-child(2) { background: var(--card-grad-gold); }
.program-card:nth-child(3) { background: var(--card-grad-crimson); }
.program-card:nth-child(1):hover { box-shadow: 0 24px 48px -12px rgba(42, 180, 184, 0.15); border-color: rgba(42, 180, 184, 0.2); }
.program-card:nth-child(2):hover { box-shadow: 0 24px 48px -12px rgba(253, 198, 45, 0.15); border-color: rgba(253, 198, 45, 0.2); }
.program-card:nth-child(3):hover { box-shadow: 0 24px 48px -12px rgba(179, 65, 88, 0.15); border-color: rgba(179, 65, 88, 0.2); }
.program-card .icon {
  width: 64px; height: 64px; border-radius: 20px; background: #E9F7F6; color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 2rem;
}
.program-card h3 { margin-bottom: 1rem; }
.program-card p { flex-grow: 1; margin-bottom: 2rem; }

/* Podcast Link Styling */
.podcast-card {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--text-main);
  padding: 2rem;
  height: 100%;
}

/* Team Flip Cards - Premium Full-Photo Front */
.team-container {
    perspective: 2000px;
    margin-bottom: 3.5rem;
}

.team-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
}

.team-container:hover .team-card,
.team-card.flipped {
    transform: rotateY(180deg);
}

.team-card-front, .team-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.team-card-front {
    background: var(--surface);
    z-index: 2;
}

.team-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
    color: white !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-card-overlay h3 { 
    margin-bottom: 0.35rem; 
    font-size: 1.8rem; 
    letter-spacing: -0.02em; 
    color: white !important;
    font-weight: 800;
}

.team-card-overlay p { 
    font-size: 1.05rem; 
    opacity: 0.9; 
    font-weight: 500; 
    color: #F1F5F9 !important;
    margin: 0;
}

.team-card-back {
    background: #0F172A; /* Solid navy for back to ensure contrast */
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align to top to prevent title cutoff */
    z-index: 1;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto; /* Handle long bios on mobile */
}

/* Light Mode Back Card Adjustment */
body:not(.dark-theme) .team-card-back {
    background: #FFFFFF;
    color: var(--navy);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.02);
}

.team-card-back h3 { 
    color: white; 
    margin-bottom: 0.25rem; 
    font-size: 1.4rem; 
    line-height: 1.2;
    letter-spacing: -0.02em; 
    font-weight: 800;
}

.team-card-back .role { 
    color: var(--teal); 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    margin-bottom: 1rem; 
}

.team-card-back .bio { 
    font-size: 0.9rem; 
    line-height: 1.5; 
    color: #94A3B8; 
    margin-bottom: 1.25rem; 
}

.team-card-back .detail-item { 
    font-size: 0.85rem; 
    margin-bottom: 0.6rem; 
    color: white; 
    display: flex; 
    flex-direction: column; 
    gap: 0.15rem; 
}

.team-card-back .detail-item strong { 
    color: var(--teal); 
    text-transform: uppercase; 
    font-size: 0.7rem; 
    letter-spacing: 0.1em; 
    font-weight: 800;
}

.team-social-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.team-social-links a {
    color: #94A3B8;
    transition: color 0.3s ease, transform 0.3s ease;
}

.team-social-links a:hover {
    color: var(--teal);
    transform: translateY(-3px);
}

body:not(.dark-theme) .team-social-links {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body:not(.dark-theme) .team-social-links a {
    color: var(--text-muted);
}

body:not(.dark-theme) .team-social-links a:hover {
    color: var(--teal);
}

body:not(.dark-theme) .team-card-back h3 { color: var(--navy); }
body:not(.dark-theme) .team-card-back .bio { color: var(--text-muted); }
body:not(.dark-theme) .team-card-back .detail-item { color: var(--navy); }

@media (max-width: 768px) {
    .team-card-overlay h3 { font-size: 1.5rem; }
    .team-card-back { padding: 1.5rem; }
    .team-card-back h3 { font-size: 1.25rem; }
}

.team-card-overlay h3 { 
    margin-bottom: 0.5rem; 
    font-size: 2.25rem; 
    letter-spacing: -0.03em; 
    color: white !important;
    font-weight: 800;
}

.team-card-overlay p { 
    font-size: 1.2rem; 
    opacity: 0.9; 
    font-weight: 500; 
    color: #F8FAFC !important;
    margin: 0;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .team-card { height: 450px; }
    .team-card-overlay h3 { font-size: 1.75rem; }
}

/* Announcement Banner */
.announcement-banner {
  display: none; /* Hidden by default, shown via JS */
  background: linear-gradient(90deg, var(--teal), #6366f1, var(--crimson));
  background-size: 200% auto;
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  position: relative;
  z-index: 1100;
  font-family: var(--font-family);
  animation: bannerGradient 10s ease infinite, bannerSlideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@keyframes bannerSlideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

@keyframes bannerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 2rem; /* Space for close button */
}

.banner-text {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.banner-text strong {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.banner-btn {
  background: #FFFFFF;
  color: #000000 !important; /* Force pure black text */
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800; /* Extra bold */
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.banner-btn i {
  color: #000000 !important;
}

.banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  background: var(--gold);
}

.banner-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) rotate(90deg);
}

/* Adjust nav position when banner is visible */
body.has-banner nav {
  top: 4.5rem;
}

body.has-banner nav.scrolled {
  top: 3.5rem;
}

@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 2.5rem;
  }
  .banner-text {
    font-size: 0.85rem;
  }
  body.has-banner nav {
    top: 6.5rem;
  }
}

/* Responsive FAQ */
.faq-item { border-bottom: 1px solid var(--border-color); padding: 1.75rem 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; font-weight: 600; cursor: pointer; color: var(--navy); transition: var(--transition); letter-spacing: -0.02em; }
.faq-question:hover { color: var(--teal); }
.faq-question i { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); background: #F8FAFC; border-radius: 50%; padding: 4px; width: 32px; height: 32px; }
.faq-item.active .faq-question i { transform: rotate(180deg); background: var(--teal); color: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), margin-top 0.4s ease; color: var(--text-muted); font-size: 1.125rem; }
.faq-item.active .faq-answer { max-height: 600px; margin-top: 1.5rem; }

/* Pages routing visibility - Crisp Sleek Reveal */
.page { 
  display: none; 
  opacity: 0; 
  transform: translateY(20px); 
  transition: opacity 0.5s ease, 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}
.page.active { 
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.page.faded-in { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Scroll Animations - Crisp Sleek Reveal */
.animate-on-scroll { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: opacity 0.8s ease-out, 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1); 
}
.animate-on-scroll.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Footer */
footer { background: transparent; border-top: 1px solid transparent; border-image: linear-gradient(to right, transparent, var(--border-color), transparent) 1; padding: 6rem 0 3rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 5rem; }
.footer-logo { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; display: block; letter-spacing: -0.04em; }
.footer-links h4 { color: var(--navy); margin-bottom: 1.75rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); font-size: 1rem; font-weight: 500; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid transparent; border-image: linear-gradient(to right, transparent, var(--border-color), transparent) 1; color: var(--text-light); font-size: 0.9rem; }

/* Modal Styles */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: var(--surface); border-radius: var(--border-radius-card); padding: 3rem;
  width: 90%; max-width: 480px; box-shadow: var(--shadow-lg); text-align: center;
  position: relative; transform: translateY(30px) scale(0.95); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0; border: 1px solid rgba(255,255,255,0.8);
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: #F8FAFC; border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.modal-close:hover { color: var(--crimson); background: #F1F5F9; transform: rotate(90deg); }

/* Forms */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-control {
  width: 100%; padding: 0.875rem 1.25rem; border: 1px solid var(--border-color); border-radius: 12px;
  font-family: var(--font-family); font-size: 1rem; color: var(--navy); transition: var(--transition); outline: none; background: var(--surface);
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(42, 180, 184, 0.1); background: var(--surface); }

/* Logo Marquee */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  padding: 1rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  padding-right: 4rem; /* Match the gap for a seamless loop */
  animation: scroll-marquee 17s linear infinite;
  align-items: center;
}

.logo-track img {
  height: 80px;
  max-width: 200px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(1);
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.05);
  opacity: 1;
  filter: grayscale(0);
}

/* Testimonial Marquee Styles */
.testimonial-marquee {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  position: relative;
}

.testimonial-marquee::before, .testimonial-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonial-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-main), transparent);
}

.testimonial-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-main), transparent);
}

.testimonial-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 1rem 0;
  animation: scroll-testimonials 30s linear infinite;
}

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

.testimonial-track.reverse {
  animation-direction: reverse;
}

.testimonial-track.fast {
  animation-duration: 20s;
}

.testimonial-track.slow {
  animation-duration: 45s;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.5rem;
  width: 400px;
  margin-right: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  flex-shrink: 0;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
  z-index: 10;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-style: italic;
  flex-grow: 1;
  position: relative;
}

.testimonial-card p::before {
  content: '“';
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  font-size: 4rem;
  color: var(--teal);
  opacity: 0.15;
  font-family: serif;
}

.testimonial-card .author {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.testimonial-card .author-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.testimonial-card .author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.testimonial-card .category-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.category-admin { background: rgba(42, 180, 184, 0.1); color: var(--teal); }
.category-teacher { background: rgba(253, 198, 45, 0.1); color: var(--gold); }
.category-parent { background: rgba(179, 65, 88, 0.1); color: var(--crimson); }

/* Quote Cards */
.quote-card-navy {
    background: var(--navy);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .quote-card-navy {
    background: #1E293B; /* Subtle depth in dark mode */
    color: #F1F5F9;
    border-color: rgba(255, 255, 255, 0.05);
}

.quote-card-navy p {
    color: #CBD5E1 !important; /* Default light gray for quote */
}

body.dark-theme .quote-card-navy p {
    color: #94A3B8 !important; /* Muted gray for dark mode readability */
}

@keyframes scroll-testimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Grid-4 for smaller toolkit cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }

/* Article Body Styling inside Modal */
.article-body h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.article-body p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.article-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}

/* ====================================================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Breakpoints: 1200px (large tablet/laptop), 992px (tablet landscape), 
                768px (tablet portrait), 480px (mobile), 360px (small mobile)
   ==================================================================== */

/* --- Large Tablet / Small Laptop --- */
@media (max-width: 1200px) {
  .container { max-width: 95%; }
  h1 { font-size: 3.75rem; }
  h2 { font-size: 2.75rem; }
}

/* --- Tablet Landscape --- */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.6rem; }

  .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 3rem; }
  .hero p { font-size: 1.1rem; }

  section { padding: 3rem 0; }

  /* Social proof bar — stack vertically */
  .social-proof-micro {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
    align-items: center !important;
  }
  .social-proof-micro > div {
    border-right: none !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    width: 100%;
    text-align: center !important;
  }
  .social-proof-micro > div:last-child {
    border-bottom: none;
  }

  /* Stats — reduce counters */
  .stat-item .num { font-size: 3.5rem !important; }
  .stat-item .num span:last-child { font-size: 2.5rem !important; }
}

/* --- Tablet Portrait / Mobile Breakpoint --- */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2.25rem; letter-spacing: -0.03em; }
  h2 { font-size: 1.85rem; }
  h3 { font-size: 1.35rem; }
  h4 { font-size: 1.1rem; }
  p { font-size: 0.95rem; }

  /* Utility to hide line breaks on mobile for cleaner text flow */
  br { content: ''; }
  br::after { content: ' '; }
  h1 br, h2 br { display: none; }
  
  .container { padding: 0 1.25rem; }
  section { padding: 2.5rem 0; }
  .section-header { margin-bottom: 2.5rem !important; }
  .section-header h2 { margin-bottom: 1rem !important; }
  .section-header p { font-size: 0.95rem !important; }

  /* Hero */
  .hero { padding-top: 110px; padding-bottom: 2rem; }
  .hero p { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero .animate-on-scroll[style*="display: flex"][style*="gap"] {
    flex-wrap: wrap;
  }
  .hero .social-proof-micro {
    margin-top: 2.5rem !important;
  }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stat-item { padding: 1.5rem !important; border-radius: 20px !important; }
  .stat-item .num { font-size: 3rem !important; }
  .stat-item .num span:last-child { font-size: 2.25rem !important; }
  .stat-item .label { font-size: 1rem !important; margin-bottom: 1.5rem !important; }

  /* Cards */
  .glass-card { padding: 1.5rem; border-radius: 20px; }
  .glass-card:hover { transform: none; } /* Disable hover lift on touch devices */
  .program-card { padding: 1.75rem; }
  .program-card .icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1.25rem; }

  /* Podcast cards */
  .podcast-card { padding: 1.25rem; }

  /* Buttons - touch-friendly */
  .btn { 
    padding: 0.875rem 1.5rem; 
    width: 100%; 
    font-size: 0.95rem;
    min-height: 48px; /* iOS touch target */
  }

  /* Image wrappers */
  .image-wrapper { border-radius: 20px; }
  .image-wrapper:hover { transform: none; }
  .image-wrapper:hover img { transform: none; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .footer-logo { margin: 0 auto 1.5rem; }
  .social-links { justify-content: center; }
  footer { padding: 3rem 0 2rem; margin-top: 2rem; }

  /* Modals — full-screen on mobile */
  .modal-content { 
    padding: 1.5rem; 
    width: 96%; 
    max-width: 96%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
  }
  .modal-close { top: 1rem; right: 1rem; }

  /* Forms */
  .form-group { margin-bottom: 1.25rem; }
  .form-control { padding: 0.75rem 1rem; font-size: 1rem; min-height: 48px; }

  /* FAQ */
  .faq-question { font-size: 1.05rem; gap: 1rem; }
  .faq-question i { width: 28px; height: 28px; flex-shrink: 0; }
  .faq-answer { font-size: 0.95rem; }
  .faq-item.active .faq-answer { margin-top: 1rem; }
  .faq-item { padding: 1.25rem 0; }

  /* Testimonial cards — responsive width */
  .testimonial-card { 
    width: 300px; 
    padding: 1.75rem; 
    border-radius: 20px; 
    margin-right: 1rem; 
  }
  .testimonial-card p { font-size: 0.95rem; margin-bottom: 1.25rem; }
  .testimonial-card p::before { font-size: 3rem; top: -1rem; }
  .testimonial-card .author-name { font-size: 0.95rem; }
  .testimonial-card .author-title { font-size: 0.8rem; }

  /* Logo marquee — smaller logos */
  .logo-track { gap: 2.5rem; padding-right: 2.5rem; }
  .logo-track img { height: 50px; max-width: 140px; }

  /* Team flip cards — touch-friendly */
  .team-card { 
    height: 400px; 
    aspect-ratio: auto; 
  }
  .team-card-overlay { padding: 2rem 1.5rem 1.5rem; }
  .team-card-overlay h3 { font-size: 1.5rem; }
  .team-card-overlay p { font-size: 0.95rem; }
  .team-card-back { padding: 1.25rem; }
  .team-card-back h3 { font-size: 1.15rem; }
  .team-card-back .bio { font-size: 0.85rem; line-height: 1.45; margin-bottom: 1rem; }
  .team-card-back .detail-item { font-size: 0.8rem; margin-bottom: 0.5rem; }
  .team-card-back .role { font-size: 0.7rem; margin-bottom: 0.75rem; }
  .team-social-links { padding-top: 1rem; gap: 0.75rem; }

  /* Announcement banner */
  .banner-content {
    flex-direction: column;
    gap: 0.5rem;
    padding-right: 2.5rem;
  }
  .banner-text { font-size: 0.8rem; line-height: 1.4; }
  .banner-btn { font-size: 0.8rem; padding: 0.4rem 1rem; }
  body.has-banner nav { top: 6rem; }
  body.has-banner nav.scrolled { top: 5.5rem; }

  /* Floating CTA */
  .floating-cta { 
    bottom: 1rem; 
    left: 1rem; 
    right: 1rem; 
    width: calc(100% - 2rem); 
    justify-content: center; 
  }

  /* Article body in modal */
  .article-body h3 { font-size: 1.25rem; margin-top: 1.5rem; }
  .article-body p { font-size: 0.95rem; line-height: 1.65; }
  .article-body ul { font-size: 0.95rem; padding-left: 1.25rem; }

  /* Quote cards */
  .quote-card-navy { padding: 1.5rem; border-radius: 16px; }

  /* Reduce animation intensity on mobile for performance */
  .animate-on-scroll { 
    transform: translateY(20px); 
  }

  /* Implementation promise / large text sections */
  .hero h1 { word-break: break-word; }
}

/* --- Mobile Phones --- */
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.2rem; }

  .container { padding: 0 1rem; }

  .hero { padding-top: 100px; }

  /* Badges */
  .badge { font-size: 0.7rem; padding: 0.35rem 0.85rem; margin-bottom: 1.25rem; }

  /* Stats — tighter on small phones */
  .stat-item .num { font-size: 2.75rem !important; }
  .stat-item .num span:last-child { font-size: 2rem !important; }
  .stat-item .label { font-size: 0.9rem !important; }
  .stat-item { padding: 1.25rem !important; }

  /* Grids — single column everything */
  .grid-4 { grid-template-columns: 1fr; gap: 0.75rem; }
  .grid-5 { grid-template-columns: 1fr; gap: 0.75rem; }
  .grid-6 { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Cards — more compact */
  .glass-card { padding: 1.25rem; border-radius: 16px; }
  .program-card { padding: 1.25rem; }

  /* Testimonial cards — fit screen width */
  .testimonial-card { width: 270px; padding: 1.5rem; }
  .testimonial-card p { font-size: 0.9rem; }

  /* Team cards */
  .team-card { height: 360px; }
  .team-card-back { padding: 1rem; }
  .team-card-back h3 { font-size: 1.05rem; }
  .team-card-back .bio { font-size: 0.8rem; }

  /* Buttons */
  .btn { font-size: 0.9rem; padding: 0.75rem 1.25rem; }

  /* Footer */
  footer { padding: 2.5rem 0 1.5rem; }
  .footer-links h4 { font-size: 1rem; margin-bottom: 1rem; }
  .footer-links a { font-size: 0.9rem; }
  .footer-bottom { font-size: 0.8rem; padding-top: 1.5rem; }

  /* Nav adjustments */
  nav { 
    width: calc(100% - 1.5rem); 
    padding: 0.4rem 0.75rem; 
    top: 0.75rem; 
  }
  nav.scrolled { top: 0.5rem; padding: 0.35rem 0.75rem; }
  .logo { font-size: 1.3rem; }

  .nav-links {
    top: 4.5rem;
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  /* Modal — nearly full-screen */
  .modal-content { 
    width: 100%; 
    max-width: 100%; 
    border-radius: 20px 20px 0 0; 
    max-height: 92vh;
    margin-bottom: 0;
  }

  /* Social links */
  .social-links a { width: 42px; height: 42px; }
  .social-links svg, .social-links i { width: 18px !important; height: 18px !important; }

  /* Podcast cards */
  .podcast-card h3 { font-size: 1.15rem !important; }
  .podcast-card p { font-size: 0.85rem !important; }

  /* Section padding tightening */
  section { padding: 2rem 0; }
  .section-header { margin-bottom: 2rem !important; }

  /* Logo marquee */
  .logo-track { gap: 2rem; padding-right: 2rem; }
  .logo-track img { height: 40px; max-width: 120px; }

  /* FAQ */
  .faq-question { font-size: 0.95rem; }
}

/* --- Very Small Phones (e.g. iPhone SE) --- */
@media (max-width: 360px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.45rem; }
  .container { padding: 0 0.75rem; }
  .btn { padding: 0.7rem 1rem; font-size: 0.85rem; }
  .testimonial-card { width: 250px; padding: 1.25rem; }
  .team-card { height: 320px; }
  nav { width: calc(100% - 1rem); padding: 0.35rem 0.5rem; }
  .logo { font-size: 1.15rem; }
}

/* --- Touch Device Optimizations --- */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch to prevent stuck states */
  .glass-card:hover { transform: none; box-shadow: var(--shadow-md); }
  .glass-card:hover::before { opacity: 0; }
  .image-wrapper:hover { transform: none; }
  .image-wrapper:hover img { transform: none; }
  .btn-primary:hover { transform: none; }
  .btn-primary:hover i { transform: none; }
  
  /* Active states for touch feedback instead */
  .glass-card:active { transform: scale(0.98); }
  .btn:active { transform: scale(0.97); }
  .image-wrapper:active { transform: scale(0.99); }

  /* Team flip card — use tap (flipped class) instead of hover */
  .team-container:hover .team-card { transform: none; }
  .team-card.flipped { transform: rotateY(180deg); }
  
  /* Testimonial marquee — don't pause on touch since there's no hover */
  .testimonial-track:hover { animation-play-state: running; }
}

/* --- Landscape phone mode --- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 80px; min-height: auto; padding-bottom: 2rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 1rem; }
  nav { top: 0.5rem; }
  .modal-content { max-height: 85vh; }
}

/* --- Print Optimization --- */
@media print {
  nav, .floating-cta, .announcement-banner, .mobile-menu-toggle { display: none !important; }
  .page { display: block !important; opacity: 1 !important; transform: none !important; }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* Social Proof Micro */
.social-proof-micro { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; font-size: 0.95rem; color: var(--text-muted); }
.social-proof-micro .avatars { display: flex; }
.social-proof-micro .avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg-main); margin-left: -12px; box-shadow: var(--shadow-sm); }
.social-proof-micro .avatars img:first-child { margin-left: 0; }
.social-proof-micro strong { color: var(--navy); }

/* Floating CTA */
.floating-cta {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.floating-cta.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
@media (max-width: 768px) {
  .floating-cta { bottom: 1.5rem; left: 1.5rem; right: 1.5rem; width: calc(100% - 3rem); justify-content: center; }
}
/* Social Links Footer */
.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main) !important; /* Theme-aware color */
  transition: var(--transition);
  text-decoration: none;
}

.social-links a:hover {
  background: var(--teal);
  color: white !important;
  border-color: var(--teal);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.social-links svg, .social-links i {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor;
  stroke-width: 2;
  display: block;
}

/* --- Impact Grid Fix --- */
.impact-grid { max-width: 67%; }
@media (max-width: 768px) {
  .impact-grid { max-width: 100%; }
}

/* --- Mobile Nav Dropdown Fix --- */
@media (max-width: 768px) {
  .dropdown {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    min-width: 0 !important;
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown {
    max-height: 500px !important;
  }
  .dropdown a {
    padding: 0.75rem 1rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }
}

/* Centered Grid for 5 items */
.grid-centered-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.grid-centered-5 > * {
  flex: 1 1 320px;
  max-width: 380px;
}

/* Timeline Arrow Animation */
.timeline-arrow {
  animation: bounce-down 2s infinite ease-in-out;
}

@keyframes bounce-down {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* --- MOBILE OPTIMIZATION FIXES --- */

@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2.75rem !important; }
  h2 { font-size: 2.25rem !important; }
  h3 { font-size: 1.5rem !important; }
  
  /* Layout Spacing */
  section { padding: 4rem 0 !important; }
  .container { padding: 0 1.5rem !important; }

  /* Hero Section */
  .hero { padding-top: 120px !important; text-align: center; }
  .hero-actions { flex-direction: column; gap: 1rem; }
  .hero-actions .btn { width: 100%; }
  
  /* Grid Systems */
  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .grid-centered-5, .deck-row-top, .deck-row-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  
  .grid-centered-5 > *, .deck-row-top > *, .deck-row-bottom > * {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
  
  /* LearnEdge Cards */
  .glass-card { padding: 2rem !important; }
  
  /* Stats Grid */
  .stats-grid { grid-template-columns: 1fr !important; }
  
  /* Buttons */
  .btn { width: 100%; padding: 0.8rem 1.5rem !important; }
  
  /* Navigation Fixes */
  nav { width: calc(100% - 2rem) !important; top: 1rem !important; }
  .nav-container { padding: 0 !important; }

  .podcast-controls { 
    flex-direction: column !important; 
    align-items: stretch !important; 
    gap: 1.5rem !important; 
    padding: 1rem !important;
  }
  .search-box { min-width: 100% !important; }
  .filter-box { 
    width: 100% !important; 
    justify-content: space-between !important; 
  }
  .filter-box select { flex: 1 !important; }
  
  /* Episode Titles and Content */
  .episode-title { font-size: 2rem !important; }
  .content-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  
  /* Footer adjustments */
  .footer-grid { text-align: center !important; }
  .footer-logo { margin: 0 auto 2rem !important; }
  .social-links { justify-content: center !important; }
  
  /* Hide excessive decorative elements on mobile */
  .hero::after { display: none !important; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.25rem !important; }
  h2 { font-size: 1.85rem !important; }
}

/* Team Card Mobile Fixes */
@media (max-width: 768px) {
  .team-card {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .team-card.flipped {
    transform: rotateY(180deg) !important;
  }
}

/* Table Responsiveness */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Program Hero Sections (Inspired by Screenshots) */
.program-hero { background: #020617; min-height: 90vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; color: white; }
.program-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }

/* Color Variants for Heros */
.ai-literacy-hero::before { background: radial-gradient(circle at 10% 20%, rgba(42, 180, 184, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(179, 65, 88, 0.2) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%); }
.future-ready-hero::before { background: radial-gradient(circle at 10% 20%, rgba(253, 198, 45, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(42, 180, 184, 0.2) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%); }
.pd-hero::before { background: radial-gradient(circle at 10% 20%, rgba(179, 65, 88, 0.15) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(167, 139, 250, 0.2) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 100%); }

.program-hero .badge { backdrop-filter: blur(8px); }
.ai-literacy-hero .badge { background: rgba(42, 180, 184, 0.1) !important; color: var(--teal) !important; border-color: rgba(42, 180, 184, 0.3) !important; }
.future-ready-hero .badge { background: rgba(253, 198, 45, 0.1) !important; color: var(--gold) !important; border-color: rgba(253, 198, 45, 0.3) !important; }
.pd-hero .badge { background: rgba(179, 65, 88, 0.1) !important; color: var(--crimson) !important; border-color: rgba(179, 65, 88, 0.3) !important; }

.program-hero h1 { font-size: 5rem; line-height: 1.05; margin-bottom: 1.5rem; color: white; background: linear-gradient(135deg, #FFFFFF 30%, #94A3B8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.program-hero .subtitle { font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 2rem; color: #F8FAFC; }
.program-hero .subtitle span { display: inline-block; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ai-literacy-hero .subtitle span { background-image: linear-gradient(135deg, var(--teal), #A78BFA); }
.future-ready-hero .subtitle span { background-image: linear-gradient(135deg, var(--gold), var(--teal)); }
.pd-hero .subtitle span { background-image: linear-gradient(135deg, var(--crimson), #A78BFA); }

.program-hero p.desc { font-size: 1.25rem; color: #94A3B8; max-width: 500px; margin-bottom: 3rem; line-height: 1.6; }
.program-hero .features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-bottom: 4rem; }
.program-hero .feature-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.program-hero .feature-item i { width: 40px; height: 40px; color: #F8FAFC; opacity: 0.8; }
.program-hero .feature-item span { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #94A3B8; }
.program-hero .pill-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1.5rem; max-width: 550px; }
.program-hero .pill-box i { color: var(--teal); width: 32px; height: 32px; }
.program-hero .pill-box p { margin: 0; font-size: 1.1rem; color: #F1F5F9; line-height: 1.4; }
.program-hero .pill-box p .text-teal { color: var(--teal); font-weight: 700; }
.program-hero .pill-box p .text-purple { color: #A78BFA; font-weight: 700; }

.program-hero .hero-image-container { position: relative; z-index: 2; }
.program-hero .hero-image-container img { width: 100%; border-radius: 40px; box-shadow: 0 40px 100px rgba(0,0,0,0.6); mask-image: linear-gradient(to right, black 80%, transparent 100%); }

@media (max-width: 992px) { 
    .program-hero h1 { font-size: 3.5rem; } 
    .program-hero .features-grid { grid-template-columns: repeat(3, 1fr); } 
    .program-hero .hero-image-container { display: none; } 
}

@media (max-width: 768px) { 
    .program-hero .features-grid { grid-template-columns: repeat(2, 1fr); } 
    .program-hero .pill-box { flex-direction: column; text-align: center; gap: 1rem; margin: 0 auto; } 
    .program-hero .feature-item span { font-size: 0.65rem; } 
}

/* Signup Section Tweaks */
.signup-card {
  padding: 4rem;
}

@media (max-width: 768px) {
  .signup-card {
    padding: 2rem !important;
  }
}

.btn-read-more {
  margin-top: auto;
  padding: 0.6rem 1.2rem !important;
  font-size: 0.9rem !important;
  align-self: flex-start;
}

.btn-view-more {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  text-decoration: none;
}
