/* =========================================================
   Sainik School West Bengal — Stylesheet
   Design tokens: terracotta heritage x military olive
========================================================= */
:root {
  --olive-dark: #201F16;
  --olive: #3B3D2A;
  --olive-light: #565B3B;
  --terracotta: #A23E23;
  --terracotta-light: #C77B4A;
  --sand: #D8C9A3;
  --ivory: #F7F1E3;
  --ink: #201D16;
  --ink-soft: #514E3F;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(32, 31, 22, 0.1);
  --shadow-md: 0 12px 32px rgba(32, 31, 22, 0.18);

  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--olive-dark);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--terracotta);
  font-weight: 700;
  margin: 0 0 0.75em;
}
.eyebrow.center, .center { text-align: center; }
.section-lead {
  max-width: 640px;
  margin: 0 auto 3rem;
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta-light);
  padding-bottom: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.link-arrow:hover { color: var(--terracotta); transform: translateX(3px); }

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:focus-visible {
  outline: 3px solid var(--terracotta-light);
  outline-offset: 2px;
}
.btn-terracotta {
  background: var(--terracotta);
  color: var(--ivory);
  border-color: var(--terracotta);
}
.btn-terracotta:hover { background: var(--terracotta-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 241, 227, 0.55);
}
.btn-outline:hover { border-color: var(--terracotta-light); color: var(--terracotta-light); transform: translateY(-2px); }
.btn-lg { padding: 1.05em 2em; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* =========================================================
   Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 227, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59, 61, 42, 0.14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--olive-dark);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-display); }
.brand-text strong { font-size: 1.08rem; letter-spacing: 0; }
.brand-text em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--terracotta); text-transform: uppercase; font-family: var(--font-mono); }

.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--terracotta-light);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--olive-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  background: var(--olive-dark);
  color: var(--ivory);
  overflow: hidden;
  padding: 110px 0 80px;
}
.hero-scene { position: absolute; inset: 0; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,31,22,0.15) 0%, rgba(32,31,22,0.55) 70%, rgba(32,31,22,0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }

.hero .eyebrow { color: var(--terracotta-light); }
.hero h1 {
  color: var(--ivory);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 0.4em;
}
.hero h1 span { color: var(--terracotta-light); }
.hero-lead {
  font-size: 1.08rem;
  color: rgba(247, 241, 227, 0.86);
  max-width: 620px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 2rem 0 3rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 241, 227, 0.2);
}
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--terracotta-light);
}
.hero-stats dd { margin: 0; font-size: 0.78rem; color: rgba(247, 241, 227, 0.75); text-transform: uppercase; letter-spacing: 0.05em; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* =========================================================
   Trust strip ticker
========================================================= */
.trust-strip {
  background: var(--terracotta);
  color: var(--ivory);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}
.trust-track {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  animation: ticker 28s linear infinite;
  padding-left: 100%;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* =========================================================
   About
========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 560px; }
.about-points { display: flex; flex-direction: column; gap: 12px; margin: 1.5rem 0; }
.about-points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 12px;
  background: var(--terracotta-light);
  transform: rotate(45deg);
}

/* =========================================================
   Academics cards
========================================================= */
.academics { background: var(--sand); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid rgba(59,61,42,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon { width: 40px; height: 40px; margin-bottom: 18px; }
.info-card h3 { font-size: 1.08rem; }
.info-card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* =========================================================
   Admission timeline
========================================================= */
.timeline {
  max-width: 760px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 8px;
}
.timeline li {
  display: flex;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -4px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--terracotta-light) 0 6px, transparent 6px 12px);
}
.timeline-marker {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--terracotta-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
}
.timeline-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.timeline-body p { color: var(--ink-soft); margin: 0; }

.eligibility-box {
  background: var(--olive-dark);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.eligibility-box h3 { color: var(--ivory); text-align: center; margin-bottom: 1.5rem; }
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.eligibility-grid span {
  display: block;
  font-family: var(--font-mono);
  color: var(--terracotta-light);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.eligibility-grid p { margin: 0; font-size: 0.92rem; color: rgba(247,241,227,0.88); }

/* =========================================================
   Exam section
========================================================= */
.exam-section { background: var(--sand); }
.exam-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.exam-tabs { margin: 2rem 0; }
.exam-tab-head { display: flex; gap: 8px; margin-bottom: 1rem; }
.exam-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--olive);
  background: transparent;
  color: var(--olive);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.exam-tab-btn.active, .exam-tab-btn:hover { background: var(--olive); color: var(--ivory); }
.exam-tab-panel { display: none; background: var(--ivory); border-radius: var(--radius-md); padding: 24px 28px; }
.exam-tab-panel.active { display: block; }
.exam-tab-panel li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(59,61,42,0.18);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.exam-tab-panel li:last-child { border-bottom: none; }

/* =========================================================
   Fees
========================================================= */
.table-wrap { overflow-x: auto; }
.fee-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 780px;
  margin: 0 auto;
  background: var(--ivory);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fee-table th, .fee-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 0.95rem;
}
.fee-table thead th {
  background: var(--olive);
  color: var(--ivory);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.fee-table tbody tr:nth-child(even) { background: var(--sand); }
.fee-table td:last-child { font-family: var(--font-mono); font-weight: 700; color: var(--terracotta); }
.fee-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 1.5rem; }

