.inner-page {
  background: #fff;
}

.inner-page .site-header {
  position: sticky;
}

.inner-page .navbar-group a.active,
.inner-page .navbar-mobile-links a.active {
  color: var(--base);
}

.inner-main {
  overflow: hidden;
}

.inner-hero {
  position: relative;
  min-height: 390px;
  color: #fff;
  background-color: var(--base-dark);
  background-image: var(--inner-hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}

.inner-hero::before,
.inner-hero::after {
  display: none;
}

.inner-hero-grid {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 820px);
  align-items: center;
  padding-top: 54px;
  padding-bottom: 54px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #dce9ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--accent);
  transition: color 180ms ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.inner-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4.5vw, 4.45rem);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.inner-hero h1 span {
  color: var(--accent);
}

.inner-hero-copy>p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: #e6eefc;
  font-size: 1.08rem;
  line-height: 1.75;
  text-shadow: 0 1px 12px rgba(4, 16, 42, 0.55);
}

/* Management page: image-free hero with a focused, institutional tone. */
.management-hero {
  background-color: #08265d;
  background-image:
    radial-gradient(circle at 86% 20%, rgba(255, 210, 48, 0.2), transparent 19%),
    radial-gradient(circle at 72% 115%, rgba(68, 156, 255, 0.34), transparent 37%),
    linear-gradient(125deg, #061a42 0%, #0b367d 52%, #115cc1 100%);
}

.management-hero::before,
.management-hero::after {
  display: block;
  position: absolute;
  content: "";
  pointer-events: none;
}

.management-hero::before {
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}

.management-hero::after {
  top: 50%;
  right: clamp(36px, 9vw, 150px);
  z-index: -1;
  width: clamp(150px, 20vw, 270px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 62px rgba(255, 210, 48, 0.055);
  transform: translateY(-50%);
}

.management-hero .inner-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.management-hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.management-hero h1 {
  margin-bottom: 14px;
  text-shadow: 0 5px 24px rgba(2, 14, 38, 0.3);
}

.management-hero .inner-hero-copy>p:last-child {
  max-width: 640px;
  color: #f1f6ff;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  text-shadow: none;
}

/* Leadership messages: one image-free system with role-specific color depth. */
.leadership-message-hero {
  --message-accent: var(--accent);
  --message-start: #061a42;
  --message-middle: #0b367d;
  --message-end: #1559a6;
  --message-glow: 255, 210, 48;
  background-color: var(--message-start);
  background-image:
    radial-gradient(circle at 83% 28%, rgba(var(--message-glow), 0.2), transparent 19%),
    radial-gradient(circle at 74% 120%, rgba(91, 171, 255, 0.28), transparent 39%),
    linear-gradient(124deg, var(--message-start) 0%, var(--message-middle) 54%, var(--message-end) 100%);
  border-bottom: 5px solid var(--message-accent);
}

.correspondent-message-hero {
  --message-start: #051d38;
  --message-middle: #0a426f;
  --message-end: #087b99;
  --message-glow: 88, 214, 220;
}

.principal-message-hero {
  --message-start: #10183f;
  --message-middle: #1c377e;
  --message-end: #315fb3;
  --message-glow: 255, 210, 48;
}

.director-message-hero {
  --message-start: #061a36;
  --message-middle: #12385f;
  --message-end: #276b88;
  --message-glow: 100, 207, 215;
}

.leadership-message-hero::before,
.leadership-message-hero::after {
  display: block;
  position: absolute;
  content: "";
  pointer-events: none;
}

.leadership-message-hero::before {
  inset: 0;
  z-index: -1;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}

.leadership-message-hero::after {
  top: 50%;
  right: clamp(38px, 9vw, 150px);
  z-index: -1;
  width: clamp(155px, 20vw, 275px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.04),
    0 0 0 66px rgba(var(--message-glow), 0.055);
  transform: translateY(-50%);
}

.leadership-message-hero .inner-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.leadership-hero-kicker {
  margin: 0 0 10px;
  color: var(--message-accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.leadership-message-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.3vw, 4.2rem);
  line-height: 1.08;
  text-shadow: 0 5px 24px rgba(2, 14, 38, 0.3);
}

.leadership-message-hero h1 span {
  color: var(--message-accent);
}

.leadership-message-hero .inner-hero-copy>p:last-child {
  max-width: 680px;
  color: #f0f6ff;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.7;
  text-align: left;
  hyphens: none;
  text-shadow: none;
}

/* Careers page: image-free hero focused on purpose and opportunity. */
.careers-hero {
  background-color: #071d46;
  background-image:
    radial-gradient(circle at 86% 24%, rgba(255, 210, 48, 0.2), transparent 18%),
    radial-gradient(circle at 72% 118%, rgba(55, 168, 226, 0.3), transparent 38%),
    linear-gradient(124deg, #06183a 0%, #0b387c 54%, #1470ad 100%);
  border-bottom: 5px solid var(--accent);
}

.careers-hero::before,
.careers-hero::after {
  display: block;
  position: absolute;
  content: "";
  pointer-events: none;
}

.careers-hero::before {
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}

.careers-hero::after {
  top: 50%;
  right: clamp(38px, 9vw, 150px);
  z-index: -1;
  width: clamp(155px, 20vw, 275px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.04),
    0 0 0 66px rgba(255, 210, 48, 0.055);
  transform: translateY(-50%);
}

.careers-hero .inner-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.careers-hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.careers-hero h1 {
  margin-bottom: 14px;
  text-shadow: 0 5px 24px rgba(2, 14, 38, 0.3);
}

.careers-hero .inner-hero-copy>p:last-child {
  color: #f0f6ff;
  text-shadow: none;
}

/* Parent Information and Teaching & Learning: shared image-free academic hero. */
.education-info-hero {
  --education-start: #061a42;
  --education-middle: #0b367d;
  --education-end: #176ab3;
  --education-glow: 255, 210, 48;
  background-color: var(--education-start);
  background-image:
    radial-gradient(circle at 86% 24%, rgba(var(--education-glow), 0.18), transparent 19%),
    radial-gradient(circle at 73% 118%, rgba(74, 168, 245, 0.3), transparent 38%),
    linear-gradient(124deg, var(--education-start) 0%, var(--education-middle) 54%, var(--education-end) 100%);
  border-bottom: 5px solid var(--accent);
}

.teaching-info-hero {
  --education-start: #10183f;
  --education-middle: #1c377e;
  --education-end: #286bb2;
  --education-glow: 104, 211, 225;
}

.education-info-hero::before,
.education-info-hero::after {
  display: block;
  position: absolute;
  content: "";
  pointer-events: none;
}

.education-info-hero::before {
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 100%);
}

.education-info-hero::after {
  top: 50%;
  right: clamp(38px, 9vw, 150px);
  z-index: -1;
  width: clamp(155px, 20vw, 275px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.04),
    0 0 0 66px rgba(var(--education-glow), 0.055);
  transform: translateY(-50%);
}

.education-info-hero .inner-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 790px;
}

.education-hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.education-info-hero h1 {
  margin-bottom: 14px;
  text-shadow: 0 5px 24px rgba(2, 14, 38, 0.3);
}

.education-info-hero .inner-hero-copy>p:last-child {
  color: #f0f6ff;
  text-shadow: none;
}

.inner-band {
  position: relative;
  padding: 82px 0;
}

.inner-band.soft {
  background:
    linear-gradient(rgba(255, 249, 236, 0.95), rgba(255, 249, 236, 0.95)),
    radial-gradient(circle at 12% 15%, rgba(242, 184, 0, 0.4) 0 2px, transparent 3px);
  background-size: auto, 27px 27px;
}

.inner-band.sky {
  background: linear-gradient(145deg, #f7fbff, var(--sky));
}

.inner-band.navy {
  color: #fff;
  background: var(--base-dark);
  overflow: hidden;
}

.inner-band.navy::after {
  position: absolute;
  right: -110px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  content: "";
  border: 2px solid rgba(255, 210, 48, 0.19);
  transform: rotate(45deg);
}

.inner-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.inner-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.inner-heading.center .eyebrow {
  justify-content: center;
}

.inner-heading h2 {
  margin-bottom: 16px;
}

.inner-heading>p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.inner-band.navy .inner-heading>p:last-child,
.inner-band.navy .section-copy,
.inner-band.navy .section-copy p,
.inner-band.navy .clean-list li,
.inner-band.navy .policy-list li,
.inner-band.navy .course-list li {
  color: #d5e3fa;
}

/* ...but a list inside a white card on a navy band keeps its dark text,
   otherwise it washes out completely against the card */
.inner-band.navy .split-panel .clean-list li,
.inner-band.navy .split-panel .policy-list li,
.inner-band.navy .split-panel .course-list li,
.inner-band.navy .split-panel p,
.inner-band.navy .age-card p,
.inner-band.navy .icon-card p {
  color: var(--muted);
}

/* Keep the section label readable against the navy panels. */
.inner-band.navy .inner-heading .eyebrow,
.inner-band.navy .section-copy .eyebrow {
  color: #8fd3ff;
}

.intro-grid,
.content-split,
.message-layout,
.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.content-split.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.content-split.reverse> :first-child {
  order: 2;
}

.content-split.reverse> :last-child {
  order: 1;
}

.about-genesis-grid {
  align-items: center;
}

.academic-programme-grid {
  align-items: center;
}

.vertical-center-split {
  align-items: center;
}

.inner-photo {
  position: relative;
  width: min(100%, 620px);
  min-height: 430px;
  margin: 0 auto;
}

.inner-photo::before {
  position: absolute;
  top: -16px;
  right: 34px;
  width: 88%;
  height: 92%;
  content: "";
  background: var(--accent);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}

.inner-photo img {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 91%;
  height: 390px;
  object-fit: cover;
  border: 7px solid #fff;
  box-shadow: var(--shadow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transform: translateX(-50%);
}

.inner-photo-badge {
  position: absolute;
  right: 22px;
  bottom: 3px;
  z-index: 2;
  display: grid;
  width: 126px;
  height: 126px;
  place-content: center;
  color: #fff;
  background: var(--base);
  border: 7px solid #fff;
  border-radius: 50%;
  outline: 3px dashed var(--accent);
  outline-offset: -15px;
  box-shadow: var(--shadow-small);
  font-family: var(--font-display);
  font-size: clamp(0.58rem, 1.05vw, 0.68rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.035em;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.inner-photo-badge strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  line-height: 1;
}

.section-copy h2,
.section-copy h3 {
  color: var(--base-dark);
}

.section-copy h3 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.inner-band.navy .inner-heading h2,
.inner-band.navy .section-copy h2,
.inner-band.navy .section-copy h3 {
  color: #fff;
}

.inner-band.navy .inner-heading h2 span {
  color: var(--accent);
}

/* Management governance: a light bridge between the bold hero and profiles. */
.governance-section {
  color: var(--ink);
  background:
    radial-gradient(circle at 91% 10%, rgba(20, 102, 216, 0.11), transparent 24%),
    linear-gradient(135deg, #eef5ff 0%, #f8fbff 48%, #fffaf0 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.58);
  isolation: isolate;
  overflow: hidden;
}

.governance-section::before {
  position: absolute;
  top: -165px;
  right: -110px;
  z-index: -1;
  width: 390px;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(13, 61, 145, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(20, 102, 216, 0.035),
    0 0 0 76px rgba(255, 210, 48, 0.045);
  pointer-events: none;
}

.governance-section::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 112px;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 0 0 8px 8px;
  transform: translateX(-50%);
}

.governance-section>.container {
  position: relative;
  z-index: 1;
}

.governance-section .inner-heading {
  margin-bottom: 28px;
}

.governance-section .inner-heading .eyebrow {
  color: var(--base);
}

.governance-section .inner-heading h2 {
  color: var(--base-dark);
}

.governance-section .inner-heading h2 span {
  color: #a96d00;
}

.governance-section .section-copy {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 32px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-left: 4px solid var(--accent-deep);
  border-radius: 6px 24px 6px 24px;
  box-shadow: 0 16px 38px rgba(7, 31, 79, 0.09);
  text-align: center;
}

.governance-section .section-copy p {
  margin: 0;
  color: #42536f;
  font-size: 1.03rem;
  line-height: 1.8;
}

/* Careers page section rhythm: distinct surfaces without a card-heavy layout. */
.careers-page-section {
  isolation: isolate;
  overflow: hidden;
}

.careers-page-section>.container {
  position: relative;
  z-index: 1;
}

.careers-page-section .inner-heading h2 {
  color: var(--base-dark);
}

.careers-page-section:not(.navy) .inner-heading h2 span {
  color: #a96d00;
}

.careers-page-section:not(.navy) .section-copy p {
  color: #40516e;
  line-height: 1.82;
}

.careers-commitment-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(20, 102, 216, 0.1), transparent 23%),
    linear-gradient(135deg, #eaf3ff 0%, #f7fbff 55%, #fffaf0 100%);
}

.careers-commitment-section .section-copy {
  max-width: 1060px;
  margin: 0 auto;
  columns: 2;
  column-gap: clamp(38px, 5vw, 66px);
}

.careers-commitment-section .section-copy p {
  break-inside: avoid;
}

.careers-promise-section {
  background: #fff;
}

.careers-promise-section .section-copy {
  max-width: 900px;
  margin: 0 auto;
}

.careers-promise-section .quote-panel {
  margin-top: 0;
  background: linear-gradient(135deg, var(--accent), #ffe784);
  box-shadow: 0 16px 38px rgba(7, 31, 79, 0.1);
}

.careers-vision-section {
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 184, 0, 0.2) 0 2px, transparent 3px),
    linear-gradient(145deg, #fff8e8, #fffdf7);
  background-size: 28px 28px, auto;
}

.careers-vision-section .section-copy {
  max-width: 1040px;
  margin: 0 auto;
}

.careers-mission-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 102, 216, 0.1), transparent 22%),
    linear-gradient(145deg, #edf5ff, #f9fbff);
}

.careers-mission-section .split-panels {
  grid-template-columns: 1fr;
  align-items: start;
}

.careers-mission-section .split-panel {
  align-self: start;
}

.careers-principle-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 210, 48, 0.12), transparent 22%),
    linear-gradient(135deg, #061a42, #0c3978 58%, #0d4f8d);
}

