/* ============================================================
   Concept Institute — Enhanced Design System
   /assets/css/style.css  (v2 — UI Enhancement)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------ */
:root {
  /* Brand colors */
  --color-primary:       #0B4F36;
  --color-primary-dark:  #07321F;
  --color-primary-light: #136344;
  --color-accent:        #C65D34;
  --color-accent-light:  #D97B55;
  --color-gold:          #D4A24C;
  --color-gold-light:    #E8C07A;

  /* Backgrounds */
  --color-bg:            #FAF7F0;
  --color-bg-raised:     #FFFFFF;
  --color-bg-subtle:     #F3EFE5;
  --color-bg-dark:       #07321F;

  /* Text */
  --color-text:          #1E2521;
  --color-text-muted:    #5A6359;
  --color-text-light:    #8A9690;

  /* Borders */
  --color-border:        rgba(30, 37, 33, 0.10);
  --color-border-strong: rgba(30, 37, 33, 0.22);

  /* Gradients */
  --gradient-hero:       linear-gradient(135deg, #07321F 0%, #0B4F36 50%, #136344 100%);
  --gradient-card-top:   linear-gradient(to bottom, rgba(11,79,54,0.04), transparent 60%);
  --gradient-gold:       linear-gradient(135deg, #D4A24C, #E8C07A);
  --gradient-accent:     linear-gradient(135deg, #C65D34, #D97B55);

  /* Fonts */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shape */
  --radius-sm:   8px;
  --radius-card: 16px;
  --radius-lg:   24px;

  /* Shadows */
  --shadow-sm:         0 1px 4px rgba(7, 50, 31, 0.06);
  --shadow-card:       0 4px 20px rgba(7, 50, 31, 0.08), 0 1px 4px rgba(7,50,31,0.04);
  --shadow-card-hover: 0 12px 36px rgba(7, 50, 31, 0.14), 0 2px 8px rgba(7,50,31,0.06);
  --shadow-btn:        0 4px 14px rgba(11, 79, 54, 0.30);
  --shadow-btn-accent: 0 4px 14px rgba(198, 93, 52, 0.35);

  /* Layout */
  --container-max: 1180px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;
}

/* ------------------------------------------------------------
   2. Reset / base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, var(--text-6xl)); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4vw, var(--text-4xl)); font-weight: 600; }
h3 { font-size: clamp(1.35rem, 3vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); color: var(--color-text); line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.eyebrow--light { color: var(--color-gold-light); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section          { padding: var(--space-20) 0; }
.section--compact { padding: var(--space-12) 0; }

/* Section headings with decorative underline accent */
.section-heading {
  margin-bottom: var(--space-12);
}
.section-heading h2 {
  position: relative;
  display: inline-block;
}
.section-heading h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin-top: var(--space-3);
}
.section-heading--center { text-align: center; }
.section-heading--center h2::after { margin-left: auto; margin-right: auto; }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-16) 0;
}

/* ------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-accent);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-lg { padding: 1rem 2.25rem; font-size: var(--text-base); }
.btn-sm { padding: 0.45rem 1rem; font-size: var(--text-xs); }

/* ------------------------------------------------------------
   5. Rank Card (Signature Element)
   ------------------------------------------------------------ */
.rank-card {
  position: relative;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  overflow: hidden;
}

/* Subtle top gradient stripe */
.rank-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.rank-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.rank-card:hover::after { opacity: 1; }

/* Corner stamp */
.rank-card::before {
  content: '';
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  opacity: 0.45;
}

.rank-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-2);
}

.rank-card__stat {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

/* Category tinted left border variant */
.rank-card--jee   { border-left: 3px solid #2563EB; }
.rank-card--neet  { border-left: 3px solid #7C3AED; }
.rank-card--foundation { border-left: 3px solid var(--color-gold); }

/* ------------------------------------------------------------
   6. Badges (category + status)
   ------------------------------------------------------------ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-jee        { background: rgba(37,99,235,0.1);  color: #1D4ED8; }
.badge-neet       { background: rgba(124,58,237,0.1); color: #6D28D9; }
.badge-foundation { background: rgba(212,162,76,0.15);color: #92680B; }
.badge-new        { background: rgba(212,162,76,0.15);color: #92680B; }
.badge-active     { background: rgba(11,79,54,0.10);  color: var(--color-primary); }
.badge-inactive   { background: rgba(30,37,33,0.07);  color: var(--color-text-muted); }
.badge-contacted  { background: rgba(11,79,54,0.10);  color: var(--color-primary); }
.badge-converted  { background: rgba(11,79,54,0.18);  color: var(--color-primary-dark); }
.badge-closed     { background: rgba(30,37,33,0.07);  color: var(--color-text-muted); }

/* ------------------------------------------------------------
   7. Header / Nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(7,50,31,0.08);
}

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  max-width: 80%;
}

.site-header__logo img { height: 46px; }

.site-nav { display: flex; align-items: center; gap: var(--space-1); }

.site-nav a {
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.site-nav a:hover {
  color: var(--color-primary);
  background: rgba(11,79,54,0.07);
}
.site-nav a.is-active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(11,79,54,0.09);
}

.site-header__cta { display: flex; align-items: center; gap: var(--space-3); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--color-primary);
  padding: var(--space-2);
  line-height: 1;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg-raised);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) var(--space-4) var(--space-4);
    box-shadow: 0 8px 24px rgba(7,50,31,0.10);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .site-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .site-header__cta .btn { display: none; }
}

/* ------------------------------------------------------------
   8. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(237, 234, 226, 0.85);
  padding: var(--space-20) 0 var(--space-8);
  margin-top: var(--space-24);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative blob */
.site-footer::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(212,162,76,0.06);
  pointer-events: none;
}

.site-footer a { color: rgba(237,234,226,0.8); transition: color var(--transition-fast); }
.site-footer a:hover { color: var(--color-gold-light); }

.site-footer h4 {
  color: #fff;
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
}
@media (max-width: 768px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); } }

.site-footer ul li {
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
}

.site-footer__bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  color: rgba(237,234,226,0.4);
}

/* ------------------------------------------------------------
   9. Hero (Homepage)
   ------------------------------------------------------------ */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-24) 0 var(--space-20);
  position: relative;
  overflow: hidden;
}

/* Decorative grid lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Gold glow blob top-right */
.hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,76,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.hero__copy { max-width: 680px; }

.hero__copy h1 {
  color: #fff;
  font-weight: 900;
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero__copy h1 em {
  font-style: normal;
  color: var(--color-gold-light);
}

.hero__copy > p {
  color: rgba(255,255,255,0.80);
  font-size: var(--text-lg);
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Hero trust strip */
.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
}

.hero__trust-item strong {
  color: var(--color-gold-light);
  font-family: var(--font-mono);
  font-size: var(--text-base);
}

/* ------------------------------------------------------------
   10. Stats section
   ------------------------------------------------------------ */
.stats {
  background: var(--color-bg-subtle);
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-top: 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-1);
}

.stats__item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--color-border);
}
.stats__item:last-child { border-right: none; }

.stats__item .rank-card__stat {
  font-size: var(--text-4xl);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.stats__item .rank-card__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stats__item:nth-child(2n) { border-bottom: 1px solid var(--color-border); }
  .stats__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ------------------------------------------------------------
   11. Course cards / preview
   ------------------------------------------------------------ */
.courses-preview .section-heading { margin-top: var(--space-12); }

.course-track { margin-bottom: var(--space-12); }
.course-track__heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.course-track__heading h3 { margin: 0; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.course-grid .rank-card { display: flex; flex-direction: column; }
@media (max-width: 900px) { .course-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .course-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   12. Toppers / Results
   ------------------------------------------------------------ */
.toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .toppers-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .toppers-grid { grid-template-columns: 1fr; } }

.topper-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 3px solid var(--color-bg-subtle);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.toppers-preview__cta { text-align: center; margin-top: var(--space-10); }

/* ------------------------------------------------------------
   13. Page hero (inner pages)
   ------------------------------------------------------------ */
.page-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--space-4);
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-lg);
  max-width: 520px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   14. Filter tabs
   ------------------------------------------------------------ */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-10);
  margin-top: var(--space-8);
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-5);
  border: 1.5px solid var(--color-border-strong);
  border-radius: 999px;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(11,79,54,0.05);
}

.filter-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(11,79,54,0.25);
}

/* Year dropdown */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.filter-select {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-bg-raised);
  color: var(--color-text);
  cursor: pointer;
}

/* ------------------------------------------------------------
   15. Course listing grid
   ------------------------------------------------------------ */
.course-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .course-listing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .course-listing-grid { grid-template-columns: 1fr; } }

.course-listing-grid .rank-card { display: flex; flex-direction: column; }
.course-listing-grid .rank-card__fee {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-accent);
}

/* ------------------------------------------------------------
   16. Course detail
   ------------------------------------------------------------ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

.course-detail__header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 768px) { .course-detail__header { grid-template-columns: 1fr; } }

.course-detail__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}
.course-detail__meta .rank-card__stat { font-size: var(--text-xl); }
.course-detail__toppers { margin-top: var(--space-20); }

/* ------------------------------------------------------------
   17. Faculty
   ------------------------------------------------------------ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .faculty-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .faculty-grid { grid-template-columns: 1fr; } }

.faculty-grid .topper-photo {
  width: 88px;
  height: 88px;
}

.rank-card__qualification {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.rank-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   18. Testimonials
   ------------------------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

.star-rating {
  color: var(--color-gold);
  font-size: var(--text-base);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  display: block;
}

.testimonial-card__course {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.testimonial-card__message {
  font-style: italic;
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.75;
  position: relative;
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-gold);
}

.testimonial-card__name {
  margin-top: var(--space-5);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
}

/* ------------------------------------------------------------
   19. Gallery
   ------------------------------------------------------------ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(7,50,31,0.90), transparent);
  color: #fff;
  font-size: var(--text-xs);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-within .gallery-item__caption { opacity: 1; }

/* ------------------------------------------------------------
   20. Contact
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { margin-top: var(--space-6); }
.contact-info-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list .eyebrow { display: block; margin-bottom: var(--space-1); }

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: var(--space-8);
  box-shadow: var(--shadow-card);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ------------------------------------------------------------
   21. Forms
   ------------------------------------------------------------ */
