/* Polished cross-page visual system */
:root {
  --gutter: clamp(20px, 5vw, 72px);
  --radius-lg: 32px;
  --shadow-soft: 0 18px 50px rgba(14, 42, 71, .09);
}

.container,
.stage {
  width: min(1320px, calc(100% - (var(--gutter) * 2)));
}

.site-header {
  background: rgba(251, 248, 241, .96);
  backdrop-filter: blur(14px);
}

.main-nav a.nav-link {
  font-weight: 600;
  letter-spacing: -.01em;
}

.dropdown {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(14, 42, 71, .14);
  padding: 12px;
}

.dropdown a {
  border-radius: 10px;
  padding: 10px 12px;
}

.hero {
  border-bottom: 1px solid rgba(222, 219, 205, .7);
}

.js .hero .intro > *,
.js .hero .intro-art,
.js .hero > .tiger-hero,
.js .hero > .scroll-cue {
  opacity: 1;
  transform: none;
  animation: none;
}

@media (min-width: 1181px) {
  .hero-inner {
    padding-block: 0;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-bottom: 32px;
  }

  .hero-inner {
    padding: 48px 0 20px;
  }

  .hero-copy {
    max-width: 680px !important;
    margin-inline: auto;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero .btn-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-facts {
    margin: 36px auto 0;
  }

  .hero-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: min(640px, 92vw);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .tiger-hero {
    left: calc((100vw - min(640px, 92vw)) / 2 - 34px);
  }

  .scroll-cue {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .quest-expansion {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero h1,
.ph h1 {
  text-wrap: balance;
}

.hero-copy,
.ph-copy {
  isolation: isolate;
}

.btn {
  min-height: 48px;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 8px 22px rgba(14, 42, 71, .04);
}

.btn-primary,
.btn-apply {
  border-width: 1.5px;
}

.sec,
.why,
.spaces,
.steps,
.parents,
.foundation,
.journey,
.shaping,
.enquiry,
.grows,
.beyond,
.shine,
.brighter,
.dream,
.story,
.potential,
.message,
.faq {
  isolation: isolate;
}

.sec {
  padding-block: clamp(72px, 7vw, 112px);
}

.sec.tight {
  padding-block: clamp(52px, 6vw, 88px);
}

.h2 {
  text-wrap: balance;
  letter-spacing: -.035em;
}

.lead,
.copy-18,
.copy-dm {
  text-wrap: pretty;
}

.msplit {
  gap: clamp(36px, 6vw, 82px);
}

.msplit .media,
.media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.msplit .media img,
.media img {
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}

.msplit .media:hover img,
.media:hover img {
  transform: scale(1.025);
}

.cards,
.ann-row,
.dl-cards,
.docs,
.person-grid,
.club-grid,
.skill-grid {
  gap: 22px;
}

.icard,
.person,
.ann,
.dl-card,
.campus-card,
.form-panel,
.fee-card,
.docs {
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(14, 42, 71, .07);
  border: 1px solid rgba(221, 212, 192, .9);
}

.icard {
  background: rgba(255, 253, 249, .96);
}

.icard h3 {
  text-wrap: balance;
}

.step-c .dot,
.tabs button,
.filters button,
.chips li,
.pill {
  box-shadow: none;
}

.steps-path::before {
  opacity: .38;
}

/* Home page: parent benefits */
.why {
  padding-bottom: 0;
}

.why > .container {
  padding-bottom: 30px;
}

.why-body {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 2.8vw, 40px);
}

.why-list {
  gap: 36px;
  padding-top: 64px;
  padding-bottom: 54px;
}

.why-arch {
  width: 100%;
  height: 560px;
}

.why .why-plane {
  left: 5%;
  top: 88px;
  width: clamp(150px, 10vw, 190px);
  height: auto;
  z-index: 1;
}

.why .leaf {
  left: 0;
  bottom: 0;
  width: 180px;
  z-index: 1;
}

.why .tree {
  right: 0;
  bottom: 20px;
  width: 220px;
  z-index: 1;
  opacity: .9;
}

.why .wave {
  position: absolute;
  bottom: -1px;
  height: 95px;
  z-index: 4;
  margin-top: 0;
}

.quest-expansion {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 20px auto 0;
  list-style: none;
  text-align: left;
}

.quest .sec-head {
  max-width: 1080px;
}

.quest .quest-plane {
  top: 80px;
  right: 6%;
  width: clamp(130px, 10.8vw, 170px);
  height: auto;
  opacity: .85;
  z-index: 1;
}

.quest .sec-head > .h2,
.quest .sec-head > .copy-18 {
  max-width: 760px;
  margin-inline: auto;
}

.quest-expansion li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
}

.quest-expansion .quest-letter {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  color: #ffb48a;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}

.quest-expansion p {
  color: #d6e1ea;
  font-size: 13px;
  line-height: 1.45;
}

.quest-expansion strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 14px;
}

.form-card,
.form-panel,
.fee-card,
.campus-card,
.docs {
  background: rgba(255, 253, 249, .98);
}

.field {
  border: 1.5px solid #e4dccd;
  border-radius: 14px;
  min-height: 52px;
  background: #fff;
  padding-inline: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(3, 66, 142, .08);
  outline: 0;
  background: #fff;
}

textarea.field {
  min-height: 120px;
  resize: vertical;
}

.tbl-wrap {
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(14, 42, 71, .06);
}

.faq-list details {
  border: 1px solid rgba(3, 66, 142, .42);
  border-radius: 18px;
  background: rgba(255, 255, 255, .64);
}

.faq-list details[open] {
  box-shadow: 0 12px 28px rgba(14, 42, 71, .07);
  background: #eef7fc;
}

main > .ph {
  border-bottom: 1px solid rgba(222, 219, 205, .75);
  background:
    radial-gradient(circle at 82% 30%, rgba(231, 241, 248, .9), transparent 28rem),
    var(--cream);
}

.ph .stage {
  min-height: clamp(430px, 38vw, 560px);
}

.ph-art {
  filter: saturate(.96);
}

.spaces {
  padding: clamp(56px, 6vw, 80px) 0 64px;
}

.space-grid {
  gap: 24px 30px;
  margin-top: 32px;
}

.space {
  min-height: 400px;
  padding: 18px 22px 26px;
}

.space.wide {
  min-height: 520px;
  padding: 30px 28px 34px;
}

.space .ph {
  display: grid;
  place-items: center;
  border: 0;
  background: none;
}

.space .ph img {
  width: 100%;
  height: clamp(170px, 16vw, 220px);
  object-fit: contain;
}

.space.wide .ph img {
  height: clamp(220px, 21vw, 290px);
}

.space h3 {
  margin-top: 12px;
  line-height: 1.2;
  white-space: normal;
}

.space p {
  margin-top: 10px;
  line-height: 1.55;
}

.shaping {
  height: clamp(660px, 36.5vw, 700px);
  min-height: 0;
  background-color: #fbf8f1;
  background-image: url("../director-message-banner.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;
}

.shaping-copy {
  width: min(620px, calc(100% - (var(--gutter) * 2)));
  padding: 40px 0;
  left: 0;
  translate: 0 45px;
}

.shaping .quote-band {
  max-width: clamp(280px, 32vw, 520px);
}

.shaping .quote-band blockquote {
  font-size: clamp(32px, 2.1vw, 40px);
  line-height: 1.25;
}

.shaping .quote-band blockquote::before {
  font-size: 104px;
  margin-bottom: 12px;
}

.shaping .quote-band cite {
  margin-top: 24px;
}

.shaping-copy > .btn {
  margin-top: 26px !important;
}

.crumbs {
  width: fit-content;
  border: 1px solid rgba(222, 219, 205, .9);
  background: rgba(255, 255, 255, .72);
  border-radius: 100px;
  padding: 7px 12px;
  backdrop-filter: blur(8px);
}

.enquiry {
  border-top: 1px solid rgba(222, 219, 205, .7);
}

.enquiry .family {
  display: block;
}

.enquiry .callout-o {
  position: static;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 14px 0 0 auto;
  transform: none;
  text-align: right;
}

.enquiry .callout-o::after {
  margin-left: auto;
}

.form-card,
.enquiry-grid {
  position: relative;
  z-index: 3;
}

mark.tbc {
  background: #fff3cd;
  color: #735514;
  border: 1px solid #ead69a;
  font-weight: 700;
}

.tbc-note,
mark.tbc {
  border-radius: 8px;
}

.site-footer {
  background: #1d418d;
}

.site-footer .info-grid {
  gap: clamp(24px, 4vw, 54px);
}

.site-footer a,
.site-footer .enquire-link {
  transition: color .2s, opacity .2s;
}

.site-footer a:hover,
.site-footer .enquire-link:hover {
  color: #ffc59f;
}

@media (max-width:1180px) {
  .cards.c4,
  .cards.c5,
  .dl-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-body {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    padding-bottom: 90px;
  }

  .why-arch {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(380px, 100%);
    height: 500px;
    margin-top: 30px;
  }

  .why-list {
    padding: 0;
  }

  .split-head,
  .msplit,
  .foundation-grid,
  .parents-grid,
  .journey .split-head {
    gap: 34px;
  }

  .ph-art {
    margin-inline: auto;
  }
}

@media (max-width:760px) {
  :root {
    --gutter: 20px;
  }

  .container,
  .stage {
    width: calc(100% - (var(--gutter) * 2));
  }

  .topbar-inner {
    min-height: 38px;
  }

  .header-inner {
    padding-block: 10px 12px;
  }

  .logo img {
    width: 158px;
  }

  .main-nav {
    top: 66px;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding-top: 70px;
  }

  .hero-inner {
    padding: 34px 0 24px;
  }

  .hero-copy {
    max-width: 100% !important;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero .btn-row {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1,
  .ph h1 {
    font-size: clamp(38px, 10.5vw, 52px);
    line-height: 1.02;
  }

  .hero .lead,
  .ph .copy-18 {
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-art {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    display: block;
    width: min(640px, 100%);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .hero-facts {
    width: 100%;
    gap: 10px;
    justify-content: space-between;
    margin: 32px auto 0;
    padding-top: 16px;
  }

  .hero-facts li,
  .hero-facts li:last-child {
    min-width: 0;
    flex: 1;
    font-size: 13px;
  }

  .hero-facts li + li {
    padding-left: 10px;
  }

  .btn-row {
    gap: 12px;
  }

  .btn-row .btn {
    flex: 1 1 180px;
  }

  .split-head,
  .msplit,
  .foundation-grid,
  .parents-grid,
  .forms-2,
  .fee-card,
  .stage-tabs .panel {
    display: flex;
    flex-direction: column;
  }

  .split-head .side,
  .split-head .h2,
  .parents-copy,
  .parents-art,
  .foundation-copy,
  .foundation-art,
  .values-copy,
  .values-art {
    max-width: 100%;
    width: 100%;
  }

  .cards,
  .cards.c2,
  .cards.c4,
  .cards.c5,
  .ann-row,
  .dl-cards,
  .docs,
  .forms-2,
  .space-grid,
  .values-stats {
    grid-template-columns: 1fr;
  }

  .cards.c2,
  .cards.c4,
  .cards.c5 {
    gap: 16px;
  }

  .icard,
  .person,
  .ann,
  .dl-card {
    border-radius: 24px;
  }

  .space,
  .space.wide {
    grid-column: 1;
    min-height: 0;
  }

  .space .ph img {
    height: clamp(160px, 52vw, 220px);
  }

  .space.wide .ph img {
    height: clamp(190px, 60vw, 260px);
  }

  .values-stats .vr {
    display: none;
  }

  .steps-path {
    grid-template-columns: 1fr;
  }

  .quest-expansion {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .quest .quest-plane {
    top: 24px;
    right: 5%;
    width: 84px;
  }

  .steps-path::before {
    display: none;
  }

  .step-c {
    display: grid;
    grid-template-columns: 72px 1fr;
    text-align: left;
    align-items: center;
  }

  .step-c .dot {
    width: 64px;
    height: 64px;
    grid-row: 1 / span 2;
  }

  .why-body {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .why-arch {
    grid-column: 1;
    grid-row: 1;
    width: min(380px, 100%);
    height: 500px;
    margin-top: 20px;
  }

  .why-list {
    gap: 28px;
  }

  .step-c h3,
  .step-c p {
    grid-column: 2;
  }

  .ph .stage {
    min-height: 0;
  }

  .ph-art {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .msplit .media {
    border-radius: 24px;
  }

  .f-grid {
    grid-template-columns: 1fr;
  }

  .quest-expansion li {
    padding: 10px;
  }

  .form-panel,
  .modal-card,
  .fee-card {
    padding: 24px 18px;
  }

  .modal-card h2 {
    font-size: 28px;
  }

  .modal-tiger {
    width: 72px;
  }

  .site-footer .info-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .vline {
    display: none;
  }

  .gallery {
    columns: 1;
  }

  .marquee figure {
    width: 250px;
  }

  mark.tbc {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width:1400px) {
  .shaping {
    height: auto;
    min-height: 0;
    padding-top: 72px;
    background-position: center bottom;
  }

  .shaping-copy {
    padding: 0 0 170px;
    translate: none;
  }
}

@media (max-width:760px) {
  .shaping-copy {
    padding-top: 36px;
    padding-bottom: 170px;
  }

  .shaping .quote-band blockquote {
    font-size: clamp(25px, 7vw, 30px);
    line-height: 1.24;
  }

  .shaping .quote-band blockquote::before {
    font-size: 82px;
  }
}

@media (max-width:560px) {
  .shaping-copy {
    padding-bottom: 150px;
  }
}

@media (max-width:760px) {
  .msplit {
    align-items: stretch;
  }

  .msplit > * {
    width: 100%;
  }
}

@media (max-width:560px) {
  .stage-tabs .tabs {
    flex-wrap: wrap;
  }

  .stage-tabs .tabs button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width:400px) {
  .values-5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .values-5 li {
    min-width: 0;
  }
}

/* ---- Parent testimonials (home) ---- */
.testi-slider{position:relative;margin-top:40px}
.testi-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:6px 2px 14px}
.testi-track::-webkit-scrollbar{display:none}
.testi{flex:0 0 calc((100% - 48px)/3);scroll-snap-align:start;position:relative;display:flex;flex-direction:column;gap:18px;margin:0;padding:34px 28px 28px;border-radius:46px 46px 0 0/30px 30px 0 0;overflow:hidden;transition:transform .3s,box-shadow .3s}
.testi:hover{transform:translateY(-4px);box-shadow:0 18px 30px rgba(18,36,77,.06)}
.testi-1{background:#eceddb}.testi-2{background:#ecf7fc}.testi-3{background:#fcf3ee}.testi-4{background:#fcf3d7}.testi-5{background:#ecf7fc}
.testi .stars{display:flex;gap:3px;color:var(--orange)}
.testi .stars svg{width:18px;height:18px;fill:currentColor}
.testi blockquote{margin:0;font-family:var(--serif);font-size:21px;line-height:1.45;color:var(--navy);flex:1}
.testi .who strong{display:block;color:var(--navy);font-size:16px}
.testi .who span span{display:block;font-size:14px;color:var(--muted)}
.testi-ctrl{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:22px}
.testi-btn{width:48px;height:48px;border-radius:50%;border:1.5px solid var(--navy);background:transparent;color:var(--navy);cursor:pointer;display:grid;place-items:center;transition:background .2s,color .2s,opacity .2s}
.testi-btn:hover:not(:disabled){background:var(--navy);color:#fff}
.testi-btn:disabled{opacity:.35;cursor:default}
.testi-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.testi-dots{display:flex;gap:8px}
.testi-dots button{width:10px;height:10px;padding:0;border-radius:50%;border:0;background:var(--rule);cursor:pointer;transition:background .2s,width .2s}
.testi-dots button[aria-current="true"]{background:var(--orange);width:26px;border-radius:6px}
.testi-cta{text-align:center;margin-top:40px}
@media (max-width:900px){.testi{flex-basis:calc((100% - 24px)/2)}}
@media (max-width:640px){.testi{flex-basis:88%}.testi blockquote{font-size:19px}}
@media (prefers-reduced-motion:reduce){.testi-track{scroll-behavior:auto}}

/* ---- home: breathing room between hero and "Why Parents Choose Ananya" ---- */
.why { padding-top: 90px; }
.hero + .why .why-plane { top: 150px; }
@media (max-width: 760px) {
  .why { padding-top: 56px; }
  .hero + .why .why-plane { top: 100px; }
}

/* ---- Director banner: responsive, aligned (sun removed from artwork) ---- */
@media (max-width:1400px) {
  .shaping .quote-band { max-width: min(560px, 100%); }
}

@media (max-width:760px) {
  .shaping {
    background-image: none;
    background-color: #fbf8f1;
    padding-top: 48px;
  }

  .shaping::before,
  .shaping::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 50%;
    max-width: 300px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 1;
    pointer-events: none;
  }

  .shaping::before {
    left: 0;
    aspect-ratio: 780 / 768;
    background-image: url("../director-art-left.webp");
  }

  .shaping::after {
    right: 0;
    aspect-ratio: 748 / 768;
    background-image: url("../director-art-right.webp");
  }

  .shaping-copy {
    width: calc(100% - (var(--gutter) * 2));
    padding: 0 0 calc(50vw + 12px);
    margin-inline: auto;
  }

  .shaping .quote-band { max-width: 100%; }
  .shaping-copy > .btn { margin-top: 22px !important; }
}

@media (min-width:600px) and (max-width:760px) {
  .shaping-copy { padding-bottom: 310px; }
}

/* ---- Footer: fluid columns so nothing is squeezed or overlapped on laptop screens ---- */
@media (min-width:1181px) {
  .site-footer .info-grid {
    grid-template-columns: minmax(0, 1.5fr) 1px minmax(0, .85fr) 1px minmax(0, .95fr) 1px minmax(0, 1.25fr);
    gap: clamp(20px, 2.4vw, 40px);
  }
  .site-footer .f-logo { max-width: 100%; height: auto; }
  .site-footer .info-grid h4 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }
  .site-footer .info-grid .about p { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; }
  .site-footer .visit address { overflow-wrap: anywhere; }
}

@media (min-width:1181px) and (max-width:1599px) {
  .site-footer .sun,
  .site-footer .heart { display: none; }
}

@media (max-width:1180px) and (min-width:761px) {
  .site-footer .info-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .site-footer .vline { display: none; }
}

/* ---- Footer "Scroll Up" icon: smaller ---- */
.site-footer .to-top svg { width: 56px; height: 56px; }
.site-footer .to-top span { padding-bottom: 12px; }
@media (max-width:560px) {
  .site-footer .to-top svg { width: 44px; height: 44px; }
  .site-footer .to-top span { padding-bottom: 8px; }
}

/* ---- Academics: "Why CBSE?" card sits outside the photo, never clipped ---- */
.media:has(> .callout-card) {
  overflow: visible;
}
.media:has(> .callout-card) > img {
  border-radius: var(--radius-lg);
}
.media > .callout-card {
  z-index: 3;
  left: -40px;
  bottom: -40px;
  width: min(400px, 92%);
  padding: 26px 28px;
}
.media > .callout-card h3 {
  white-space: normal;
}
@media (max-width: 760px) {
  .media > .callout-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -40px auto 0;
    width: 92%;
  }
}

/* ---- Sticky header: smooth scrolling (no jerk) ----
   - fixed height: the header no longer shrinks when the page scrolls
   - solid background: no live blur repainting the page under it on every frame
   (transform/will-change are avoided here: they would change how the mobile menu is positioned) */
.site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--cream);
}
.site-header.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--cream);
}
.site-header .header-inner,
.site-header.scrolled .header-inner {
  padding-block: 14px 24px;
  transition: none;
}
@media (max-width: 760px) {
  .site-header .header-inner,
  .site-header.scrolled .header-inner {
    padding-block: 10px 12px;
  }
}
.site-header {
  transition: box-shadow .25s;
}

/* ---- Academics: keep text readable over decorative artwork ----
   Decorations (planes, dashed trails, blobs, leaves) sit behind the text
   and don't take pointer events, so headings and body copy stay clear. */
#cbse .deco,
#stages .deco,
#assessment .deco,
#quest .deco {
  z-index: 0;
  pointer-events: none;
}
#cbse .copy,
#cbse .sec-head,
#stages .sec-head,
#assessment .sec-head,
#quest .sec-head,
#quest .copy {
  position: relative;
  z-index: 2;
}

/* ---- Academics: "Give Your Child a Brighter Tomorrow" — text and picture side by side, never overlapping ---- */
.brighter {
  height: auto;
  margin: 30px 0 60px;
}
.brighter > .stage {
  height: auto !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-block: 40px;
}
.brighter .copy {
  width: auto;
  max-width: 560px;
  padding-top: 0;
}
.brighter .art {
  position: relative;
  right: auto;
  top: auto;
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
}
@media (max-width: 1000px) {
  .brighter > .stage {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .brighter .copy { max-width: none; }
  .brighter .art { width: min(680px, 100%); margin: 0 auto; }
}

/* ---- Mobile / tablet menu: open just below the header, never over the X button ----
   The panel is anchored to the header's bottom edge instead of a fixed offset from the
   top of the viewport, so it lines up whether or not the top bar is showing. */
@media (max-width: 1380px) {
  .site-header .main-nav {
    position: absolute;
    inset: auto 16px auto 16px;
    top: calc(100% + 10px);
    max-height: calc(100vh - 140px);
  }
}

/* ---- About page hero: text and picture side by side on every desktop width ---- */
@media (min-width: 1181px) {
  .ph-about .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    min-height: 0;
    padding: 40px 0 50px;
  }
  .ph-about .ph-copy {
    width: auto;
    max-width: 600px;
  }
  .ph-about .ph-art {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 0;
    justify-self: end;
  }
}

/* ---- About: Vision & Mission — two matching cards with the emblem between them ---- */
.foundations-v2 .vm2 {
  grid-template-columns: minmax(0, 1fr) clamp(130px, 13vw, 180px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
}
.foundations-v2 .vm-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin: 0;
  width: 100%;
}
.foundations-v2 .vm-card > img:first-child {
  width: 100%;
  max-width: none;
  height: clamp(220px, 22vw, 300px);
  object-fit: cover;
  border-radius: 28px;
  margin: 0;
}
.foundations-v2 .vm-card h3,
.foundations-v2 .vm-mission h3 {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  margin: 0;
}
.foundations-v2 .vm-card h3 img {
  width: 46px;
  height: auto;
}
.foundations-v2 .vm-vision .vision-q,
.foundations-v2 .vm-mission-list li {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  text-align: left;
  max-width: none;
  padding: 0;
}
.foundations-v2 .vm-mission-list {
  align-items: stretch;
  gap: 10px;
  margin: 0;
}
.foundations-v2 .vm-mission-list li {
  padding-left: 26px;
  position: relative;
}
.foundations-v2 .vm-mission-list li::before {
  left: 0;
  right: auto;
  top: 6px;
}
.foundations-v2 .vm-center {
  min-height: 0;
}
.foundations-v2 .vm-route {
  display: none;
}
@media (max-width: 1000px) {
  .foundations-v2 .vm2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .foundations-v2 .vm-card {
    width: min(100%, 540px);
    margin-inline: auto;
  }
}

/* ---- Vision & Mission: top-align the two cards so the photos line up; emblem stays centred ---- */
.foundations-v2 .vm2 {
  align-items: start;
}
.foundations-v2 .vm-center {
  align-self: center;
}

/* ---- About: Core Values text on desktop ---- */
@media (min-width: 1181px) {
  .foundations-v2 .values-5 h4 {
    font-weight: 500;
    font-size: 18px;
  }
}

/* ---- Academics: QUEST Pedagogy — five stage cards, same navy theme, responsive ---- */
.qp {
  padding: clamp(70px, 8vw, 100px) 0 clamp(90px, 9vw, 120px);
  color: #e6edf6;
}
.qp .sec-head {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}
.qp .sec-head .h2 {
  color: #fff;
}
.qp .sec-head .copy-18 {
  color: #d5e0ec;
  margin: 18px auto 0;
  max-width: 760px;
}
.qp-sub {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  color: #ffb48a;
}
.qp-title {
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 36px;
}
.qp-title span {
  color: #ffb48a;
}
.qp-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
  list-style: none;
}
.qp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 24px 26px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s, background .3s;
  min-width: 0;
}
.qp-card:hover {
  background: rgba(255, 255, 255, .11);
  transform: translateY(-4px);
}
.qp-letter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
}
.qp-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  color: #fff;
}
.qp-tag {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: #ffb48a;
}
.qp-body {
  font-size: 15.5px;
  line-height: 1.6;
  color: #d5e0ec;
}
.qp-method {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px;
  line-height: 1.5;
  color: #a9c6e2;
}
@media (max-width: 1180px) {
  .qp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .qp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .qp-card {
    padding: 26px 22px 22px;
  }
}

