/* =================================================================
   Greenfield International School — Stylesheet
   Vanilla CSS, no frameworks. One file.

   BRAND PALETTE (three-colour system):
     Green  #15873F  — primary (Greenfield identity; buttons, links, focus)
     Blue   #0071CE  — secondary (Walmart blue; gradients, top bar, accents)
     Grey   #5B6470 / #16202C  — neutral (text, borders, surface washes)
   Gold accent removed; all colour now resolves to green / blue / grey.
================================================================= */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #15873F;
  --primary-dark: #0F6E32;
  --primary-darker: #0B5526;
  --primary-light: #E5F3EA;
  --primary-soft: #F2F9F4;
  --accent: #0071CE;
  --secondary: #0071CE;
  --secondary-dark: #004A99;
  --secondary-light: #E3F1FC;
  --secondary-soft: #F1F7FD;
  --text: #16202c;
  --text-muted: #5b6472;
  --text-light: #8a93a0;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-alt: #eef2f8;
  --border: #e3e7ee;
  --border-soft: #eef1f6;
  /* Grey pillar — explicit aliases (third brand colour) */
  --grey: #5b6472;
  --grey-dark: #3c4450;
  --grey-light: #eef1f6;
  --grey-soft: #f7f9fc;
  --footer-bg: #0f1822;
  --footer-bg-dark: #0a121a;
  --footer-text: #c5cad2;
  --shadow-xs: 0 1px 2px rgba(15, 24, 34, 0.05);
  --shadow-sm: 0 2px 6px rgba(15, 24, 34, 0.06), 0 1px 2px rgba(15, 24, 34, 0.04);
  --shadow-md: 0 6px 18px rgba(15, 24, 34, 0.08), 0 2px 6px rgba(15, 24, 34, 0.04);
  --shadow-lg: 0 16px 38px rgba(15, 24, 34, 0.12), 0 6px 14px rgba(15, 24, 34, 0.06);
  --shadow-xl: 0 28px 60px rgba(15, 24, 34, 0.16), 0 10px 22px rgba(15, 24, 34, 0.08);
  --shadow-primary: 0 12px 28px rgba(21, 135, 63, 0.32);
  --shadow-secondary: 0 12px 28px rgba(0, 113, 206, 0.28);
  --gradient-primary: linear-gradient(135deg, #15873F 0%, #0F6E32 60%, #0B5526 100%);
  --gradient-secondary: linear-gradient(135deg, #2E8FE0 0%, #0071CE 60%, #004A99 100%);
  --gradient-warm: linear-gradient(135deg, #0071CE 0%, #004A99 100%);
  --gradient-mix: linear-gradient(135deg, rgba(21, 135, 63,0.95) 0%, rgba(0, 113, 206,0.92) 100%);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --max-w: 1200px;
  --header-h: 96px;
  --topbar-h: 38px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

ul, ol { padding-left: 1.25rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 48px 0;
}

.section--soft { background: var(--bg-soft); }
.section--alt  { background: var(--bg-alt); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-bottom: 12px;
}

.section-head .divider {
  width: 64px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  margin: 0 auto;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(21, 135, 63,0.28);
}

.btn-primary:hover {
  background: var(--gradient-primary);
  filter: brightness(1.06);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.btn-primary:hover::after { opacity: 1; }

.btn { position: relative; overflow: hidden; }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.topbar {
  background: linear-gradient(90deg, #003D7A 0%, var(--secondary-dark) 50%, var(--primary-darker) 100%);
  color: #fff;
  font-size: 0.82rem;
  padding: 9px 0;
  position: relative;
}

.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-info {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-info span,
.topbar-info a {
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-info a {
  transition: color var(--transition);
}

.topbar-info a:hover { color: var(--accent); }

.topbar-icon {
  font-size: 0.85rem;
  margin-right: 2px;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.22);
  display: inline-block;
  margin: 0 2px;
}

.topbar-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.topbar-actions a {
  background: rgba(255,255,255,0.14);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.22);
  transition: all var(--transition);
}

.topbar-actions a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(21, 135, 63,0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 24px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 56px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-btm24{
  margin-bottom: 24px;
}

.nav-menu li { margin: 0; }

.nav-menu > li > a,
.nav-menu > li > .nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.nav-menu > li > a::after,
.nav-menu > li > .nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.is-active > a,
.nav-menu > li > .nav-link:hover {
  color: var(--primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li.is-active > a::after,
.nav-menu > li > .nav-link:hover::after {
  transform: scaleX(1);
}

/* Dropdown */
.has-dropdown { position: relative; }

.has-dropdown > .nav-link::before {
  content: '';
  display: inline-block;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  transform: translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 240px;
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 50;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu,
.has-dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li { margin: 0; }

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* ---------- Hero (homepage slider) ---------- */
.hero {
  position: relative;
  height: clamp(440px, 70vh, 640px);
  overflow: hidden;
  background: #1a1a1a;
}

.hero-track {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0, 113, 206, 0.45));
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
}

.hero-slide-content .eyebrow {
  color: #fff;
  opacity: 0.9;
  background: rgba(21, 135, 63, 0.85);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

.hero-slide-content h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.5vw, 3.4rem);
  margin: 18px 0 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-slide-content p {
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  margin-bottom: 28px;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* Slider controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background var(--transition);
  backdrop-filter: blur(8px);
}

.hero-arrow:hover { background: var(--primary); border-color: var(--primary); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

/* ---------- Page header (inner pages) ---------- */
/* ---------- Page header (breadcrumb + banner card) ---------- */
.page-header {
  background: var(--bg-soft);
  padding: 28px 0 16px;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.page-header .breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-header .breadcrumb a:hover { color: var(--primary); }
.page-header .breadcrumb .sep { margin: 0 8px; color: var(--text-light); }
.page-header .breadcrumb span:last-child { color: var(--text); font-weight: 600; }

.page-banner {
  background:
    radial-gradient(circle at 85% -20%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(circle at 0% 110%, rgba(0, 113, 206,0.45) 0%, transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, #1A9A4A 60%, var(--secondary) 130%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-banner h1 {
  color: #fff;
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.page-banner p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 640px;
}

@media (max-width: 768px) {
  .page-header { padding: 20px 0 36px; }
  .page-banner { padding: 36px 28px; border-radius: var(--radius); }
  .page-banner h1 { font-size: 1.6rem; }
  .page-banner p { font-size: 0.95rem; }
}

/* Plain banner variant — used on About Us sub-pages.
   Removes the green gradient/box-shadow and renders the heading
   as plain dark grey text with minimal padding. */
.page-banner--plain {
  background: none;
  color: #212121;
  border-radius: 0;
  padding: 8px 0 0;
  box-shadow: none;
  overflow: visible;
}
.page-banner--plain::before,
.page-banner--plain::after { content: none; display: none; }
.page-banner--plain .page-banner-inner { max-width: none; }
.page-banner--plain h1 {
  color: #212121;
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.page-banner--plain p {
  color: #212121;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  max-width: none;
}
@media (max-width: 768px) {
  .page-banner--plain { padding: 4px 0 0; border-radius: 0; }
  .page-banner--plain h1 { font-size: 1.4rem; }
  .page-banner--plain p { font-size: 0.95rem; }
}

/* Reduce excess padding on the page-header wrapper when used with plain banner */
.page-header.page-header--plain { padding: 20px 0 24px; }
@media (max-width: 768px) {
  .page-header.page-header--plain { padding: 16px 0 20px; }
}

/* Legacy support — keep .page-hero stub harmless if any old markup remains */
.page-hero { display: none; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}

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

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3,
.card-body h4 {
  margin-bottom: 16px;
  color: var(--text);
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex: 1;
}

.card-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.card-link:hover { gap: 12px; color: var(--primary-dark); }

/* Tile spacing (for cards used directly without .card-body wrapper) */
.card > .eyebrow,
.card .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.card > h3,
.card > h4 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--text);
}

.card > p,
.card > p.muted,
.card > ul {
  margin-top: 0;
}

.card > ul {
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card > ul li { margin-bottom: 8px; line-height: 1.6; }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

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

/* ---------- Stats / counters ---------- */
.stats {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  margin-top: -60px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.stat {
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}

.bg-image{ background-image: url(../images/School-main.jpg); background-size: cover;}

.stat:last-child { border-right: none; }

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
}

.stat-value .unit {
  font-size: 0.65em;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
}

@media (max-width: 700px) {
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
}

/* ---------- Two-column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.split-5-7 { grid-template-columns: 5fr 7fr; }
  .split.split-7-5 { grid-template-columns: 7fr 5fr; }
}

.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 480px;
}

/* ---------- Callout / CTA banner ---------- */
.cta-band {
  background:
    linear-gradient(135deg, rgba(0, 113, 206,0.92), rgba(21, 135, 63,0.85)),
    url('../images/Hero-Image-10.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta-band p {
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  margin: 6px;
}

/* ---------- Lists / feature blocks ---------- */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--border);
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list li:last-child { border-bottom: none; }

/* ---------- FAQ accordion ---------- */
.faq {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item.is-open {
  box-shadow: var(--shadow-md);
  border-color: rgba(21, 135, 63,0.45);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 56px 18px 22px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-q:hover { color: var(--primary); }

.faq-q::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--text-muted);
  border-bottom: 2.5px solid var(--text-muted);
  transform-origin: 65% 65%;
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--transition);
}

.faq-item.is-open .faq-q::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--primary);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-a {
  max-height: 600px;
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .contact-grid { grid-template-columns: 5fr 7fr; }
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.contact-info-card h3 { margin-bottom: 18px; }

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.contact-info-list li:last-child { border-bottom: none; }

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-info-text strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-info-text a {
  color: var(--text);
  word-break: break-word;
}

.contact-info-text a:hover { color: var(--primary); }

/* Form */
.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form h3 { margin-bottom: 6px; }
.contact-form .form-intro {
  color: var(--text-muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 135, 63,0.16);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
}

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 32px;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.gallery-grid a:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lightbox-close:hover { background: var(--primary); }

/* ---------- Staff cards ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.staff-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}

.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.staff-card .photo {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--bg-soft);
  overflow: hidden;
}

.staff-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-card .info {
  padding: 18px 16px 22px;
}

.staff-card h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.staff-card .role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.staff-card .qualification {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Tables (CBSE info, MPD) ---------- */
.data-table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--bg-soft); }

.data-table .sno {
  width: 60px;
  font-weight: 700;
  color: var(--secondary);
}

.photo-facilities{
  margin-bottom: 16px;
  height: 208px;
}

.photo-facilities img{
  border-radius: 8px 8px 0px 0px;
  height: 208px;
  object-fit: cover;
  width: stretch;
}

.club{
  margin-bottom: 16px;
  height: 108px;
}

.club img{
  border-radius: 8px 8px 0px 0px;
  height: 108px;
  object-fit: contain;
  width: stretch;
}

/* ---------- Article / prose pages ---------- */
.prose {
  max-width: 960px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 16px;
  padding: 32px;;
}

.prose h2,
.prose h3 {
  margin-top: 32px;
  margin-bottom: 14px;
}

.prose h3 {
  color: var(--secondary);
  font-size: 1.25rem;
}

.prose p {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 16px;
  text-align: justify;
}

.prose ul li,
.prose ol li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.prose blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 0px 0;
  color: var(--text);
  font-style: italic;
}

.prose img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 24px auto;
}

.signature {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.signature .name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.signature .role {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- News / video embed ---------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

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

.footer-title {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-col p,
.footer-col a {
  color: var(--footer-text);
  display: block;
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 0.92rem;
}

.footer-col a {
  transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-list a:hover {
  color: var(--primary);
  transform: translateX(2px);
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--footer-text);
}

.footer-contact-row .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.footer-cta-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
}

.footer-cta-card p {
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.footer-cta-card .btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-size: 0.85rem;
}

.footer-cta-card .btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--footer-bg-dark);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.footer-bottom a {
  color: rgba(255,255,255,0.85);
}

/* ---------- Animations / micro-interactions ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }

/* Mobile drawer state */
@media (max-width: 991px) {
  .nav-toggle { display: flex; }
  .topbar-info { display: none; }
  .topbar-actions { width: 100%; justify-content: flex-end; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right 0.35s ease;
    overflow-y: auto;
  }

  .nav-menu.is-open { right: 0; }

  .nav-menu > li > a,
  .nav-menu > li > .nav-link {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-menu > li > a::after,
  .nav-menu > li > .nav-link::after { display: none; }

  .has-dropdown > .nav-link { display: flex; justify-content: space-between; align-items: center; }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-soft);
    margin: 0;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0;
  }

  .has-dropdown.is-open > .dropdown-menu {
    max-height: 400px;
  }

  .dropdown-menu a {
    padding: 12px 28px;
    border-radius: 0;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .hero-arrow { display: none; }
}

/* ---------- Tablet adjustments ---------- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .navbar { padding: 12px 0; }
  .navbar-brand img { height: 48px; }
  .topbar { font-size: 0.78rem; padding: 6px 0; }
  .stats { margin-top: -36px; padding: 22px 16px; }
  .page-hero { padding: 64px 0 48px; }
  .contact-form, .contact-info-card { padding: 22px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .topbar-actions a { padding: 4px 10px; font-size: 0.72rem; }
  .hero { height: 380px; }
  .hero-slide-content h1 { font-size: 1.6rem; }
  .btn { padding: 10px 18px; font-size: 0.9rem; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.muted { color: var(--text-muted); }
.tiny { font-size: 0.85rem; }

/* ---------- Contact — Quick contact strip ---------- */
.section--tight { padding: 36px 0 0; }

.contact-strip {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .contact-strip { grid-template-columns: 1fr; }
}

.contact-strip-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 22px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-strip-item:last-child { border-right: none; }

@media (max-width: 900px) {
  .contact-strip-item:nth-child(2n) { border-right: none; }
  .contact-strip-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .contact-strip-item { border-right: none; }
  .contact-strip-item:last-child { border-bottom: none; }
}
@media (min-width: 901px) {
  .contact-strip-item { border-bottom: none; }
}

.contact-strip-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-strip-icon svg { width: 22px; height: 22px; }

.contact-strip-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.contact-strip-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-strip-value {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  word-break: break-word;
}

a.contact-strip-value:hover { color: var(--primary); }

/* ---------- Contact — Form + sidebar ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 992px) {
  .contact-layout { grid-template-columns: 5fr 7fr; gap: 48px; }
}

.contact-aside { padding: 8px 0; }
.contact-aside h2 { margin: 14px 0 16px; }
.contact-aside > .muted { font-size: 1rem; line-height: 1.65; margin-bottom: 32px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.contact-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.contact-list li:first-child { padding-top: 8px; }
.contact-list li:last-child { border-bottom: none; padding-bottom: 4px; }

.contact-list-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-list-icon svg { width: 22px; height: 22px; }

.contact-list-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-list-value {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.6;
}

.contact-list-value a { color: var(--text); text-decoration: none; }
.contact-list-value a:hover { color: var(--primary); }

.contact-social {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-social-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-social-icons { display: flex; gap: 10px; }

.contact-social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-social-icons a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.contact-social-icons svg { width: 18px; height: 18px; }

.contact-form-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .contact-form-panel { padding: 28px 22px; }
}

.contact-form-head { margin-bottom: 28px; }
.contact-form-head h3 { margin: 0 0 8px; font-size: 1.4rem; }
.contact-form-head .muted { margin: 0; font-size: 0.95rem; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .contact-form .form-row { grid-template-columns: 1fr 1fr; }
}

.contact-form .form-group { margin-bottom: 18px; }
.contact-form .form-group label .req { color: #c0392b; margin-left: 2px; }

.contact-form .form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-form .form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Map card ---------- */
.map-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.map-frame { line-height: 0; }
.map-frame iframe { display: block; width: 100%; }

.map-actions {
  display: flex;
  gap: 12px;
  padding: 22px 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  background: var(--bg-soft);
}

/* ---------- Events ---------- */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.event-card:hover .event-thumb img { transform: scale(1.06); }

.event-meta {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-meta h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  line-height: 1.35;
}

.event-meta .muted { margin: 0 0 18px; font-size: 0.92rem; line-height: 1.55; flex: 1; }

.event-meta .card-link { font-weight: 700; }

.event-detail { max-width: 880px; margin: 0 auto; }

.event-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.event-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* =================================================================
   Mission & Vision — highlighted cards
================================================================= */
.mv-section { padding-top: 64px; padding-bottom: 64px; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 900px) {
  .mv-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.mv-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 48px 40px 44px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.mv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
}

.mv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% -10%, rgba(255,255,255,0.20) 0%, transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(0,0,0,0.18) 0%, transparent 55%);
  z-index: -1;
  pointer-events: none;
}

.mv-card--mission::before { background: var(--gradient-primary); }
.mv-card--vision::before  { background: var(--gradient-secondary); }

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.mv-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 22px;
  transition: transform var(--transition-slow);
}

.mv-card:hover .mv-icon { transform: scale(1.06) rotate(-4deg); }

.mv-icon svg { width: 32px; height: 32px; }

.mv-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.16);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.mv-card h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0 0 14px;
  line-height: 1.25;
}

.mv-card p {
  color: rgba(255,255,255,0.94);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .mv-card { padding: 36px 26px 32px; border-radius: var(--radius-lg); }
}

/* =================================================================
   Guiding Principles — image cards
================================================================= */
.principles-grid {
  gap: 28px;
}

.principle-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.principle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 135, 63,0.4);
}

