/* ==========================================================================
   ED-TECH EXPERT UI (V5) 
   ========================================================================== */
:root {
  /* Color Palette - Vibrant EdTech Look */
  --bg-color: #F8F9FB;         /* Light Blue-ish Gray */
  --surface-color: #FFFFFF;
  --text-primary: #0F172A;     /* Very Dark Slate */
  --text-secondary: #475569;   /* Slate Gray */
  
  /* Primary Indigos */
  --accent-color: #5E5BFF;     /* Ed-Tech Indigo */
  --accent-hover: #4B48CC;     
  --accent-light: #EEEDFF;

  /* Accent Mustards/Yellows */
  --yellow-main: #FCD34D;
  --yellow-bg: #FEF3C7;
  
  --border-color: #E2E8F0;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Fluid Spacing */
  --container-pad: clamp(1.5rem, 5vw, 4rem);
  --section-pad-y: clamp(5rem, 10vw, 8rem);
  --gap-md: clamp(1.5rem, 3vw, 2.5rem);

  /* Utilities */
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(94, 91, 255, 0.1);
}

/* ==========================================================================
   RESET & FOUNDATION
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; max-width: 100vw; overflow-x: hidden; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.h1-display { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.h2-display { font-size: clamp(1.85rem, 4vw, 3rem); } /* V9.3 Refined for better mobile scaling */
.h3-display { font-size: clamp(1.5rem, 2.5vw, 2rem); }

p {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  margin-bottom: 1.5rem;
  max-width: 70ch;
}
a { text-decoration: none; color: inherit; transition: var(--transition-smooth); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* ==========================================================================
   CONTAINERS & LAYOUTS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--section-pad-y) 0; width: 100%; }

.surface-white { background-color: var(--surface-color); }
.surface-dark {
  background-color: var(--text-primary);
  color: var(--surface-color);
}
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: var(--surface-color); }
.surface-dark p { color: #94A3B8; }

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
  align-items: center;
}

/* ==========================================================================
   BENTO BOX & MASONRY (MOBILE-FIRST V13.0)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-md);
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .bento { grid-template-columns: repeat(12, 1fr); margin-top: 4rem;}
}

.bento-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 3rem);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
  border-color: #CBD5E1;
}

.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 1100px) {
  .span-8, .span-4 { grid-column: span 12; }
}

.glass-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap-md);
  margin-top: 3rem;
}

/* V10.3 Narrative Stats Grid */
.stats-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.glass-item {
  background: white;
  border: 1px solid var(--border-color);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-smooth);
}

.glass-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  border-color: var(--accent-color);
}
@media (max-width: 1024px) {
  .stats-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .stats-bento { grid-template-columns: 1fr; }
}

.bento-img-wrap {
  width: 100%; height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.bento-img-wrap img { width: 100%; height: 100%; transition: transform var(--transition-smooth); }
.bento-item:hover .bento-img-wrap img { transform: scale(1.05); }

/* Masonry for Gallery */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem; margin-top: 3rem;
}
.masonry-item {
  border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.masonry-item:hover { transform: scale(1.02); box-shadow: var(--shadow-subtle); }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; }
.masonry-tall { grid-row: span 2; }
.masonry-wide { grid-column: span 2; }

/* ==========================================================================
   GLOBAL SECTION HEADERS (V9.1 PRECISION ALIGNMENT)
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .badge { margin-bottom: 1.5rem; display: inline-block; }
.section-header h2 { margin-bottom: 1.5rem; }
.section-header p { 
  max-width: 700px; 
  margin: 0 auto; 
  color: var(--text-secondary); 
  font-size: 1.15rem; 
  line-height: 1.6;
}

.narrative-text-block { text-align: left; }

/* ==========================================================================
   UTILITIES & HELPERS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1rem 2rem;
  border-radius: 4rem; font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--surface-color);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(94, 91, 255, 0.3);
}

.btn-outline {
  border-color: var(--border-color);
  background-color: var(--surface-color);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent-color); font-weight: 600;
  margin-top: auto; padding-top: 1rem;
}
.link-arrow i { transition: transform var(--transition-smooth); }
.link-arrow:hover i { transform: translateX(5px); }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background-color: rgba(248, 249, 251, 0.95); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 5rem; }
.logo span { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2rem; align-items: center; } /* V13.0 Centering */
.nav-links a { font-size: 0.9375rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition-smooth); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.nav-item { display: flex; align-items: center; }