.form-group { margin-bottom: var(--space-5); }

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-primary-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem var(--space-4);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--color-bg-raised);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11,79,54,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-light); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  line-height: 1.5;
}

.alert-success {
  background: rgba(11,79,54,0.07);
  border: 1px solid rgba(11,79,54,0.25);
  color: var(--color-primary-dark);
}

.alert-error {
  background: rgba(198,93,52,0.07);
  border: 1px solid rgba(198,93,52,0.30);
  color: #8B3012;
}

/* ------------------------------------------------------------
   22. Empty state
   ------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: var(--space-20) 0;
  color: var(--color-text-muted);
}

.empty-state p { max-width: 380px; margin: 0 auto var(--space-6); }

/* ------------------------------------------------------------
   23. Results grid
   ------------------------------------------------------------ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .results-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .results-grid { grid-template-columns: 1fr; } }

.results-grid .rank-card__stat { font-size: var(--text-xl); }

.rank-card__marks {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   New Feature Sections (v2 additions)
   ============================================================ */

/* ------------------------------------------------------------
   USP / Why Choose Us
   ------------------------------------------------------------ */
.usp-section {
  background: var(--color-primary-dark);
  color: #fff;
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.usp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.usp-section .section-heading h2 { color: #fff; }
.usp-section .section-heading h2::after { background: var(--gradient-gold); }
.usp-section .eyebrow { color: var(--color-gold-light); }

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .usp-grid { grid-template-columns: 1fr; } }

.usp-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  transition: background var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.usp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.usp-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}
.usp-card:hover::before { opacity: 1; }

.usp-card__icon {
  font-size: 1.75rem;
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
  display: block;
  line-height: 1;
}

.usp-card h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.usp-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

/* ------------------------------------------------------------
   Homepage Toppers / Latest Results Section
   ------------------------------------------------------------ */
.homepage-toppers { background: var(--color-bg-subtle); }

.homepage-toppers .toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .homepage-toppers .toppers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .homepage-toppers .toppers-grid { grid-template-columns: 1fr; } }

.topper-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.topper-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.topper-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.topper-card__photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--color-bg-subtle);
  box-shadow: 0 0 0 2px var(--color-gold);
  display: block;
}

.topper-card__photo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient-hero);
  margin: 0 auto var(--space-4);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.topper-card__exam {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.topper-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
}

.topper-card__rank {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.topper-card__year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------
   Results Timeline
   ------------------------------------------------------------ */
.results-timeline { max-width: 880px; margin: 0 auto; }

.timeline-year {
  position: relative;
  margin-bottom: var(--space-8);
}

.timeline-year__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  user-select: none;
  padding: var(--space-4) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-card);
  transition: background var(--transition-fast);
}

.timeline-year__header:hover { background: var(--color-primary-light); }

.timeline-year__label {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.timeline-year__count {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  flex: 1;
}

.timeline-year__toggle {
  font-size: var(--text-lg);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.timeline-year.is-open .timeline-year__toggle { transform: rotate(180deg); }

.timeline-year__body {
  display: none;
  padding-top: var(--space-4);
}
.timeline-year.is-open .timeline-year__body { display: block; }

.timeline-year__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 768px) { .timeline-year__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .timeline-year__grid { grid-template-columns: 1fr; } }

/* Open first year by default (JS will do this) */

/* ------------------------------------------------------------
   Course Comparison Table
   ------------------------------------------------------------ */
.comparison-section { margin-top: var(--space-16); }

.comparison-section h3 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.comparison-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg-raised);
  font-size: var(--text-sm);
  min-width: 520px;
}

.comparison-table th {
  padding: var(--space-4) var(--space-5);
  text-align: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.comparison-table th:first-child { text-align: left; background: var(--color-primary-dark); }
.comparison-table th:last-child  { border-right: none; }

.comparison-table td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  vertical-align: middle;
  text-align: center;
  color: var(--color-text);
}
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--color-text-muted); background: var(--color-bg-subtle); }
.comparison-table td:last-child  { border-right: none; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr:hover td { background: rgba(11,79,54,0.03); }
.comparison-table tbody tr:hover td:first-child { background: var(--color-bg-subtle); }

.comparison-check { color: var(--color-primary); font-size: var(--text-base); }
.comparison-cross { color: var(--color-text-light); }

/* ------------------------------------------------------------
   Gallery Lightbox
   ------------------------------------------------------------ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.lightbox.is-open { display: flex; }

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lightbox__caption {
  margin-top: var(--space-3);
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 480px;
}

.lightbox__close {
  position: fixed;
  top: var(--space-4);
  right: var(--space-5);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
  line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
  line-height: 1;
}
.lightbox__prev { left: var(--space-4); }
.lightbox__next { right: var(--space-4); }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.2); }

.lightbox__counter {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

/* Gallery items show cursor pointer when lightbox enabled */
.gallery-item--lightbox { cursor: zoom-in; }

/* ------------------------------------------------------------
   FAQ Page
   ------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-3);
  overflow: hidden;
  background: var(--color-bg-raised);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}
.faq-item:hover { box-shadow: var(--shadow-card); }

.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-primary-dark);
  line-height: 1.4;
  transition: background var(--transition-fast);
}
.faq-item__question:hover { background: var(--color-bg-subtle); }

.faq-item__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-bg-subtle);
  border: 1.5px solid var(--color-border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--color-primary);
  transition: transform var(--transition-fast), background var(--transition-fast);
  line-height: 1;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.faq-item__answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  border-top: 1px solid var(--color-border);
}
.faq-item.is-open .faq-item__answer { display: block; }

/* ------------------------------------------------------------
   Admission Process Page
   ------------------------------------------------------------ */
.admission-steps { max-width: 800px; margin: 0 auto; }

.admission-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
}

/* Connecting line between steps */
.admission-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  width: 2px;
  height: calc(100% - 16px);
  background: linear-gradient(to bottom, var(--color-gold), rgba(212,162,76,0.15));
}

.admission-step__number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: var(--color-gold-light);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(11,79,54,0.25);
  position: relative;
  z-index: 1;
}

.admission-step__content {
  padding-top: var(--space-2);
  padding-bottom: var(--space-6);
}

.admission-step__icon {
  font-size: var(--text-xl);
  color: var(--color-accent);
  margin-bottom: var(--space-2);
  display: block;
}

.admission-step__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.admission-step__desc {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin: 0;
}

/* CTA below steps */
.admission-cta {
  text-align: center;
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

/* ------------------------------------------------------------
   Mid-page CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--gradient-hero);
  color: #fff;
  padding: var(--space-16) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 { color: #fff; font-size: clamp(1.5rem, 4vw, var(--text-3xl)); margin-bottom: var(--space-3); }
.cta-banner p  { color: rgba(255,255,255,0.75); font-size: var(--text-lg); margin-bottom: var(--space-8); }
.cta-banner__actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Frontend Enhancement Pass 2 — Spacing, Typography, Polish
   ============================================================ */

/* ------------------------------------------------------------
   Fix: content touching page-hero bottom
   .section after .page-hero had padding-top:0 inline — 
   add proper top spacing via margin top on first child section
   ------------------------------------------------------------ */
.page-hero + .section,
.page-hero + section {
  padding-top: var(--space-16) !important;
}

/* Better first section after hero on homepage */
.hero + .stats { margin-top: 0; }
.stats + .section { padding-top: var(--space-20); }

/* Ensure no section touches the sticky header on scroll */
.site-header + * { /* already handled by sticky */ }

/* ------------------------------------------------------------
   Typography improvements
   ------------------------------------------------------------ */
/* Smoother rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Better paragraph readability */
p { orphans: 3; widows: 3; }

/* Better link defaults in content */
.rank-card a, .course-grid a { text-decoration: none; }

/* Eyebrow spacing from h2 */
.eyebrow + h1,
.eyebrow + h2 { margin-top: var(--space-2); }

/* ------------------------------------------------------------
   Nav improvements — better call button on mobile
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .site-header__cta .btn { display: none; }
  .site-header__cta { gap: var(--space-2); }
}

/* Better header logo height on mobile */
@media (max-width: 600px) {
  .site-header__logo img { height: 36px; }
  .site-header .container { padding-top: var(--space-3); padding-bottom: var(--space-3); max-width: 100%; }
}

/* ------------------------------------------------------------
   Homepage — hero mobile spacing
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .hero { padding: var(--space-16) 0 var(--space-12); }
  .hero__copy h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero__trust { gap: var(--space-4); }
  .hero__trust-item { font-size: var(--text-xs); }
  .hero__actions { flex-direction: column; gap: var(--space-3); }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .stats__grid { grid-template-columns: repeat(2,1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid var(--color-border); }
  .stats__item:nth-child(2n) { border-right: none; }
  .stats__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ------------------------------------------------------------
   Page hero — better mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .page-hero { padding: var(--space-12) 0 var(--space-10); }
  .page-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .page-hero p  { font-size: var(--text-base); }

  .page-hero + .section,
  .page-hero + section { padding-top: var(--space-10) !important; }
}

/* ------------------------------------------------------------
   Sections — better mobile spacing
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .section          { padding: var(--space-12) 0; }
  .section--compact { padding: var(--space-8)  0; }
  .container        { padding: 0 var(--space-4); }

  .section-heading          { margin-bottom: var(--space-8); }
  .section-heading h2::after{ width: 36px; height: 2px; }

  .usp-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .usp-section { padding: var(--space-12) 0; }

  .course-grid     { grid-template-columns: 1fr; gap: var(--space-4); }
  .toppers-grid    { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .faculty-grid    { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .results-grid    { grid-template-columns: 1fr; }
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }

  .contact-grid    { grid-template-columns: 1fr; gap: var(--space-8); }
  .course-detail__header { grid-template-columns: 1fr; }
  .course-detail__meta { grid-template-columns: 1fr 1fr; }

  .cta-banner { padding: var(--space-12) 0; }
  .cta-banner h2  { font-size: var(--text-2xl); }
  .cta-banner p   { font-size: var(--text-base); }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .cta-banner__actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}

@media (max-width: 480px) {
  .toppers-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   Footer — tighter mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .site-footer { padding: var(--space-12) 0 var(--space-6); margin-top: var(--space-16); }
  .site-footer__grid { gap: var(--space-6); }
  .site-footer__bottom { margin-top: var(--space-8); padding-top: var(--space-4); }
}

/* ------------------------------------------------------------
   Rank cards — better mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .rank-card { padding: var(--space-5); }
  .rank-card__stat { font-size: var(--text-xl); }
}

/* ------------------------------------------------------------
   FAQ page — mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .faq-list { max-width: 100%; }
  .faq-item__question { padding: var(--space-4); font-size: 0.9375rem; }
  .faq-item__answer   { padding: 0 var(--space-4) var(--space-4); }
}

/* ------------------------------------------------------------
   Admission page — mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .admission-steps  { max-width: 100%; }
  .admission-step   { gap: var(--space-4); }
  .admission-step::after { left: 22px; }
  .admission-step__number { width: 46px; height: 46px; font-size: var(--text-lg); }
  .admission-cta { padding: var(--space-6); }
}

/* ------------------------------------------------------------
   Filter tabs — mobile wrap nicely
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .filter-tabs { gap: var(--space-2); margin-bottom: var(--space-6); }
  .filter-tab  { font-size: 0.65rem; padding: var(--space-2) var(--space-3); }
}

/* ------------------------------------------------------------
   About page — mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .course-detail__header.about-grid { gap: var(--space-6); }
}

/* ------------------------------------------------------------
   Comparison table — mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .comparison-section { margin-top: var(--space-8); }
  .comparison-table th,
  .comparison-table td { padding: var(--space-2) var(--space-3); font-size: var(--text-xs); }
}

/* ------------------------------------------------------------
   Timeline — mobile
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .timeline-year__label { font-size: var(--text-lg); }
  .timeline-year__grid { grid-template-columns: 1fr; }
  .timeline-year__header { padding: var(--space-3) var(--space-4); }
}

/* ------------------------------------------------------------
   Gallery lightbox — mobile
   ------------------------------------------------------------ */
@media (max-width: 600px) {
  .lightbox__prev { left: var(--space-2); width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox__next { right: var(--space-2); width: 38px; height: 38px; font-size: 1.2rem; }
  .lightbox__close{ top: var(--space-2); right: var(--space-2); }
  .lightbox__inner{ max-width: 100vw; padding: 0 var(--space-2); }
}

/* ------------------------------------------------------------
   Breadcrumb — more visible
   ------------------------------------------------------------ */
.breadcrumb { margin-bottom: var(--space-8); }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }

/* ------------------------------------------------------------
   Course card link hover state
   ------------------------------------------------------------ */
a.rank-card:hover h3,
a.rank-card:hover h4 { color: var(--color-primary); }

/* ------------------------------------------------------------
   Topper card in results page
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  .topper-card { padding: var(--space-4); }
  .topper-card__photo { width: 60px; height: 60px; }
  .topper-card__photo-placeholder { width: 60px; height: 60px; font-size: var(--text-lg); }
  .topper-card__rank { font-size: var(--text-xl); }
}

/* ------------------------------------------------------------
   Scroll padding for sticky header (so anchors don't hide behind header)
   ------------------------------------------------------------ */
html { scroll-padding-top: 70px; }

/* ============================================================
   Hero Slider
   ============================================================ */

/* Slides container — sits behind the gradient/content */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Each slide image */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.hero-slide.is-active { opacity: 1; }

/* Dark green gradient overlay on top of image */
.hero-slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7, 50, 31, 0.86) 0%,
    rgba(11, 79, 54, 0.72) 60%,
    rgba(19, 99, 68, 0.60) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Ensure hero content sits above slides and overlay */