.careers-principle-section::after {
  right: -120px;
  bottom: -245px;
  border-color: rgba(255, 210, 48, 0.16);
  border-radius: 50%;
  transform: none;
}

.careers-principle-section .section-copy {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.careers-principle-section .section-copy p {
  margin-top: 24px;
  color: #dbe8fb;
  font-weight: 700;
}

/* Academic information pages: coordinated open section surfaces. */
.education-page-section {
  isolation: isolate;
  overflow: hidden;
}

.education-page-section>.container {
  position: relative;
  z-index: 1;
}

.education-page-section:not(.navy) .inner-heading h2 {
  color: var(--base-dark);
}

.education-page-section:not(.navy) .inner-heading h2 span {
  color: #a96d00;
}

.education-page-section:not(.navy) .section-copy p,
.education-page-section:not(.navy) .policy-list li {
  color: #40516e;
}

.parent-overview-section,
.teaching-beliefs-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(20, 102, 216, 0.1), transparent 23%),
    linear-gradient(135deg, #eaf3ff 0%, #f7fbff 55%, #fffaf0 100%);
}

.parent-materials-section,
.parent-transport-section,
.teaching-maths-section {
  background: #fff;
}

.parent-uniform-section,
.parent-general-section,
.teaching-labs-section {
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 184, 0, 0.2) 0 2px, transparent 3px),
    linear-gradient(145deg, #fff8e8, #fffdf7);
  background-size: 28px 28px, auto;
}

.parent-kg-section,
.parent-tamil-section,
.teaching-assessment-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 102, 216, 0.09), transparent 22%),
    linear-gradient(145deg, #edf5ff, #f9fbff);
}

.education-dark-section {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 210, 48, 0.11), transparent 22%),
    linear-gradient(135deg, #061a42, #0c3978 58%, #0d4f8d);
}

.education-dark-section::after {
  right: -120px;
  bottom: -245px;
  border-color: rgba(255, 210, 48, 0.16);
  border-radius: 50%;
  transform: none;
}

.education-page-section .section-copy {
  max-width: 1080px;
  margin-right: auto;
  margin-left: auto;
}

.education-page-section .section-copy p,
.education-page-section .policy-list li,
.education-page-section .clean-list li {
  line-height: 1.78;
}

.section-copy p {
  color: var(--muted);
}

