/* ===== Blue Bells English Medium School styles ===== */
:root {
  --navy: #12307a;
  --blue: #1f4fd8;
  --blue-soft: #eaf1ff;
  --yellow: #f5b301;
  --ink: #1b2440;
  --muted: #5b6785;
  --line: #e1e7f5;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(18, 48, 122, .10);
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font-body); color: var(--ink); line-height: 1.65; font-size: 17px; background: var(--white); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--yellow); color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px; border: 2px solid var(--yellow); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 179, 1, .35); }
.btn-small { padding: 9px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); box-shadow: none; }
.btn-ghost-dark { background: transparent; color: var(--blue); border-color: var(--blue); margin-top: 8px; }
.btn-ghost-dark:hover { background: var(--blue-soft); box-shadow: none; }
.btn-whatsapp { background: #1fa855; border-color: #1fa855; color: #fff; width: 100%; }
.btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(31, 168, 85, .35); }

/* Top bar */
.topbar { background: var(--navy); color: #dbe5ff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; flex-wrap: wrap; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-links a:hover { color: #fff; }
.topbar-badge { background: var(--yellow); color: var(--navy); font-weight: 700; padding: 3px 14px; border-radius: 999px; font-size: 13px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 20px; color: var(--navy); line-height: 1.1; }
.brand-text small { font-size: 12.5px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); position: relative; padding-block: 4px; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--yellow); transition: width .2s; }
.nav a:not(.btn):hover::after { width: 100%; }
.menu-btn { display: none; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 6px; }
.menu-btn .ic { width: 28px; height: 28px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 72px; }
.pill { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 5px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 52px); font-weight: 700; margin-bottom: 18px; }
.hero h1 span { color: var(--yellow); }
.hero p { font-size: 18px; color: #dbe5ff; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 40% 50%; border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.3); border: 4px solid rgba(255,255,255,.25); }

/* Highlight strip */
.strip { position: relative; z-index: 2; margin-top: -34px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.strip-grid div { padding: 22px 20px; text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.strip-grid div:last-child { border-right: 0; }
.strip-grid strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 17px; line-height: 1.3; }
.strip-grid span { font-size: 14px; color: var(--muted); line-height: 1.35; }

/* Sections */
.section { padding-block: 84px; }
.section-tint { background: var(--blue-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.muted { color: var(--muted); font-size: 14.5px; }

/* Photo placeholders */
.ph { background: linear-gradient(135deg, #cfe0ff, #eaf1ff); border: 2px dashed #a9c1f5; border-radius: var(--radius); display: grid; place-items: center; color: var(--blue); font-family: var(--font-head); font-weight: 500; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-grid p { color: var(--muted); margin-bottom: 18px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 13px; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* Leadership */
.leaders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 820px; margin-inline: auto; }
.leader { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow); }
.leader-photo { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; object-position: top; border: 4px solid var(--blue-soft); }
.ph.leader-photo { border: 2px dashed #a9c1f5; }
.leader h3 { font-size: 19px; }
.leader .muted { margin-bottom: 4px; }
.leader .quote { font-family: var(--font-head); font-weight: 500; color: var(--blue); font-size: 15px; margin-top: 10px; }

.lead { color: var(--muted); }

/* Co-curricular */
.cocurricular { margin-top: 44px; background: var(--blue-soft); border-radius: var(--radius); padding: 28px; text-align: center; }
.cocurricular h3 { font-size: 20px; margin-bottom: 6px; }
.cocurricular > p { color: var(--muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; font-size: 14.5px; padding: 6px 16px; border-radius: 999px; }

/* Cards */
.cards { display: grid; gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.six { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.card-icon .ic { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 2px; }
.card .muted { margin-bottom: 10px; }
.card p:last-child { color: var(--muted); }
.feature { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line); }
.feature .ic { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--blue); color: #fff; }
.feature h3 { font-size: 16.5px; margin-bottom: 2px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(8, 20, 60, .75)); }
.gallery .g1 { grid-row: span 2; }
.gallery .g4, .gallery .g6 { grid-column: span 2; }

/* New campus */
.campus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campus img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.campus .c1 { grid-column: span 2; aspect-ratio: 2.2 / 1; }

/* SSC results */
.results { margin-top: 44px; background: var(--navy); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.results figcaption { padding: 26px 28px 18px; text-align: center; }
.results h3 { color: var(--yellow); font-size: 22px; margin-bottom: 6px; }
.results p { color: #dbe5ff; }
.results img { width: 100%; height: auto; display: block; }

/* Admissions */
.section-blue { background: var(--navy); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.section-head.light p:last-child { color: #c9d8ff; }
.section-blue .eyebrow { color: var(--yellow); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.steps li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 26px 22px; }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: #c9d8ff; font-size: 15px; }
.docs { background: rgba(255,255,255,.08); border-left: 4px solid var(--yellow); border-radius: 10px; padding: 22px 26px; }
.docs h3 { font-size: 17px; margin-bottom: 6px; }
.docs p { color: #dbe5ff; }

.infogrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.infogrid div { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 22px; }
.infogrid h3 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.infogrid p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.note-light { margin-top: 18px; font-size: 14.5px; color: #c9d8ff; text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { margin: 22px 0 18px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.contact-list a { color: var(--blue); font-weight: 600; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h3 { font-size: 22px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fafcff; width: 100%; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: -4px; }

.callbox { max-width: 720px; margin: 0 auto 36px; text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 30px 24px; }
.callbox > p:first-child { font-size: 18px; color: #fff; margin-bottom: 16px; }
.callbox-numbers { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.callbox-visit { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin-top: 18px; color: #c9d8ff; font-size: 15px; text-align: left; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* Footer */
.footer { background: #0b1d4d; color: #c3d1f7; padding-top: 44px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 30px; }
.footer strong { color: #fff; font-family: var(--font-head); font-size: 18px; }
.footer p { font-size: 15px; margin-top: 4px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; font-size: 15px; }
.footer-links a:hover { color: var(--yellow); }
.copy { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 13.5px; text-align: center; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ic { width: 28px; height: 28px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { padding-block: 48px 64px; }
  .hero-art { order: -1; max-width: 420px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid div:nth-child(2) { border-right: 0; }
  .strip-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards.three, .cards.six { grid-template-columns: repeat(2, 1fr); }
  .steps, .infogrid { grid-template-columns: repeat(2, 1fr); }
  .map iframe { min-height: 300px; }
  .section { padding-block: 64px; }

  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px rgba(18,48,122,.08); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar-links { gap: 14px; font-size: 13px; }
  .topbar-inner { justify-content: center; }
  .cards.three, .cards.six, .steps, .infogrid, .leaders { grid-template-columns: 1fr; }
  .map iframe { height: 280px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gallery .g1 { grid-row: span 1; }
  .gallery .g4, .gallery .g6 { grid-column: span 1; }
  .campus { grid-template-columns: 1fr; }
  .campus .c1 { grid-column: span 1; aspect-ratio: 4 / 3; }
  .brand-text small { font-size: 11px; }
  .brand-text strong { font-size: 18px; }
  .form { padding: 22px; }
}


/* ===== Mobile refinements ===== */
.results-link { position: relative; display: block; }
.results-hint { display: none; }
.mobile-bar { display: none; }
.contact-list span { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  /* keep the page clear of the bottom bar */
  body { padding-bottom: 64px; }
  .wa-float { display: none; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(18,48,122,.12); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 58px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
  .mobile-bar a:nth-child(1) { background: var(--yellow); }
  .mobile-bar a:nth-child(2) { color: #11823f; }
  .mobile-bar .ic { width: 22px; height: 22px; }

  /* top bar is redundant on phones (hero + bottom bar cover it) */
  .topbar { display: none; }

  /* header */
  .header-inner { padding-block: 8px; gap: 12px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { font-size: 11.5px; white-space: nowrap; }
  .menu-btn { padding: 10px; margin-right: -10px; }
  .nav a:not(.btn) { padding: 15px 0; font-size: 16px; }
  .nav { max-height: calc(100vh - 110px); overflow-y: auto; }

  /* hero: headline first, then a short photo */
  .hero-inner { padding-block: 32px 56px; gap: 26px; }
  .hero-art { order: 0; max-width: none; }
  .hero-art img { aspect-ratio: 16 / 10; border-radius: 20px; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero p { font-size: 16px; margin-bottom: 22px; }
  .pill { font-size: 13px; margin-bottom: 14px; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding: 13px 10px; font-size: 15px; white-space: nowrap; }

  /* general rhythm */
  .section { padding-block: 52px; }
  .section-head { margin-bottom: 30px; }
  .section h2 { font-size: 26px; }
  .container { width: min(1120px, 100% - 32px); }
  .strip-grid div { padding: 16px 8px; }
  .strip-grid strong { font-size: 14.5px; }
  .strip-grid span { font-size: 12.5px; }
  .about-grid { gap: 26px; }
  .card { padding: 24px 22px; }
  .callbox { padding: 24px 18px; }
  .callbox .btn { width: 100%; font-size: 17px; padding-block: 15px; }
  .map iframe { min-height: 280px; }
  .results figcaption { padding: 22px 18px 14px; }
  .results-hint { display: block; text-align: center; font-size: 13px; color: #c9d8ff; padding: 10px 0 14px; }
  .btn-ghost-dark { width: 100%; padding-block: 14px; }
  .footer { padding-bottom: 8px; }
  .footer-links { gap: 14px 22px; }
}

@media (max-width: 600px) {
  .gallery figcaption { font-size: 12px; padding: 22px 10px 8px; }
  .chips li { font-size: 13.5px; padding: 5px 13px; }
  .feature { padding: 16px; }
  .leader { padding: 24px 18px; }
}

@media (max-width: 360px) {
  .brand-text small { font-size: 10.5px; }
  .hero h1 { font-size: 27px; }
}


/* Clickable photos + View more */
[data-lightbox] { cursor: zoom-in; }
[data-lightbox]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); box-shadow: none; }
.more-cta { text-align: center; margin-top: 28px; }
.more { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 16px; margin-top: 16px; }
.more figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); }
.more[hidden] { display: none; }
.more img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.more figure:hover img { transform: scale(1.05); }
.more figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(8, 20, 60, .75)); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 14, 40, .94); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
.lightbox[hidden] { display: none; }
.lb-fig { max-width: min(1100px, 100%); text-align: center; }
.lb-fig img { max-width: 100%; max-height: 78vh; border-radius: 10px; margin-inline: auto; }
.lb-fig figcaption { color: #dbe5ff; margin-top: 12px; font-size: 15px; }
.lb-close, .lb-nav { background: rgba(255,255,255,.14); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; display: grid; place-items: center; flex: none; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

@media (max-width: 900px) {
  .more { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .more figcaption { font-size: 12px; padding: 22px 10px 8px; }
  .lightbox { padding: 10px; }
  .lb-nav { position: absolute; bottom: 24px; width: 48px; height: 48px; z-index: 2; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-fig img { max-height: 70vh; }
  .lb-fig figcaption { padding-bottom: 70px; }
}


/* Gallery page */
.nav a.active:not(.btn)::after { width: 100%; }
.page-hero { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; text-align: center; padding: 56px 0 60px; }
.page-hero .eyebrow { color: var(--yellow); }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); margin-bottom: 10px; }
.page-hero p:last-child { color: #dbe5ff; max-width: 560px; margin-inline: auto; }
.gallery-page { padding-block: 56px 72px; }
.gallery-group { margin-bottom: 52px; }
.gallery-group h2 { font-size: 26px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid var(--yellow); display: inline-block; }
.masonry { column-count: 3; column-gap: 16px; }
.masonry figure { position: relative; break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; background: var(--blue-soft); }
.masonry img { width: 100%; height: auto; display: block; transition: transform .4s; }
.masonry figure:hover img { transform: scale(1.04); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 10px; color: #fff; font-size: 14px; font-weight: 600; background: linear-gradient(transparent, rgba(8, 20, 60, .75)); }
@media (max-width: 900px) {
  .page-hero { padding: 38px 0 42px; }
  .gallery-page { padding-block: 36px 48px; }
  .gallery-group { margin-bottom: 38px; }
  .gallery-group h2 { font-size: 22px; }
  .masonry { column-count: 2; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }
  .masonry figcaption { font-size: 12px; padding: 22px 10px 8px; }
}

/* ===== Leadership (3 people) ===== */
.leaders { grid-template-columns: repeat(3, 1fr); max-width: 1040px; }
.leader .quote:empty { display: none; }

/* ===== Academics extras ===== */
.cards.teaching { margin-top: 22px; }
.cards.teaching .card h3 { margin-bottom: 8px; }
.ticks.small li { font-size: 15.5px; margin-bottom: 8px; }
.ticks.small { margin-top: 4px; }

.toppers, .alumni { margin-top: 44px; text-align: center; }
.toppers h3, .alumni h3 { font-size: 22px; margin-bottom: 18px; }
.topper-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 0 auto 18px; }
.topper-cards div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; box-shadow: var(--shadow); }
.topper-cards span { display: block; font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .08em; }
.topper-cards strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 17px; margin: 4px 0 2px; line-height: 1.3; }
.topper-cards em { font-style: normal; font-weight: 700; color: #11823f; font-size: 18px; }
details { max-width: 760px; margin: 0 auto; text-align: left; }
details summary { cursor: pointer; text-align: center; font-weight: 700; color: var(--blue); padding: 12px; border: 2px solid var(--blue); border-radius: 999px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary:hover { background: var(--blue-soft); }
details[open] summary { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
tbody tr:nth-child(even) { background: #f6f9ff; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child, th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }

.alumni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.alumni-grid div { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px 18px; }
.alumni-grid strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--yellow); line-height: 1.1; margin-bottom: 6px; }
.alumni-grid span { color: #dbe5ff; font-size: 15px; line-height: 1.45; display: block; }

.activities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; text-align: left; margin: 22px 0 6px; }
.activities h4 { font-family: var(--font-head); color: var(--navy); font-size: 16.5px; margin-bottom: 10px; }
.activities .chips { justify-content: flex-start; }
.exams { margin-top: 18px; font-size: 15.5px; }

/* ===== Admissions extras ===== */
.infogrid { grid-template-columns: repeat(4, 1fr); }
.uniform { margin-top: 28px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px 24px; }
.uniform h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.uniform-intro { color: #c9d8ff; font-size: 15px; margin-bottom: 18px; }
.uniform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uniform-grid > div { background: #fff; color: var(--ink); border-radius: 12px; padding: 18px; }
.uniform-grid h4 { font-family: var(--font-head); color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.uniform-grid p { font-size: 14.5px; line-height: 1.5; margin-bottom: 8px; color: var(--muted); }
.uniform-grid p:last-child { margin-bottom: 0; }
.uniform-grid strong { color: var(--navy); }

@media (max-width: 900px) {
  .leaders { grid-template-columns: 1fr; max-width: 420px; }
  .infogrid { grid-template-columns: repeat(2, 1fr); }
  .uniform-grid { grid-template-columns: 1fr; }
  .activities { grid-template-columns: 1fr; }
  .alumni-grid { grid-template-columns: 1fr; }
  .topper-cards { grid-template-columns: 1fr; }
  .toppers, .alumni { margin-top: 34px; }
}
@media (max-width: 600px) {
  .infogrid { grid-template-columns: 1fr; }
  .uniform { padding: 22px 16px; }
  th, td { padding: 9px 10px; font-size: 14px; }
}

@media (max-width: 900px) {
  .topper-cards { gap: 8px; }
  .topper-cards div { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 8px; padding: 12px 14px; text-align: left; }
  .topper-cards span { letter-spacing: 0; font-size: 14px; }
  .topper-cards strong { margin: 0; font-size: 16px; }
  .topper-cards em { font-size: 16px; }
}