.hero__inner { position: relative; z-index: 2; }
.hero::before,
.hero::after { z-index: 0; }

/* Slider dots nav */
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--color-gold);
  width: 24px;
}

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
}
.hero-arrow--prev { left: 1.25rem; }
.hero-arrow--next { right: 1.25rem; }

/* Hide arrows if only 1 slide */
.hero--single .hero-arrow,
.hero--single .hero-dots { display: none; }

@media (max-width: 768px) {
  .hero-arrow { width: 36px; height: 36px; font-size: 0.9rem; }
  .hero-arrow--prev { left: 0.75rem; }
  .hero-arrow--next { right: 0.75rem; }
  .hero-dots { bottom: 1.25rem; }
}

/* ============================================================
   Hero Split Layout + Image Slider
   ============================================================ */

/* Split hero — text left, image right */
.hero--split .hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero--split .hero__copy { max-width: none; }

/* Image panel (right side) */
.hero__image-panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 0 0 1px rgba(212,162,76,0.25),
    0 24px 64px rgba(0,0,0,0.35);
}

/* Slider container */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

/* Individual slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.is-active { opacity: 1; }

/* Single image (no slider) */
.hero-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* Subtle overlay on image panel */
.hero__image-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(7,50,31,0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  border-radius: 20px;
  z-index: 1;
}

/* Gold corner accent */
.hero__image-panel::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(212,162,76,0.4), transparent 50%);
  z-index: -1;
}

/* Slider dots */
.hero-slider__dots {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 10;
}

.hero-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.3s;
}
.hero-slider__dot.is-active {
  background: var(--color-gold-light);
  width: 24px;
  border-radius: 4px;
}

/* Slider arrows */
.hero-slider__prev,
.hero-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 10;
  transition: background 0.2s;
  opacity: 0;
}
.hero-slider__prev { left: var(--space-3); }
.hero-slider__next { right: var(--space-3); }
.hero-slider:hover .hero-slider__prev,
.hero-slider:hover .hero-slider__next { opacity: 1; }
.hero-slider__prev:hover,
.hero-slider__next:hover { background: rgba(255,255,255,0.28); }

/* Mobile — stack vertically */
@media (max-width: 900px) {
  .hero--split .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero__image-panel {
    aspect-ratio: 16 / 9;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-slider__prev,
  .hero-slider__next { opacity: 1; }
}

@media (max-width: 600px) {
  .hero__image-panel { aspect-ratio: 4 / 3; }
}

/* Footer two-column bottom bar */
.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  color: rgba(237,234,226,0.45);
}

/* ============================================================
   Enhancement Pass 3 — Cards, Grids, Eyebrow, Icons
   ============================================================ */

/* ------------------------------------------------------------
   Eyebrow — always block, clearly above heading
   ------------------------------------------------------------ */
.eyebrow {
  display: block !important;
  margin-bottom: var(--space-3);
}

/* Section heading: eyebrow sits on its own line above h2 */
.section-heading .eyebrow,
.page-hero .eyebrow,
.hero__copy .eyebrow,
.usp-section .eyebrow,
.admission-cta .eyebrow {
  display: block !important;
  margin-bottom: var(--space-2);
}

/* ------------------------------------------------------------
   Course Cards — enhanced "Pick Your Track"
   ------------------------------------------------------------ */
.course-grid .rank-card,
.course-listing-grid .rank-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.course-card__top {
  padding: var(--space-5) var(--space-5) var(--space-4);
  flex: 1;
}

.course-card__bottom {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg-subtle);
  font-size: var(--text-sm);
}

.course-card__cta {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.15s ease;
}

.course-grid .rank-card:hover .course-card__cta,
.course-listing-grid .rank-card:hover .course-card__cta { gap: 8px; }

.course-card__fee-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-accent);
}

/* Category color bars */
.rank-card--jee       { border-top: 3px solid #2563EB; }
.rank-card--neet      { border-top: 3px solid #7C3AED; }
.rank-card--foundation{ border-top: 3px solid var(--color-gold); }

/* ------------------------------------------------------------
   Topper Cards — enhanced "Our Rank Holders"
   ------------------------------------------------------------ */
.toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.topper-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5) var(--space-5);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Subtle top bar */
.topper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.topper-card--jee::before       { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.topper-card--neet::before      { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.topper-card--foundation::before{ background: var(--gradient-gold); }

.topper-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.topper-card__photo {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-4);
  border: 3px solid var(--color-bg-subtle);
  box-shadow: 0 0 0 2px var(--color-gold);
  display: block;
}

.topper-card__photo-placeholder {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--gradient-hero);
  margin-bottom: var(--space-4);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-light);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--color-gold);
}

.topper-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.topper-card__exam-badge {
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

/* Rank/Score display */
.topper-card__result {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  width: 100%;
  text-align: center;
}

.topper-card__result-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 2px;
}

.topper-card__result-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1.1;
}

.topper-card__result-value--neet { color: #6D28D9; }

.topper-card__year {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
  display: block;
}

/* Mobile: 2 columns for topper grid */
@media (max-width: 768px) {
  .toppers-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .homepage-toppers .toppers-grid { grid-template-columns: repeat(2, 1fr); }
  .topper-card__photo,
  .topper-card__photo-placeholder { width: 60px; height: 60px; font-size: var(--text-xl); }
  .topper-card__result-value { font-size: var(--text-xl); }
  .topper-card__name { font-size: var(--text-base); }
}
@media (max-width: 400px) {
  .toppers-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   USP Cards — replace symbols with icon slot
   ------------------------------------------------------------ */
.usp-card__icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(212,162,76,0.14);
  border: 1px solid rgba(212,162,76,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.usp-card__icon-wrap svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------
   Admission Steps — icon styling
   ------------------------------------------------------------ */
.admission-step__icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(198,93,52,0.10);
  border: 1px solid rgba(198,93,52,0.18);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  flex-shrink: 0;
}

.admission-step__icon-wrap svg { width: 22px; height: 22px; }

/* ============================================================
   Enhancement Pass 4 — Course Cards Redesign, Topper Slider,
   Faculty Cards, Animations
   ============================================================ */

/* ------------------------------------------------------------
   Scroll-triggered animations
   ------------------------------------------------------------ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
              transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }

.anim-fade-up:nth-child(2) { transition-delay: 0.08s; }
.anim-fade-up:nth-child(3) { transition-delay: 0.16s; }
.anim-fade-up:nth-child(4) { transition-delay: 0.24s; }
.anim-fade-up:nth-child(5) { transition-delay: 0.32s; }
.anim-fade-up:nth-child(6) { transition-delay: 0.40s; }

.anim-fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.anim-fade-in.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up, .anim-fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   Course Cards — Redesigned with colored header
   ------------------------------------------------------------ */

/* Reset old conflicting styles */
.course-grid .rank-card,
.course-listing-grid .rank-card {
  padding: 0 !important;
  overflow: hidden;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-raised);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-card);
}
.course-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-5px);
}