.principle-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.principle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.principle-card:hover .principle-image img { transform: scale(1.07); }

.principle-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 24, 34, 0.45) 100%);
  pointer-events: none;
}

.principle-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 1;
  transition: transform var(--transition-slow);
}

.principle-card:hover .principle-badge {
  transform: rotate(-6deg) scale(1.08);
  background: var(--primary);
  color: #fff;
}

.principle-badge svg { width: 22px; height: 22px; }

.principle-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.principle-body h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}

.principle-body h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

.principle-card:hover .principle-body h4::after { width: 64px; }

.principle-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

/* =================================================================
   Academic Stage Cards (top of academics page)
================================================================= */
.stage-cards { gap: 24px; }

.stage-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.stage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 135, 63,0.4);
}

.stage-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.stage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.stage-card:hover .stage-card-img img { transform: scale(1.08); }

.stage-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 24, 34, 0.45) 100%);
}

.stage-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stage-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
  align-self: flex-start;
}

.stage-card-body h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--text);
}

.stage-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 14px;
  flex: 1;
}

.stage-card-body .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

/* Stage feature image (used in split sections) */
.stage-feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stage-feature-image img {
  width: 100%;
  height: 100%;
  max-height: 496px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.stage-feature-image:hover img { transform: scale(1.05); }

.stage-feature-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255,255,255,0.96);
  color: var(--primary-dark);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