/* ---- QUEST section: keep the content inside the screen on phones ---- */
.qp > .stage {
  width: min(1320px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.qp-grid,
.qp-card {
  width: 100%;
  max-width: 100%;
}

/* ---- Phones: photos and the "Why CBSE?" card stay inside the screen ---- */
@media (max-width: 760px) {
  .media {
    max-width: 100%;
  }
  .media > img {
    max-width: 100%;
    height: auto;
  }
  .media:has(> .callout-card) {
    overflow: visible;
  }
}

/* ---- Academics: Assessment & Evaluation — four numbered steps, light theme, responsive ---- */
.as {
  padding: clamp(70px, 8vw, 100px) 0 clamp(80px, 8vw, 110px);
}
.as-head {
  max-width: 860px;
  margin: 0 auto 48px;
  text-align: center;
}
.as-head .copy-18 {
  margin: 18px auto 0;
  max-width: 760px;
}
.as-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  list-style: none;
  counter-reset: none;
}
.as-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 26px 30px;
  border-radius: 26px;
  background: #fffdf9;
  border: 1px solid var(--rule);
  box-shadow: 0 18px 30px rgba(18, 36, 77, .05);
  min-width: 0;
  transition: transform .3s, box-shadow .3s;
}
.as-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(18, 36, 77, .09);
}
.as-num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--orange);
}
.as-step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  color: var(--navy);
}
.as-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.as-close {
  max-width: 820px;
  margin: 44px auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  color: var(--navy-2);
}
@media (max-width: 1180px) {
  .as-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .as-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .as-step {
    padding: 26px 22px 24px;
  }
}