/* Gradient header */
.course-card__header {
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

/* Background gradient per category */
.course-card__header--jee {
  background: linear-gradient(145deg, #1E3A8A 0%, #2563EB 70%, #3B82F6 100%);
}
.course-card__header--neet {
  background: linear-gradient(145deg, #4C1D95 0%, #7C3AED 70%, #8B5CF6 100%);
}
.course-card__header--foundation {
  background: linear-gradient(145deg, #07321F 0%, #0B4F36 70%, #136344 100%);
}

/* Decorative grid on header */
.course-card__header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Glow blob */
.course-card__header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.course-card__category-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.course-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

/* Card body */
.course-card__body {
  padding: 1.125rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.course-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.course-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.course-card__meta-item svg { flex-shrink: 0; }

.course-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fee tag */
.course-card__fee {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-accent);
  margin-top: auto;
}

/* Card footer */
.course-card__footer {
  padding: 0.875rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-card__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: gap 0.15s ease, color 0.15s ease;
}
.course-card:hover .course-card__cta { gap: var(--space-3); color: var(--color-primary-light); }

/* Course grid for homepage */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* Course listing grid */
.course-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .course-grid,
  .course-listing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .course-grid,
  .course-listing-grid { grid-template-columns: 1fr; }
  .course-card__header { min-height: 110px; }
}

/* ------------------------------------------------------------
   Topper Slider (homepage only — 2.5 cards visible)
   ------------------------------------------------------------ */
.toppers-slider-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--space-4));
}

.toppers-slider-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-3) var(--space-4) var(--space-5);
  scroll-padding-left: var(--space-4);
}
.toppers-slider-track::-webkit-scrollbar { display: none; }

.toppers-slider-track .topper-card {
  min-width: calc(100% / 2.5 - var(--space-4));
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Slider nav buttons */
.toppers-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.slider-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-bg-raised);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.slider-nav-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.slider-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.slider-dots {
  display: flex; gap: var(--space-2); align-items: center;
}
.slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-border-strong);
  border: none; cursor: pointer; padding: 0;
  transition: background 0.2s, transform 0.2s, width 0.3s;
}
.slider-dot.is-active {
  background: var(--color-primary);
  width: 20px; border-radius: 4px;
}

@media (min-width: 1100px) {
  .toppers-slider-track .topper-card {
    min-width: calc(100% / 3 - var(--space-4));
  }
}
@media (max-width: 768px) {
  .toppers-slider-track .topper-card {
    min-width: calc(100% / 1.4 - var(--space-4));
  }
}
@media (max-width: 480px) {
  .toppers-slider-track .topper-card {
    min-width: calc(100% - var(--space-4));
  }
}

/* ------------------------------------------------------------
   Faculty Cards — Enhanced
   ------------------------------------------------------------ */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.faculty-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  display: flex;
  flex-direction: column;
}
.faculty-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

/* Photo section */
.faculty-card__photo-wrap {
  position: relative;
  background: linear-gradient(145deg, #07321F, #0B4F36);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.faculty-card__photo-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.faculty-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.faculty-card__initial {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(212,162,76,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-gold-light);
  position: relative; z-index: 1;
}

.faculty-card__subject-badge {
  position: absolute;
  bottom: var(--space-3); left: var(--space-3);
  z-index: 2;
}

/* Info section */
.faculty-card__info {
  padding: 1.125rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.faculty-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
  line-height: 1.2;
}

.faculty-card__qualification {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.faculty-card__exp {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(11,79,54,0.08);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.faculty-card__bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* Mobile: 2 col */
@media (max-width: 900px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .faculty-grid { grid-template-columns: 1fr; }
  .faculty-card__photo-wrap { aspect-ratio: 16/9; }
}

/* ------------------------------------------------------------
   Section headings — more visual distinction
   ------------------------------------------------------------ */
.section-heading h2 {
  letter-spacing: -0.02em;
}

/* USP cards on homepage — stagger animation */
.usp-grid .usp-card { transition: background 0.2s, transform 0.2s; }

/* CTA Banner — better */
.cta-banner h2 { margin-bottom: var(--space-4); }

/* ------------------------------------------------------------
   Stats strip — counter animation enhancement
   ------------------------------------------------------------ */
.stats__item .rank-card__stat {
  display: block;
  line-height: 1;
}

/* ============================================================
   About Page — Complete Redesign
   ============================================================ */

/* Stats strip */
.about-stats-strip {
  background: var(--color-primary-dark);
  padding: var(--space-10) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.about-stat {
  background: var(--color-primary-dark);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  position: relative;
}

.about-stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold-light);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.about-stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(237,234,226,0.55);
  display: block;
}

@media (max-width: 768px) {
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stat { padding: var(--space-5) var(--space-4); }
  .about-stat__value { font-size: 1.875rem; }
}

/* Story section */
.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 900px) {
  .about-story__grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

.about-story__content h2 {
  font-size: clamp(1.5rem, 3vw, var(--text-3xl));
  margin-bottom: var(--space-6);
}

.about-story__content p { color: var(--color-text-muted); line-height: 1.8; }

.about-address {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
}

.about-address__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.about-address__value { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-2); }

.about-address__phone {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}

/* Feature cards (right column) */
.about-story__features { display: flex; flex-direction: column; gap: var(--space-4); }

.about-feature-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-feature-card:hover { box-shadow: var(--shadow-card); transform: translateX(4px); }

.about-feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(212,162,76,0.12);
  border: 1px solid rgba(212,162,76,0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.about-feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-1);
}

.about-feature-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* Founder quote */
.about-founder {
  background: var(--color-primary-dark);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}
.about-founder::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.about-founder__inner {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-founder__quote-mark {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.5;
  color: var(--color-gold);
  opacity: 0.4;
  display: block;
  margin-bottom: var(--space-6);
}

.about-founder__quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  color: rgba(237,234,226,0.9);
  line-height: 1.6;
  margin: 0 0 var(--space-8);
  padding: 0;
  border: none;
}

.about-founder__attribution { }
.about-founder__name { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--color-gold-light); letter-spacing: 0.04em; }
.about-founder__title { font-size: var(--text-xs); color: rgba(237,234,226,0.45); margin-top: 4px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* About programs grid */
.about-programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 768px) { .about-programs-grid { grid-template-columns: 1fr; gap: var(--space-4); } }

.about-program-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.22s, transform 0.22s;
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  background: var(--color-bg-raised);
  position: relative;
}
.about-program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.about-program-card--jee::before       { background: linear-gradient(90deg,#2563EB,#60A5FA); }
.about-program-card--neet::before      { background: linear-gradient(90deg,#7C3AED,#A78BFA); }
.about-program-card--foundation::before{ background: var(--gradient-gold); }

.about-program-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }

.about-program-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-4);
}
.about-program-card--jee .about-program-card__icon       { background: rgba(37,99,235,0.10); color: #2563EB; }
.about-program-card--neet .about-program-card__icon      { background: rgba(124,58,237,0.10); color: #7C3AED; }
.about-program-card--foundation .about-program-card__icon{ background: rgba(11,79,54,0.10); color: var(--color-primary); }

.about-program-card__cat {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.about-program-card h3 { font-size: var(--text-xl); color: var(--color-primary-dark); margin-bottom: var(--space-2); }
.about-program-card__courses { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); flex: 1; }
.about-program-card__cta { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.06em; margin-top: auto; }

/* ============================================================
   Topper Slider — Remove arrows, fix 2.5 gap
   ============================================================ */
.toppers-slider-nav { gap: var(--space-2); }
.slider-nav-btn { display: none !important; }   /* Remove arrows */

.toppers-slider-track {
  gap: var(--space-4);           /* smaller gap */
  padding: var(--space-3) var(--space-4) var(--space-4);
}

/* Desktop: 3 cards */
@media (min-width: 1100px) {
  .toppers-slider-track .topper-card {
    min-width: calc(100% / 3 - 12px);
  }
}
/* Tablet: 2.5 cards */
@media (min-width: 600px) and (max-width: 1099px) {
  .toppers-slider-track .topper-card {
    min-width: calc(100% / 2.5 - 12px);
  }
}
/* Mobile: 1.5 cards (so 2nd card is half visible) */
@media (max-width: 599px) {
  .toppers-slider-track .topper-card {
    min-width: calc(100% / 1.5 - 10px);
  }
}

/* ============================================================
   Course Track — Horizontal scroll per track
   ============================================================ */
.course-track-scroll-wrap {
  position: relative;
  margin: 0 calc(-1 * var(--space-6));
}

.course-track-scroll {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-3) var(--space-6) var(--space-5);
  scroll-padding-left: var(--space-6);
}
.course-track-scroll::-webkit-scrollbar { display: none; }

.course-track-scroll .course-card {
  min-width: 280px;
  width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* On desktop (>= 3 cards fit without scroll) */
@media (min-width: 1000px) {
  .course-track-scroll-wrap { margin: 0; }
  .course-track-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    padding: var(--space-3) 0 var(--space-5);
    gap: var(--space-5);
  }
  .course-track-scroll .course-card {
    min-width: unset;
    width: auto;
  }
}

@media (max-width: 999px) and (min-width: 600px) {
  .course-track-scroll .course-card { min-width: 260px; width: 260px; }
}

@media (max-width: 599px) {
  .course-track-scroll { gap: var(--space-4); padding: var(--space-3) var(--space-4) var(--space-4); }
  .course-track-scroll-wrap { margin: 0 calc(-1 * var(--space-4)); }
  .course-track-scroll .course-card { min-width: 240px; width: 240px; }
}

/* ============================================================
   Course Card — Enhanced without fee dependency
   ============================================================ */
.course-card__header {
  padding: 1.625rem 1.5rem 1.375rem;
  min-height: 140px;
}

/* Always show "Explore" arrow at footer even if no fee */
.course-card__footer {
  padding: 0.875rem 1.5rem;
}

/* No-fee variant: add a decorative element instead */
.course-card__body:empty + .course-card__footer {
  padding-top: 0;
}

/* Course duration pill in header (alternate position) */
.course-card__header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.course-card__duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Card body: always show nice content */
.course-card__body { min-height: 56px; }

/* Feature tags on cards */
.course-card__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.course-card__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 2px 8px;
}

/* Course track heading with scroll hint */
.course-track__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding: 0 var(--space-1);
}
.course-track__scroll-hint {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
@media (min-width: 1000px) { .course-track__scroll-hint { display: none; } }

/* ============================================================
   Enhancement Pass 5 — Nav icons, Mobile animation,
   Masonry Gallery, Course Detail, Topper Cards
   ============================================================ */

/* ------------------------------------------------------------
   Site Nav — Desktop icons (hidden), Mobile (shown)
   ------------------------------------------------------------ */
.site-nav__icon { display: none; }  /* hidden on desktop */
.site-nav__label { }               /* always visible */

/* Desktop nav link (no change to existing layout) */
.site-nav a.site-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.site-nav a.site-nav__link:hover { color: var(--color-primary); background: rgba(11,79,54,0.07); }
.site-nav a.site-nav__link.is-active { color: var(--color-primary); font-weight: 600; background: rgba(11,79,54,0.09); }

/* Hamburger bars */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-toggle:hover { background: rgba(11,79,54,0.07); }

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1),
              opacity 0.22s ease,
              width 0.22s ease;
}