/* =========================================================
   Facilities
========================================================= */
.facilities { background: var(--olive-dark); color: var(--ivory); }
.facilities .eyebrow { color: var(--terracotta-light); }
.facilities h2 { color: var(--ivory); }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 3rem;
}
.facility-tile {
  background: rgba(247, 241, 227, 0.05);
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.facility-tile:hover { background: rgba(247, 241, 227, 0.09); transform: translateY(-4px); }
.facility-tile svg { width: 36px; height: 36px; margin-bottom: 16px; }
.facility-tile h3 { color: var(--ivory); font-size: 1.02rem; }
.facility-tile p { color: rgba(247, 241, 227, 0.75); font-size: 0.92rem; margin: 0; }

/* =========================================================
   Achievements
========================================================= */
.achievements-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.achv-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.achv-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.achv-stats div {
  background: var(--sand);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}
.achv-stats dt { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--terracotta); }
.achv-stats dd { margin: 4px 0 0; font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* =========================================================
   Gallery
========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item svg { width: 100%; height: auto; aspect-ratio: 1/1; }
.gallery-item figcaption {
  padding: 12px 16px;
  background: var(--olive-dark);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

/* =========================================================
   Testimonials
========================================================= */
.testimonials { background: var(--sand); }
.testi-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 85vw);
  background: var(--ivory);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 0;
  border-left: 4px solid var(--terracotta-light);
}
.testi-card p { font-style: italic; color: var(--ink-soft); }
.testi-card cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--olive);
}
.testi-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.testi-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--olive-light);
  opacity: 0.35;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.testi-dots button.active { opacity: 1; transform: scale(1.3); }

/* =========================================================
   FAQ Accordion
========================================================= */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.faq-head p:last-child { color: var(--ink-soft); }
.accordion-item {
  border-bottom: 1px solid rgba(59,61,42,0.16);
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--olive-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-panel p { padding: 0 4px 20px; color: var(--ink-soft); margin: 0; }

/* =========================================================
   Contact
========================================================= */
.contact { background: var(--olive-dark); color: var(--ivory); }
.contact .eyebrow { color: var(--terracotta-light); }
.contact h2 { color: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.contact-info > p { color: rgba(247, 241, 227, 0.8); }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 2rem; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-list span { color: rgba(247, 241, 227, 0.88); font-size: 0.95rem; }

.contact-form {
  background: var(--ivory);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.contact-form h3 { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(59,61,42,0.22);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--terracotta-light);
  box-shadow: 0 0 0 3px rgba(199, 123, 74, 0.22);
}
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea {
  border-color: #A23E23;
}
.field-error {
  font-size: 0.78rem;
  color: #A23E23;
  min-height: 1em;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  cursor: pointer;
}
.checkbox-field input { margin-top: 3px; }
.form-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--olive); }
.form-status.error { color: #A23E23; }

/* =========================================================
   Footer
========================================================= */
.site-footer { background: #181710; color: rgba(247,241,227,0.78); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,241,227,0.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.footer-brand p { font-size: 0.88rem; margin: 0; }
.footer-col h4 {
  color: var(--terracotta-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 0.88rem; color: rgba(247,241,227,0.75); }
.footer-col a:hover { color: var(--terracotta-light); }
.footer-col li { font-size: 0.88rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.78rem;
}
.footer-disclaimer { max-width: 520px; color: rgba(247,241,227,0.48); font-size: 0.72rem; margin: 0; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--ivory);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 980px) {
  .about-grid, .exam-grid, .achievements-inner, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 420px; margin: 0 auto; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .eligibility-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(59,61,42,0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(59,61,42,0.1); }
  .header-cta .btn-terracotta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cards-grid, .facilities-grid, .gallery-grid { grid-template-columns: 1fr; }
  .eligibility-grid { grid-template-columns: 1fr; }
  .achv-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px; }
  .eligibility-box { padding: 26px; }
  .hero { padding: 100px 0 64px; }
}