/* Mobile Menu */
.menu-btn { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; position: relative; z-index: 1001; }
.menu-btn span { position: absolute; left: 8px; width: 24px; height: 2px; background-color: var(--text-primary); transition: var(--transition-smooth); }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 24px; }
.menu-btn.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn.active span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--surface-color); z-index: 999;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: var(--transition-smooth);
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }
.mobile-overlay a {
  font-size: 2rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 2rem; opacity: 0; transform: translateY(20px); transition: var(--transition-smooth);
}
.mobile-overlay.active a { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   ED-TECH HERO SECTION
   ========================================================================== */
.ed-hero {
  padding-top: 8rem;
  padding-bottom: 4rem; /* Replaced by strip */
  display: flex;
  align-items: center;
  min-height: 85vh;
  overflow: hidden; /* contain the blob */
  position: relative;
}

.ed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.ed-badge i { color: var(--yellow-main); }

.ed-highlight {
  color: var(--accent-color);
  font-weight: 800;
}
/* Removed all underline/marker backgrounds to ensure pure clean aesthetics */

.blob-container {
  position: relative;
  width: 100%; height: 60vh;
  display: flex; justify-content: center; align-items: flex-end;
}

.css-blob {
  position: absolute;
  top: 10%; right: 5%;
  width: 80%; height: 80%;
  background-color: var(--yellow-main);
  border-radius: 53% 47% 33% 67% / 37% 55% 45% 63%;
  z-index: -1;
  animation: blob-float 10s ease-in-out infinite alternate;
}

@keyframes blob-float {
  0% { transform: scale(1) translate(0, 0) rotate(0deg); border-radius: 53% 47% 33% 67% / 37% 55% 45% 63%; }
  100% { transform: scale(1.05) translate(-20px, 20px) rotate(5deg); border-radius: 43% 57% 50% 50% / 55% 45% 55% 45%; }
}

.hero-person {
  max-height: 90%; width: auto; object-fit: contain; z-index: 2; position: relative;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
  border-radius: var(--radius-lg);
  border: 5px solid white;
}

/* Accent doodles */
.doodle-element { position: absolute; opacity: 0.6; z-index: 0; }
.doodle-1 { top: 10%; left: 0; width: 60px; height: 60px; background-image: radial-gradient(var(--accent-color) 20%, transparent 20%); background-size: 10px 10px; }

/* The Feature Strip */
.feature-strip {
  background-color: var(--accent-color);
  color: white;
  padding: 2rem 0;
  width: 100%;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: center;
}
.strip-item { display: flex; align-items: center; gap: 1rem; }
.strip-icon { font-size: 1.8rem; opacity: 0.9; }
.strip-text h4 { color: white; margin: 0 0 0.2rem 0; font-size: 1rem; letter-spacing: 0; }
.strip-text p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.8rem; line-height: 1.3; }

/* ==========================================================================
   TESTIMONIAL SCROLLING MARQUEE (HOVER PAUSE)
   ========================================================================== */
.testimonial-section {
  padding: 6rem 0;
  background-color: white;
  overflow: hidden;
}

.testimonial-header { text-align: center; margin-bottom: 4rem; }
.testimonial-header span { color: var(--accent-color); font-weight: 600; font-size: 1rem; display: block; margin-bottom: 0.5rem; }

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
}
/* Masking the edges so they fade out smoothly */
.slider-container::before, .slider-container::after {
  content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2;
  pointer-events: none; /* Never block the cards! */
}
.slider-container::before { left: 0; background: linear-gradient(to right, white, transparent); }
.slider-container::after { right: 0; background: linear-gradient(to left, white, transparent); }

.slider-track {
  display: flex;
  gap: 1.5rem; /* Standardized for compact look */
  padding-right: 1.5rem; /* EXACTLY MATCHES GAP for zero-jump loop */
  width: max-content;
  animation: scrollTestimonials 50s linear infinite;
}

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

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

.instructor-track {
  display: flex; gap: 1.25rem; width: max-content;
  padding-right: 1.25rem; /* MATCHING TRAILING GAP for seamlessness */
  animation: scrollInstructors 35s linear infinite;
}
.slider-container:hover .instructor-track { animation-play-state: paused; }

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