/* Hamburger → × animation */
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav — slide-down animation */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-header__call-btn { display: none; }

  .site-nav {
    /* Override old display:none / flex toggle */
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg-raised);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 32px rgba(7,50,31,0.12);
    z-index: 99;
    padding: 0;
    /* Animation: max-height slide + opacity */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1),
                opacity 0.28s ease;
  }

  .site-nav.is-open {
    max-height: 680px;  /* large enough for all links */
    opacity: 1;
  }

  /* Each link in mobile nav */
  .site-nav a.site-nav__link {
    padding: 0.875rem var(--space-6);
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-base);
    color: var(--color-text);
    gap: var(--space-4);
    transform: translateX(-8px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease,
                background 0.14s ease, color 0.14s ease;
  }

  .site-nav.is-open a.site-nav__link {
    transform: translateX(0);
    opacity: 1;
  }

  /* Staggered entry for each link */
  .site-nav.is-open a.site-nav__link:nth-child(1)  { transition-delay: 0.04s; }
  .site-nav.is-open a.site-nav__link:nth-child(2)  { transition-delay: 0.07s; }
  .site-nav.is-open a.site-nav__link:nth-child(3)  { transition-delay: 0.10s; }
  .site-nav.is-open a.site-nav__link:nth-child(4)  { transition-delay: 0.13s; }
  .site-nav.is-open a.site-nav__link:nth-child(5)  { transition-delay: 0.16s; }
  .site-nav.is-open a.site-nav__link:nth-child(6)  { transition-delay: 0.19s; }
  .site-nav.is-open a.site-nav__link:nth-child(7)  { transition-delay: 0.22s; }
  .site-nav.is-open a.site-nav__link:nth-child(8)  { transition-delay: 0.25s; }
  .site-nav.is-open a.site-nav__link:nth-child(9)  { transition-delay: 0.28s; }
  .site-nav.is-open a.site-nav__link:nth-child(10) { transition-delay: 0.31s; }

  /* Show icons in mobile */
  .site-nav__icon { display: block; flex-shrink: 0; opacity: 0.6; }
  .site-nav a.site-nav__link.is-active .site-nav__icon { opacity: 1; }
  .site-nav a.site-nav__link:last-child { border-bottom: none; }
  .site-nav a.site-nav__link.is-active {
    background: rgba(11,79,54,0.06);
    color: var(--color-primary);
  }
}

/* ------------------------------------------------------------
   Gallery — Masonry Grid
   ------------------------------------------------------------ */
.gallery-grid { display: none; } /* hide old grid */

.gallery-masonry {
  columns: 3 220px;
  column-gap: var(--space-4);
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-border);
  position: relative;
  cursor: pointer;
  aspect-ratio: unset; /* natural image heights for masonry */
}

.gallery-masonry .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-masonry .gallery-item:hover img { transform: scale(1.05); }

.gallery-masonry .gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-4) var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(7,50,31,0.88), transparent);
  color: #fff;
  font-size: var(--text-xs);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-masonry .gallery-item:hover .gallery-item__caption,
.gallery-masonry .gallery-item:focus-within .gallery-item__caption { opacity: 1; }

@media (max-width: 900px) { .gallery-masonry { columns: 2; } }
@media (max-width: 400px) { .gallery-masonry { columns: 2; column-gap: var(--space-2); } .gallery-masonry .gallery-item { margin-bottom: var(--space-2); } }

/* ------------------------------------------------------------
   Course Detail Page — Enhanced
   ------------------------------------------------------------ */
.course-detail-hero {
  padding: var(--space-12) 0 var(--space-8);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.course-detail-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 768px) { .course-detail-hero__inner { grid-template-columns: 1fr; } }

.course-detail-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
  font-weight: 600;
}
.course-detail-hero__badge--jee        { background: rgba(37,99,235,0.10); color: #1D4ED8; }
.course-detail-hero__badge--neet       { background: rgba(124,58,237,0.10); color: #6D28D9; }
.course-detail-hero__badge--foundation { background: rgba(212,162,76,0.15); color: #92680B; }

.course-detail-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-5);
  font-weight: 700;
  line-height: 1.1;
}

.course-detail-hero__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-7);
  max-width: 600px;
}

/* Meta cards (fee, duration) */
.course-meta-cards {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.course-meta-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-5);
  min-width: 130px;
  box-shadow: var(--shadow-sm);
}

.course-meta-card__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-1);
}

.course-meta-card__value {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1.2;
}

.course-meta-card__value--fee { color: var(--color-accent); }

/* Breadcrumb */
.breadcrumb { margin-bottom: var(--space-6); }

/* Topper cards in course detail */
.course-detail__toppers { margin-top: var(--space-16); }
.course-detail__toppers .toppers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 768px) { .course-detail__toppers .toppers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .course-detail__toppers .toppers-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------
   Topper Card — Enhanced homepage version
   ------------------------------------------------------------ */
.topper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
}
.topper-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-5px); }

/* Top color bar per exam type */
.topper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.topper-card--jee::before       { background: linear-gradient(90deg,#2563EB,#60A5FA); }
.topper-card--neet::before      { background: linear-gradient(90deg,#7C3AED,#A78BFA); }
.topper-card--foundation::before{ background: var(--gradient-gold); }

/* Photo area */
.topper-card__photo-area {
  width: 100%;
  background: linear-gradient(160deg, #07321F, #0B4F36 60%, #136344);
  padding: var(--space-6) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Grid overlay on photo area */
.topper-card__photo-area::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.topper-card__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(212,162,76,0.5);
  display: block;
  position: relative; z-index: 1;
  margin-bottom: var(--space-3);
}

.topper-card__photo-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 0 3px rgba(212,162,76,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  position: relative; z-index: 1;
  margin-bottom: var(--space-3);
}

/* Info area */
.topper-card__info {
  padding: var(--space-4) var(--space-4) var(--space-5);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.topper-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.topper-card__exam-badge {
  margin-bottom: var(--space-4);
}

.topper-card__result {
  width: 100%;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-top: auto;
}

.topper-card__result-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 2px;
}

.topper-card__result-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  line-height: 1.1;
}
.topper-card__result-value--neet { color: #6D28D9; }

.topper-card__year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 3px;
  display: block;
}

@media (max-width: 768px) {
  .topper-card__photo,
  .topper-card__photo-placeholder { width: 60px; height: 60px; font-size: var(--text-xl); }
  .topper-card__name { font-size: var(--text-base); }
  .topper-card__result-value { font-size: var(--text-xl); }
  .topper-card__photo-area { padding: var(--space-5) var(--space-4) var(--space-3); }
}

/* ============================================================
   Bug Fixes Pass — Nav icons, Gallery masonry, Course detail
   ============================================================ */

/* ------------------------------------------------------------
   Fix 1: Nav icon alignment + Home icon visibility
   ------------------------------------------------------------ */

/* Force flex on all mobile nav links so icon + text are inline */
@media (max-width: 900px) {
  .site-nav a,
  .site-nav a.site-nav__link {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 0.875rem !important;
  }

  /* Show icons — override the desktop display:none */
  .site-nav .site-nav__icon,
  .site-nav a .site-nav__icon {
    display: block !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    opacity: 0.65;
    position: static !important;   /* reset any absolute positioning */
    top: auto !important;
  }

  .site-nav a.is-active .site-nav__icon,
  .site-nav a.site-nav__link.is-active .site-nav__icon { opacity: 1; }

  /* Make sure label stays inline */
  .site-nav .site-nav__label { display: inline !important; }
}

/* ------------------------------------------------------------
   Fix 2: Gallery masonry — gap + mobile 2-col
   ------------------------------------------------------------ */

/* Override previous gallery-masonry rules completely */
.gallery-masonry {
  columns: 3 !important;
  column-gap: 1rem !important;
  display: block !important;
}

.gallery-masonry .gallery-item {
  display: inline-block !important;   /* CRITICAL for CSS columns */
  width: 100% !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  page-break-inside: avoid !important;
  margin-bottom: 1rem !important;
  border-radius: var(--radius-card) !important;
  overflow: hidden !important;
  position: relative !important;
  aspect-ratio: unset !important;
  background: var(--color-border) !important;
  cursor: pointer;
}

.gallery-masonry .gallery-item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  transition: transform var(--transition-slow);
}

.gallery-masonry .gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 768px) {
  .gallery-masonry {
    columns: 2 !important;
    column-gap: 0.625rem !important;
  }
  .gallery-masonry .gallery-item { margin-bottom: 0.625rem !important; }
}

@media (max-width: 380px) {
  .gallery-masonry { columns: 2 !important; column-gap: 0.5rem !important; }
}

/* ------------------------------------------------------------
   Fix 3: Course detail — complete layout
   ------------------------------------------------------------ */

/* Remove old conflicting course-detail styles */
.course-detail__header { display: block !important; }

/* New course detail layout */
.cd-page {
  background: var(--color-bg);
  min-height: 100vh;
}

/* Breadcrumb bar */
.cd-breadcrumb {
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.cd-breadcrumb__inner {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.cd-breadcrumb a { color: var(--color-text-muted); }
.cd-breadcrumb a:hover { color: var(--color-primary); }
.cd-breadcrumb__sep { opacity: 0.4; }

/* Hero band */
.cd-hero {
  padding: var(--space-10) 0 var(--space-8);
  background: var(--color-bg-raised);
  border-bottom: 1px solid var(--color-border);
}

.cd-hero__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 960px) { .cd-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); } }

/* Left: course info */
.cd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}
.cd-hero__badge--jee        { background: rgba(37,99,235,0.10); color: #1D4ED8; }
.cd-hero__badge--neet       { background: rgba(124,58,237,0.10); color: #6D28D9; }
.cd-hero__badge--foundation { background: rgba(212,162,76,0.15); color: #92680B; }

.cd-hero__title {
  font-size: clamp(1.875rem, 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.1;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

.cd-hero__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  max-width: 540px;
}

.cd-hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

/* Meta strip */
.cd-meta-strip {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 20px;
    margin-top: 20px;
}

.cd-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) var(--space-5);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-width: 100px;
}

.cd-meta-item__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.cd-meta-item__value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}
.cd-meta-item__value--fee { color: var(--color-accent); }
.cd-meta-item__value--check { color: var(--color-primary); font-size: var(--text-base); }

/* Right: highlights card */
.cd-highlights-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 80px;
}