/* Balanced editorial layout shared by the four leadership message pages. */
.leadership-message-section {
  position: relative;
  padding: clamp(64px, 6vw, 88px) 0;
  background:
    radial-gradient(circle at 94% 6%, rgba(20, 102, 216, 0.08), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f6f9fd 100%);
  overflow: hidden;
}

.leadership-message-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(13, 61, 145, 0.22), transparent);
  transform: translateX(-50%);
}

.leadership-message-section > .container {
  position: relative;
  z-index: 1;
}

.leadership-message-section .inner-heading {
  max-width: 980px;
  margin-bottom: clamp(34px, 4vw, 50px);
}

.leadership-message-section .inner-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
}

.inner-page .leadership-message-section [data-inner-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.leadership-message-layout {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.leadership-message-layout--text {
  grid-template-columns: minmax(0, 1fr);
  width: min(900px, 100%);
}

.leadership-message-photo {
  position: relative;
  width: 100%;
  margin: 0;
}

.leadership-message-photo::after {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 54%;
  height: 54%;
  content: "";
  border-right: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  border-radius: 0 0 16px;
  pointer-events: none;
}

.leadership-message-photo img {
  display: block;
  width: 100%;
  height: clamp(390px, 35vw, 470px);
  object-fit: cover;
  object-position: center 16%;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 18px 42px rgba(7, 31, 79, 0.16);
}

.correspondent-message-photo img {
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.leadership-message-photo--scene img {
  height: clamp(310px, 29vw, 380px);
  object-position: center;
}

.leadership-message-copy {
  max-width: none;
  margin: 0;
}

.leadership-message-copy p {
  margin-bottom: 17px;
  line-height: 1.72;
  text-align: left;
  hyphens: none;
}

.leadership-message-copy > p:first-child {
  margin-top: 0;
  color: var(--base-dark);
  font-size: 1.04rem;
  font-weight: 650;
}

.leadership-message-copy .quote-panel {
  margin-top: 24px;
  padding-top: 23px;
  padding-bottom: 23px;
  border-radius: 8px 20px 8px 20px;
}

.leadership-message-copy .message-sign {
  margin-top: 24px;
}

.lead-copy {
  color: var(--base-dark) !important;
  font-size: 1.12rem;
  font-weight: 700;
}

.icon-grid,
.trustee-grid,
.facility-page-grid,
.gallery-page-grid,
.age-grid,
.steps-grid,
.document-grid,
.belief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Why Choose Us: fixed 2 x 2 card layout on desktop/tablet */
.why-choose-grid {
  width: min(100%, 920px);
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.why-choose-grid .icon-card {
  height: 100%;
}

.inner-card,
.icon-card,
.trustee-card,
.age-card,
.step-card,
.document-card,
.belief-card {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.11);
  border-radius: 7px 28px 7px 28px;
  box-shadow: var(--shadow-small);
  isolation: isolate;
  overflow: hidden;
}

.inner-card::after,
.icon-card::after,
.trustee-card::after,
.age-card::after,
.step-card::after,
.document-card::after,
.belief-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  z-index: -1;
  width: 105px;
  height: 105px;
  content: "";
  background: var(--sky);
  transform: rotate(45deg);
}

.inner-band.navy .inner-card,
.inner-band.navy .icon-card,
.inner-band.navy .belief-card {
  color: var(--ink);
}

.inner-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  color: #fff;
  background: var(--base);
  border-radius: 5px 17px 5px 17px;
  box-shadow: 5px 5px 0 var(--accent);
}

.inner-icon.coral {
  background: var(--coral);
  box-shadow: 5px 5px 0 #ffd6d0;
}

.inner-icon.gold {
  color: var(--base-dark);
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--base);
}

.inner-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inner-card h3,
.icon-card h3,
.trustee-card h3,
.age-card h3,
.step-card h3,
.document-card h3,
.belief-card h3 {
  margin-bottom: 10px;
  color: var(--base-dark);
  font-size: 1.15rem;
}

.inner-card p,
.icon-card p,
.trustee-card p,
.age-card p,
.step-card p,
.document-card p,
.belief-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.trustee-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trustee-card {
  padding-top: 25px;
  border-top: 6px solid var(--base-bright);
}

.trustee-card:nth-child(3n + 2) {
  border-top-color: var(--accent);
}

.trustee-card:nth-child(3n) {
  border-top-color: var(--coral);
}

.trustee-initial {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--base), var(--base-bright));
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
}

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.split-panel {
  position: relative;
  padding: 38px;
  color: var(--muted);
  background: #fff;
  border-right: 1px solid rgba(13, 61, 145, 0.1);
  border-bottom: 1px solid rgba(13, 61, 145, 0.1);
  border-left: 1px solid rgba(13, 61, 145, 0.1);
  border-radius: 8px 34px 8px 34px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.split-panel.blue {
  border-top: 8px solid var(--base-bright);
}

.split-panel.yellow {
  border-top: 8px solid var(--accent);
}

.split-panel.coral {
  border-top: 8px solid var(--coral);
}

.split-panel h3 {
  color: var(--base-dark);
  font-size: 1.5rem;
}

.split-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Management trustee portraits and profile layout. */
.management-trustee-grid {
  align-items: start;
}

.trustee-profile-card {
  --trustee-accent: var(--base-bright);
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
  padding: 30px;
}

.trustee-profile-card.yellow {
  --trustee-accent: var(--accent-deep);
}

.trustee-profile-card.coral {
  --trustee-accent: var(--coral);
}

.trustee-photo {
  display: block;
  grid-row: 1 / span 2;
  width: 118px;
  height: 148px;
  flex: none;
  object-fit: cover;
  object-position: center 20%;
  background: var(--sky);
  border: 3px solid #fff;
  border-radius: 6px 24px 6px 24px;
  outline: 2px solid var(--trustee-accent);
  outline-offset: 3px;
  box-shadow: 0 12px 24px rgba(7, 31, 79, 0.16);
}

.trustee-profile-card h3,
.trustee-profile-card p {
  grid-column: 2;
}

.trustee-profile-card h3 {
  margin: 4px 0 4px;
}

.trustee-profile-card p {
  line-height: 1.68;
}

.management-trustee-grid>.trustee-profile-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.management-trustee-grid>.trustee-profile-card:last-child:nth-child(odd) p {
  max-width: 920px;
}

.clean-list,
.policy-list,
.course-list {
  display: grid;
  gap: 11px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.clean-list:last-child,
.policy-list:last-child,
.course-list:last-child {
  margin-bottom: 0;
}

.clean-list li,
.policy-list li,
.course-list li {
  position: relative;
  padding-left: 31px;
  color: var(--muted);
}

.clean-list li::before,
.policy-list li::before,
.course-list li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--base-dark);
  content: "✓";
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.leadership-card {
  padding: 34px;
  color: #fff;
  background: linear-gradient(145deg, var(--base), var(--base-dark));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px 32px 8px 32px;
  box-shadow: var(--shadow);
}

.leadership-card:nth-child(2) {
  background: linear-gradient(145deg, #0e4aa9, var(--base));
}

.leadership-card h3 {
  margin-bottom: 20px;
  color: var(--accent);
}

.leadership-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leadership-card li {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 4px 12px 4px 12px;
}

.leadership-card li span {
  display: block;
  color: #bfd3f5;
  font-size: 0.78rem;
}

.quote-panel {
  position: relative;
  margin-top: 26px;
  padding: 27px 30px 27px 76px;
  color: var(--base-dark);
  background: var(--accent);
  border-radius: 6px 24px 6px 24px;
  box-shadow: var(--shadow-small);
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
}

.quote-panel::before {
  position: absolute;
  top: 6px;
  left: 22px;
  color: #fff;
  content: "\201C";
  font-size: 4.5rem;
  line-height: 1;
}

.age-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding-left: 1.25rem;
}

.age-grid > li > span {
  margin-left: 0.35em;
}

.age-card {
  padding: 23px;
  text-align: center;
}

.age-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.steps-grid {
  counter-reset: admission-step;
}

.step-card {
  counter-increment: admission-step;
  display: grid;
  min-height: 185px;
  padding: 32px;
  align-content: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.94)),
    #fff;
  border-color: rgba(255, 205, 43, 0.24);
}