/* Testimonial Card UI */
.testimonial-card {
  width: 380px; /* FIXED WIDTH is critical for glitch-free marquee loops */
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.22rem 2rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  min-height: 250px;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.quote-icon {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 3rem; color: var(--border-color); opacity: 0.5; font-family: Georgia, serif;
  line-height: 1; pointer-events: none;
}

.testimonial-card h4 {
  color: var(--accent-color); font-size: 1.1rem; margin-bottom: 1rem; width: 80%;
}

.testimonial-card p {
  font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 2rem; flex-grow: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #E2E8F0; }
.author-info h5 { margin: 0 0 0.1rem 0; font-size: 0.95rem; color: var(--text-primary); }
.author-info span { font-size: 0.8rem; color: var(--text-secondary); }

/* ==========================================================================
   ABOUT PAGE: ELITE HERO & GENESIS
   ========================================================================== */
/* ==========================================================================
   ANIMATION ENGINE (V9.0 "APPLE-STYLE")
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

/* Staggered entry logic */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
/* ==========================================================================
   CURRICULUM MASTERCLASS COMPONENTS (V10.0)
   ========================================================================== */
.course-hero { 
  padding: 12rem 0 6rem;
  background-color: #f8fafc;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.wing-label { font-size: 0.9rem; font-weight: 700; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; display: block; }

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.course-card {
  background: white;
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.06);
  border-color: var(--accent-color);
}

.course-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.course-card .grade-tag { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 2rem; display: block; font-weight: 500; }

.module-list { list-style: none; padding-left: 0; margin-bottom: 2rem; }
.module-list li { 
  padding: 0.8rem 0; 
  border-top: 1px solid #f1f5f9; 
  display: flex; 
  align-items: center; 
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.module-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: #10b981; font-size: 0.8rem; }

.senior-wing { background: #0f172a; color: white; padding: 8rem 0; }
.senior-wing h2 { color: white; }
.senior-wing .course-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); color: white; }
.senior-wing .course-card:hover { background: rgba(255,255,255,0.05); border-color: var(--accent-light); }
.senior-wing .course-card h3 { color: white; }
.senior-wing .course-card .grade-tag { color: rgba(255,255,255,0.5); }
.senior-wing .module-list li { border-top: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); }

@media (max-width: 1024px) {
  .curriculum-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .curriculum-grid { grid-template-columns: 1fr; }
}

.senior-grid { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 4rem; 
  margin-top: 4rem;
}
.senior-card { 
  position: relative; 
  transition: var(--transition-smooth); 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.senior-img-wrap { 
  aspect-ratio: 4 / 5;
  width: 100%;
  height: auto;
  border-radius: 40px; 
  overflow: hidden; 
  margin-bottom: 2.5rem; 
  position: relative;
  background: #f1f5f9;
  border: 1px solid #eef2f6;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}
.senior-img-wrap img { filter: grayscale(20%) contrast(110%); width: 100%; height: 100%; object-fit: cover; }
.senior-card h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: var(--text-primary); font-weight: 800; }
.senior-card p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; max-width: 450px; margin: 0 auto; }

@media (max-width: 991px) {
  .glass-bento { grid-template-columns: 1fr; gap: 1.5rem; }
  .senior-grid { grid-template-columns: 1fr !important; gap: 4rem; padding: 0 1rem; }
  .senior-img-wrap { height: 350px; border-radius: 24px; width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
}

.about-hero { 
  padding: clamp(8rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 6rem); 
  background: var(--bg-color); 
  text-align: center;
}

@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr !important; gap: 3rem; }
  .narrative-text-block { text-align: center; }
  .narrative-text-block p { margin-left: auto; margin-right: auto; }
}




/* ==========================================================================
   DIRECTOR'S MESSAGE & FOUNDERS
   ========================================================================== */
.director-section { padding: 4.5rem 0; background-color: var(--bg-color); border-top: 1px solid var(--border-color); overflow: hidden; }
.director-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: stretch; }
.director-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; position: relative; }
.director-pics::before { content: ''; position: absolute; top: -20px; left: -20px; width: 60px; height: 60px; border-top: 3px solid var(--accent-color); border-left: 3px solid var(--accent-color); opacity: 0.1; }
.director-img-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; height: 100%; min-height: 280px; box-shadow: var(--shadow-subtle); z-index: 1; }
.director-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--transition-smooth); }
.director-img-wrap:hover img { transform: scale(1.05); }
.director-name-label { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.92)); color: white; font-weight: 700; font-size: 0.8rem; text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.director-info { display: flex; flex-direction: column; justify-content: space-between; padding: 0.2rem 0; }
.director-info h2 { margin-bottom: 1.2rem !important; }
.director-quote { font-style: italic; font-size: 1.15rem; color: var(--text-primary); border-left: 3px solid var(--accent-color); padding-left: 2rem; margin: 1.5rem 0; line-height: 1.7; position: relative; font-weight: 500; }
.director-quote::before { content: '\f10d'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: -15px; left: -15px; font-size: 3rem; color: var(--accent-color); opacity: 0.05; }
.signature-block { border-top: 1px solid var(--border-color); padding-top: 1.5rem; margin-top: 1.5rem; }
.signature { font-weight: 900; font-size: 1.35rem; color: var(--accent-color); display: block; margin-bottom: 0.1rem; }