.cd-highlights-card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.cd-highlights-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0;
}

.cd-highlights-card__body { padding: 1.25rem 1.5rem; }

.cd-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.4;
}
.cd-highlight-item:last-child { border-bottom: none; padding-bottom: 0; }

.cd-highlight-item__check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(11,79,54,0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Topper slider in course detail */
.cd-toppers { margin-top: var(--space-16); }

.cd-toppers .toppers-slider-wrap {
  margin: 0 calc(-1 * var(--space-4));
}

.cd-toppers .toppers-slider-track { padding: var(--space-3) var(--space-4) var(--space-4); }

.cd-toppers .toppers-slider-track .topper-card {
  min-width: calc(100% / 2.5 - 12px);
}
@media (min-width: 1100px) {
  .cd-toppers .toppers-slider-track .topper-card { min-width: calc(100% / 3 - 12px); }
}
@media (max-width: 599px) {
  .cd-toppers .toppers-slider-track .topper-card { min-width: calc(100% / 1.4 - 10px); }
}

/* ============================================================
   Critical Fixes — Topper card, Gallery tabs
   ============================================================ */

/* ----------------------------------------------------------
   Fix: Topper card — remove green bg, remove top bar,
   bigger photo, clean white card
   ---------------------------------------------------------- */

/* Remove top color bar completely */
.topper-card::before { display: none !important; }

/* Remove green background from photo area */
.topper-card__photo-area {
  background: none !important;
  background-image: none !important;
  padding: var(--space-6) var(--space-4) var(--space-3) !important;
  border-bottom: 1px solid var(--color-border);
}

/* Remove grid texture overlay */
.topper-card__photo-area::before { display: none !important; }

/* Bigger photo */
.topper-card__photo {
  width: 96px !important;
  height: 96px !important;
  border: 3px solid var(--color-border) !important;
  box-shadow: 0 0 0 3px rgba(11,79,54,0.15) !important;
  margin-bottom: var(--space-2) !important;
}

.topper-card__photo-placeholder {
  width: 96px !important;
  height: 96px !important;
  font-size: var(--text-2xl) !important;
  background: var(--gradient-hero) !important;
  color: var(--color-gold-light) !important;
  border: 2px solid var(--color-border) !important;
  box-shadow: 0 0 0 3px rgba(11,79,54,0.12) !important;
  margin-bottom: var(--space-2) !important;
}

/* Add a subtle left colored border per exam type instead of top bar */
.topper-card--jee        { border-left: 4px solid #2563EB !important; }
.topper-card--neet       { border-left: 4px solid #7C3AED !important; }
.topper-card--foundation { border-left: 4px solid var(--color-gold) !important; }

/* Ensure topper card is clean white */
.topper-card {
  background: #fff !important;
  overflow: hidden;
}

/* Photo area on mobile */
@media (max-width: 768px) {
  .topper-card__photo        { width: 80px !important; height: 80px !important; }
  .topper-card__photo-placeholder { width: 80px !important; height: 80px !important; }
}

/* ----------------------------------------------------------
   Fix: Gallery filter tabs — ensure always visible
   ---------------------------------------------------------- */
.gallery-filter-always { display: flex !important; }

/* ----------------------------------------------------------
   Fix: Mobile nav — ensure is-open shows nav correctly
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  /* Make sure site-header is position:relative for absolute nav */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-raised);
  }

  /* Nav closed state */
  .site-nav:not(.is-open) {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  /* Nav open state */
  .site-nav.is-open {
    max-height: 700px !important;
    opacity: 1 !important;
    pointer-events: auto;
  }
}

/* ============================================================
   Course Detail — Smart Description + Mobile Layout Fix
   ============================================================ */

/* Key-value info list (auto-detected from description) */
.cd-info-list {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: var(--space-7);
}

.cd-info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.cd-info-row:last-child { border-bottom: none; }
.cd-info-row:nth-child(even) { background: rgba(11,79,54,0.025); }

.cd-info-key {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  font-weight: 600;
  padding-top: 2px;
}

.cd-info-val {
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Plain lines (no colon — e.g. "New Batch starting soon") */
.cd-info-notice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  background: rgba(212,162,76,0.08);
  border-top: 1px solid rgba(212,162,76,0.2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 600;
  color: #92680B;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cd-info-notice::before { content: '◉'; font-size: 0.6rem; }

/* Mobile: stack key above value */
@media (max-width: 600px) {
  .cd-info-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: var(--space-3) var(--space-4);
  }
  .cd-info-val { font-size: var(--text-sm); }
}

/* Mobile layout — cd-hero section */
@media (max-width: 960px) {
  .cd-hero { padding: var(--space-8) 0 var(--space-6); }
  .cd-hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .cd-hero__title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .cd-highlights-card { position: static; } /* remove sticky on mobile */
}

/* Meta strip mobile — 2x2 grid */
@media (max-width: 600px) {
  .cd-meta-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
  .cd-meta-item { min-width: unset; }
  .cd-meta-item__value { font-size: var(--text-lg); }

  /* Action buttons stack and full-width on mobile */
  .cd-hero__actions {
    flex-direction: column;
    gap: var(--space-3);
  }
  .cd-hero__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   WhatsApp Floating Action Button
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.25rem 0.75rem 0.875rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.38), 0 2px 8px rgba(0,0,0,0.12);
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.25s ease;
  white-space: nowrap;
  max-width: calc(100vw - 3rem);
}
.whatsapp-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45), 0 3px 12px rgba(0,0,0,0.15);
}
.whatsapp-fab svg { flex-shrink: 0; }
.whatsapp-fab__label { line-height: 1; }

/* Collapse to icon-only on very small screens */
@media (max-width: 400px) {
  .whatsapp-fab { padding: 0.75rem; }
  .whatsapp-fab__label { display: none; }
}

/* Push up from bottom on mobile (avoid overlap with browser UI) */
@media (max-width: 768px) {
  .whatsapp-fab { bottom: 1.25rem; right: 1rem; }
}

/* ============================================================
   Testimonials Page
   ============================================================ */

/* Stats strip */
.testimonials-stats {
  background: var(--color-primary-dark);
  padding: var(--space-8) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.testimonials-stats__inner {
  display: flex;
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}
.testimonials-stats__item {
  flex: 1;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.testimonials-stats__value {
  font-family: var(--font-mono);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1;
}
.testimonials-stats__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(237,234,226,0.50);
}

/* Star */
.testimonials-stars  { display: flex; gap: 2px; margin-top: 4px; }
.testimonials-star   { font-size: 0.75rem; color: rgba(237,234,226,0.22); }
.testimonials-star.is-filled { color: var(--color-gold); }

/* Grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* Card */
.testimonial-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
  overflow: hidden;
}
.testimonial-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.testimonial-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
}

.testimonial-card__quote-icon {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--color-gold);
  opacity: 0.3;
  display: block;
}

.testimonial-card__stars { display: flex; gap: 2px; }

.testimonial-card__message {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0;
  flex: 1;
  font-style: italic;
}

/* Author */
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.testimonial-card__photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}
.testimonial-card__initial {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold-light);
  flex-shrink: 0;
}
.testimonial-card__name   { font-weight: 600; font-size: var(--text-sm); color: var(--color-primary-dark); }
.testimonial-card__course { font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-mono); margin-top: 2px; }

/* ============================================================
   FAQ Page
   ============================================================ */
.faq-wrap  { max-width: 720px; margin: 0 auto; }
.faq-list  { display: flex; flex-direction: column; gap: 0; margin-bottom: var(--space-8); }

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-3);
  background: var(--color-bg-raised);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s;
}
.faq-item.is-open { box-shadow: var(--shadow-card); }

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: 1.125rem var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: left;
  line-height: 1.4;
  transition: background 0.14s;
}
.faq-item__question:hover { background: var(--color-bg-subtle); }
.faq-item.is-open .faq-item__question { color: var(--color-primary); background: rgba(11,79,54,0.04); }

.faq-item__icon {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.is-open .faq-item__icon { transform: rotate(-180deg); color: var(--color-primary); }

/* Smooth accordion */
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1);
}
.faq-item__answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.8;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}