/* ---- Assessment steps: innovative cards with light motion (transform/opacity only) ---- */
.as-step {
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, #fffdf9 0%, #f4f8fc 100%);
  border: 1px solid rgba(3, 66, 142, .08);
  box-shadow: 0 14px 28px rgba(18, 36, 77, .06);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
}
.as-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #ffb48a);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.as-step::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 235, 247, .9), rgba(222, 235, 247, 0) 70%);
  z-index: -1;
  transition: transform .6s ease;
}
.as-num {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 26px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(239, 107, 46, .12);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.as-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(18, 36, 77, .1);
}
.as-step:hover::before {
  transform: scaleX(1);
}
.as-step:hover::after {
  transform: scale(1.25) translate(-8px, 8px);
}
.as-step:hover .as-num {
  transform: rotate(-6deg) scale(1.05);
}
.as-steps.in .as-step,
.as-steps .as-step.in {
  animation: asRise .7s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms);
}
@keyframes asRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .as-step,
  .as-step::before,
  .as-step::after,
  .as-num {
    transition: none;
  }
  .as-steps .as-step,
  .as-steps.in .as-step {
    animation: none;
  }
}

/* ---- Campus: Safety & Security now also carries the school-transport content ---- */
#safety .sf-sub {
  text-align: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}