/* Apple-style Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.director-pics.reveal { transition-delay: 0.1s; }
.director-info.reveal { transition-delay: 0.25s; }

@media (max-width: 991px) {
  .director-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .director-pics { gap: 1rem; margin-bottom: 1.5rem; }
  .director-img-wrap { min-height: 320px; height: auto; }
  .director-info { text-align: center; height: auto; display: block; }
  .director-quote { padding-left: 1.5rem; border-left: 3px solid var(--accent-color); text-align: left; margin: 2rem 0; font-size: 1.1rem; }
  .signature-block { margin-top: 2rem; }
  .signature { margin: 0 auto; width: fit-content; }
}




/* ==========================================================================
   FAQ ACCORDION & TIMELINE
   ========================================================================== */
.faq-container { width: 100%; margin-top: 2rem; }
.faq-item { border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1.1rem; cursor: pointer; color: var(--text-primary); transition: color var(--transition-smooth); }
.faq-question:hover { color: var(--accent-color); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition-smooth); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-secondary); }
.faq-answer p { margin-top: 1rem; margin-bottom: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 300px; }

.timeline { position: relative; padding-left: 2rem; border-left: 2px solid var(--border-color); margin-top: 3rem; }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot { position: absolute; left: -2.65rem; top: 0; width: 20px; height: 20px; background: var(--surface-color); border: 3px solid var(--accent-color); border-radius: 50%; }
.timeline-date { font-weight: 600; color: var(--accent-color); margin-bottom: 0.5rem; display: block; }

/* ==========================================================================
   FORMS & FOOTER
   ========================================================================== */
.form-input { width: 100%; padding: 1rem 1.5rem; background-color: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-main); font-size: 1rem; color: var(--text-primary); transition: var(--transition-smooth); margin-bottom: 1.5rem; }
.form-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px var(--accent-light); }
label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }

.footer { background-color: var(--text-primary); color: #CBD5E1; padding: 6rem 0 2rem; } /* V8.8 Standardized Professional Spacing */
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 3rem; margin-bottom: 4rem; border-bottom: 1px solid #334155; padding-bottom: 3rem; }
.footer h3 { color: white; font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer p { color: #94A3B8; margin-bottom: 1rem;}
.footer ul li { margin-bottom: 1rem; }
.footer ul a:hover { color: white; }

.whatsapp-fab { position: fixed; bottom: 2rem; right: 2rem; width: 60px; height: 60px; background-color: #25D366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); z-index: 900; transition: var(--transition-smooth); }
.whatsapp-fab:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5); }

/* ==========================================================================
   GALLERY MASTERCLASS (V11.0)
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.gallery-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-card:hover .card-label {
  transform: translateY(0);
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.active {
  display: flex;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.close-lightbox:hover {
  opacity: 1;
}

@media (max-width: 991px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.badge {
  display: inline-block; padding: 0.5rem 1rem; border-radius: 2rem; background-color: var(--accent-light); color: var(--accent-hover); font-weight: 600; font-size: 0.875rem; text-transform: uppercase; margin-bottom: 2rem;
}

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .span-4 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
  .grid-2 { grid-template-columns: 1fr; }
  .narrative-text-block { text-align: center; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .ed-title { font-size: 3rem; text-align: center; margin-left: auto; margin-right: auto; }
  .ed-badge { margin-left: auto; margin-right: auto; }
  .hero-action-row { justify-content: center !important; }
  .ed-hero p { margin-left: auto; margin-right: auto; }
  
  .css-blob { width: 80%; height: 80%; top: 10%; right: 10%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .span-4, .span-6, .span-8, .span-12 { grid-column: span 12 !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .container { padding: 0 1.75rem; } /* V9.3 Increased padding for 'Air' feel */
  .section { padding: 4rem 0; }
  
  .ed-hero { padding-top: 6rem; flex-direction: column; text-align: center; }
  .blob-container { display: none; }
  .strip-grid { grid-template-columns: 1fr; text-align: left; }
  
  .instructor-header { text-align: center; justify-content: center; }
  .instructor-nav { display: none; } /* Hide manual arrows on mobile to save space */
  .instructor-card { width: 280px; padding: 2rem 1.5rem; }
  
  .timeline { padding-left: 1.5rem; }
}

/* ==========================================================================
   CTA SECTION (V8.8 "ELITE STANDARD" - CLEAN, INDEPENDENT & COMPACT)
   ========================================================================== */
.cta-section { 
  position: relative; 
  padding: 6rem var(--container-pad);
  background-color: #f8fafc; /* Subtle background to separate from body/footer */
  border-top: 1px solid var(--border-color);
}

.cta-card {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  color: var(--text-primary);
  padding: 4rem 2rem;
  border-radius: 24px;
  box-shadow: var(--shadow-subtle);
  text-align: center;
  border: 1px solid var(--border-color);
}

.cta-card h2 { color: var(--text-primary) !important; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; font-weight: 800; }
.cta-card p { color: var(--text-secondary) !important; margin: 0 auto 2.5rem; max-width: 700px; font-size: 1.1rem; line-height: 1.6; }

.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-blue { background: var(--accent-color); color: white; border: none; padding: 1.125rem 2.5rem; font-weight: 700; border-radius: 12px; transition: all 0.3s ease; }
.btn-cta-outline-blue { background: transparent; color: var(--accent-color); border: 2px solid var(--accent-color); padding: 1.125rem 2.5rem; font-weight: 700; border-radius: 12px; transition: all 0.3s ease; }
.btn-cta-blue:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(94, 91, 255, 0.2); }