/* Contact CTA at bottom */
.faq-contact-cta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  flex-wrap: wrap;
}
.faq-contact-cta__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(11,79,54,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.faq-contact-cta__title { font-weight: 600; font-size: var(--text-base); color: var(--color-primary-dark); margin-bottom: 4px; }
.faq-contact-cta__desc  { font-size: var(--text-sm); color: var(--color-text-muted); }
.faq-contact-cta .btn   { margin-left: auto; flex-shrink: 0; }

@media (max-width: 600px) {
  .faq-contact-cta { flex-direction: column; align-items: flex-start; }
  .faq-contact-cta .btn { margin-left: 0; width: 100%; justify-content: center; }
}

/* ============================================================
   Animation — no CSS-only fallback (JS handles it via timeout)
   Above-fold sections always visible
   ============================================================ */
.cd-hero > .container,
.cd-hero .cd-hero__grid > div,
.page-hero > .container,
.page-hero > .container > * {
  /* Above-fold: always visible, no animation */
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ============================================================
   Contact Page — Enhanced Details Card
   ============================================================ */

.contact-info-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.contact-info-card__head {
  background: var(--gradient-hero);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.contact-info-card__head::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.contact-info-card__head-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin: 0;
  position: relative; z-index: 1;
}
.contact-info-card__head-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 3px;
  position: relative; z-index: 1;
}

.contact-info-card__body { padding: 0.75rem 0; }

/* Override existing contact-info-item for new card */
.contact-info-card .contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.14s;
}
.contact-info-card .contact-info-item:last-child { border-bottom: none; }
.contact-info-card .contact-info-item:hover { background: var(--color-bg-subtle); }

.contact-info-card .contact-info-item__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(11,79,54,0.08);
  border: 1px solid rgba(11,79,54,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* WhatsApp icon override */
.contact-info-card .contact-info-item--wa .contact-info-item__icon {
  background: rgba(37,211,102,0.10);
  border-color: rgba(37,211,102,0.20);
  color: #25D366;
}

.contact-info-card .contact-info-item__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-info-card .contact-info-item__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
  display: block;
  text-decoration: none;
  line-height: 1.4;
}
a.contact-info-card-link { color: var(--color-primary); text-decoration: none; }
a.contact-info-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Map section */
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  margin-top: 20px;
}

/* ============================================================
   Programs / Pick Your Track — Abstract Background
   ============================================================ */
.section.programs-section {
  position: relative;
  overflow: hidden;
}

/* Large decorative circles */
.section.programs-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,79,54,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section.programs-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,162,76,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Course track heading decoration */
.course-track { position: relative; }

.course-track__heading h3 {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary-dark);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-gold);
  line-height: 1;
}

/* Abstract dot grid pattern on section */
.programs-bg-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.programs-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(11,79,54,0.08) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent 100%);
}

/* Floating abstract shapes */
.programs-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.programs-shape--1 {
  width: 200px; height: 200px;
  top: 10%; right: 5%;
  background: linear-gradient(135deg, rgba(11,79,54,0.06), transparent);
  border: 1px solid rgba(11,79,54,0.08);
}
.programs-shape--2 {
  width: 120px; height: 120px;
  bottom: 15%; left: 3%;
  background: linear-gradient(135deg, rgba(212,162,76,0.08), transparent);
  border: 1px solid rgba(212,162,76,0.10);
}
.programs-shape--3 {
  width: 60px; height: 60px;
  top: 50%; right: 15%;
  background: rgba(198,93,52,0.06);
  border: 1px solid rgba(198,93,52,0.08);
}

/* Ensure content is above decorations */
.programs-section .section-heading,
.programs-section .course-track,
.programs-section > .container > * { position: relative; z-index: 1; }

/* ============================================================
   HEADER — Desktop Enhancement
   ============================================================ */

/* Taller, more premium nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,247,240,0.92);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(11,79,54,0.10);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(11,79,54,0.10);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 68px;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 52px;
  width: auto;
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
}
@media (max-width: 1100px) { .site-nav { display: none; } }

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--color-primary);
  background: rgba(11,79,54,0.06);
}
.site-nav a.is-active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(11,79,54,0.08);
}

/* Animated underline on active */
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  background: var(--color-primary);
  border-radius: 99px;
}

/* CTA button in nav */
.site-header__cta {
  margin-left: var(--space-4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
@media (max-width: 1100px) { .site-header__cta { margin-left: auto; } }

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(11,79,54,0.20);
  white-space: nowrap;
}
.header-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(11,79,54,0.25);
}
.header-cta-btn svg { flex-shrink: 0; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-primary);
  margin-left: var(--space-2);
  transition: background 0.13s;
}
@media (max-width: 1100px) { .nav-toggle { display: flex; } }
.nav-toggle:hover { background: rgba(11,79,54,0.06); }

/* ============================================================
   HERO SECTION — Desktop Enhancement
   ============================================================ */

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  padding: var(--space-16) 0 var(--space-12);
}

/* Subtle background texture on hero */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(11,79,54,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212,162,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero { min-height: auto; padding: var(--space-12) 0; }
}

/* Left — Text */
.hero__content {}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-primary);
  background: rgba(11,79,54,0.08);
  border: 1px solid rgba(11,79,54,0.15);
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: var(--space-5);
}
.hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-5);
}
.hero__title .accent-word {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}
/* Gold underline on accent word */
.hero__title .accent-word::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: var(--space-8);
}

/* Hero CTAs */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* Stats row under hero */
.hero__stats {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.hero__stat-item {}
.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}
.hero__stat-value sup {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
}
.hero__stat-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Right — Image */
.hero__image-wrap {
  position: relative;
}
.hero__image-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gradient-hero);
  box-shadow: 0 32px 64px rgba(11,79,54,0.18), 0 8px 24px rgba(11,79,54,0.10);
}
.hero__image-panel img,
.hero-single-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.is-active { opacity: 1; }

/* Floating achievement badge */
.hero__badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  z-index: 2;
}
.hero__badge--founded {
  top: -18px; left: -18px;
}
.hero__badge--results {
  bottom: -18px; right: -18px;
}
@media (max-width: 900px) {
  .hero__badge--founded { top: -12px; left: 12px; }
  .hero__badge--results { bottom: -12px; right: 12px; }
}
.hero__badge-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}
.hero__badge-icon--gold { background: rgba(212,162,76,0.12); }
.hero__badge-icon--green { background: rgba(11,79,54,0.10); }
.hero__badge-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1;
}
.hero__badge-label {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slider dots */
.hero-slider-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 3;
}
.hero-slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: all 0.2s; padding: 0;
}
.hero-slider-dot.is-active {
  width: 20px; border-radius: 3px;
  background: #fff;
}

/* ============================================================
   Programs Section — Full coverage SVG diagonal pattern
   ============================================================ */

/* Remove old circle shapes */
.programs-shape { display: none; }

.section.programs-section {
  position: relative;
  background: linear-gradient(
    165deg,
    rgba(11,79,54,0.025) 0%,
    transparent 40%,
    rgba(212,162,76,0.03) 80%,
    transparent 100%
  );
}

/* Full-coverage diagonal lines pattern */
.programs-bg-pattern {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.programs-bg-pattern::before {
  content: '';
  position: absolute; inset: -50%;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 40px,
    rgba(11,79,54,0.030) 40px,
    rgba(11,79,54,0.030) 41px
  );
}
/* Second set of lines crossing */
.programs-bg-pattern::after {
  content: '';
  position: absolute; inset: -50%;
  background-image: repeating-linear-gradient(
    35deg,
    transparent,
    transparent 80px,
    rgba(212,162,76,0.025) 80px,
    rgba(212,162,76,0.025) 81px
  );
}

/* Ensure all content sits above pattern */
.programs-section .container,
.programs-section .section-heading,
.programs-section .course-track { position: relative; z-index: 1; }

/* Mobile */
@media (max-width: 600px) {
  .hero__stats { gap: var(--space-4); }
  .hero__stat-value { font-size: 1.25rem; }
}

/* ============================================================
   Mobile Nav Dropdown
   ============================================================ */
.mobile-nav {
  /* display:none removed — use opacity+pointer-events so transition works */
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(250,247,240,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(11,79,54,0.10);
  z-index: 199;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1),
              opacity    0.28s ease;
}
.mobile-nav.is-open {
  max-height: 600px;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__inner {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.75rem var(--space-3);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-14px);
  transition: background 0.13s, color 0.13s,
              opacity 0.25s ease, transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
/* Staggered slide-in when menu opens */
.mobile-nav.is-open .mobile-nav__link { opacity: 1; transform: translateX(0); }
.mobile-nav.is-open .mobile-nav__link:nth-child(1)  { transition-delay: 0.06s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(2)  { transition-delay: 0.10s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(3)  { transition-delay: 0.14s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(4)  { transition-delay: 0.18s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(5)  { transition-delay: 0.22s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(6)  { transition-delay: 0.26s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(7)  { transition-delay: 0.30s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(8)  { transition-delay: 0.34s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(9)  { transition-delay: 0.38s; }
.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: rgba(11,79,54,0.07);
  color: var(--color-primary);
}
.mobile-nav__link.is-active { font-weight: 600; }
.mobile-nav__link svg { opacity: 0.5; flex-shrink: 0; }
.mobile-nav__link:hover svg,
.mobile-nav__link.is-active svg { opacity: 1; }

.mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-3);
  padding: 0.75rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: background 0.13s,
              opacity 0.25s ease 0.42s,
              transform 0.28s cubic-bezier(0.34,1.56,0.64,1) 0.42s;
}
.mobile-nav.is-open .mobile-nav__cta { opacity: 1; transform: translateY(0); }
.mobile-nav__cta:hover { background: var(--color-primary-dark); }

@media (min-width: 1101px) {
  .mobile-nav { display: none !important; }
}

/* ============================================================
   FIXES — Mobile header, Hero bg, Programs mobile
   ============================================================ */

/* 1. Hide phone CTA in mobile header */
@media (max-width: 1100px) {
  .header-cta-btn { display: none !important; }
}

/* 2. Hero — restore green split background, keep new typography */
.hero {
  background: var(--color-bg);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: stretch;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Full green left panel (55% on desktop) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  clip-path: polygon(0 0, 56% 0, 48% 100%, 0 100%);
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
  padding-top: var(--space-14);
  padding-bottom: var(--space-14);
  position: relative;
  z-index: 1;
  max-width: 80%;
}
@media (max-width: 900px) {
  .hero::before {
    clip-path: none;
    opacity: 1;
  }
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
    gap: var(--space-8);
            max-width: 100%;
  }
}

/* Text on green bg — white */
.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.90);
}
.hero__eyebrow::before { background: var(--color-gold-light); }

.hero__title { color: #fff; }

.hero__title .accent-word { color: var(--color-gold-light); }
.hero__title .accent-word::after {
  background: var(--color-gold-light);
  opacity: 0.7;
}

.hero__subtitle { color: rgba(255,255,255,0.72); }

/* Hero CTAs on green bg */
.hero__ctas .btn-primary {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
  box-shadow: 0 4px 16px rgba(212,162,76,0.35);
}
.hero__ctas .btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212,162,76,0.45);
}
.hero__ctas .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.40);
}
.hero__ctas .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.70);
}