.step-card::before {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--base-dark);
  content: counter(admission-step, decimal-leading-zero);
  background: linear-gradient(135deg, var(--accent), #ffe987);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(255, 205, 43, 0.22);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  transition: transform 260ms ease;
}

.step-card .inner-icon {
  display: none;
}

.inner-band.navy .step-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.95)),
    #fff;
}

.inner-band.navy .step-card h3 {
  color: var(--base-dark);
}

.inner-band.navy .step-card p {
  color: var(--muted);
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card {
  display: flex;
  min-height: 94px;
  padding: 19px;
  align-items: center;
  gap: 15px;
}

.document-card .inner-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
}

.document-card h3 {
  margin: 0;
  font-size: 0.97rem;
}

.facility-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.facility-page-card,
.gallery-page-card {
  position: relative;
  min-height: 315px;
  border-radius: 7px 28px 7px 28px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.facility-page-card img,
.gallery-page-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 420ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.facility-page-card::after,
.gallery-page-card::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(7, 31, 79, 0.95));
}

.facility-card-copy,
.gallery-card-copy {
  position: absolute;
  right: 22px;
  bottom: 19px;
  left: 22px;
  z-index: 2;
  color: #fff;
}

.facility-card-copy .inner-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}

.facility-card-copy h3,
.gallery-card-copy h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 1.22rem;
}

.facility-card-copy p,
.gallery-card-copy p {
  margin: 0;
  color: #d8e5fb;
  font-size: 0.82rem;
}

.gallery-page-grid {
   width: min(100%, 1120px);
   margin-inline: auto;
   grid-template-columns: 1.2fr 0.8fr 0.8fr;
   grid-auto-rows: minmax(260px, 290px);
}

.gallery-page-card:first-child {
  grid-row: span 2;
}

.belief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.belief-card {
  padding-top: 70px;
}

.belief-card::before {
  position: absolute;
  top: 21px;
  left: 26px;
  color: var(--accent);
  content: "✦";
  font-size: 1.6rem;
  transition: transform 260ms ease, color 260ms ease;
}

.message-layout {
  display: block;
  columns: 2;
  column-gap: 24px;
}

.message-layout>div {
  display: contents;
}

.message-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 24px;
  padding: 38px;
  break-inside: avoid;
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-radius: 8px 34px 8px 34px;
  box-shadow: var(--shadow);
}

.message-card+.message-card {
  margin-top: 0;
}

.message-role {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 14px;
  color: var(--base-dark);
  background: var(--accent);
  border-radius: 3px 12px 3px 12px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.message-card h3 {
  color: var(--base-dark);
}

.message-signature {
  margin-top: 20px;
  color: var(--base);
  font-family: var(--font-script);
  font-size: 1.55rem;
  font-weight: 700;
}

.policy-columns {
  columns: 2;
  column-gap: 38px;
}

.policy-columns .inner-card {
  margin-bottom: 22px;
  break-inside: avoid;
}

.contact-page-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: stretch;
}

.contact-image-card {
  position: relative;
  min-height: 520px;
  border: 8px solid #fff;
  box-shadow: var(--shadow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  overflow: hidden;
}

.contact-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  display: grid;
  gap: 18px;
}

.contact-detail {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  align-items: start;
  padding: 21px;
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-radius: 6px 22px 6px 22px;
  box-shadow: var(--shadow-small);
}

.contact-detail .inner-icon {
  width: 48px;
  height: 48px;
  margin: 0;
}

.contact-detail small {
  display: block;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-detail p,
.contact-detail a {
  margin: 4px 0 0;
  color: var(--base-dark);
  font-weight: 700;
  line-height: 1.5;
}

.contact-detail a {
  transition: color 180ms ease;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  color: var(--base);
  text-decoration: underline;
}

.dummy-form {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.9)),
    #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-radius: 8px 34px 8px 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dummy-form::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--accent), var(--coral));
  border-radius: 0 0 0 18px;
}

/* Focused inner-page navigation */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 13px 0;
  color: #111827;
  background: transparent;
  border: 0;
  font: 700 0.95rem/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-dropdown-toggle::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--coral);
  border-radius: 99px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.nav-dropdown-arrow {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  color: var(--base);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after {
  transform: scaleX(1);
}

.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow,
.nav-dropdown.is-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 20;
  display: grid;
  width: max-content;
  min-width: 230px;
  padding: 10px;
  visibility: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dce7f6;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(7, 31, 79, 0.17);
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-dropdown-menu::before {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.navbar-group .nav-dropdown-menu a {
  padding: 12px 15px;
  color: var(--base-dark);
  border-radius: 9px;
  /* same size as the primary nav links */
  font-size: 0.95rem;
  line-height: 1.25;
}

.navbar-group .nav-dropdown-menu a::after {
  display: none;
}

.navbar-group .nav-dropdown-menu a:hover,
.navbar-group .nav-dropdown-menu a:focus-visible,
.navbar-group .nav-dropdown-menu a.active {
  color: var(--base);
  background: #eef5ff;
}

.subpage-directory {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 205, 45, 0.14), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.subpage-directory .subpage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.digital-learning-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 32px;
  background: linear-gradient(125deg, #fff 0%, #eef6ff 100%);
  border: 1px solid rgba(13, 61, 145, 0.14);
  border-left: 5px solid var(--accent);
  border-radius: 8px 24px 8px 24px;
  box-shadow: var(--shadow-small);
}

.digital-learning-feature .eyebrow {
  margin-bottom: 8px;
}

.digital-learning-feature h2 {
  margin-bottom: 8px;
  color: var(--base-dark);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.digital-learning-feature h2 span {
  color: var(--base);
}

.digital-learning-feature p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  text-align: left;
}

.subpage-card {
  position: relative;
  display: grid;
  min-height: 230px;
  padding: 30px;
  overflow: hidden;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-content: space-between;
  color: var(--base-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(234, 243, 255, 0.88));
  border: 1px solid rgba(45, 111, 200, 0.17);
  border-radius: 10px 34px 10px 34px;
  box-shadow: 0 16px 42px rgba(7, 31, 79, 0.09);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}

.subpage-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--accent), var(--coral));
}

.subpage-card:hover,
.subpage-card:focus-visible {
  background: linear-gradient(145deg, #ffffff, #edf5ff);
  border-color: rgba(21, 78, 159, 0.34);
  box-shadow: 0 20px 52px rgba(7, 31, 79, 0.15);
}

.subpage-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--base);
  border-radius: 8px 18px 8px 18px;
  box-shadow: 5px 5px 0 rgba(255, 205, 45, 0.85);
  transition: box-shadow 260ms ease, transform 260ms ease;
}

.subpage-icon.gold {
  color: var(--base-dark);
  background: var(--accent);
  box-shadow: 5px 5px 0 rgba(21, 78, 159, 0.9);
}

.subpage-icon.coral {
  background: var(--coral);
  box-shadow: 5px 5px 0 rgba(255, 205, 45, 0.8);
}

.subpage-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subpage-copy {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
}

.subpage-copy strong {
  font: 800 clamp(1.15rem, 1.7vw, 1.45rem)/1.15 var(--font-display);
  text-transform: uppercase;
}

.subpage-copy small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.subpage-arrow {
  align-self: center;
  color: var(--base);
  font-size: 1.55rem;
  transition: transform 180ms ease;
}

.subpage-card:hover .subpage-arrow,
.subpage-card:focus-visible .subpage-arrow {
  transform: translateX(5px);
}

.beyond-classroom-archive {
  display: grid;
  gap: 28px;
}

.beyond-programme-card {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f1f7ff 100%);
  border: 1px solid rgba(45, 111, 200, 0.18);
  border-radius: 10px 34px 10px 34px;
  box-shadow: 0 16px 42px rgba(7, 31, 79, 0.09);
}

.beyond-programme-heading {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.beyond-programme-heading h3 {
  margin: 0 0 8px;
  color: var(--base-dark);
  font: 800 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--font-display);
}

.beyond-programme-heading p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.beyond-ias-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
  gap: 30px;
  align-items: start;
}

.beyond-ias-grid h4,
.beyond-archive-note h3 {
  margin: 0 0 14px;
  color: var(--base-dark);
  font: 800 1rem/1.3 var(--font-display);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.beyond-ias-grid .clean-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 24px;
  margin-top: 0;
}