#safety .sf-sub + p {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
  color: #d5e0ec;
}
#safety .sf-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#safety .sf-close {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.5;
  color: #ffb48a;
}
@media (max-width: 1180px) {
  #safety .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  #safety .sf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#safety .sf-cta {
  text-align: center;
  margin-top: 30px;
}

/* ---- Campus: Health & Well-being — Nourish & Belong | Cafeteria, responsive ---- */
.hw-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 40px;
}
.hw-head .h2 {
  margin-bottom: 14px;
}
.hw-pill {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
  box-shadow: 0 10px 20px rgba(18, 36, 77, .06);
}
.hw-body {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 22px;
}
.hw-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--navy);
}
.hw-body .copy-18 {
  color: var(--ink);
}
.hw-quote {
  max-width: 760px;
  margin: 56px auto 0;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px);
  border-radius: 46px 46px 0 0 / 30px 30px 0 0;
  background: #fff;
  border-top: 5px solid var(--orange);
  box-shadow: 0 18px 36px rgba(18, 36, 77, .07);
  text-align: center;
}
.hw-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--navy-2);
}
@media (max-width: 640px) {
  .hw-quote {
    border-radius: 28px 28px 0 0 / 22px 22px 0 0;
  }
}

/* ---- Admissions hero: text and picture side by side on every desktop width ---- */
@media (min-width: 1181px) {
  .ph-adm .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    min-height: 0;
    padding: 40px 0 50px;
  }
  .ph-adm .ph-copy {
    width: auto;
    max-width: 600px;
  }
  .ph-adm .ph-art {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 0;
    justify-self: end;
  }
}