/* Hero stats on green */
.hero__stats { border-top-color: rgba(255,255,255,0.15); }
.hero__stat-value { color: #fff; }
.hero__stat-value sup { color: var(--color-gold-light); }
.hero__stat-label { color: rgba(255,255,255,0.55); }

/* Image panel — right side */
.hero__image-wrap {
  position: relative;
  z-index: 1;
}
.hero__image-panel {
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.22), 0 6px 16px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
  .hero__image-wrap { order: -1; }
  .hero__image-panel { border-radius: 16px; }
  .hero__title { font-size: 2.25rem; }
}

/* 3. Programs diagonal lines — ensure visible on ALL screens */
.programs-bg-pattern {
  position: absolute !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  pointer-events: none;
  z-index: 0;
  display: block !important;
}
.programs-bg-pattern::before {
  content: '' !important;
  position: absolute;
  top: -100px; left: -100px;
  right: -100px; bottom: -100px;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 38px,
    rgba(11,79,54,0.04) 38px,
    rgba(11,79,54,0.04) 39px
  );
  display: block !important;
}
.programs-bg-pattern::after {
  content: '' !important;
  position: absolute;
  top: -100px; left: -100px;
  right: -100px; bottom: -100px;
  background-image: repeating-linear-gradient(
    35deg,
    transparent,
    transparent 75px,
    rgba(212,162,76,0.035) 75px,
    rgba(212,162,76,0.035) 76px
  );
  display: block !important;
}

/* 4. Remove old hero radial bg (conflicts with green panel) */
.hero::after { display: none; }

/* ============================================================
   TOPPER CARD V2 — Enhanced Design
   ============================================================ */

.toppers-grid--results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1100px) { .toppers-grid--results { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .toppers-grid--results { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .toppers-grid--results { grid-template-columns: 1fr; } }

.topper-card-v2 {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease;
  animation: card-float-in 0.5s ease both;
}
.topper-card-v2:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}

/* Staggered entrance animation */
.topper-card-v2:nth-child(1)  { animation-delay: 0.05s; }
.topper-card-v2:nth-child(2)  { animation-delay: 0.10s; }
.topper-card-v2:nth-child(3)  { animation-delay: 0.15s; }
.topper-card-v2:nth-child(4)  { animation-delay: 0.20s; }
.topper-card-v2:nth-child(5)  { animation-delay: 0.25s; }
.topper-card-v2:nth-child(6)  { animation-delay: 0.30s; }
.topper-card-v2:nth-child(7)  { animation-delay: 0.35s; }
.topper-card-v2:nth-child(8)  { animation-delay: 0.40s; }
.topper-card-v2:nth-child(n+9){ animation-delay: 0.45s; }

@keyframes card-float-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Header (coloured bg) */
.topper-card-v2__head {
  position: relative;
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-height: 130px;
}

/* Decorative circles inside header */
.topper-card-v2__deco-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}
.topper-card-v2__deco-circle--1 {
  width: 120px; height: 120px;
  bottom: -40px; right: -30px;
  animation: deco-spin 12s linear infinite;
}
.topper-card-v2__deco-circle--2 {
  width: 70px; height: 70px;
  top: -20px; left: -15px;
  background: rgba(255,255,255,0.05);
  animation: deco-spin 18s linear infinite reverse;
}
@keyframes deco-spin {
  from { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  to   { transform: rotate(360deg) scale(1); }
}

/* Photo */
.topper-card-v2__photo-wrap {
  position: relative; z-index: 1;
}
.topper-card-v2__photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  display: block;
}
.topper-card-v2__initial {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 3px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700;
  color: rgba(255,255,255,0.90);
}

/* Year pill */
.topper-card-v2__year {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.05em;
  z-index: 1;
}

/* Body */
.topper-card-v2__body {
  padding: 1rem 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.topper-card-v2__name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-primary-dark);
  line-height: 1.3;
}
.topper-card-v2__badge .badge {
  font-size: 0.6rem;
  padding: 2px 8px;
}

/* Result box */
.topper-card-v2__result-box {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  width: 100%;
  text-align: center;
  margin-top: 0.25rem;
  position: relative;
  overflow: hidden;
}
/* Shimmer effect on result box */
.topper-card-v2__result-box::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.topper-card-v2__result-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}
.topper-card-v2__result-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.topper-card-v2__result-value--score {
  color: #7C3AED;
}


/* ============================================================
   LIVE CONTINUOUS ANIMATIONS — All devices
   ============================================================ */

/* Programs section zigzag — animated drift */
.programs-bg-pattern svg {
  animation: pattern-drift 30s linear infinite;
}
@keyframes pattern-drift {
  from { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(15px) translateY(8px); }
  to   { transform: translateX(0) translateY(0); }
}

/* Topper card homepage slider — floating cards */
.toppers-slider-track .topper-card {
  animation: card-breathe 4s ease-in-out infinite;
}
.toppers-slider-track .topper-card:nth-child(2) { animation-delay: 0.8s; }
.toppers-slider-track .topper-card:nth-child(3) { animation-delay: 1.6s; }
@keyframes card-breathe {
  0%, 100% { box-shadow: 0 4px 16px rgba(11,79,54,0.08); }
  50%       { box-shadow: 0 12px 32px rgba(11,79,54,0.16); transform: translateY(-4px); }
}

/* Hero eyebrow — subtle blink of the dot */
.hero__eyebrow::before {
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* Stats strip — count-up feel (CSS only) */
.stats__item .rank-card__stat {
  animation: stat-glow 3s ease-in-out infinite;
}
.stats__item:nth-child(2) .rank-card__stat { animation-delay: 0.75s; }
.stats__item:nth-child(3) .rank-card__stat { animation-delay: 1.50s; }
.stats__item:nth-child(4) .rank-card__stat { animation-delay: 2.25s; }
@keyframes stat-glow {
  0%, 100% { color: var(--color-primary-dark); }
  50%       { color: var(--color-primary); text-shadow: 0 0 20px rgba(11,79,54,0.20); }
}

/* USP section icons — bounce */
.usp-card__icon {
  animation: icon-bounce 3s ease-in-out infinite;
}
.usp-card:nth-child(2) .usp-card__icon { animation-delay: 0.5s; }
.usp-card:nth-child(3) .usp-card__icon { animation-delay: 1.0s; }
.usp-card:nth-child(4) .usp-card__icon { animation-delay: 1.5s; }
.usp-card:nth-child(5) .usp-card__icon { animation-delay: 2.0s; }
.usp-card:nth-child(6) .usp-card__icon { animation-delay: 2.5s; }
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30%       { transform: translateY(-6px) rotate(-4deg); }
  60%       { transform: translateY(-3px) rotate(3deg); }
}

/* CTA banner — subtle shimmer on button */
.cta-banner .btn-accent {
  position: relative; overflow: hidden;
}
.cta-banner .btn-accent::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: cta-shimmer 2.5s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* WhatsApp FAB — pulse ring */
.whatsapp-fab {
  animation: wa-pulse 2.5s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.40); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.70), 0 0 0 8px rgba(37,211,102,0.12); }
}

/* ============================================================
   RANK CARD PREMIUM (rcp) — Homepage Topper Cards
   ============================================================ */

/* Slider sizing */
.toppers-slider-track .rcp {
  flex: 0 0 260px;
  min-width: 260px;
  max-width: 260px;
}
@media (max-width: 600px) {
  .toppers-slider-track .rcp { flex: 0 0 220px; min-width: 220px; max-width: 220px; }
}

.rcp {
  background: var(--color-bg-raised);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease;
  animation: rcp-rise 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
.rcp:nth-child(2) { animation-delay: 0.1s; }
.rcp:nth-child(3) { animation-delay: 0.2s; }
.rcp:nth-child(4) { animation-delay: 0.3s; }
@keyframes rcp-rise {
  from { opacity: 0; transform: translateY(40px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.rcp:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 60px rgba(0,0,0,0.16), 0 6px 20px rgba(0,0,0,0.10);
}

/* ── Header (colored) ── */
.rcp__head {
  position: relative;
  padding: 1.25rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  overflow: hidden;
}

/* Dot grid texture in header */
.rcp__tex {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  pointer-events: none;
}

/* Exam + Year row */
.rcp__head-meta {
  position: relative; z-index: 1;
  display: flex; gap: 0.5rem; align-items: center;
  width: 100%;
}
.rcp__exam-pill {
  background: rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.30);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.rcp__year-pill {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Photo ring */
.rcp__photo-ring {
  position: relative; z-index: 1;
  width: 84px; height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255,255,255,0.70), rgba(255,255,255,0.20));
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  animation: ring-spin 8s linear infinite;
  flex-shrink: 0;
}
@keyframes ring-spin {
  from { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.15); }
  50%  { box-shadow: 0 4px 24px rgba(0,0,0,0.30), 0 0 0 3px rgba(255,255,255,0.50); }
  to   { box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.15); }
}
.rcp__photo {
  width: 78px; height: 78px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.rcp__initial {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: rgba(255,255,255,0.90);
}

/* Name */
.rcp__name {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.20);
}

/* ── Body (white) ── */
.rcp__body {
  padding: 1.125rem 1.25rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.rcp__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--color-text-muted);
}
.rcp__score {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.rcp__score--neet { color: #7C3AED; }
.rcp__divider {
  width: 40px; height: 2px;
  background: var(--gradient-gold);
  border-radius: 99px;
  margin: 0.5rem auto 0.375rem;
}
.rcp__institute {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ============================================================
   RCP Grid — Results Page (same cards, grid layout)
   ============================================================ */
.rcp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1100px) { .rcp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .rcp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { .rcp-grid { grid-template-columns: 1fr; } }

/* Grid cards — full width (no slider min-width) */
.rcp--grid {
  min-width: unset !important;
  max-width: unset !important;
  width: 100%;
}