.beyond-school-code {
  display: grid;
  gap: 8px;
  padding: 22px;
  color: #fff;
  background: var(--base-dark);
  border-radius: 8px 22px 8px 22px;
}

.beyond-school-code span {
  color: #d9e7ff;
  font-size: 0.9rem;
}

.beyond-school-code strong {
  color: var(--accent);
  font: 800 2rem/1 var(--font-display);
  letter-spacing: 0.08em;
}

.beyond-school-code p {
  margin: 4px 0 0;
  color: #edf3ff;
  font-size: 0.9rem;
  line-height: 1.6;
}

.beyond-register {
  margin-top: 24px;
}

.beyond-archive-note {
  padding: 26px 30px;
  background: #fffaf0;
  border: 1px solid rgba(216, 166, 31, 0.25);
  border-radius: 8px 22px 8px 22px;
}

.beyond-archive-note h3 {
  margin-bottom: 8px;
}

.beyond-archive-note p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.beyond-approval-card {
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f6 100%);
  box-shadow: none;
}

.beyond-approval-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  color: #34445f;
  background: #e2e7ef;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.beyond-approval-card .beyond-programme-heading {
  margin-bottom: 0;
}

@media (max-width: 850px) {
  .beyond-ias-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1050px) {
  .mobile-subpage-link {
    color: var(--base) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
  }

  .subpage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .subpage-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .subpage-directory .subpage-grid {
    grid-template-columns: 1fr;
  }

  .subpage-card {
    min-height: 0;
    padding: 24px;
    border-radius: 9px 26px 9px 26px;
  }

  .beyond-programme-card {
    border-radius: 9px 26px 9px 26px;
  }

  .beyond-programme-heading {
    gap: 15px;
  }

  .beyond-ias-grid,
  .beyond-ias-grid .clean-list {
    grid-template-columns: 1fr;
  }

  .beyond-archive-note {
    padding: 22px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.dummy-form label {
  display: grid;
  gap: 9px;
}

.dummy-form label span {
  color: var(--base-dark);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dummy-form input,
.dummy-form select,
.dummy-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--base-dark);
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.16);
  border-radius: 6px 18px 6px 18px;
  box-shadow: 0 12px 28px rgba(9, 42, 100, 0.06);
  font: inherit;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.dummy-form textarea {
  min-height: 132px;
  resize: vertical;
}

.dummy-form input:hover,
.dummy-form select:hover,
.dummy-form textarea:hover {
  border-color: rgba(13, 61, 145, 0.3);
}

.dummy-form input:focus,
.dummy-form select:focus,
.dummy-form textarea:focus,
.dummy-form input:focus-visible,
.dummy-form select:focus-visible,
.dummy-form textarea:focus-visible {
  background: #fffef7;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 205, 43, 0.18), 0 18px 34px rgba(9, 42, 100, 0.1);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(13, 61, 145, 0.1);
}

.form-actions p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dummy-form .button {
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
}

.dummy-form .button:hover,
.dummy-form .button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(9, 42, 100, 0.16);
}

.dummy-form .button:active {
  transform: translateY(0);
}

.inner-cta {
  padding: 52px 0;
  background: linear-gradient(115deg, var(--accent) 0 52%, var(--base) 52% 100%);
}

.inner-cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.inner-cta h2 {
  margin-bottom: 8px;
  color: var(--base-dark);
}

.inner-cta p {
  max-width: 760px;
  margin: 0;
  color: #27334a;
}

.inner-cta .button {
  color: var(--base-dark);
  background: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.inner-cta .button:hover,
.inner-cta .button:focus-visible {
  transform: translateY(-3px);
  background: var(--base-dark);
  color: #fff;
  box-shadow: 0 16px 32px rgba(7, 31, 79, 0.28);
}

.inner-cta .button:active {
  transform: translateY(-1px);
}

.inner-page [data-inner-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 720ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--inner-delay, 0ms);
}

.inner-page [data-inner-reveal="left"] {
  transform: translateX(-28px);
}

.inner-page [data-inner-reveal="right"] {
  transform: translateX(28px);
}

