/* =========================================================
   Sri Sai Vidhyalaya Matriculation School – main stylesheet
   Colours are taken from the school emblem.
   ========================================================= */
:root {
  --pink: #E4007C;
  --blue: #00AEEF;
  --green: #00A651;
  --navy: #2E3192;
  --navy-deep: #1B1D5E;
  --orange: #CC6E3A;
  --gold: #F7B500;

  --ink: #1A1C3A;
  --muted: #5B5F7B;
  --bg: #FFFFFF;
  --tint: #F4F7FD;
  --line: #E4E8F2;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 49, 146, .10);
  --shadow-lg: 0 24px 60px rgba(46, 49, 146, .18);
  --font: "Plus Jakarta Sans", "Noto Sans Tamil", system-ui, sans-serif;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lang-ta { line-height: 1.8; }
body.lang-ta .section__title, body.lang-ta .hero__title { letter-spacing: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--font); cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent {
  background: linear-gradient(135deg, var(--pink), #FF4FA3);
  color: #fff; box-shadow: 0 8px 22px rgba(228, 0, 124, .3);
}
.btn--accent:hover { box-shadow: 0 12px 28px rgba(228, 0, 124, .4); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-deep); color: #D7DAFF; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }

.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12); font: 600 .78rem var(--font);
}
.lang-toggle__opt { padding: 3px 12px; border-radius: 999px; color: #D7DAFF; transition: .2s; }
.lang-toggle__opt.is-active { background: #fff; color: var(--navy); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(27,29,94,.08); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,174,239,.25); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 800; font-size: 1.25rem; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font-size: .78rem; color: var(--pink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 8px 14px; font-weight: 600; font-size: .95rem; color: var(--muted);
  border-radius: 10px; transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); background: var(--tint); }
.nav__cta { margin-left: 10px; }

.menu-btn {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px;
  background: var(--tint); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy); transition: .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- News ticker ---------- */