/* ---- Admissions: Eligibility & Age Criteria — clean two-column structure ---- */
#eligibility .stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
#eligibility .copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
#eligibility .copy .kid-peek {
  width: min(262px, 60%);
  height: auto;
  margin-top: 4px;
}
#eligibility .el-card {
  position: relative;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 32px;
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--orange);
  box-shadow: 0 18px 36px rgba(18, 36, 77, .07);
}
#eligibility .el-card .copy-18 {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink);
}
@media (max-width: 900px) {
  #eligibility .stage {
    grid-template-columns: minmax(0, 1fr);
  }
  #eligibility .copy .kid-peek {
    width: min(240px, 70%);
  }
}

/* ---- Careers: clean structure, responsive ---- */
.cr {
  padding: clamp(70px, 8vw, 100px) 0;
}
.cr-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.cr-center .copy-18 {
  margin: 22px auto 0;
  max-width: 760px;
}
.cr .msplit .copy .h2 {
  margin-bottom: 0;
}
.cr .msplit .copy .copy-18 {
  margin-top: 6px;
}
.cr .arch-img {
  max-width: 420px;
  margin: 0 auto;
}
.cr-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}
.cr-head .copy-18 {
  margin: 18px auto 0;
  max-width: 760px;
}
.cr-sub {
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 26px;
}
.role-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.role-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 10px 22px rgba(18, 36, 77, .05);
  transition: transform .3s, box-shadow .3s;
}
.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(18, 36, 77, .09);
}
.role-no {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--orange);
}
.role-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.25;
  color: var(--navy);
}
.role-card .apply-btn {
  white-space: nowrap;
}
.cr-note {
  text-align: center;
  margin-top: 30px;
}
@media (max-width: 760px) {
  .role-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .role-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .role-card .apply-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ---- Careers: photo frame and section spacing ---- */
.cr {
  padding: clamp(56px, 6vw, 84px) 0;
}
.cr-intro {
  padding-bottom: clamp(24px, 3vw, 40px);
}
.cr .media .arch-img {
  max-width: none;
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(18, 36, 77, .12);
}
.cr .media .arch-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cr .msplit {
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}
@media (max-width: 760px) {
  .cr .media .arch-img {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }
}

/* ---- Careers intro: text and professional photo, with decorative accents before and after ---- */
.cr-intro {
  position: relative;
  overflow: hidden;
}
.cr-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.cr-text .kicker {
  display: inline-flex;
}
.cr-text .h2 {
  margin-top: 14px;
}
.cr-text .copy-18 {
  margin-top: 22px;
  max-width: 600px;
}
.cr-photo {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 520px);
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 26px 50px rgba(18, 36, 77, .12);
}
.cr-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.cr-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
  pointer-events: none;
}
.cr-leaf {
  position: absolute;
  left: -20px;
  bottom: 30px;
  width: 150px;
  z-index: 0;
  pointer-events: none;
}
.cr-plane {
  position: absolute;
  right: 4%;
  top: 40px;
  width: 170px;
  z-index: 0;
  pointer-events: none;
}
.cr-sun {
  position: absolute;
  left: 46%;
  top: 30px;
  width: 64px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 900px) {
  .cr-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .cr-photo {
    justify-self: center;
    width: min(100%, 460px);
  }
  .cr-sun {
    display: none;
  }
  .cr-plane {
    width: 120px;
    top: 0;
  }
}