.inner-page [data-inner-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Keyboard accessibility: visible focus ring on every interactive card/link,
   independent of the hover-only (mouse) styling below */
.inner-page a:focus-visible,
.inner-page button:focus-visible,
.subpage-card:focus-visible,
.inner-card:focus-visible,
.icon-card:focus-visible,
.trustee-card:focus-visible,
.age-card:focus-visible,
.step-card:focus-visible,
.document-card:focus-visible,
.belief-card:focus-visible,
.facility-page-card:focus-visible,
.gallery-page-card:focus-visible,
.contact-detail:focus-visible,
.message-card:focus-visible,
.split-panel:focus-visible,
.leadership-card:focus-visible {
  outline: 2px solid var(--base);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (hover: hover) and (pointer: fine) {

  .inner-card,
  .icon-card,
  .trustee-card,
  .age-card,
  .step-card,
  .document-card,
  .belief-card,
  .facility-page-card,
  .gallery-page-card,
  .contact-detail,
  .message-card,
  .split-panel,
  .leadership-card,
  .contact-image-card,
  .quote-panel,
  .subpage-card {
    transition: background 260ms ease, border-color 240ms ease, box-shadow 320ms ease, transform 320ms ease;
  }

  .inner-card:hover,
  .icon-card:hover,
  .trustee-card:hover,
  .age-card:hover,
  .step-card:hover,
  .document-card:hover,
  .belief-card:hover,
  .contact-detail:hover,
  .message-card:hover {
    background: linear-gradient(145deg, #fff, #f5f9ff);
    border-color: rgba(255, 210, 48, 0.8);
    box-shadow: 0 22px 48px rgba(7, 31, 79, 0.18);
    transform: translateY(-6px);
  }

  .subpage-card:hover {
    transform: translateY(-6px);
  }

  .subpage-card:hover .subpage-icon {
    transform: rotate(-6deg) scale(1.08);
  }

  .trustee-card:hover .trustee-initial {
    transform: scale(1.08);
  }

  .trustee-initial {
    transition: transform 260ms ease;
  }

  .belief-card:hover::before {
    color: var(--coral);
    transform: rotate(18deg) scale(1.15);
  }

  .step-card:hover {
    transform: translateY(-6px);
  }

  .step-card:hover::before {
    transform: scale(1.08) rotate(-4deg);
  }

  .split-panel:hover {
    background: linear-gradient(145deg, #fff, #f5f9ff);
    box-shadow: 0 22px 48px rgba(7, 31, 79, 0.18);
    transform: translateY(-6px);
  }

  .leadership-card:hover {
    border-color: rgba(255, 210, 48, 0.62);
    box-shadow: 0 25px 52px rgba(3, 17, 48, 0.32);
    transform: translateY(-6px);
  }

  .quote-panel:hover {
    box-shadow: 0 20px 42px rgba(7, 31, 79, 0.22);
  }

  .facility-page-card:hover,
  .gallery-page-card:hover {
    box-shadow: 0 26px 52px rgba(7, 31, 79, 0.25), 0 0 0 4px rgba(255, 210, 48, 0.25);
    transform: translateY(-6px);
  }

  .facility-page-card:hover img,
  .gallery-page-card:hover img,
  .contact-image-card:hover img {
    filter: saturate(1.15) contrast(1.04);
    transform: scale(1.04);
  }

  .inner-photo:hover img {
    filter: saturate(1.12) contrast(1.03);
  }

  .contact-image-card:hover {
    box-shadow: 0 26px 54px rgba(7, 31, 79, 0.24);
  }

  .inner-card:hover .inner-icon,
  .icon-card:hover .inner-icon,
  .contact-detail:hover .inner-icon,
  .split-panel:hover .inner-icon,
  .document-card:hover .inner-icon {
    transform: rotate(-6deg) scale(1.06);
  }

  .inner-icon {
    transition: box-shadow 260ms ease, transform 260ms ease;
  }

  .facility-page-card img,
  .gallery-page-card img,
  .contact-image-card img {
    transition: filter 320ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
  }

  .inner-photo img {
    transition: filter 320ms ease;
  }

  .clean-list li,
  .policy-list li,
  .course-list li,
  .leadership-card li {
    transition: background-color 240ms ease, color 240ms ease;
  }

  .clean-list li:hover,
  .policy-list li:hover,
  .course-list li:hover {
    color: var(--base-dark);
  }

  .leadership-card li:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

/* Touch devices: skip transform/lift hover states (no mouse to trigger them),
   but keep an active/tap feedback state for a responsive feel */
@media (hover: none), (pointer: coarse) {

  .inner-card:active,
  .icon-card:active,
  .trustee-card:active,
  .age-card:active,
  .step-card:active,
  .document-card:active,
  .belief-card:active,
  .split-panel:active,
  .subpage-card:active,
  .message-card:active,
  .contact-detail:active {
    background: linear-gradient(145deg, #fff, #f5f9ff);
    transform: scale(0.99);
  }
}

/* Commitment section: keep the image and quote as one centered visual stack */
.commitment-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  align-items: start;
  gap: clamp(44px, 6vw, 78px);
}

.commitment-layout.commitment-flow-layout {
  display: block;
}

.commitment-flow-layout .section-copy {
  display: flow-root;
}

.commitment-flow-layout .commitment-visual {
  float: right;
  width: min(44%, 520px);
  margin: 2px 0 28px clamp(34px, 5vw, 72px);
}

.commitment-visual {
  display: flex;
  width: 100%;
  max-width: 520px;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  align-self: center;
  margin: 0 auto;
}

.commitment-section [data-inner-reveal="left"],
.commitment-section [data-inner-reveal="right"] {
  transform: translateY(24px);
}

.maths-lab-layout {
  column-gap: clamp(44px, 7vw, 92px);
  row-gap: clamp(14px, 2vw, 24px);
  align-items: center;
}

.maths-lab-layout .inner-photo {
  margin-top: 0;
}

.maths-lab-full-copy {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 0;
}

.maths-lab-full-copy p {
  max-width: none;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.72;
  text-align: justify;
}

.commitment-photo {
  width: 100%;
  min-height: 430px;
}

.commitment-quote {
  box-sizing: border-box;
  width: min(92%, 500px);
  margin-top: 18px;
  margin-right: auto;
  margin-left: auto;
}

/* ============ RESPONSIVE BREAKPOINTS ============ */

@media (max-width: 1200px) {
  .container {
    padding-left: clamp(20px, 4vw, 40px);
    padding-right: clamp(20px, 4vw, 40px);
  }
}

@media (max-width: 1050px) {
  .inner-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    gap: 44px;
  }

  .trustee-grid,
  .facility-page-grid,
  .icon-grid,
  .belief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .age-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leadership-grid {
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .digital-learning-feature {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
    padding: 24px;
    text-align: center;
  }

  .digital-learning-feature .eyebrow {
    justify-content: center;
  }

  .digital-learning-feature .button {
    width: min(100%, 360px);
    justify-self: center;
  }

  .admission-age-section .inner-heading {
    margin-bottom: 20px;
  }

  .admission-age-section .age-grid {
    gap: 10px;
  }

  .admission-age-section .age-grid > li {
    line-height: 1.4;
  }

  .leadership-message-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .leadership-message-photo {
    width: min(360px, calc(100% - 12px));
    margin: 0 auto;
  }

  .message-layout {
    columns: 1;
  }

  .maths-lab-layout .inner-photo {
    margin-top: 0;
  }

  .commitment-flow-layout .commitment-visual {
    float: none;
    width: 100%;
    margin: 0 auto 30px;
  }

  .commitment-visual {
    max-width: 560px;
    margin-top: 0;
  }

  .commitment-quote {
    width: 100%;
  }


  .inner-hero-grid,
  .intro-grid,
  .content-split,
  .content-split.reverse,
  .message-layout,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .inner-hero-grid {
    padding-top: 48px;
    padding-bottom: 68px;
  }

  .content-split.reverse> :first-child,
  .content-split.reverse> :last-child {
    order: initial;
  }

  .inner-band {
    padding: 68px 0;
  }

  .steps-grid,
  .document-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-page-card:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }

  .split-panels {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .inner-cta {
    background: linear-gradient(155deg, var(--accent) 0 65%, var(--base) 65% 100%);
  }

  .inner-cta-grid {
    grid-template-columns: 1fr;
  }

  .inner-cta .button {
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .icon-grid,
  .trustee-grid,
  .facility-page-grid,
  .belief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .contact-page-grid {
    gap: 28px;
  }

  .policy-columns {
    columns: 1;
  }
}

@media (max-width: 580px) {
  .inner-hero {
    min-height: 0;
  }

  .inner-hero-grid {
    min-height: 0;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .inner-hero h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .inner-hero-copy>p:last-child {
    font-size: 0.96rem;
  }

  .management-hero::before {
    -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
  }

  .management-hero::after {
    top: auto;
    right: -54px;
    bottom: -68px;
    width: 150px;
    transform: none;
  }

  .leadership-message-hero::before {
    -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
  }

  .leadership-message-hero::after {
    top: auto;
    right: -55px;
    bottom: -70px;
    width: 155px;
    transform: none;
  }

  .careers-hero::before {
    -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
  }

  .careers-hero::after {
    top: auto;
    right: -55px;
    bottom: -70px;
    width: 155px;
    transform: none;
  }

  .education-info-hero::before {
    -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 10%, #000 100%);
  }

  .education-info-hero::after {
    top: auto;
    right: -55px;
    bottom: -70px;
    width: 155px;
    transform: none;
  }

  .careers-commitment-section .section-copy {
    columns: 1;
  }

  .governance-section::before {
    top: -90px;
    right: -105px;
    width: 230px;
  }

  .governance-section .section-copy {
    padding: 22px 20px;
    text-align: left;
  }

  .governance-section .section-copy p {
    font-size: 0.96rem;
  }

  .trustee-profile-card {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 18px;
  }

  .trustee-photo {
    width: 92px;
    height: 115px;
  }

  .inner-band {
    padding: 52px 0;
  }

  .inner-heading {
    margin-bottom: 32px;
  }

  .intro-grid,
  .content-split,
  .message-layout,
  .contact-page-grid {
    gap: 36px;
  }

  .inner-photo {
    min-height: 335px;
  }

  .inner-photo img {
    height: 290px;
  }

  .inner-photo-badge {
    width: 98px;
    height: 98px;
    border-width: 5px;
  }

  .inner-photo-badge strong {
    font-size: 1.45rem;
  }

  .trustee-grid,
  .facility-page-grid,
  .icon-grid,
  .belief-grid,
  .steps-grid,
  .document-grid,
  .leadership-grid,
  .split-panels,
  .age-grid,
  .gallery-page-grid {
    grid-template-columns: 1fr;
  }

  .gallery-page-card:first-child {
    grid-column: span 1;
  }

  .inner-card,
  .icon-card,
  .trustee-card,
  .age-card,
  .step-card,
  .belief-card,
  .split-panel,
  .leadership-card,
  .message-card {
    padding: 24px;
  }

  .step-card,
  .belief-card {
    padding-top: 24px;
  }

  .policy-columns {
    columns: 1;
  }

  .facility-page-grid,
  .gallery-page-grid {
    grid-auto-rows: auto;
  }

  .facility-page-card,
  .gallery-page-card {
    min-height: 270px;
  }

  .contact-image-card {
    min-height: 350px;
  }

  .contact-detail {
    grid-template-columns: 46px 1fr;
    padding: 18px;
  }

  .contact-detail .inner-icon {
    width: 42px;
    height: 42px;
  }

  .dummy-form {
    padding: 24px;
    border-radius: 7px 24px 7px 24px;
  }

  .form-actions {
    display: grid;
    gap: 16px;
    align-items: start;
  }

  .form-actions .button {
    width: 100%;
    justify-content: center;
  }

  .inner-cta {
    padding: 44px 0;
  }

  .subpage-icon,
  .inner-icon {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 400px) {
  .inner-hero h1 {
    font-size: clamp(1.8rem, 11vw, 2.4rem);
  }

  .quote-panel {
    padding: 22px 20px 22px 62px;
    font-size: 1rem;
  }

  .quote-panel::before {
    top: 2px;
    left: 16px;
    font-size: 3.6rem;
  }

  .trustee-profile-card {
    grid-template-columns: 1fr;
  }

  .trustee-photo {
    grid-row: auto;
    width: 100%;
    height: 220px;
    aspect-ratio: auto;
  }

  .trustee-profile-card h3,
  .trustee-profile-card p {
    grid-column: 1;
  }

  .message-card,
  .leadership-card,
  .split-panel {
    padding: 20px;
  }

  .form-grid {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-page [data-inner-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .inner-card,
  .icon-card,
  .trustee-card,
  .age-card,
  .step-card,
  .document-card,
  .belief-card,
  .facility-page-card,
  .gallery-page-card,
  .contact-detail,
  .message-card,
  .split-panel,
  .leadership-card,
  .contact-image-card,
  .quote-panel,
  .subpage-card,
  .subpage-icon,
  .trustee-initial,
  .belief-card::before,
  .step-card::before,
  .inner-icon,
  .facility-page-card img,
  .gallery-page-card img,
  .contact-image-card img,
  .inner-photo img,
  .dummy-form .button,
  .inner-cta .button {
    transition: none !important;
    transform: none !important;
  }
}
/* ==========================================================
   ACHIEVEMENTS PAGE - PROUD MOMENTS LIGHT BACKGROUND
   Works with the current achievements.html markup:
   <section class="inner-band navy"> immediately after hero.
   Also supports the cleaner .proud-moments-section class.
========================================================== */

.proud-moments-section,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 249, 236, 0.97), rgba(255, 249, 236, 0.97)),
    radial-gradient(circle at 12% 15%, rgba(242, 184, 0, 0.32) 0 2px, transparent 3px);
  background-size: auto, 27px 27px;
  overflow: hidden;
}

.proud-moments-section .gallery-page-card {
  min-height: 0;
  border-radius: 8px 16px 8px 16px;
}

.proud-moments-section .gallery-page-card img {
  display: block;
}

.proud-moments-section .gallery-card-copy {
  right: 18px;
  bottom: 16px;
  left: 18px;
}

.proud-moments-section .gallery-card-copy h3 {
  font-size: clamp(0.92rem, 1.5vw, 1.18rem);
}

.proud-moments-section .gallery-card-copy p {
  font-size: clamp(0.68rem, 1vw, 0.82rem);
}

/* Light decorative outline instead of the dark-section decoration */
.proud-moments-section::after,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy::after {
  position: absolute;
  right: -110px;
  bottom: -210px;
  width: 430px;
  height: 430px;
  content: "";
  border: 2px solid rgba(13, 61, 145, 0.10);
  transform: rotate(45deg);
  pointer-events: none;
}

/* Keep section content above decoration */
.proud-moments-section > .container,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy > .container {
  position: relative;
  z-index: 1;
}

/* Proud Moments eyebrow */
.proud-moments-section .eyebrow,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy .eyebrow {
  color: var(--base);
}

/* Main heading becomes dark on the light background */
.proud-moments-section .inner-heading h2,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy .inner-heading h2 {
  color: var(--base-dark);
}

/* Keep ACHIEVEMENT highlighted in yellow */
.proud-moments-section .inner-heading h2 span,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy .inner-heading h2 span {
  color: var(--accent);
}

/* Description text */
.proud-moments-section .inner-heading > p:last-child,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy .inner-heading > p:last-child {
  color: var(--muted);
}

/* Gallery cards stay image-based with their existing dark bottom overlay */
.proud-moments-section .gallery-page-card,
.inner-hero[style*="Achivement-4.webp"] + .inner-band.navy .gallery-page-card {
  box-shadow: 0 18px 40px rgba(7, 31, 79, 0.14);
}

/* Testimonials: readable quote cards that collapse cleanly on smaller screens. */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.testimonial-card {
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 34px 28px 26px;
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-radius: 8px 28px 8px 28px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.testimonials-section .inner-heading {
  max-width: 860px;
}

.testimonial-story-list {
  display: grid;
  gap: 30px;
}

.testimonial-story {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.32fr);
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-top: 6px solid var(--base-bright);
  border-radius: 8px 28px 8px 28px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.testimonial-story:nth-child(even) {
  border-top-color: var(--accent);
}

.testimonial-story-profile {
  padding: 36px 30px;
  background: linear-gradient(155deg, #f4f8ff, #e5efff);
  border-right: 1px solid rgba(13, 61, 145, 0.1);
}

.testimonial-initials {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 26px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--base), var(--base-bright));
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(7, 31, 79, 0.18);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
}

.testimonial-story:nth-child(even) .testimonial-initials {
  color: var(--base-dark);
  background: linear-gradient(145deg, #ffe276, var(--accent));
}

.testimonial-story-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-story-label span {
  padding: 4px 8px;
  color: var(--base-dark);
  background: rgba(13, 61, 145, 0.09);
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.testimonial-story-profile h3 {
  margin-bottom: 10px;
  color: var(--base-dark);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.testimonial-story-role {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.testimonial-story-content {
  padding: clamp(28px, 4vw, 46px);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.testimonial-story-content h4 {
  margin: 0 0 16px;
  color: var(--base-dark);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.testimonial-story-quote {
  margin: 0 0 23px;
  padding: 18px 22px;
  color: var(--base-dark);
  background: #fff8df;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
}

.testimonial-story-content > p {
  margin: 0 0 16px;
}

.testimonial-story-content h5 {
  margin: 26px 0 10px;
  color: var(--base);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
}

.testimonial-story-content > .testimonial-story-signoff {
  margin-top: 22px;
  margin-bottom: 0;
  padding-top: 18px;
  color: var(--base-dark);
  border-top: 1px solid rgba(13, 61, 145, 0.14);
  font-family: var(--font-display);
  font-weight: 700;
}

.testimonials-contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.testimonials-contact h2 {
  margin-bottom: 9px;
  color: #fff;
}

.testimonials-contact h2 span {
  color: var(--accent);
}

.testimonials-contact-inner > div > p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: #d5e3fa;
}

.testimonials-contact .button {
  flex: 0 0 auto;
}

.testimonial-card::before {
  position: absolute;
  top: -17px;
  right: 18px;
  color: rgba(13, 61, 145, 0.1);
  content: "\201D";
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
}

.testimonial-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--base-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.65;
}

.testimonial-card cite {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: auto;
  color: var(--base);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 800;
}

.testimonial-card cite span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.testimonial-card:nth-child(3n + 2) {
  border-top: 6px solid var(--accent);
}

.testimonial-card:nth-child(3n + 1) {
  border-top: 6px solid var(--base-bright);
}

.testimonial-card:nth-child(3n) {
  border-top: 6px solid var(--coral);
}

@media (max-width: 1050px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-story {
    grid-template-columns: minmax(200px, 0.62fr) minmax(0, 1.38fr);
  }
}

@media (max-width: 760px) {
  .testimonial-story {
    grid-template-columns: 1fr;
  }

  .testimonial-story-profile {
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(13, 61, 145, 0.1);
  }

  .testimonial-initials {
    margin-bottom: 18px;
  }

  .testimonials-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial-card {
    min-height: 0;
    padding: 30px 22px 24px;
  }
}

/* Gallery subpage */
.gallery-hero {
  --gallery-blue: #1268a9;
  background-color: #071f4f;
  background-image:
    radial-gradient(circle at 88% 28%, rgba(84, 207, 224, 0.24), transparent 22%),
    linear-gradient(122deg, #061a42 0%, #0c467d 56%, #087f99 100%);
  border-bottom: 5px solid var(--accent);
}

.gallery-hero::before,
.gallery-hero::after {
  display: block;
  position: absolute;
  content: "";
  pointer-events: none;
}

.gallery-hero::before {
  inset: 0;
  z-index: -1;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent 32%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 32%, #000 100%);
}

.gallery-hero::after {
  top: 50%;
  right: clamp(38px, 9vw, 150px);
  z-index: -1;
  width: clamp(170px, 22vw, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04), 0 0 0 62px rgba(255, 210, 48, 0.06);
  transform: translateY(-50%);
}

.gallery-hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
}

.gallery-hero .inner-hero-copy > p:last-child {
  max-width: 650px;
  text-align: left;
  hyphens: none;
}

.gallery-section {
  background:
    radial-gradient(circle at 90% 12%, rgba(20, 102, 216, 0.08), transparent 25%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 50%, #f3f7fd 100%);
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 12px;
}

.gallery-filter-bar button {
  min-height: 44px;
  padding: 10px 19px;
  color: var(--base-dark);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 61, 145, 0.18);
  border-radius: 999px;
  font: 700 0.88rem/1 var(--font-display);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gallery-filter-bar button:hover,
.gallery-filter-bar button:focus-visible {
  color: var(--base);
  border-color: var(--base);
  transform: translateY(-2px);
}

.gallery-filter-bar button.is-active {
  color: var(--base-dark);
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-filter-status {
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.gallery-showcase {
  width: min(100%, 1120px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 20px;
}

.gallery-showcase .gallery-page-card,
.gallery-showcase .gallery-page-card:first-child {
  min-height: 0;
  grid-column: auto;
  grid-row: auto;
  border-radius: 10px 24px 10px 24px;
}

.gallery-showcase .gallery-page-card[hidden] {
  display: none;
}

@media (max-width: 820px) {
  .gallery-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 250px;
  }

}

@media (max-width: 580px) {
  .gallery-hero::after {
    right: -42px;
    bottom: -52px;
    top: auto;
    width: 170px;
    transform: none;
  }

  .gallery-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  .gallery-filter-bar button {
    flex: 0 0 auto;
  }

  .gallery-filter-status {
    margin-bottom: 24px;
    text-align: left;
  }

  .gallery-showcase {
    grid-template-columns: 1fr;
    grid-auto-rows: 270px;
    gap: 16px;
  }

}

/* Keep filtered categories as a predictable gallery grid with no orphaned gaps. */
.gallery-showcase .gallery-page-card:nth-child(n) {
  grid-column: auto;
  grid-row: auto;
}


/* Signature block closing a leadership message */
.message-sign {
  display: grid;
  gap: 2px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px solid rgba(13, 61, 145, 0.14);
}

.message-sign b {
  color: var(--base-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.message-sign span {
  color: var(--muted);
  font-size: 0.9rem;
}

.inner-band.navy .message-sign {
  border-top-color: rgba(255, 255, 255, 0.22);
}

.inner-band.navy .message-sign b { color: #fff; }
.inner-band.navy .message-sign span { color: #d5e3fa; }


/* Contact card lists a principal and an admissions address */
.contact-detail > div > a {
  display: block;
}

.contact-detail > div > a + a {
  margin-top: 3px;
}

/* Use the same school-wide banner artwork across every inner-page hero. */
.inner-page .inner-hero {
  min-height: 0;
  aspect-ratio: 2103 / 748;
  background-image: url("../images/banner-image.webp");
  background-position: center;
  background-size: cover;
}

.inner-page .inner-hero-grid {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.inner-page .inner-hero::before,
.inner-page .inner-hero::after {
  display: none;
}


/* Placeholder state for a page whose content is not ready yet */
.under-construction {
  max-width: 640px;
  margin-inline: auto;
  padding: 54px 34px 48px;
  background: #fff;
  border: 2px dashed rgba(13, 61, 145, 0.28);
  border-radius: 6px 26px 6px 26px;
  box-shadow: var(--shadow-small);
  text-align: center;
}

.under-construction-icon {
  display: inline-grid;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  place-items: center;
  color: var(--base-dark);
  background: var(--accent);
  border-radius: 50%;
}

.under-construction-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.under-construction h2 {
  margin: 6px 0 14px;
}

.under-construction p {
  color: var(--muted);
}

.under-construction-cta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 61, 145, 0.12);
  font-size: 0.95rem;
}

.under-construction-cta a {
  color: var(--base);
  font-weight: 700;
}

@media (max-width: 580px) {
  .under-construction {
    padding: 40px 22px 34px;
  }
}

/* Felicitations: formal archive cards for community leaders' messages. */
.felicitation-section .inner-heading {
  max-width: 880px;
}

.felicitation-list {
  display: grid;
  gap: 30px;
}

.felicitation-card {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-top: 6px solid var(--base-bright);
  border-radius: 8px 28px 8px 28px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.felicitation-card:nth-child(even) {
  border-top-color: var(--accent);
}

.felicitation-profile {
  padding: 34px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(155deg, #0c3d91, #071f4f);
}

.felicitation-card:nth-child(even) .felicitation-profile {
  color: var(--base-dark);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.55), transparent 42%),
    linear-gradient(155deg, #fff4c8, #f8e6a0);
}

.felicitation-seal {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  place-items: center;
  color: var(--base-dark);
  background: var(--accent);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(2, 16, 42, 0.2);
}

.felicitation-seal svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.felicitation-kicker {
  margin: 0 0 10px;
  color: #b8d7ff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.felicitation-card:nth-child(even) .felicitation-kicker {
  color: #8d5e00;
}

.felicitation-profile h3 {
  margin: 0 0 15px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.felicitation-card:nth-child(even) .felicitation-profile h3 {
  color: var(--base-dark);
}

.felicitation-designation {
  margin: 0 0 6px;
  color: #e1ecff;
  font-size: 0.92rem;
  line-height: 1.5;
}

.felicitation-card:nth-child(even) .felicitation-designation {
  color: #4d4b42;
}

.felicitation-source {
  margin: 22px 0 0;
  padding-top: 16px;
  color: #c7dbfa;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  font-size: 0.84rem;
  line-height: 1.55;
}

.felicitation-source i {
  color: #fff;
  font-style: italic;
  font-weight: 700;
}

.felicitation-credentials {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.felicitation-credentials li {
  padding: 10px 0;
  color: #4d4b42;
  border-top: 1px solid rgba(13, 61, 145, 0.15);
  font-size: 0.87rem;
  line-height: 1.5;
}

.felicitation-copy {
  padding: clamp(28px, 4.2vw, 48px);
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.felicitation-copy h4 {
  margin: 0 0 20px;
  color: var(--base-dark);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  line-height: 1.25;
}

.felicitation-copy > p {
  margin: 0 0 16px;
}

.felicitation-quote {
  margin: 0 0 24px;
  padding: 20px 23px;
  color: var(--base-dark);
  background: #eef5ff;
  border-left: 4px solid var(--base-bright);
  border-radius: 0 15px 15px 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.6;
}

.felicitation-quote-secondary {
  margin-top: 25px;
  margin-bottom: 0;
  background: #fff8df;
  border-left-color: var(--accent);
}

.felicitation-closing {
  margin: 22px 0 0 !important;
  padding: 17px 0 0;
  color: var(--base);
  border-top: 1px solid rgba(13, 61, 145, 0.15);
  font-family: var(--font-display);
  font-weight: 800;
}

.felicitation-contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.felicitation-contact h2 {
  margin-bottom: 9px;
  color: #fff;
}

.felicitation-contact h2 span {
  color: var(--accent);
}

.felicitation-contact-inner > div > p:last-child {
  margin-bottom: 0;
  color: #d5e3fa;
}

.felicitation-contact .button {
  flex: 0 0 auto;
}

/* Zoho forms: responsive iframe panels with a direct-open fallback. */
.zoho-form-card {
  width: min(100%, 1040px);
  margin-inline: auto;
  padding: 12px 16px 6px;
  background: #fff;
  border: 1px solid rgba(13, 61, 145, 0.12);
  border-radius: 8px 24px 8px 24px;
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.zoho-form-frame {
  display: block;
  width: 100%;
  height: 840px;
  border: 0;
  background: #fff;
}

.zoho-form-card--admission .zoho-form-frame {
  height: 1080px;
}

.zoho-form-card--career .zoho-form-frame {
  height: 940px;
}

.zoho-form-card--contact .zoho-form-frame {
  height: 760px;
}

.zoho-form-fallback {
  margin: 0;
  padding: 15px 8px 12px;
  color: var(--muted);
  border-top: 1px solid rgba(13, 61, 145, 0.1);
  font-size: 0.88rem;
  text-align: center;
}

.zoho-form-fallback a {
  color: var(--base);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 580px) {
  .zoho-form-card {
    padding: 8px 8px 4px;
    border-radius: 6px 18px 6px 18px;
  }

  .zoho-form-frame {
    height: 980px;
  }

  .zoho-form-card--admission .zoho-form-frame {
    height: 1280px;
  }

  .zoho-form-card--career .zoho-form-frame {
    height: 1120px;
  }

  .zoho-form-card--contact .zoho-form-frame {
    height: 900px;
  }

  .zoho-form-fallback {
    font-size: 0.82rem;
  }
}

@media (max-width: 820px) {
  .felicitation-card {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 680px) {
  .felicitation-card {
    grid-template-columns: 1fr;
  }

  .felicitation-profile {
    padding: 28px;
  }

  .felicitation-seal {
    margin-bottom: 18px;
  }

  .felicitation-contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