@media (max-width: 768px) {
  .cta-section { padding: 4rem var(--container-pad); }
  .cta-card { padding: 3rem 1.5rem; border-radius: 16px; }
  .cta-card h2 { font-size: 1.6rem; }
}

/* ==========================================================================
   ADMISSION ENGINE STYLES (V12.0)
   ========================================================================= */
.btn-admission {
  background: var(--accent-color);
  color: white !important;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(94, 91, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn-admission:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(94, 91, 255, 0.4);
  background: var(--accent-hover);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .form-grid-2 { gap: 1.5rem; }
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.form-group { margin-bottom: 2rem; }
.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-light);
  display: inline-block;
}

.form-input:focus {
  border-color: var(--accent-color);
  background: white;
}

/* ==========================================================================
   IMPACT SECTION — APPLE-STYLE ANIMATION & COUNTER CARDS
   ========================================================================== */

/* Card base */
.impact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2.25rem 1.5rem;
  text-align: center;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.impact-card:hover {
  background: rgba(94, 91, 255, 0.15);
  border-color: rgba(94, 91, 255, 0.6);
  transform: translateY(-7px);
  box-shadow: 0 0 32px rgba(94, 91, 255, 0.2), 0 16px 40px rgba(0, 0, 0, 0.3);
}

.impact-card:hover .impact-num {
  color: white;
}

.impact-card:hover .impact-label {
  color: #e0e7ff;
}

.impact-card:hover .impact-sub {
  color: #a5b4fc;
}

.impact-num {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.impact-label {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 0.6rem;
}

.impact-sub {
  color: #64748B;
  font-size: 0.82rem;
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
}

/* Apple-style reveal: starts invisible + shifted down */
.impact-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.impact-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   LEADERSHIP SECTION — BOXY SPLIT LAYOUT
   ========================================================================== */

.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.leader-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.leader-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.leader-card:hover {
  border-color: rgba(94, 91, 255, 0.5);
  transform: translateY(-4px);
}

.leader-img-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.leader-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(105%);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.leader-card:hover .leader-img-box img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(105%);
}

.leader-card-info {
  padding: 1rem 1.25rem 1.25rem;
}

.leader-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  display: block;
  margin-bottom: 0.3rem;
}

.leader-card-name {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.leader-info {
  display: flex;
  flex-direction: column;
}

.leader-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.leader-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.leader-highlight-item i {
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Apple-style leader reveal */
.leader-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.leader-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .leader-grid { grid-template-columns: 1fr; gap: 3rem; }
  .leader-cards { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .leader-cards { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .leader-highlights { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TESTIMONIAL SECTION — PREMIUM SCROLLING MARQUEE
   ========================================================================== */

.testi-track-wrap {
  overflow: hidden;
  position: relative;
  /* Fade edges left & right */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testi-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: testi-scroll 30s linear infinite;
}

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

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

.testi-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem 2rem 1.75rem;
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.testi-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 32px rgba(94, 91, 255, 0.12);
  transform: translateY(-4px);
}

.testi-stars {
  color: #FBBF24;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: auto;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.testi-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.testi-role {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

@media (max-width: 768px) {
  .testi-card { width: 280px; padding: 1.5rem; }
}