/* =================================================================
   Refined Footer (used by components.js)
================================================================= */
.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 72px 0 0;
  font-size: 0.92rem;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #2E8FE0 50%, var(--primary) 100%);
}

.footer-top-deco {
  position: absolute;
  top: -100px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 135, 63,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

.footer-about { padding-right: 12px; }

.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-brand img {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-tagline {
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 20px;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-address {
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.footer-pay-btn {
  margin-top: 14px;
  width: 100%;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* =================================================================
   Section head & eyebrow polish
================================================================= */
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--primary);
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.7;
}

/* =================================================================
   Smooth fade-in upgrade
================================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   Card image kenburns / hover refinements
================================================================= */
.card { transition: transform var(--transition-slow), box-shadow var(--transition-slow); }

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

.card-image img { transition: transform 0.7s var(--ease-out); }

/* =================================================================
   Stat counters polish
================================================================= */
.stats {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.5) inset;
}

.stat-value {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--secondary);
}

.stat-value .unit {
  -webkit-text-fill-color: var(--text-muted);
}

/* =================================================================
   Hero refinements
================================================================= */
.hero-slide-content h1 {
  letter-spacing: -0.01em;
}

.hero-slide-content .btn {
  margin-top: 6px;
}

/* =================================================================
   Page banner polish
================================================================= */
.page-banner {
  background:

}

/* =================================================================
   Nav dropdown polish (subtle refinement)
================================================================= */
.dropdown-menu {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}

.dropdown-menu a {
  position: relative;
  padding-left: 20px;
}

.dropdown-menu a::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%) scale(0);
  transition: transform var(--transition);
}