/* ---- Contact: four contact cards fill the full row on desktop ---- */
@media (min-width: 1181px) {
  .dl-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- Contact: location, enquiry and map — even spacing and responsive layout ---- */
.sec.tight {
  padding-bottom: clamp(24px, 3vw, 40px);
}
.message {
  padding-top: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(56px, 6vw, 84px);
}
.message .msg-panel {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 4.5vw, 64px) clamp(24px, 3.5vw, 48px);
}
.message .msg-panel .form-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 2.5vw, 34px);
}
.message .msg-panel .form-card .btn {
  width: 100%;
  max-width: 100%;
}
.message .msg-right {
  width: 100%;
  min-width: 0;
}
.message .msg-right .h2 {
  font-size: clamp(34px, 3.4vw, 48px);
}
.message .msg-right .map-link img {
  width: 100%;
  height: auto;
}
@media (max-width: 1000px) {
  .message .msg-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 24px;
  }
  .message .msg-panel .form-card {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 560px) {
  .message .msg-panel {
    padding: 28px 14px;
  }
  .message .msg-panel .form-card {
    padding: 22px 18px;
  }
}

/* ---- Academics hero: text and picture side by side on every desktop width ---- */
@media (min-width: 1181px) {
  .ph-acad .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    min-height: 0;
    padding: 40px 0 50px;
  }
  .ph-acad .ph-copy {
    width: auto;
    max-width: 600px;
  }
  .ph-acad .ph-art {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin: 0;
    justify-self: end;
  }
}