.ticker { display: flex; align-items: stretch; background: var(--gold); color: var(--navy-deep); font-weight: 600; font-size: .92rem; overflow: hidden; }
.ticker__label {
  flex-shrink: 0; display: flex; align-items: center; padding: 10px 18px;
  background: var(--pink); color: #fff; font-weight: 700; position: relative; z-index: 1;
}
.ticker__label::after {
  content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px;
  background: var(--pink); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ticker__track { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker__move { display: inline-flex; gap: 48px; padding-left: 100%; white-space: nowrap; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Kolam pattern (Tamil dot-kolam motif) ---------- */
.hero__kolam, .footer__kolam {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232E3192' stroke-width='1.4' opacity='.55'%3E%3Cpath d='M40 8 C58 8 72 22 72 40 C72 58 58 72 40 72 C22 72 8 58 8 40 C8 22 22 8 40 8Z'/%3E%3Cpath d='M40 20 L60 40 L40 60 L20 40Z'/%3E%3C/g%3E%3Cg fill='%23E4007C' opacity='.6'%3E%3Ccircle cx='40' cy='40' r='2.5'/%3E%3Ccircle cx='0' cy='0' r='2.5'/%3E%3Ccircle cx='80' cy='0' r='2.5'/%3E%3Ccircle cx='0' cy='80' r='2.5'/%3E%3Ccircle cx='80' cy='80' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(0,174,239,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(228,0,124,.12), transparent 60%),
    linear-gradient(180deg, #FBFCFF, #EEF3FD);
}
.hero__kolam { opacity: .09; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px;
  padding: clamp(48px, 8vw, 110px) 0;
}
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(0,166,81,.1); color: var(--green); font-weight: 700; font-size: .82rem;
  border: 1px solid rgba(0,166,81,.25);
}
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 20px; }
.hero__title span { display: block; }
.t-pink { color: var(--pink); } .t-blue { color: var(--blue); } .t-green { color: var(--green); }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; display: grid; place-items: center; }
.hero__photo {
  width: min(520px, 100%); aspect-ratio: 5 / 4; border-radius: 28px; overflow: hidden; border: 10px solid #fff; background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 14px rgba(0,174,239,.08), 0 0 0 30px rgba(228,0,124,.05);
  animation: floaty 6s ease-in-out infinite;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 60%; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

.float-card {
  position: absolute; display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow); line-height: 1.25;
}
.float-card strong { font-size: 1.3rem; color: var(--navy); }
.float-card small { color: var(--muted); font-weight: 600; }
.float-card--a { left: 0; top: 12%; border-left: 4px solid var(--pink); }
.float-card--b { right: 0; bottom: 10%; border-left: 4px solid var(--green); }

/* ---------- Thirukkural ---------- */
.kural { background: linear-gradient(120deg, var(--navy), var(--navy-deep)); color: #fff; }
.kural__inner { display: grid; grid-template-columns: auto 1fr; gap: 8px 40px; align-items: center; padding: 34px 0; }
.kural__badge { display: flex; flex-direction: column; grid-row: span 2; padding-right: 40px; border-right: 1px solid rgba(255,255,255,.2); }
.kural__title { font-weight: 700; color: var(--gold); }
.kural__no { font-size: .85rem; opacity: .75; }
.kural__text { margin: 0; font-family: "Noto Sans Tamil", var(--font); font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 600; line-height: 1.7; }
.kural__meaning { margin: 0; opacity: .8; font-size: .95rem; }

/* ---------- Stats ---------- */
.stats { padding: 0; margin-top: -1px; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  transform: translateY(40px); position: relative; z-index: 2; overflow: hidden;
}
.stat { padding: 28px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat:nth-child(1) .stat__num { color: var(--pink); }
.stat:nth-child(2) .stat__num { color: var(--blue); }
.stat:nth-child(3) .stat__num { color: var(--green); }
.stat:nth-child(4) .stat__num { color: var(--orange); }
.stat__label { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.stats + .section { padding-top: clamp(100px, 12vw, 150px); }
.section--tint { background: var(--tint); }
.section--navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.section--navy .section__title { color: #fff; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--pink);
}
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; border-radius: 3px; background: currentColor; vertical-align: middle; margin-right: 8px; }
.eyebrow--light { color: var(--gold); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.about__text > p { color: var(--muted); font-size: 1.05rem; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.vm__card { padding: 22px; border-radius: var(--radius); background: var(--tint); border: 1px solid var(--line); }
.vm__card h3 { color: var(--navy); font-size: 1.1rem; margin-top: 8px; }
.vm__card p { color: var(--muted); font-size: .93rem; margin: 0; }
.vm__icon { font-size: 1.6rem; }

.message {
  position: relative; padding: 32px; border-radius: 24px; color: #fff;
  background: linear-gradient(150deg, var(--pink), #9B0A7A 70%, var(--navy));
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.message::after { content: "”"; position: absolute; right: 18px; bottom: -60px; font-size: 14rem; line-height: 1; opacity: .12; font-family: Georgia, serif; }
.message__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.message__head h3 { margin: 0; font-size: 1.15rem; }
.message__head small { opacity: .8; }
.message__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 1.4rem; border: 2px solid rgba(255,255,255,.5); }
.message__body { font-size: 1.02rem; line-height: 1.75; margin: 0; position: relative; z-index: 1; }

/* ---------- Academics ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.level {
  --c: var(--navy);
  position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); border-top: 5px solid var(--c); transition: transform .25s, box-shadow .25s;
  overflow: hidden;
}
/* Optional photo at the top of a card */
.level__img {
  display: block; width: calc(100% + 48px); max-width: none; margin: -28px -24px 20px; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .4s;
}
.level:hover .level__img { transform: scale(1.04); }
.level:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.level--pink { --c: var(--pink); } .level--blue { --c: var(--blue); } .level--green { --c: var(--green); } .level--navy { --c: var(--navy); }
.level__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); margin-bottom: 14px; }
.level h3 { font-size: 1.25rem; color: var(--navy); }
.level p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Facilities ---------- */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fac { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: .25s; }
.fac:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.fac__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 1.6rem; margin-bottom: 16px; background: var(--tint); }
.fac:nth-child(4n+1) .fac__icon { background: rgba(228,0,124,.1); }
.fac:nth-child(4n+2) .fac__icon { background: rgba(0,174,239,.12); }
.fac:nth-child(4n+3) .fac__icon { background: rgba(0,166,81,.12); }
.fac:nth-child(4n+4) .fac__icon { background: rgba(247,181,0,.16); }
.fac h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 6px; }
.fac p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Results & events ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.toppers { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.toppers li {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.toppers__rank { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--gold); color: var(--navy-deep); flex-shrink: 0; }
.toppers li:nth-child(2) .toppers__rank { background: #D9DDE8; }
.toppers li:nth-child(3) .toppers__rank { background: #E3A374; }
.toppers__name { flex: 1; font-weight: 600; }
.toppers__mark { font-weight: 800; color: var(--gold); }

.event-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.event { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; color: var(--ink); }
.event__date {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.1;
}
.event__date b { font-size: 1.35rem; }
.event h4 { margin: 0 0 2px; color: var(--navy); font-size: 1rem; }
.event p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.g {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  color: #fff; cursor: pointer; transition: transform .3s;
}
.g:hover { transform: scale(1.02); }
.g > span { font-size: 3.4rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); transition: transform .3s; }
.g:hover > span { transform: scale(1.15); }
.g img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font-weight: 700;
  background: linear-gradient(transparent, rgba(0,0,0,.45));
}
.g--1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, var(--pink), #FF7AB8); }
.g--2 { background: linear-gradient(135deg, var(--gold), var(--orange)); }
.g--3 { background: linear-gradient(135deg, var(--green), #5FD39A); }
.g--4 { grid-column: span 2; background: linear-gradient(135deg, var(--blue), #7FD6F7); }
.g--5 { grid-column: span 2; background: linear-gradient(135deg, var(--orange), var(--green)); }
.g--6 { grid-column: span 2; background: linear-gradient(135deg, var(--navy), var(--blue)); }

/* ---------- Admission ---------- */
.admission { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.admission__info > p { color: var(--muted); font-size: 1.05rem; }
.docs-title { color: var(--navy); font-size: 1.1rem; margin-top: 24px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green); color: #fff; font-size: .75rem; font-weight: 800;
}

.form { padding: 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form h3 { color: var(--navy); font-size: 1.35rem; margin: 0 0 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.form input, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--tint);
  font: 500 1rem var(--font); color: var(--ink); transition: border-color .2s, background .2s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); background: #fff; }
.form .is-invalid { border-color: var(--pink); background: #FFF3F8; }
.form__msg { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form__msg.is-error { color: var(--pink); }
.form__msg.is-ok { color: var(--green); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list b { color: var(--navy); }
.contact__list p { margin: 2px 0 0; color: var(--muted); }
.contact__list a:hover { color: var(--pink); }
.contact__ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); font-size: 1.3rem; }
.map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-deep); color: #C9CCF2; overflow: hidden; }
.footer__kolam { opacity: .06; filter: invert(1); }
.footer__grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 64px 0 40px; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: var(--gold); }
.footer__motto { margin-top: 18px; font-weight: 600; color: #fff; }
.footer__motto span { color: var(--gold); font-weight: 600; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__links a:hover, .footer__addr a:hover { color: #fff; }
.footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; text-align: center; }

/* ---------- Floating buttons ---------- */
.fab {
  position: fixed; right: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); cursor: pointer; transition: transform .2s, opacity .3s;
}
.fab:hover { transform: scale(1.08); }
.fab--wa { bottom: 18px; background: #25D366; }
.fab--top { bottom: 84px; background: var(--navy); font-size: 1.3rem; font-weight: 700; opacity: 0; pointer-events: none; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Inner page banner ---------- */
.page-banner {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(0,174,239,.35), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(228,0,124,.35), transparent 60%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}
.page-banner .hero__kolam { opacity: .1; filter: invert(1); mask-image: none; -webkit-mask-image: none; }
.page-banner__inner { position: relative; padding: clamp(48px, 7vw, 84px) 0; }
.page-banner__title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 8px; }
.page-banner__sub { margin: 0; opacity: .85; font-size: clamp(.95rem, 1.6vw, 1.1rem); }
.crumbs { display: inline-flex; gap: 10px; align-items: center; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .85rem; font-weight: 600; }
.crumbs a { color: var(--gold); }
.crumbs a:hover { text-decoration: underline; }

.section__more { text-align: center; margin-top: 40px; }

/* ---------- CTA band ---------- */
.cta { padding: 0 0 clamp(64px, 9vw, 110px); }
.section--tint + .cta, .section + .cta { padding-top: 0; }
.cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px); border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--pink), #9B0A7A 55%, var(--navy));
  box-shadow: var(--shadow-lg);
}
.cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.cta p { margin: 0; opacity: .9; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--white { background: #fff; color: var(--pink); }
.btn--outline-white { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--navy); }

.stats--flat { padding: 0 0 clamp(64px, 9vw, 110px); background: var(--tint); }
.stats--flat .stats__grid { transform: none; }

/* ---------- Academics: timings ---------- */
.split--light .checklist { margin-top: 20px; }
.timings { padding: 32px; border-radius: 24px; background: var(--tint); border: 1px solid var(--line); }
.timings h3 { color: var(--navy); font-size: 1.3rem; }
.timings dl { margin: 16px 0 0; display: grid; gap: 4px; }
.timings dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.timings dl > div:last-child { border-bottom: 0; }
.timings dt { font-weight: 600; color: var(--muted); }
.timings dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }

/* ---------- Admissions: steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.step__no {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 6px rgba(0,174,239,.12);
}
.step h3 { color: var(--navy); font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font: 600 .92rem var(--font); color: var(--muted); transition: .2s;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery--grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; }
.gallery--grid .g { grid-column: auto; grid-row: auto; }
.gallery--grid .g--tall { grid-row: span 2; }
.g { background-color: var(--tint); }
.g img { transition: transform .5s; }
.g:hover img { transform: scale(1.05); }
.g--tall img { object-position: 50% 60%; }
.g figcaption { z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.g figcaption small { display: block; font-weight: 500; font-size: .8rem; opacity: .9; }
.gallery--grid .g.is-hidden { display: none; }
.g--c1 { background: linear-gradient(135deg, var(--pink), #FF7AB8); }
.g--c2 { background: linear-gradient(135deg, var(--gold), var(--orange)); }
.g--c3 { background: linear-gradient(135deg, var(--green), #5FD39A); }
.g--c4 { background: linear-gradient(135deg, var(--blue), #7FD6F7); }
.g--c5 { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.g--c6 { background: linear-gradient(135deg, var(--navy), var(--blue)); }

.lightbox {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; background: rgba(10,12,40,.92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; }
.lightbox__cap { color: #fff; font-weight: 600; margin: 14px 0 0; }
.lightbox__close, .lightbox__nav {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.15); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox__nav { top: 50%; right: auto; left: 16px; transform: translateY(-50%); font-size: 2rem; }
.lightbox__nav--next { left: auto; right: 16px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.3); }

/* ---------- Photo strip (inner pages) ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.photo-strip figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.photo-strip img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-strip figcaption { padding: 14px 18px; font-weight: 700; color: var(--navy); }
.photo-strip figcaption small { display: block; font-weight: 500; color: var(--muted); }

/* About page intro photo */
.about__photo { margin: 0; position: relative; }
.about__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.about__photo figcaption {
  position: absolute; left: 24px; bottom: -16px; padding: 8px 16px; border-radius: 999px;
  background: var(--pink); color: #fff; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow);
}

/* ---------- Info cards (school diary content) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.info-grid--3 { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card h3 { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 1.12rem; margin-bottom: 14px; }
.info-card__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.3rem; background: var(--tint); }
.info-card:nth-child(3n+1) .info-card__ic { background: rgba(228,0,124,.1); }
.info-card:nth-child(3n+2) .info-card__ic { background: rgba(0,174,239,.12); }
.info-card:nth-child(3n+3) .info-card__ic { background: rgba(0,166,81,.12); }
.info-card p, .info-card li { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.info-card p:last-child { margin-bottom: 0; }
.info-card b { color: var(--ink); }
.info-card ol, .info-card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.info-card li::marker { color: var(--pink); font-weight: 700; }
.docs-note { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--gold); border-radius: 8px; background: #fff; font-size: .92rem; color: var(--muted); }
.rules { list-style: none; counter-reset: r; padding: 0; margin: 0; columns: 2; column-gap: 40px; }
.rules li { counter-increment: r; position: relative; break-inside: avoid; padding: 0 0 18px 48px; color: var(--muted); line-height: 1.65; }
.rules li::before {
  content: counter(r); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: .85rem;
}
@media (max-width: 1080px) { .info-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) { .info-grid, .info-grid--3 { grid-template-columns: 1fr; } .rules { columns: 1; } }

/* ---------- Admission popup ---------- */
.promo {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 110; display: grid; place-items: center; padding: 16px;
  background: rgba(10,12,40,.72); backdrop-filter: blur(3px); animation: promoFade .3s ease;
}
.promo[hidden] { display: none; }
body.promo-open { overflow: hidden; }
.promo__box {
  /* width follows the screen height too, so the 4:5 poster never leaves side gaps or pushes the buttons off-screen */
  position: relative; box-sizing: border-box; background: #fff; border-radius: 22px; padding: 10px;
  width: min(460px, 100%, calc((100vh - 120px) * .8 + 20px));
  width: min(460px, 100%, calc((100dvh - 120px) * .8 + 20px));
  box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: promoPop .4s cubic-bezier(.2,.9,.3,1.2);
}
.promo__img { display: block; }
.promo__img img { width: 100%; height: auto; border-radius: 14px; }
.promo__actions { display: flex; gap: 10px; padding: 10px 2px 2px; }
.promo__actions .btn { flex: 1; }
.promo__close {
  position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff;
  background: var(--pink); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
.promo__close:hover { transform: scale(1.08); }
@media (max-width: 520px) {
  .promo { padding: 18px 14px; }
  /* phones get the tall 9:16 poster (see <picture> in index.html) */
  .promo__box { padding: 6px; border-radius: 18px; width: min(100%, calc((100vh - 100px) * .5625 + 12px)); width: min(100%, calc((100dvh - 100px) * .5625 + 12px)); }
  .promo__img img { border-radius: 13px; }
  .promo__actions { gap: 8px; padding: 8px 0 0; }
  .promo__actions .btn { padding: .8em 1em; font-size: .95rem; }
  .promo__close { top: -12px; right: -8px; width: 38px; height: 38px; font-size: 1.4rem; }
}
@keyframes promoFade { from { opacity: 0; } }
@keyframes promoPop { from { opacity: 0; transform: scale(.85) translateY(20px); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__move { padding-left: 16px; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .topbar__info > span { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav__link { padding: 8px 10px; font-size: .9rem; }
  .levels, .facilities { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .gallery--grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip figure:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .about__photo { margin-bottom: 16px; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__actions { justify-content: center; }
  :root { --header-h: 72px; }
  .menu-btn { display: flex; }
  /* backdrop-filter would make the header the containing block of the fixed menu and trap it inside the header */
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 32px;
    background: #fff; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 16px; font-size: 1.05rem; color: var(--navy); border-bottom: 1px solid var(--line); border-radius: 12px;
  }
  .nav__link::after { content: "›"; font-size: 1.4rem; line-height: 1; color: var(--pink); }
  .nav__link.is-active { background: var(--tint); border-bottom-color: transparent; }
  .nav__cta { margin: 18px 0 0; padding: 15px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
  body.menu-open .fab { display: none; }

  .brand__logo { width: 50px; height: 50px; }
  .brand__name { font-size: 1.1rem; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; }
  .hero__photo { width: min(460px, 100%); border-width: 8px; }
  .float-card { padding: 8px 14px; }
  .float-card strong { font-size: 1.05rem; }

  .kural__inner { grid-template-columns: 1fr; text-align: center; }
  .kural__badge { grid-row: auto; padding: 0 0 12px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about, .split, .admission, .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .g--1 { grid-column: span 2; grid-row: span 1; }
  .g--4, .g--5, .g--6 { grid-column: span 1; }
  .g--6 { grid-column: span 2; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }
  .timings { padding: 24px 18px; }
  .hide-sm { display: none; }
  .topbar { font-size: .8rem; }
  .topbar__inner { flex-wrap: nowrap; min-height: 38px; }
  .topbar__info { gap: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .topbar .social--top { display: none; }
  .lang-toggle__opt { padding: 3px 10px; }
  .cta h2 { font-size: 1.45rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 48px 0 32px; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
  .kural__text { font-size: 1rem; }
  .brand__sub { font-size: .7rem; max-width: 52vw; }
  .vm, .levels, .facilities, .form__row { grid-template-columns: 1fr; }
  .facilities { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fac { padding: 18px 14px; }
  .fac__icon { width: 46px; height: 46px; font-size: 1.3rem; margin-bottom: 10px; }
  .fac p { font-size: .82rem; }
  .form, .message { padding: 24px 18px; }
  .ticker { font-size: .85rem; }
  .ticker__label { padding: 8px 12px; }
  .hero__actions .btn { width: 100%; }
  .float-card--a { left: -4px; } .float-card--b { right: -4px; }
  .photo-strip { grid-template-columns: 1fr; gap: 16px; }
  .gallery--grid { grid-auto-rows: 140px; gap: 10px; }
  .g figcaption { padding: 24px 12px 10px; font-size: .85rem; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 1.6rem; left: 8px; }
  .lightbox__nav--next { left: auto; right: 8px; }
}

@media (max-width: 374px) {
  .topbar__office { display: none; }
}

/* ---------- Social icons (Instagram / Facebook) ---------- */
.topbar__right { display: flex; align-items: center; gap: 12px; }
.social { display: flex; align-items: center; gap: 8px; }
.social__link {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: #fff; background: rgba(255,255,255,.12); transition: transform .2s, background .2s;
}
.social__link:hover { transform: translateY(-2px); }
.social__link--ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social__link--fb:hover { background: #1877F2; }
.social--top .social__link svg { width: 15px; height: 15px; }
.social--footer { margin-top: 18px; gap: 10px; }
.social--footer > span { font-weight: 600; color: #fff; margin-right: 4px; }
.social--footer .social__link { width: 40px; height: 40px; }
.social--footer .social__link--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social--footer .social__link--fb { background: #1877F2; }

/* ---------- Leadership messages (Correspondent / Principal) ---------- */
.about--single { grid-template-columns: 1fr; }

/* Photo frame: shows the icon placeholder until assets/images/<role>.jpg exists */
.leader__photo, .mini__photo {
  position: relative; flex-shrink: 0; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center;
}
.leader__photo::before, .mini__photo::before { content: attr(data-icon); color: #fff; }
.leader__photo img, .mini__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.leaders { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.leader {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 36px 32px 32px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); border-top: 5px solid var(--pink);
}
.leader--principal { border-top-color: var(--blue); }
.leader__photo {
  width: 150px; height: 150px; margin-bottom: 20px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--pink), var(--shadow);
}
.leader--principal .leader__photo { background: linear-gradient(135deg, var(--green), var(--blue)); box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--blue), var(--shadow); }
.leader__photo::before { font-size: 3.2rem; }
.leader__role { color: var(--navy); font-size: 1.3rem; }
.leader__msg { position: relative; margin: 0 0 20px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.leader__msg::before { content: "“"; display: block; height: 34px; font: 700 4rem/1 Georgia, serif; color: var(--pink); opacity: .35; }
.leader--principal .leader__msg::before { color: var(--blue); }
.leader__sign { margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--line); width: 100%; display: grid; }
.leader__sign b { color: var(--navy); font-size: 1.05rem; }
.leader__sign span { color: var(--muted); font-size: .88rem; }

/* Home page compact version */
.leaders-mini {
  display: grid; gap: 14px; padding: 24px; border-radius: 24px; color: #fff;
  background: linear-gradient(150deg, var(--pink), #9B0A7A 60%, var(--navy)); box-shadow: var(--shadow-lg);
}
.mini { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.1); transition: background .2s; }
.mini:hover { background: rgba(255,255,255,.18); }
.mini__photo { width: 76px; height: 76px; border: 3px solid rgba(255,255,255,.7); }
.mini__photo::before { font-size: 1.8rem; }
.mini h3 { font-size: 1rem; margin: 0 0 4px; }
.mini p { margin: 0 0 4px; font-size: .9rem; line-height: 1.55; opacity: .95; }
.mini small { opacity: .8; }
.leaders-mini__more { justify-self: end; font-weight: 700; font-size: .9rem; color: var(--gold); }
.leaders-mini__more:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .leaders { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .leader { padding: 28px 18px 24px; }
  .leader__photo { width: 124px; height: 124px; }
  .mini { align-items: flex-start; }
  .mini__photo { width: 60px; height: 60px; }
}

.footer__credit { display: block; margin-top: 4px; opacity: .8; font-size: .8rem; }
.footer__credit a { color: var(--gold); font-weight: 700; }
.footer__credit a:hover { text-decoration: underline; }