.dropdown-menu a:hover::before,
.dropdown-menu a.is-active::before {
  transform: translateY(-50%) scale(1);
}

.dropdown-menu a.is-active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Active nav indicator on parent (e.g. when child link active) */
.has-dropdown.is-active > .nav-link { color: var(--primary); }
.has-dropdown.is-active > .nav-link::after { transform: scaleX(1); }

/* =================================================================
   Footer-bottom refinement
================================================================= */
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 600px) {
  .footer-bottom-inner { justify-content: center; text-align: center; }
}

/* =================================================================
   Topbar mobile
================================================================= */
@media (max-width: 991px) {
  .topbar-info { display: none; }
  .topbar-actions { width: 100%; justify-content: center; }
}

/* =================================================================
   Reduced motion
================================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* =================================================================
   Testimonials — card wall (added Phase 1)
================================================================= */
.testimonial-wall {
  column-count: 3;
  column-gap: 24px;
  margin-top: 8px;
}
.testimonial-card {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 24px 22px;
  margin: 0 0 24px;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.testimonial-card .quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 56px;
  line-height: 0.6;
  color: var(--primary);
  opacity: 0.18;
  display: block;
  margin-bottom: 6px;
}
.testimonial-text {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.72;
  margin: 0 0 18px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}
.testimonial-avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.testimonial-avatar.is-partner {
  background: var(--secondary-light);
  color: var(--secondary-dark);
}
.testimonial-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.3;
}
.testimonial-role {
  font-size: 12.5px;
  color: var(--text-light);
  margin-top: 2px;
}
.testimonial-card .stars {
  color: var(--accent, var(--secondary));
  color: #f0a500;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .testimonial-wall { column-count: 2; column-gap: 20px; }
  .testimonial-card { margin-bottom: 20px; }
}
@media (max-width: 600px) {
  .testimonial-wall { column-count: 1; }
}

/* =================================================================
   Teachers' Handbook — landing page (added Phase 1)
================================================================= */
.handbook-download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--gradient-secondary);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-secondary);
}
.handbook-download .hd-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.handbook-download .hd-icon svg { width: 30px; height: 30px; fill: #fff; }
.handbook-download .hd-title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.handbook-download .hd-meta { font-size: 13.5px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.handbook-download .hd-actions { display: flex; flex-direction: column; gap: 10px; }
.handbook-download .btn-paper {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--secondary-dark);
  font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.handbook-download .btn-paper:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.handbook-download .hd-dl { color: rgba(255,255,255,0.92); font-size: 13px; text-align: center; text-decoration: underline; }
.handbook-parts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.handbook-part {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  background: var(--bg);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.handbook-part:hover { box-shadow: var(--shadow-sm); border-color: var(--primary-light); }
.handbook-part .part-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.handbook-part .part-badge {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 10px;
  background: var(--primary-light); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px;
}
.handbook-part h3 { font-size: 16.5px; margin: 0; color: var(--text); }
.handbook-part p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.handbook-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--primary-soft);
  border: 1px solid var(--primary-light);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 28px;
}
.handbook-note .hn-icon { color: var(--primary); flex: 0 0 auto; font-size: 20px; line-height: 1.4; }
.handbook-note p { margin: 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 768px) {
  .handbook-download { grid-template-columns: 1fr; text-align: center; gap: 18px; }
  .handbook-download .hd-icon { margin: 0 auto; }
  .handbook-download .hd-actions { align-items: center; }
  .handbook-parts { grid-template-columns: 1fr; }
}
