:root {
  --bg: #f4f7fb;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.86);
  --card: #ffffff;
  --text: rgba(9, 17, 30, 0.94);
  --muted: rgba(9, 17, 30, 0.68);
  --border: rgba(9, 17, 30, 0.12);
  --border-2: rgba(9, 17, 30, 0.08);
  --brand: #80131a;
  --brand-2: #9e202c;
  --shadow: 0 18px 44px rgba(9, 17, 30, 0.10);
  --shadow-2: 0 24px 60px rgba(9, 17, 30, 0.14);
  --radius: 20px;
  --ring: 0 0 0 3px rgba(128, 19, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background-color: #ffffff;
  line-height: 1.62;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  width: min(1180px, calc(100% - 1.6rem));
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.section .row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

.section .row.g-3 {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 1.75rem;
}

.section .row.g-4 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2rem;
}

.section .row.g-5 {
  --bs-gutter-x: 2.5rem;
  --bs-gutter-y: 2.5rem;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  transform: translateY(-200%);
  transition: transform 160ms ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--ring);
}

.topbar {
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar__inner {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.topbar__link {
  font-weight: 600;
  color: #ffffff;
}

.topbar__sep {
  opacity: 0.6;
  color: #ffffff;
}

.topbar__note {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 30px rgba(9, 17, 30, 0.04);
}

.header__inner {
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__name {
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.brand__sub {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: 0 0 auto;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  margin: 0;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 160ms ease, width 160ms ease;
}

.site-header[data-open="true"] .nav-toggle {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.site-header[data-open="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-nav__link {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 650;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.site-nav__link:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
}

/* .site-nav__link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
} */

.site-nav__cta {
  background: transparent;
  color: #ffffff;
  border: 1px solid transparent;
}

.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
}

.section__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 760px;
}

.section__sub {
  max-width: 70ch;
  color: var(--muted);
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--brand);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

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

p {
  margin: 0.6rem 0 0;
  /* color: rgba(11, 18, 32, 0.86); */
}

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

.mt-24 {
  margin-top: 1.5rem;
}

.grid:not(.row) {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid--4:not(.row) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90));
  border: none;
  box-shadow: none;
  padding: 1.35rem 1.25rem;
  transition: transform 180ms ease;
}

a.card {
  display: block;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-4px);
}

.card--accent {
  background: linear-gradient(135deg, rgba(128, 19, 26, 0.06), rgba(128, 19, 26, 0.10));
  border: none;
}

.divider {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-weight: 750;
  color: rgba(11, 18, 32, 0.78);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0;
}

.lead {
  font-size: 1.14rem;
  color: rgba(11, 18, 32, 0.84);
  margin-top: 0.9rem;
  max-width: 70ch;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(1.6rem, 3vw, 2.6rem);
}

.page-hero:not(.row) {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(128, 19, 26, 0.08), rgba(128, 19, 26, 0.03));
  border: 1px solid rgba(128, 19, 26, 0.12);
}

.page-hero__content {
  min-width: 0;
}

.page-hero__side {
  min-width: 0;
}

.hero__inner:not(.row) {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  padding: clamp(0.25rem, 1vw, 0.5rem) 0;
}

.hero__content::before {
  content: "";
  display: block;
  width: 5.5rem;
  height: 0.3rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(128, 19, 26, 0.95), rgba(128, 19, 26, 0.72));
}

.hero__visual {
  display: grid;
  gap: 1.25rem;
}

.hero__actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 750;
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  margin-top: 20px;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.07);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn--primary {
  background: linear-gradient(135deg, #80131a, #a3212d);
  color: #ffffff;
  border: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.8);
}

.btn__icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
}

.hero__meta:not(.row) {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 560px;
}

.meta-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 0.75rem 0.8rem;
}

.meta-card__title {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 650;
}

.meta-card__value {
  margin-top: 0.15rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.hero-card {
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
  border: none;
  padding: 1.25rem 1.2rem;
  box-shadow: none;
}

.hero-card__title {
  font-weight: 850;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
  color: var(--brand);
}

.checklist,
.bullets {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
  color: rgba(11, 18, 32, 0.86);
}

.checklist li,
.bullets li {
  margin: 0.35rem 0;
}

.checklist li::marker {
  color: var(--brand);
}

.steps {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
}

.steps li {
  margin: 0.45rem 0;
}

.callout,
.footer-callout {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(128, 19, 26, 0.06), rgba(128, 19, 26, 0.10));
  border: 1px solid rgba(128, 19, 26, 0.18);
}

.facility__img {
  border-radius: 14px;
  border: 1px solid var(--border-2);
  background: rgba(11, 18, 32, 0.03);
  margin-bottom: 0.75rem;
}

.gallery:not(.row) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

.about-gallery:not(.row) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery__item {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


.gallery__item figcaption {
  padding: 0.65rem 0.8rem;
  font-weight: 700;
  color: rgba(11, 18, 32, 0.86);
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.home-gallery:not(.row) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.home-gallery__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.home-gallery__item:nth-child(1) img {
  aspect-ratio: auto;
  height: 100%;
}

.contact-gallery {
  grid-template-columns: 1fr;
}

.contact-gallery .gallery__item img {
  aspect-ratio: 16 / 6;
}

.people-grid:not(.row) {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.person-card {
  padding: 0;
  overflow: hidden;
  display: grid;
}

.person-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(128, 19, 26, 0.06);
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__body {
  padding: 1rem 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.person-card__meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(128, 19, 26, 0.08);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.person-card__name {
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--brand);
  line-height: 1.2;
}

.person-card__role {
  font-weight: 750;
  color: rgba(9, 17, 30, 0.9);
}

.person-card__dept {
  color: var(--muted);
  font-size: 0.95rem;
}

.events-grid:not(.row) {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card {
  padding: 0;
  overflow: hidden;
  display: grid;
}

.event-card__media {
  aspect-ratio: 15 / 8;
  overflow: hidden;
  background: rgba(128, 19, 26, 0.06);
}

.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  padding: 1rem 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.event-card__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.event-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(128, 19, 26, 0.08);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card__date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.event-card__title {
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--cs-ink-soft);
  line-height: 1.2;
}

.event-card__text {
  color: var(--muted);
}

.achievement-grid:not(.row) {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.achievement-card {
  padding: 1.1rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.achievement-card__icon {
  width: 56px;
  height: 56px;
  padding: 0.7rem;
  border-radius: 18px;
  background: rgba(128, 19, 26, 0.08);
  border: 1px solid rgba(128, 19, 26, 0.16);
}

.achievement-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.achievement-card__title {
  font-size: 1.02rem;
  font-weight: 850;
  color: var(--brand);
}

.achievement-card__text {
  color: var(--muted);
}

.hero-visual__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 138px);
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-visual__tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.hero-visual__tile--tall {
  grid-row: span 2;
}

.hero-visual__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.contact-item__label {
  font-weight: 800;
  color: var(--brand);
}

.contact-item__value {
  margin-top: 0.25rem;
  color: var(--text);
}

.map-card__title {
  font-weight: 850;
}

.form {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field__label {
  font-weight: 750;
  color: var(--brand);
}

input:not(.form-control),
textarea:not(.form-control) {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.75rem 0.8rem;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:not(.form-control):focus-visible,
textarea:not(.form-control):focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.site-footer {
  border-top: none;
  background: var(--brand);
  padding: 1.35rem 0 0;
  color: #ffffff;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
}

.footer__brand {
  font-weight: 900;
}

.footer__small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer__right {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer__right a {
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  color: #ffffff;
}

.footer__right a:hover {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0;
}

.footer__credit {
  padding: 0.7rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.footer__credit a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer__credit a:hover {
  opacity: 0.92;
  text-decoration: none;
}

.hero__bg {
  position: absolute;
  inset: -10%;
  background-image: url("../img/hero-pattern.svg");
  background-size: 800px 800px;
  opacity: 0.32;
  filter: saturate(1.2);
  pointer-events: none;
  z-index: 0;
}

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

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

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

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

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

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

  .home-gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

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

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

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

  .page-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar__right {
    display: none;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

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

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

  .about-gallery {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .home-gallery {
    grid-template-columns: 1fr;
  }

  .home-gallery__item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }

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

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

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

  .contact-gallery {
    grid-template-columns: 1fr;
  }

  .hero__meta:not(.row) {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.6rem);
    min-width: 240px;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border-radius: 16px;
    background: var(--brand);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2);
  }

  .site-header[data-open="true"] .site-nav {
    display: flex !important;
  }

  .site-nav__link {
    padding: 0.7rem 0.75rem;
  }

  .callout,
  .footer-callout {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    background: var(--brand);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Beautiful specialized styling for Academics and Admissions */

.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0.5rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, rgba(128, 19, 26, 0.4), rgba(128, 19, 26, 0.05));
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.75rem;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__item::before {
  content: "✓";
  /* Default fallback */
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(128, 19, 26, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
}

/* Number assignments for timeline */
.timeline__item:nth-child(1)::before {
  content: "1";
}

.timeline__item:nth-child(2)::before {
  content: "2";
}

.timeline__item:nth-child(3)::before {
  content: "3";
}

.timeline__item:nth-child(4)::before {
  content: "4";
}

.timeline__item:nth-child(5)::before {
  content: "5";
}

.timeline__title {
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  list-style: none;
  margin-top: 1.2rem;
}

.pill-list li {
  background: rgba(128, 19, 26, 0.05);
  color: var(--brand);
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(128, 19, 26, 0.15);
  transition: all 200ms ease;
  cursor: default;
}

.pill-list li:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 19, 26, 0.2);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  color: rgba(11, 18, 32, 0.86);
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  color: #fff;
  background: var(--brand);
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(128, 19, 26, 0.25);
}

/* Announcements Styles */
.announcement-card {
  display: flex !important;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 5px solid var(--brand) !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.announcement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(128, 19, 26, 0.12) !important;
}

.announcement-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.announcement-card__date {
  font-weight: 650;
  font-size: 0.85rem;
  color: var(--muted);
}

.announcement-card__badge {
  background: rgba(128, 19, 26, 0.12);
  color: var(--brand);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-card__title {
  margin: 0;
}

.announcement-card__text {
  margin: 0;
}

/* Homepage redesign — inspired by the supplied K.E. Carmel template */
.home-page {
  --home-red: #00643d;
  --home-deep: #510914;
  --home-gold: #d9aa4c;
  --home-cream: #f8f3e9;
  color: #282523;
  background: #fff;
  font-family: "DM Sans", sans-serif;
}

.home-page.is-loading {
  overflow: hidden;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  margin-top: 0;
}

.home-page h1,
.home-page h2 {
  font-family: "Playfair Display", serif;
}

.home-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #00643d;
  transition: opacity .6s ease, visibility .6s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash__mark {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  animation: splashPulse 1.5s ease-in-out infinite;
}

.splash__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
}

.splash__name {
  margin: 18px 0 0 !important;
  font: 700 1.55rem "Playfair Display", serif;
  color: #fff;
  letter-spacing: .03em;
}

.splash__place {
  margin-top: 3px;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.splash__loader {
  width: 44px;
  height: 2px;
  margin-top: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, .25);
}

.splash__loader:after {
  content: "";
  display: block;
  width: 50%;
  height: 100%;
  background: #fff;
  animation: splashLoad 1s ease-in-out infinite alternate;
}

@keyframes splashPulse {
  50% {
    transform: scale(1.04);
  }
}

@keyframes splashLoad {
  to {
    transform: translateX(100%);
  }
}

.home-topbar {
  color: #fff;
  background: var(--home-deep);
  font-size: .76rem;
}

.home-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-topbar__inner div {
  display: flex;
  gap: 24px;
}

.home-topbar a {
  color: inherit;
  text-decoration: none;
}

.home-topbar__admission {
  padding: 11px 18px;
  background: var(--home-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.home-topbar__admission span {
  margin-left: 12px;
}

.home-header {
  position: relative;
  z-index: 100;
  background: #fff;
  border: 0;
  box-shadow: 0 4px 22px rgba(50, 22, 18, .07);
}

.home-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  animation: headerDrop .3s ease;
}

@keyframes headerDrop {
  from {
    transform: translateY(-100%);
  }
}

.home-header__inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--home-red);
  text-decoration: none;
}

.home-brand img {
  width: 67px;
  height: 67px;
  object-fit: contain;
}

.home-brand span {
  display: grid;
  line-height: 1.08;
}

.home-brand strong {
  font: 700 1.12rem "Playfair Display", serif;
  letter-spacing: .12em;
}

.home-brand small {
  margin-top: 5px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.home-brand em {
  margin-top: 7px;
  color: #8d8078;
  font: italic .62rem Georgia, serif;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.home-nav .site-nav__link {
  position: relative;
  padding: 37px 10px;
  color: #302b28;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.home-nav .site-nav__link:after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 27px;
  height: 2px;
  background: var(--home-red);
  transform: scaleX(0);
  transition: transform .2s;
}

.home-nav .site-nav__link:hover:after,
.home-nav .site-nav__link[aria-current="page"]:after {
  transform: scaleX(1);
}

.home-page .nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--home-red);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.home-page .nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}

.home-hero {
  position: relative;
  height: clamp(520px, 68vw, 750px);
  overflow: hidden;
  background: #19100f;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.home-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-slide>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.home-slide.is-active>img {
  transform: scale(1);
}

.home-slide__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 5, 8, .78) 0%, rgba(24, 5, 8, .43) 48%, rgba(24, 5, 8, .06) 80%), linear-gradient(0deg, rgba(24, 5, 8, .34), transparent 50%);
}

.home-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-bottom: 30px;
}

.home-slide__content p {
  margin-bottom: 17px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.home-slide__content h1,
.home-slide__content h2 {
  max-width: 780px;
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.home-slide__content em {
  color: #f0c870;
  font-weight: 600;
}

.home-slide__content a {
  padding-bottom: 7px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-slide__content a span {
  margin-left: 20px;
}

.home-hero__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .12);
  font-size: 2rem;
  line-height: 1;
  transition: .2s;
}

.home-hero__arrow:hover {
  background: var(--home-red);
  border-color: var(--home-red);
}

.home-hero__arrow--prev {
  left: 28px;
}

.home-hero__arrow--next {
  right: 28px;
}

.home-hero__dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 35px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.home-hero__dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, .45);
}

.home-hero__dots button.is-active {
  background: #fff;
}

.home-hero__scroll {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: .58rem;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

.home-hero__scroll span {
  display: block;
  width: 1px;
  height: 38px;
  background: #fff;
}

.home-section {
  padding: 105px 0;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--home-red);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.section-kicker.light {
  color: #efcb87;
}

.section-heading h2,
.welcome-copy h2,
.faq-grid h2,
.leadership-copy h2 {
  color: #312b27;
  font-size: clamp(2.25rem, 4.2vw, 4rem);
  line-height: 1.08;
}

.section-heading h2 em,
.welcome-copy h2 em,
.faq-grid h2 em {
  color: var(--home-red);
  font-weight: 600;
}

.section-heading p {
  color: #746c66;
  line-height: 1.8;
}

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 48px;
}

.notice-strip {
  padding: 52px 0;
  background: var(--home-cream);
  border-bottom: 1px solid #eadfce;
}

.notice-strip__grid {
  display: grid;
  grid-template-columns: 1fr 2.3fr 90px;
  align-items: center;
  gap: 38px;
}

.notice-strip__title h2 {
  margin-bottom: 6px;
  color: var(--home-deep);
  font: 700 2rem "Playfair Display", serif;
}

.notice-strip__title p {
  margin: 0;
  color: #7c736c;
  font-size: .87rem;
}

.notice-strip__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid #d9cdbc;
}

.notice-strip__items article {
  display: grid;
  grid-template-columns: 104px 1fr;
  column-gap: 18px;
  padding: 8px 26px;
  border-right: 1px solid #d9cdbc;
}

.notice-strip__items time {
  grid-row: 1/3;
  color: #8a7e75;
  font-size: .65rem;
  text-transform: uppercase;
}

.notice-strip__items time strong {
  color: var(--home-red);
  font-size: .7rem;
}

.notice-strip__items h3 {
  margin: 0 0 5px;
  color: #3a312c;
  font: 700 1rem "Playfair Display", serif;
}

.notice-strip__items p {
  margin: 0;
  color: #7d746e;
  font-size: .78rem;
}

.circle-link {
  width: 80px;
  height: 80px;
  display: grid;
  place-content: center;
  border: 1px solid var(--home-red);
  border-radius: 50%;
  color: var(--home-red);
  text-align: center;
  text-decoration: none;
  font-size: .76rem;
  text-transform: uppercase;
  transition: .25s;
}

.circle-link:hover {
  color: #fff;
  background: var(--home-red);
}

.circle-link span {
  font-size: 1rem;
}

.welcome-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
  align-items: center;
}

.welcome-copy p {
  color: #746c66;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  gap: 22px;
  margin-top: 12px;
  padding-bottom: 6px;
  color: var(--home-red);
  border-bottom: 1px solid #cfa8ac;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.welcome-visual {
  position: relative;
  padding: 0 0 45px 45px;
}

.welcome-visual:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72%;
  height: 80%;
  background: var(--home-cream);
}

.welcome-visual>img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.welcome-visual__stamp {
  position: absolute;
  right: -26px;
  bottom: 15px;
  width: 125px;
  height: 125px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--home-red);
  text-align: center;
}

.welcome-visual__stamp strong {
  font: 700 1.4rem "Playfair Display", serif;
}

.welcome-visual__stamp span {
  font-size: .58rem;
  letter-spacing: .2em;
}

.activity-section {
  background: #fbfaf7;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid #dfd8ce;
  border-left: 1px solid #dfd8ce;
}

.activity-grid a {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 22px;
  color: #322c28;
  border-right: 1px solid #dfd8ce;
  border-bottom: 1px solid #dfd8ce;
  text-decoration: none;
  transition: .25s;
}

.activity-grid a:hover {
  color: #fff;
  background: var(--home-red);
  transform: translateY(-6px);
}

.activity-grid span {
  color: #a1958b;
  font-size: .67rem;
}

.activity-grid b {
  font: 700 1.16rem "Playfair Display", serif;
  line-height: 1.35;
}

.activity-grid small {
  font-size: 1.2rem;
}

.stats-section {
  padding: 80px 0;
  color: #fff;
  background: linear-gradient(110deg, rgba(80, 7, 18, .96), rgba(132, 13, 29, .93)), url("../images/home/image_1.png") center/cover;
  background-attachment: fixed;
}

.stats-section>.home-container {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  align-items: center;
  gap: 55px;
}

.stats-section h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
}

.stats-section h2 em {
  color: #efcb87;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid article {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.stats-grid strong {
  color: #fff;
  font: 600 clamp(2rem, 3.5vw, 3.4rem) "Playfair Display", serif;
}

.stats-grid span {
  color: rgba(255, 255, 255, .72);
  font-size: .75rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.facilities-showcase {
  background: #fff;
}

.facility-home-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr .9fr;
  gap: 20px;
}

.facility-home-grid a {
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.facility-home-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}

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

.facility-home-grid a:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(30, 7, 9, .8));
}

.facility-home-grid span {
  position: absolute;
  z-index: 2;
  left: 25px;
  right: 25px;
  bottom: 25px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: #fff;
}

.facility-home-grid b {
  font: 700 1.35rem "Playfair Display", serif;
}

.facility-home-grid small {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.leadership-section {
  padding: 95px 0;
  color: #fff;
  background: var(--home-deep);
}

.leadership-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  gap: 80px;
}

.leadership-photo {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, .18);
}

.photo-placeholder {
  aspect-ratio: 4/5;
  display: grid;
  place-content: center;
  justify-items: center;
  background: rgba(255, 255, 255, .07);
  text-align: center;
}

.photo-placeholder img {
  width: 130px;
  opacity: .85;
}

.photo-placeholder span {
  color: rgba(255, 255, 255, .7);
  font-size: .74rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.leadership-copy h2 {
  color: #fff;
}

.leadership-copy h2 em {
  color: #efcb87;
}

.leadership-copy blockquote {
  max-width: 700px;
  margin: 1px 0;
  color: rgba(255, 255, 255, .82);
  font: italic 1.08rem/1.9 Georgia, serif;
}

.leadership-copy strong,
.leadership-copy small {
  display: block;
}

.leadership-copy strong {
  color: #efcb87;
  font-family: "Playfair Display", serif;
}

.leadership-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .58);
}

.leadership-copy a {
  display: inline-block;
  margin-top: 28px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.stories-section {
  background: var(--home-cream);
}

.stories-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: 22px;
}

.story {
  background: #fff;
}

.story>a {
  display: block;
  height: 230px;
  overflow: hidden;
}

.story--feature>a {
  height: 330px;
}

.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.story:hover img {
  transform: scale(1.05);
}

.story>div {
  padding: 25px;
}

.story span {
  color: var(--home-red);
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.story h3 {
  margin: 10px 0;
  color: #302a26;
  font: 700 1.35rem/1.25 "Playfair Display", serif;
}

.story--feature h3 {
  font-size: 1.8rem;
}

.story p {
  color: #7b726b;
  line-height: 1.7;
}

.story div a {
  color: var(--home-red);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.outline-link {
  width: max-content;
  display: flex;
  gap: 28px;
  margin: 40px auto 0;
  padding: 14px 22px;
  color: var(--home-red);
  border: 1px solid #cda8ab;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-section {
  padding-bottom: 0;
}

.gallery-ribbon {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr .8fr;
  height: 360px;
}

.gallery-ribbon a {
  overflow: hidden;
}

.gallery-ribbon a:nth-child(even) {
  margin-top: 40px;
}

.gallery-ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .6s;
}

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

.faq-section {
  padding: 110px 0;
  background: #fbfaf7;
}

.faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.faq-grid>div:first-child p {
  color: #756d67;
}

.faq-list details {
  border-top: 1px solid #ddd4ca;
}

.faq-list details:last-child {
  border-bottom: 1px solid #ddd4ca;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  color: #3b332e;
  cursor: pointer;
  list-style: none;
  font: 600 1.08rem "Playfair Display", serif;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  color: var(--home-red);
  font: 400 1.4rem sans-serif;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 40px 22px 0;
  color: #786f68;
  line-height: 1.7;
}

.home-footer {
  color: rgba(255, 255, 255, .76);
  background: #25070c;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr 1fr;
  gap: 60px;
  padding-top: 75px;
  padding-bottom: 65px;
}

.home-brand--footer {
  color: #fff;
}

.home-brand--footer img {
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .2));
}

.footer-about p {
  max-width: 330px;
  margin: 24px 0 0;
  line-height: 1.75;
}

.footer-main h3 {
  margin: 8px 0 24px;
  color: #efcb87;
  font: 600 1rem "Playfair Display", serif;
}

.footer-main>div:not(:first-child) a {
  display: block;
  margin: 0 0 13px;
  color: rgba(255, 255, 255, .76);
  text-decoration: none;
  font-size: .82rem;
}

.footer-main>div:not(:first-child) a:hover {
  color: #fff;
}

.footer-main p {
  font-size: .8rem;
  line-height: 1.7;
}

.footer-bottom {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer-bottom p {
  margin: 0;
  font-size: .72rem;
}

.footer-bottom div {
  display: flex;
  gap: 22px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  font-size: .72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width:1000px) {
  .home-page .nav-toggle {
    display: flex;
  }

  .home-header__inner {
    min-height: 82px;
  }

  .home-nav {
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    display: none;
    padding: 12px;
    background: var(--home-deep);
    box-shadow: 0 20px 30px rgba(0, 0, 0, .2);
  }

  .home-header[data-open="true"] .home-nav {
    display: grid;
  }

  .home-nav .site-nav__link {
    padding: 12px 15px;
    color: #fff;
  }

  .home-nav .site-nav__link:after {
    display: none;
  }

  .notice-strip__grid {
    grid-template-columns: 1fr;
  }

  .notice-strip__items {
    border-left: 0;
  }

  .circle-link {
    justify-self: center;
  }

  .welcome-grid,
  .leadership-grid,
  .faq-grid {
    gap: 50px;
  }

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

  .stats-section>.home-container {
    grid-template-columns: 1fr;
  }

  .facility-home-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .facility-home-grid a:last-child {
    display: none;
  }

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

  .story--feature {
    grid-column: span 2;
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-main>div:last-child {
    grid-column: 1/-1;
  }
}

@media (max-width:700px) {
  .home-container {
    width: min(100% - 28px, 1180px);
  }

  .home-topbar__inner div a:last-child {
    display: none;
  }

  .home-brand img {
    width: 55px;
    height: 55px;
  }

  .home-brand strong {
    font-size: .94rem;
  }

  .home-brand small {
    font-size: .56rem;
  }

  .home-slide__content {
    padding: 0 22px 40px;
  }

  .home-hero__arrow {
    display: none;
  }

  .home-hero__scroll {
    display: none;
  }

  .home-section,
  .faq-section {
    padding: 75px 0;
  }

  .section-heading.split,
  .welcome-grid,
  .leadership-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    gap: 15px;
  }

  .notice-strip__items {
    grid-template-columns: 1fr;
  }

  .notice-strip__items article {
    grid-template-columns: 90px 1fr;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid #d9cdbc;
  }

  .welcome-grid {
    gap: 50px;
  }

  .welcome-visual {
    padding: 0 0 25px 20px;
  }

  .welcome-visual__stamp {
    right: -5px;
    width: 100px;
    height: 100px;
  }

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

  .activity-grid a {
    min-height: 160px;
  }

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

  .stats-grid article {
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .facility-home-grid {
    grid-template-columns: 1fr;
  }

  .facility-home-grid a {
    min-height: 330px;
  }

  .facility-home-grid a:nth-child(2) {
    display: none;
  }

  .leadership-grid {
    gap: 35px;
  }

  .leadership-photo {
    max-width: 330px;
  }

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

  .story--feature {
    grid-column: auto;
  }

  .gallery-ribbon {
    grid-template-columns: 1fr 1fr;
    height: 520px;
  }

  .gallery-ribbon a:nth-child(even) {
    margin-top: 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }

  .footer-about,
  .footer-main>div:last-child {
    grid-column: 1/-1;
  }

  .footer-bottom {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* Screenshot-aligned homepage refinements */
.home-page {
  --template-green: #00643d;
  --template-lime: #65a817;
  --template-yellow: #ffc400;
}

.ornament {
  width: max-content;
  margin: 0 auto 10px;
  color: #a38c52;
  font-size: .7rem;
}

.ornament:before,
.ornament:after {
  content: "";
  display: inline-block;
  width: 68px;
  height: 1px;
  margin: 0 10px 3px;
  background: #a38c52;
}

.home-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent);
  box-shadow: none;
  transition: .35s;
}

.home-header.is-sticky {
  position: fixed;
  top: 0;
  min-height: 76px;
  background: var(--template-green);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .18);
  animation: headerDrop .35s ease;
}

.social-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .25s;
}

.home-header.is-sticky .social-bar {
  display: none;
}

.elements-social {
  display: flex;
  gap: 8px;
}

.elements-social a {
  width: 30px;
  height: 30px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  transition: .2s;
}

.elements-social a:hover {
  color: var(--template-green);
  background: #fff;
}

.overlay-admission {
  padding: 13px 24px;
  border-radius: 25px;
  color: #211c08;
  background: var(--template-yellow);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
}

.home-header__inner {
  position: relative;
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr 210px 1fr;
  align-items: start;
  gap: 30px;
}

.home-header.is-sticky .home-header__inner {
  min-height: 76px;
  align-items: center;
}

.home-brand {
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  gap: 1px;
  color: #fff;
  text-align: center;
}

.home-brand img {
  width: 92px;
  height: 92px;
}

.home-brand span {
  justify-items: center;
}

.home-brand strong {
  font-size: 1rem;
}

.home-brand em {
  color: #fff;
}

.home-header.is-sticky .home-brand {
  flex-direction: row;
  text-align: left;
}

.home-header.is-sticky .home-brand img {
  width: 58px;
  height: 58px;
}

.home-header.is-sticky .home-brand span {
  justify-items: start;
}

.home-header.is-sticky .home-brand em {
  display: none;
}

.home-nav {
  padding-top: 40px;
  justify-content: center;
}

.home-nav--left {
  grid-column: 1;
  grid-row: 1;
}

.home-nav--right {
  grid-column: 3;
  grid-row: 1;
}

.home-header.is-sticky .home-nav {
  padding-top: 0;
}

.home-nav .site-nav__link {
  padding: 12px 10px;
  color: #fff;
  font-size: .76rem;
  text-transform: none;
}

.home-nav .site-nav__link:after {
  bottom: 4px;
  background: #fff;
}

.home-hero {
  height: 100vh;
  min-height: 650px;
}

.home-slide>img {
  object-position: center;
}

.home-slide:first-child>img {
  object-position: center 30%;
}

.home-slide__shade {
  background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .48));
}

.home-slide__content {
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 70px;
  text-align: center;
}

.home-slide__content h1,
.home-slide__content h2 {
  max-width: 1050px;
  font-size: clamp(3rem, 5.4vw, 5rem);
}

.home-slide__content em {
  color: #fff;
}

.home-slide__content a {
  display: none;
}

.notice-strip {
  padding: 78px 0 55px;
  background: #f4ecd4;
}

.notice-strip__title {
  margin-bottom: 42px;
  text-align: center;
}

.notice-strip__title h2,
.section-heading h2 {
  color: var(--template-green);
}

.notice-strip__title h2 {
  font: 600 2.35rem "Playfair Display", serif;
}

.notice-viewport,
.card-viewport,
.stories-viewport {
  overflow: hidden;
}

.notice-strip__items {
  display: flex;
  gap: 28px;
  border: 0;
  transition: transform .45s ease;
}

.notice-strip__items article {
  min-width: calc(50% - 14px);
  min-height: 160px;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  padding: 16px;
  border: 0;
  border-radius: 90px;
  background: #f8f8f8;
}

.notice-strip__items time {
  width: 122px;
  height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-row: auto;
  border-radius: 50%;
  color: #1d1d1d;
  background: var(--template-yellow);
  text-align: center;
  text-transform: none;
}

.notice-strip__items time em {
  font-size: .74rem;
}

.notice-strip__items time strong {
  margin-top: 10px;
  color: #1d1d1d;
  font-size: .68rem;
}

.notice-strip__items h3 {
  font: 700 1rem "DM Sans", sans-serif;
}

.notice-strip__items p {
  max-width: 390px;
  font-size: .75rem;
  font-style: italic;
  font-weight: 600;
}

.strip-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.strip-controls button,
.strip-controls a {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: var(--template-lime);
  text-decoration: none;
}

.strip-controls a {
  min-width: 98px;
  padding: 0 18px;
  font-size: .78rem;
}

.activity-section {
  background: #fff;
}

.activity-grid {
  gap: 18px;
  border: 0;
}

.activity-grid a {
  min-height: 250px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 0;
  border-radius: 140px 140px 18px 18px;
  color: #fff;
  background: linear-gradient(rgba(0, 82, 49, .82), rgba(0, 82, 49, .94)), url("../images/home/image_4.png") center/cover;
  text-align: center;
}

.activity-grid a:hover {
  background: var(--template-green);
  transform: translateY(-8px);
}

.activity-grid i {
  width: 75px;
  height: 75px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: var(--template-yellow);
  font-style: normal;
  font-size: 2rem;
}

.activity-grid b {
  font-family: "Playfair Display", serif;
}

.stats-section {
  padding: 50px 0 100px;
  background: linear-gradient(rgba(0, 91, 46, .9), rgba(0, 91, 46, .94)), url("../images/home/Carousel_3.jpg") center/cover;
}

.stats-section>.home-container {
  display: block;
}

.stats-heading {
  margin-bottom: 48px;
  text-align: center;
}

.stats-section h2 {
  margin: 0;
  font-size: 2.25rem;
}

.stats-section h2 em {
  color: #fff;
}

.stats-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.stats-grid article {
  aspect-ratio: 1;
  min-height: 0;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  text-align: center;
}

.stats-grid i {
  color: var(--template-yellow);
  font-style: normal;
  font-size: 2rem;
}

.stats-grid strong {
  margin: 8px 0 2px;
  font: 700 2.3rem "DM Sans", sans-serif;
}

.stats-grid span {
  color: #fff;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
}

.facilities-showcase {
  background: #fff;
}

.facilities-showcase>.home-container>.section-heading {
  margin-bottom: 42px;
}

.facility-home-grid {
  display: flex;
  gap: 22px;
  transition: transform .45s ease;
}

.facility-home-grid a {
  min-width: calc(33.333% - 15px);
  min-height: 420px;
}

.facility-home-grid a:last-child {
  display: block;
}

.stories-section {
  padding-inline: 0;
  background: #fff;
}

.stories-section>.section-heading {
  max-width: 780px;
}

.stories-viewport {
  width: 100%;
}

.stories-grid {
  display: flex;
  gap: 42px;
  transition: transform .45s ease;
}

.story,
.story--feature {
  min-width: 290px;
  max-width: 290px;
  position: relative;
  grid-column: auto;
  background: #fff;
  box-shadow: 12px 10px 0 #f4f4f4;
}

.story>a,
.story--feature>a {
  height: 320px;
}

.story>div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8));
  text-align: center;
}

.story span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  color: #1c1c1c;
  background: var(--template-yellow);
}

.story time {
  font-size: .72rem;
}

.story h3,
.story--feature h3 {
  margin: 10px 0 0;
  color: #fff;
  font: 700 1rem "DM Sans", sans-serif;
}

.gallery-section {
  padding-bottom: 85px;
}

.gallery-ribbon {
  height: auto;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 25px 0 40px;
}

.gallery-ribbon a {
  width: 220px;
  height: 330px;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 18px;
  color: #24573f;
  background: #fff;
  box-shadow: 0 13px 32px rgba(0, 0, 0, .14);
  text-decoration: none;
  transition: .35s;
}

.gallery-ribbon a:nth-child(odd) {
  transform: rotate(-6deg);
}

.gallery-ribbon a:nth-child(even) {
  margin: 0;
  transform: rotate(5deg);
}

.gallery-ribbon a:hover {
  z-index: 3;
  transform: rotate(0) translateY(-15px) scale(1.06);
}

.gallery-ribbon img {
  height: 245px;
  object-fit: cover;
}

.gallery-ribbon span {
  display: grid;
  padding-top: 12px;
  font: 600 .8rem "Playfair Display", serif;
  text-align: center;
}

.gallery-ribbon small {
  margin-top: 6px;
  color: #b39756;
  font: 400 .65rem "DM Sans", sans-serif;
}

.faq-section {
  padding: 70px 0 95px;
  background: #f4ecd4;
}

.faq-section .section-heading {
  margin-bottom: 45px;
}

.faq-section .faq-list {
  width: min(900px, 100%);
  margin: auto;
}

.faq-list details {
  margin-bottom: 12px;
  border: 0;
  background: #fff;
}

.faq-list details:last-child {
  border: 0;
}

.faq-list summary {
  padding: 24px;
  color: #111;
  font-family: "DM Sans", sans-serif;
}

.faq-list details[open] summary {
  color: var(--template-green);
}

.faq-list details p {
  padding: 0 30px 28px;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.home-footer {
  background: var(--template-green);
}

.footer-main {
  grid-template-columns: 1.6fr .7fr .7fr;
}

.footer-main h3 {
  color: #fff;
  font-size: 1.3rem;
}

.footer-social {
  margin-top: 26px;
}

.footer-social a {
  border: 0;
  background: rgba(255, 255, 255, .12);
}

.footer-bottom {
  width: max-content;
  max-width: calc(100% - 30px);
  min-height: 58px;
  justify-content: center;
  gap: 35px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 32px 32px 32px 32px;
  background: rgba(255, 255, 255, .11);
}

.footer-bottom>a {
  color: var(--template-yellow);
  text-decoration: none;
  font-size: .75rem;
}

@media(max-width:1000px) {
  .home-header__inner {
    display: flex;
    min-height: 92px;
    align-items: center
  }

  .home-nav--left {
    display: none
  }

  .home-brand {
    margin-right: auto;
    flex-direction: row;
    text-align: left
  }

  .home-brand img {
    width: 62px;
    height: 62px
  }

  .home-brand span {
    justify-items: start
  }

  .home-page .nav-toggle {
    display: flex
  }

  .home-nav--right {
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    display: none;
    padding: 10px;
    background: var(--template-green)
  }

  .home-header[data-open="true"] .home-nav--right {
    display: grid
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr
  }

  .gallery-ribbon {
    overflow-x: auto;
    justify-content: flex-start;
    padding-inline: 25px
  }
}

@media(max-width:700px) {
  .social-bar {
    display: none
  }

  .home-header {
    background: rgba(0, 70, 43, .92)
  }

  .home-header__inner {
    min-height: 76px
  }

  .home-hero {
    min-height: 600px
  }

  .home-slide__content h1,
  .home-slide__content h2 {
    font-size: 2.65rem
  }

  .notice-strip__items article {
    min-width: 100%;
    grid-template-columns: 92px 1fr;
    border-radius: 70px
  }

  .notice-strip__items time {
    width: 88px;
    height: 88px
  }

  .activity-grid {
    grid-template-columns: 1fr 1fr
  }

  .activity-grid a {
    min-height: 200px
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px
  }

  .facility-home-grid a {
    min-width: 86%;
    display: block !important
  }

  .stories-grid {
    display: flex
  }

  .story {
    min-width: 82vw
  }

  .gallery-ribbon a {
    min-width: 190px;
    height: 290px
  }

  .gallery-ribbon img {
    height: 210px
  }

  .footer-main {
    grid-template-columns: 1fr 1fr
  }

  .footer-about {
    grid-column: 1/-1
  }

  .footer-main>div:last-child {
    grid-column: auto
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    padding: 15px 20px;
    text-align: center
  }
}

/* Events: fixed eight-card recent grid with a single All Events action. */
.page-events .recent-events-grid {
  align-items: stretch;
}
.page-events .recent-events-grid > .col {
  display: flex;
}
.page-events .recent-events-grid .event-card {
  width: 100%;
}
.page-events .recent-events-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}
.page-events .recent-events-footer .btn {
  border-radius: 999px;
}

/* All Events follows the Gallery page's card grid and image interaction. */
.page-all-events .all-events-heading {
  margin-top: var(--site-first-section-space);
}
.page-all-events .gallery__item[data-media-gallery] {
  width: 100%;
  cursor: pointer;
}
.page-all-events .gallery__item[data-media-gallery]:focus-visible {
  outline: 3px solid var(--cs-amber);
  outline-offset: 4px;
}

/* Final proportions for Recent Events and the All Events listing. */
.page-events:not(.page-all-events) .recent-events-grid .event-card__media,
.page-events:not(.page-all-events) .recent-events-grid .event-card__media .card-media-carousel,
.page-events:not(.page-all-events) .recent-events-grid .event-card__media .card-media-carousel > img {
  height: 220px;
}
.page-events:not(.page-all-events) .recent-events-grid .event-card__body {
  gap: .25rem;
  padding: .8rem .9rem .9rem;
}
.page-all-events .all-events-grid > .col,
.page-all-events .all-events-grid .gallery__item,
.page-all-events .all-events-grid .gallery__item figcaption {
  background-color: transparent !important;
  background-image: none !important;
}
.page-all-events .all-events-grid::before {
  background: var(--cs-mist) !important;
}
.page-all-events .all-events-grid.row {
  gap: 0;
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}
.page-all-events .all-events-grid.row > .col {
  width: 33.333333% !important;
  max-width: 33.333333% !important;
  flex: 0 0 auto !important;
}
@media(max-width:900px) {
  .page-all-events .all-events-grid.row > .col {
    width: 50% !important;
    max-width: 50% !important;
  }
}
@media(max-width:576px) {
  .page-all-events .all-events-grid.row > .col {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Admissions follows the About page's full-width section rhythm. */
.page-admissions .admission-content-card {
  width: 100%;
}
.page-admissions .admission-content-card p {
  text-align: justify;
  text-justify: inter-word;
}
.page-admissions .admission-list {
  margin: 0;
  padding-left: 1.25rem;
}
.page-admissions .admission-list li {
  position: static;
  padding-left: 0;
  margin-bottom: .7rem;
}
.page-admissions .admission-list li::before {
  content: none !important;
  display: none !important;
}
.page-admissions #admission-help {
  margin-bottom: 0 !important;
  padding-bottom: 32px;
}
.page-admissions #admission-help .btn {
  margin-left: auto;
  flex: 0 0 auto;
}
.page-admissions main > .section:first-child {
  padding-bottom: 0;
}
@media(max-width:767px) {
  .page-admissions #admission-help .btn {
    align-self: flex-end;
  }
}

/* Revert Admission/social topbar changes to the original shared arrangement. */
.home-page .home-header .social-bar,
.inner-page .home-header .social-bar,
.home-header .social-bar {
  height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
}
.home-header.is-sticky .social-bar,
.inner-page .home-header.is-sticky .social-bar { display: none !important; }
@media(max-width:700px) {
  .home-page .home-header .social-bar,
  .inner-page .home-header .social-bar,
  .home-header .social-bar,
  .home-header.is-sticky .social-bar { display: none !important; }
}

/* Final index-only two-row topbar. */
@media(min-width:701px){
.home-page .home-header:not(.is-sticky){position:absolute;inset:0 0 auto;width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.18);border-radius:0;color:#fff;background:var(--cs-ink)!important;box-shadow:none;backdrop-filter:none}
.home-page .home-header:not(.is-sticky) .social-bar{position:static!important;width:min(1180px,calc(100% - 40px));height:58px;margin:0 auto;display:flex!important;align-items:center;justify-content:space-between!important;transform:none!important}
.home-page .home-header:not(.is-sticky) .social-icon{position:static!important;inset:auto!important;margin:0;display:flex;flex-direction:row;transform:none!important}
.home-page .home-header:not(.is-sticky) .social-bar>.overlay-admission{position:static!important;inset:auto!important;margin:0;padding:10px 20px;color:var(--cs-ink);background:var(--cs-amber);transform:none!important}
.home-page .home-header:not(.is-sticky) .home-header__inner{width:min(1180px,calc(100% - 40px));min-height:86px;margin:0 auto;display:flex!important;align-items:center!important;gap:20px}
.home-page .home-header:not(.is-sticky) .home-brand{order:1;flex:0 0 auto;margin:0 auto 0 0!important;flex-direction:row;gap:12px;color:#fff;text-align:left}
.home-page .home-header:not(.is-sticky) .home-brand img{width:58px;height:58px}.home-page .home-header:not(.is-sticky) .home-brand span{display:grid;justify-items:start}
.home-page .home-header:not(.is-sticky) .home-nav--left,.home-page .home-header:not(.is-sticky) .home-nav--right{grid-column:auto;grid-row:auto;flex:0 0 auto;gap:4px}.home-page .home-header:not(.is-sticky) .home-nav--left{order:2}.home-page .home-header:not(.is-sticky) .home-nav--right{order:3}
.home-page .home-header:not(.is-sticky) .site-nav__link{padding:11px 8px;color:#fff;font-size:.78rem}
}

/* Shared image interaction used throughout the website. */
main img {
  transition: transform .7s ease;
}
main a:has(> img),
main figure,
main .welcome-frame,
main .photo-placeholder,
main .card:has(> img),
main .facility:has(> img),
main .story,
main .home-slide {
  overflow: hidden;
}
main a:hover img,
main figure:hover img,
main .card:hover > img,
main .facility:hover > img,
main .story:hover img,
main .welcome-frame:hover img,
main .leadership-photo:hover img,
main .home-slide:hover > img,
main .stats-grid article:hover img {
  transform: scale(1.06);
}

/* By The Numbers now uses four photographic markers. */
.home-page .stats-grid article i {
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.32);
}
.home-page .stats-grid article i img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

/* Extend the Principal portrait to follow the message column. */
.home-page .leadership-photo {
  align-self: stretch;
}
.home-page .leadership-photo .photo-placeholder {
  height: 100%;
  min-height: 720px;
  aspect-ratio: auto;
}

/* Two independent, compact About Us disclosure groups. */
.page-about .read-more-content--about-part {
  max-height: 125px;
}
.page-about .read-more-content--about-part.is-expanded {
  max-height: 2200px;
}

@media(max-width:700px) {
  .home-page .leadership-photo .photo-placeholder { min-height: 520px; }
  .page-about .read-more-content--about-part { max-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  main img { transition: none; }
}

/* Keep the About Vision and Mission cards independently sized. */
.page-about .current-vision-mission.row {
  align-items: flex-start !important;
}
.page-about .current-vision-mission.row > .col {
  align-self: flex-start !important;
}
.page-about .current-vision-mission.row > .col > .card.h-100 {
  height: auto !important;
  min-height: 0 !important;
}

/* Independent expandable cards on About and Facilities pages. */
.read-more-content {
  position: relative;
  max-height: 210px;
  overflow: hidden;
  transition: max-height .45s ease;
}
.read-more-content:not(.is-expanded)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  background: linear-gradient(transparent,#fff);
  pointer-events: none;
}
.read-more-content.is-expanded { max-height: 3000px; }
.page-about .about-content-card,
.page-about .affiliation-card,
.page-about .current-vision-mission .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.page-about .facility-read-more { margin-top: 22px; }

/* Expanding Library must not stretch its two neighbouring cards. */
.page-facilities .row:has(.facility.card) { align-items: flex-start; }
.page-facilities .row { align-items: flex-start; }
.page-facilities .facility.card.h-100 {
  height: auto !important;
}

@media(max-width:700px) {
  .read-more-content { max-height: 190px; }
  .read-more-content.is-expanded { max-height: 4000px; }
}

/* Index desktop topbar matching the supplied two-row reference. */
@media(min-width:701px) {
  .home-page .home-header:not(.is-sticky) {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    border-radius: 0;
    color: #fff;
    background: var(--cs-ink) !important;
    box-shadow: none;
    backdrop-filter: none;
  }
  .home-page .home-header:not(.is-sticky) .social-bar {
    position: static !important;
    width: min(1180px,calc(100% - 40px));
    height: 58px;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    transform: none !important;
  }
  .home-page .home-header:not(.is-sticky) .social-icon {
    position: static !important;
    margin: 0;
    display: flex;
    flex-direction: row;
    transform: none !important;
  }
  .home-page .home-header:not(.is-sticky) .social-bar > .overlay-admission {
    position: static !important;
    margin: 0;
    padding: 10px 20px;
    color: var(--cs-ink);
    background: var(--cs-amber);
    transform: none !important;
  }
  .home-page .home-header:not(.is-sticky) .home-header__inner {
    width: min(1180px,calc(100% - 40px));
    min-height: 86px;
    margin: 0 auto;
    display: flex !important;
    align-items: center !important;
    gap: 20px;
  }
  .home-page .home-header:not(.is-sticky) .home-brand {
    order: 1;
    flex: 0 0 auto;
    margin: 0 auto 0 0 !important;
    flex-direction: row;
    gap: 12px;
    color: #fff;
    text-align: left;
  }
  .home-page .home-header:not(.is-sticky) .home-brand img {
    width: 58px;
    height: 58px;
  }
  .home-page .home-header:not(.is-sticky) .home-brand span { display: grid; justify-items: start; }
  .home-page .home-header:not(.is-sticky) .home-nav--left,
  .home-page .home-header:not(.is-sticky) .home-nav--right {
    grid-column: auto;
    grid-row: auto;
    flex: 0 0 auto;
    gap: 4px;
  }
  .home-page .home-header:not(.is-sticky) .home-nav--left { order: 2; }
  .home-page .home-header:not(.is-sticky) .home-nav--right { order: 3; }
  .home-page .home-header:not(.is-sticky) .site-nav__link {
    padding: 11px 8px;
    color: #fff;
    font-size: .78rem;
  }
}

/* Index-only reset: match the already-correct inner-page topbar row. */
.home-page .home-header .social-bar {
  position: relative !important;
  inset: auto !important;
  width: min(1180px,calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  transform: none !important;
}
.home-page .home-header .social-icon {
  position: static !important;
  inset: auto !important;
  margin: 0;
  transform: none !important;
}
.home-page .home-header .social-bar > .overlay-admission {
  position: static !important;
  inset: auto !important;
  margin: 0 0 0 auto;
  transform: none !important;
}
@media(max-width:700px) {
  .home-page .home-header .social-bar { display: none !important; }
}


/* ================================================================
   STRUCTURE RESTORATION + INNER-PAGE SECTION BANDS
   ================================================================ */

/* Restore only the earlier Welcome image treatment. */
.home-page .welcome-grid.row { align-items: center !important; }
.home-page .welcome-visual { padding: 0; }
.home-page .welcome-visual::before { display: none; }
.home-page .welcome-frame {
  height: auto;
  min-height: 0;
  padding: 12px;
  overflow: visible;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
}
.home-page .welcome-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  border-radius: 0;
  object-fit: cover;
}

/* Restore the original six-item statistics structure; retain current colours. */
.home-page .stats-section > .home-container { display: block; }
.home-page .stats-heading {
  position: static;
  margin-bottom: 48px;
  text-align: center;
}
.home-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 24px;
}
.home-page .stats-grid article {
  min-height: 0;
  aspect-ratio: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  text-align: center;
}
.home-page .stats-grid article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.32); }
.home-page .stats-grid article i { width: 42px; height: 42px; margin: 0 0 8px; background: transparent; }
.home-page .stats-grid article strong,
.home-page .stats-grid article span { text-align: center; }

/* No white seams between the Home sections or before the footer. */
.home-page main > section,
.home-page .home-section,
.home-page .notice-strip,
.home-page .stats-section,
.home-page .leadership-section,
.home-page .faq-section,
.home-page .home-footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.home-page main { display: block; background: var(--cs-mist); }
.home-page .home-footer { margin: 0 !important; }

/* All brand links remain undecorated in header and footer. */
.home-brand,
.home-brand:hover,
.home-brand:focus,
.home-brand:active {
  text-decoration: none !important;
}

/* Footer metadata is centered on two separate lines. */
.home-footer .footer-bottom,
.inner-page .home-footer .footer-bottom {
  min-height: auto;
  padding: 24px 20px 8px;
  display: flex;
  justify-content: center;
  text-align: center;
}
.home-footer .footer-bottom p,
.inner-page .home-footer .footer-bottom p {
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: normal;
}
.home-footer .footer-credit-line,
.inner-page .home-footer .footer-credit-line {
  min-height: auto;
  margin-top: 0;
  padding: 4px 20px 24px;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

/* Inner pages: alternate full-width background bands, never card backgrounds. */
.inner-page main > .section:first-child > .container > *:not(.page-hero) {
  position: relative;
  z-index: 0;
  isolation: isolate;
  margin-top: 0 !important;
  padding-top: 50px;
  
}
.inner-page main > .section:first-child > .container > *:not(.page-hero)::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc(50% - 50vw);
  background: var(--cs-mist);
  pointer-events: none;
}
.inner-page main > .section:first-child > .container > *:not(.page-hero):nth-child(odd)::before {
  background: var(--cs-ink);
}

/* Text outside cards follows its band's contrast; cards retain their own palette. */
.inner-page main > .section:first-child > .container > *:not(.page-hero):nth-child(odd) > .section__head h2,
.inner-page main > .section:first-child > .container > *:not(.page-hero):nth-child(odd).section__head h2,
.inner-page main > .section:first-child > .container > *:not(.page-hero):nth-child(odd).section__head p {
  color: #fff !important;
}
/* .inner-page main .card { background: #fff; } */

/* Management section heading and its card row share the same band. */
.page-management main > .section:first-child > .container > :nth-child(2)::before,
.page-management main > .section:first-child > .container > :nth-child(3)::before,
.page-management main > .section:first-child > .container > :nth-child(6)::before,
.page-management main > .section:first-child > .container > :nth-child(7)::before { background: var(--cs-mist); }
.page-management main > .section:first-child > .container > :nth-child(4)::before,
.page-management main > .section:first-child > .container > :nth-child(5)::before { background: var(--cs-ink); }
.page-management main > .section:first-child > .container > :nth-child(4).section__head h2,
.page-management main > .section:first-child > .container > :nth-child(4).section__head p { color: #fff !important; }

/* Events section heading/subheading and related cards share their band. */
.page-events main > .section:first-child > .container > :nth-child(2)::before,
.page-events main > .section:first-child > .container > :nth-child(3)::before,
.page-events main > .section:first-child > .container > :nth-child(4)::before { background: var(--cs-mist); }
.page-events main > .section:first-child > .container > :nth-child(5)::before,
.page-events main > .section:first-child > .container > :nth-child(6)::before { background: var(--cs-ink); }
.page-events main > .section:first-child > .container > :nth-child(5).section__head h2,
.page-events main > .section:first-child > .container > :nth-child(5).section__head p { color: #fff !important; }

/* Required left-aligned editorial headings. */
.page-about .section__head,
.page-management .section__head,
.page-events .section__head {
  width: min(1180px,calc(100% - 40px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: left !important;
}
.page-about .section__head h2,
.page-about .section__head p,
.page-management .section__head h2,
.page-management .section__head p,
.page-events .section__head h2,
.page-events .section__head p {
  margin-right: 0;
  margin-left: 0;
  text-align: left !important;
}

@media(max-width:1000px) {
  .home-page .stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .home-page .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .inner-page main > .section:first-child > .container > *:not(.page-hero) { padding-top: 54px; padding-bottom: 54px; }
}

/* Float-in motion and final template alignment */
.float-in-target {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(58px);
}

.float-in-target.is-floated {
  animation: powerpointFloatIn .9s cubic-bezier(.18, .78, .22, 1) both;
}

@keyframes powerpointFloatIn {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(58px);
  }

  65% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-5px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.notice-strip .notice-viewport.float-in-target.is-floated {
  animation-delay: .16s;
}

.section-heading h2,
.notice-strip__title h2,
.stats-heading h2,
.faq-section h2 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .28);
}

.welcome-section,
.facilities-showcase,
.gallery-section {
  background: #fff;
}

.activity-section,
.faq-section,
.notice-strip {
  background: #f5edd6;
}

.stories-section {
  background: #fff;
}

.stories-grid {
  width: max-content;
  margin-inline: auto;
}

.stories-viewport {
  display: flex;
  justify-content: center;
}

.home-footer {
  padding-bottom: 30px;
}

.home-footer .home-brand--footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.home-footer .home-brand--footer img {
  width: 92px;
  height: 92px;
}

.home-footer .home-brand--footer span {
  justify-items: start;
}

.home-footer .home-brand--footer strong {
  font-size: 1.2rem;
  font-weight: 700;
}

.home-footer .home-brand--footer small {
  font-size: .72rem;
  font-weight: 700;
}

.footer-about p {
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.65;
}

.footer-main h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

.footer-main>div:not(:first-child) a {
  font-size: .94rem;
  font-weight: 600;
}

.footer-bottom {
  margin-bottom: 24px;
}

.footer-bottom p,
.footer-bottom>a {
  font-size: .82rem;
  font-weight: 600;
}

@media(prefers-reduced-motion:reduce) {
  .float-in-target {
    opacity: 1;
    filter: none;
    transform: none
  }

  .float-in-target.is-floated {
    animation: none
  }
}

@media(max-width:700px) {
  .stories-viewport {
    justify-content: flex-start
  }

  .stories-grid {
    margin-inline: 0
  }

  .home-footer .home-brand--footer {
    align-items: flex-start
  }

  .footer-main h3 {
    font-size: 1.2rem
  }

  .footer-main>div:not(:first-child) a {
    font-size: .84rem
  }

  .footer-bottom {
    margin-bottom: 14px
  }
}

/* Bootstrap-first layout refinements */
.home-page main section:not(.home-hero) h2,
.home-page main section:not(.home-hero) .section-heading h2 {
  font-weight: 600;
  font-size: 34px;
  line-height: 40px;
  margin-bottom: 30px;
}

.home-header,
.home-header:not(.is-sticky) {
  background: transparent;
  box-shadow: none;
}

.home-header .elements-social a,
.home-header .overlay-admission {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

.home-header .elements-social a:hover,
.home-header .overlay-admission:hover {
  color: var(--template-yellow);
  background: transparent;
}

.home-header.is-sticky {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(0, 100, 61, .12);
}

.home-header.is-sticky .site-nav__link,
.home-header.is-sticky .home-brand {
  color: #242424;
}

.home-header.is-sticky .home-brand img {
  filter: none;
}

.home-header.is-sticky .home-brand small {
  color: #242424;
}

.welcome-grid.row {
  width: min(1180px, 100% - 40px);
  display: flex;
}

.welcome-copy h2 {
  color: #333;
  font-family: "Playfair Display", serif;
}

.welcome-copy h2 span {
  padding: 0 3px;
  /* background: #d1d1d1; */
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--template-green)
}

.welcome-copy p {
  max-width: 600px;
  color: #383838;
  font-size: 1rem;
  line-height: 1.5;
}

.welcome-visual {
  padding: 0;
}

.welcome-visual:before {
  display: none;
}

.welcome-frame {
  position: relative;
  padding: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .16);
}

.welcome-frame img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.welcome-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .55);
  text-decoration: none;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(3px);
}

.activity-grid.row {
  display: flex;
  border: 0;
  margin-inline: calc(-.5 * var(--bs-gutter-x));
}

.activity-grid.row>a.col {
  aspect-ratio: 1;
  min-height: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
}

.leadership-section {
  background: var(--template-green);
}

.leadership-copy h2,
.leadership-copy h2 em {
  color: #fff;
}

.facilities-showcase {
  background: #f1f1f1;
  border-top: 4px solid var(--template-green);
}

.facility-home-grid {
  align-items: center;
}

.facility-home-grid a {
  min-width: 220px;
  width: 220px;
  min-height: 0;
  height: 220px;
  flex: 0 0 220px;
  border: 9px solid #fff;
  border-radius: 50%;
}

.facility-home-grid a:after {
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
}

.facility-home-grid img {
  border-radius: 50%;
}

.facility-home-grid span {
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.facility-home-grid b {
  font: 700 1rem "DM Sans", sans-serif;
}

.facility-home-grid small {
  display: none;
}

.card-viewport {
  padding: 10px 0;
}

.notice-strip__items article {
  opacity: 0;
  transform: translateY(55px);
}

.notice-strip.is-visible .notice-strip__items article {
  animation: powerpointFloatIn .8s cubic-bezier(.18, .78, .22, 1) forwards;
}

.notice-strip.is-visible .notice-strip__items article:nth-child(2) {
  animation-delay: .14s;
}

.notice-strip.is-visible .notice-strip__items article:nth-child(3) {
  animation-delay: .28s;
}

.notice-strip.is-visible .notice-strip__items article:nth-child(4) {
  animation-delay: .42s;
}

.reveal {
  transition: none;
}

.reveal.is-visible {
  animation: powerpointFloatIn .85s cubic-bezier(.18, .78, .22, 1) both;
}

@media(max-width:1000px) {
  .home-header.is-sticky .nav-toggle {
    background: var(--template-green)
  }

  .facility-home-grid a {
    min-width: 210px;
    flex-basis: 210px;
    height: 210px
  }
}

@media(max-width:700px) {

  .home-header,
  .home-header:not(.is-sticky) {
    background: transparent
  }

  .home-header.is-sticky {
    background: rgba(255, 255, 255, .96)
  }

  .welcome-grid.row {
    width: calc(100% - 28px)
  }

  .activity-grid.row>a.col {
    aspect-ratio: 1
  }

  .facility-home-grid a {
    min-width: 190px;
    flex-basis: 190px;
    height: 190px
  }
}

/* Final header, welcome, activities and credit refinements */
.home-header.is-sticky {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-header.is-sticky .home-header__inner {
  background: transparent;
}

.home-header .site-nav__link {
  font-size: 1rem;
  font-weight: 600;
}

.home-header .elements-social a {
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
}

.home-header .overlay-admission {
  padding: 13px 24px;
  border: 0;
  border-radius: 28px;
  color: #211c08;
  background: var(--template-yellow);
  font-size: 1rem;
  font-weight: 600;
}

.home-header .overlay-admission:hover {
  color: #211c08;
  background: #ffd33d;
}

.home-header.is-sticky .overlay-admission {
  color: #222;
  background: var(--template-yellow);
}

.home-header.is-sticky .elements-social a {
  color: #242424;
}

.welcome-grid.row {
  flex-wrap: nowrap;
}

.welcome-grid.row>.welcome-copy,
.welcome-grid.row>.welcome-visual {
  flex: 0 0 50%;
  width: 50%;
}

.welcome-frame {
  width: 100%;
}

.activity-section {
  background: #fff;
}

.activity-grid.row {
  flex-wrap: nowrap;
}

.activity-grid.row>a.col {
  width: calc(100% / 6);
  flex: 0 0 calc(100% / 6);
  aspect-ratio: 1;
  color: #262626;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.activity-grid.row>a.col:hover {
  color: var(--template-green);
  background: #fff;
  transform: translateY(-8px);
}

.activity-grid.row>a.col i {
  color: var(--template-green);
  border-color: rgba(0, 100, 61, .25);
  background: #f5f9f6;
}

.footer-credit-line {
  padding: 4px 0 22px;
  color: rgba(255, 255, 255, .82);
  text-align: center;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.6;
}

.footer-credit-line a {
  color: #fff;
  text-decoration: none;
}

.footer-credit-line a:hover {
  color: var(--template-yellow);
  text-decoration: underline;
}

@media(max-width:1000px) {
  .welcome-grid.row {
    flex-wrap: wrap
  }

  .welcome-grid.row>.welcome-copy,
  .welcome-grid.row>.welcome-visual {
    flex: 0 0 100%;
    width: 100%
  }

  .activity-grid.row {
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory
  }

  .activity-grid.row>a.col {
    min-width: 190px;
    flex-basis: 190px;
    scroll-snap-align: start
  }
}

@media(max-width:700px) {
  .home-header.is-sticky {
    background: transparent
  }

  .home-header .site-nav__link {
    font-size: .9rem
  }

  .home-header .overlay-admission {
    font-size: .9rem
  }

  .footer-credit-line {
    padding-inline: 14px;
    font-size: .7rem
  }
}

/* Desktop sticky header and complete mobile navigation */
.mobile-home-nav {
  display: none;
}

.home-header.is-sticky {
  background: #fff;
  border-top: 3px solid #173f35;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

.home-header.is-sticky .home-header__inner {
  background: #fff;
}

.home-header.is-sticky .home-nav .site-nav__link {
  color: #183c31;
}

.home-header.is-sticky .home-nav .site-nav__link:after {
  background: var(--template-green);
}

@media(max-width:1000px) {

  .home-nav--left,
  .home-nav--right,
  .home-header[data-open="true"] .home-nav--left,
  .home-header[data-open="true"] .home-nav--right {
    display: none !important;
  }

  .mobile-home-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    z-index: 20;
    padding: 10px;
    border: 1px solid #e3e3e3;
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
  }

  .home-header[data-open="true"] {
    background: #fff;
  }

  .home-header[data-open="true"] .mobile-home-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .mobile-home-nav .site-nav__link {
    padding: 13px 15px;
    border-radius: 7px;
    color: #243b34 !important;
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-home-nav .site-nav__link:hover,
  .mobile-home-nav .site-nav__link[aria-current="page"] {
    color: var(--template-green) !important;
    background: #edf5f1;
  }

  .home-header[data-open="true"] .home-brand {
    color: #243b34;
  }

  .home-header[data-open="true"] .home-brand img {
    filter: none;
  }

  .home-header[data-open="true"] .home-brand small,
  .home-header[data-open="true"] .home-brand em {
    color: #243b34;
  }
}

@media(max-width:520px) {
  .home-header[data-open="true"] .mobile-home-nav {
    grid-template-columns: 1fr;
  }
}

/* Final icon, statistics and contact-form refinements */
.social-icon a svg {
  width: 18px;
  height: 18px;
  display: block;
}

.stats-grid {
  width: 100%;
  margin-inline: auto;
  justify-content: center;
  align-items: center;
}

.stats-grid article {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content and layout revision: July 2026 */
.footer-bottom {
  border-top: 0 !important;
}

/* Three original homepage compositions, intentionally distinct from the reference layout. */
.notice-strip>.home-container {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "title notices" "title controls";
  column-gap: 64px;
  align-items: center;
}

.notice-strip .ornament {
  display: none;
}

.notice-strip__title {
  grid-area: title;
  text-align: left;
}

.notice-strip__title h2 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .92;
}

.notice-strip__title p {
  max-width: 220px;
}

.notice-viewport {
  grid-area: notices;
  width: 100%;
}

.notice-strip__items {
  gap: 18px;
}

.notice-strip__items article {
  min-width: calc(50% - 9px);
  min-height: 180px;
  padding: 0;
  display: grid;
  grid-template-columns: 116px 1fr;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.notice-strip__items time {
  width: auto;
  min-width: 0;
  height: 100%;
  border-radius: 0;
  background: var(--cs-amber);
}

.notice-strip__items article>div {
  align-self: center;
  padding: 28px;
}

.notice-strip .strip-controls {
  grid-area: controls;
  justify-content: flex-start;
  margin-top: 24px;
}

.activity-section {
  padding: 110px 0;
  background: #fff;
}

.activity-section .section-heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 54px;
  text-align: left;
}

.activity-section .section-heading p {
  margin-left: 0;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px !important;
  background: var(--cs-line);
}

.activity-grid>a {
  width: auto;
  min-height: 210px;
  padding: 36px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
  border: 0;
  border-radius: 0 !important;
  color: var(--cs-ink);
  background: #fff;
  box-shadow: none;
}

.activity-grid>a:nth-child(2),
.activity-grid>a:nth-child(5) {
  background: var(--cs-mist);
}

.activity-grid>a i {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--cs-teal);
}

.activity-grid>a b {
  text-align: left;
  font-size: 1.1rem;
}

.stats-section {
  padding: 110px 0;
  background: var(--cs-ink);
}

.stats-section>.home-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}

.stats-heading {
  position: sticky;
  top: 140px;
  text-align: left;
}

.stats-heading .ornament {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stats-grid article {
  min-height: 148px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stats-grid article:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.stats-grid article i {
  grid-row: 1/3;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  color: var(--cs-amber);
  background: rgba(255, 255, 255, .08);
}

.stats-grid article strong {
  align-self: end;
  font-size: 2.15rem;
  text-align: left;
}

.stats-grid article span {
  align-self: start;
  text-align: left;
}

/* Supplied About content supersedes the earlier short sample cards. */
.page-about .current-vision-mission+.row,
.page-about .current-vision-mission~.card.mt-24:last-child {
  display: none !important;
}

.about-content-card p {
  color: var(--cs-muted);
  line-height: 1.85;
}

.empty-content-placeholder {
  min-height: 130px;
  border: 1px dashed var(--cs-line);
  background: var(--cs-mist);
}

/* Management names, portraits and messages intentionally await approved content. */
.page-management .page-hero+.section__head+.people-grid .person-card>* {
  visibility: hidden;
}

.page-management .page-hero+.section__head+.people-grid .person-card {
  min-height: 260px;
  background: var(--cs-mist);
}

/* Contact: images first, then one horizontal information panel. */
.page-contact .contact-overview {
  display: block;
  margin-top: 86px !important;
}

.page-contact .contact-visual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 360px;
  gap: 22px;
  margin-bottom: 28px;
}

.page-contact .contact-visual-panel .gallery__item,
.page-contact .contact-visual-panel .gallery__item:first-child,
.page-contact .contact-visual-panel .gallery__item:last-child {
  grid-row: 1;
  height: 360px;
}

.page-contact .contact-info-panel {
  width: 100%;
  padding: 44px 48px;
}

.page-contact .contact-info-panel p,
.page-contact .contact-info-panel .contact-address {
  color: rgba(255, 255, 255, .72) !important;
}

.page-contact .contact-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 34px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.page-contact .contact-hours-grid h3 {
  margin-bottom: 12px;
  color: var(--cs-amber);
  font-size: 1rem;
}

.page-contact .contact-hours-grid p {
  line-height: 1.8;
}

.page-contact .contact-map-action {
  margin-top: 4px;
}

@media(max-width:900px) {
  .notice-strip>.home-container {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "notices" "controls";
    row-gap: 28px;
  }

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

  .notice-strip__title p {
    margin-inline: auto;
  }

  .notice-strip .strip-controls {
    justify-content: center;
  }

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

  .stats-section>.home-container {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .stats-heading {
    position: static;
    text-align: center;
  }

  .page-contact .contact-hours-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:700px) {
  .notice-strip__items article {
    min-width: 100%;
  }

  .activity-grid {
    display: flex;
    gap: 14px !important;
    background: transparent;
  }

  .activity-grid>a {
    min-width: 82%;
  }

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

  .stats-grid article:nth-child(odd) {
    border-right: 0;
  }

  .page-contact .contact-visual-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px;
    min-height: 0;
    gap: 10px;
  }

  .page-contact .contact-visual-panel .gallery__item,
  .page-contact .contact-visual-panel .gallery__item:first-child,
  .page-contact .contact-visual-panel .gallery__item:last-child {
    grid-column: auto;
    grid-row: 1;
    height: 230px;
  }

  .page-contact .contact-info-panel {
    padding: 32px 24px;
  }
}

.stats-grid article i svg {
  width: 34px;
  height: 34px;
  display: block;
}

.page-contact .enquiry-card {
  color: #fff;
  border-color: rgba(255, 255, 255, .18) !important;
  background: var(--template-green);
}

.page-contact .enquiry-card:hover {
  border-color: rgba(255, 255, 255, .3) !important;
  box-shadow: 0 20px 42px rgba(0, 70, 43, .22);
}

.page-contact .enquiry-card h2,
.page-contact .enquiry-card .field__label {
  color: #fff;
}

.page-contact .enquiry-card .form-control {
  color: #242424;
  border-color: rgba(255, 255, 255, .5);
  background: #fff;
}

.page-contact .enquiry-card .btn--primary {
  color: #24200a;
  background: var(--template-yellow);
}

/* Shared inner-page design system */
.inner-page {
  --template-green: #00643d;
  --template-lime: #65a817;
  --template-yellow: #ffc400;
  color: #292929;
  background: #fff;
  font-family: "DM Sans", sans-serif;
}

.inner-page .home-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
}

.inner-page .home-header.is-sticky {
  position: fixed;
  background: #fff;
}

.inner-page .nav-toggle {
  display: none;
  width: 44px;
  height: 42px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 4px;
  background: var(--template-green);
}

.inner-page .nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.inner-page main {
  overflow: hidden;
  background: #fff;
}

.inner-page main>.section:first-child {
  padding: 0 0 100px;
}

.inner-page .page-hero {
  position: relative;
  width: 100vw;
  min-height: 500px;
  margin: 0 0 85px calc(50% - 50vw);
  padding: 235px max(30px, calc((100vw - 1180px) / 2)) 70px;
  display: flex;
  align-items: flex-end !important;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 50, 31, .88), rgba(0, 50, 31, .28)), url("../images/home/Carousel_3.jpg") center/cover;
}

.page-about .page-hero {
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .88), rgba(0, 50, 31, .2)), url("../images/KE CARMEL (1)/Students-compressed/IMG_20260813_093744.jpeg");
  /* background-image: linear-gradient(90deg, rgba(0, 50, 31, .88), rgba(0, 50, 31, .2)), url("../images/KE CARMEL (1)/Investiture ceremony/WhatsApp Image 2026-07-26 at 4.29.28 PM.jpeg"); */
}

.page-management .page-hero { 
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .88), rgba(0, 50, 31, .25)), url("../images/KE CARMEL (1)/school photo/IMG_20260813_094313.jpeg");
}

.page-academics .page-hero {
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .9), rgba(0, 50, 31, .25)), url("../images/KE CARMEL (1)/Smart Class-compressed/IMG-20260813-WA0019.jpeg");
}

.page-admissions .page-hero { 
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .9), rgba(0, 50, 31, .22)), url("../images/KE CARMEL (1)/Graduation for UKG-compressed/IMG-20260812-WA0057.jpeg");
}

.page-facilities .page-hero {
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .88), rgba(0, 50, 31, .22)), url("../images/KE CARMEL (1)/Investiture ceremony/WhatsApp Image 2026-07-26 at 4.29.28 PM.jpeg");
}

.page-gallery .page-hero {
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .86), rgba(0, 50, 31, .15)), url("../images/home/Carousel_2.webp");
}

.page-events .page-hero,
.page-announcements .page-hero {
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .86), rgba(0, 50, 31, .18)), url("../images/KE CARMEL (1)/Awards/Telegraph Awards/techersimg.jpeg");
}

.page-contact .page-hero {
  background-image: linear-gradient(90deg, rgba(0, 50, 31, .9), rgba(0, 50, 31, .2)), url("../images/KE CARMEL (1)/school photo/infrastructure.jpeg");
}

.inner-page .page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.inner-page .page-hero .eyebrow {
  margin-bottom: 15px;
  color: var(--template-yellow);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.inner-page .page-hero h1 {
  margin-bottom: 20px;
  color: #fff;
  font: 600 clamp(3rem, 6vw, 5.4rem)/1 "Playfair Display", serif;
}

.inner-page .page-hero .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.05rem;
  line-height: 1.75;
}

.inner-page .page-hero__side {
  display: none;
}

.inner-page .section {
  padding: 85px 0;
}

.inner-page .section:nth-of-type(even) {
  background: #f5edd6;
}

.inner-page .section__head {
  max-width: 760px;
  margin: 0 auto 45px;
  text-align: center;
}

.inner-page .section__head:before {
  content: "◆";
  display: block;
  margin-bottom: 10px;
  color: #a38c52;
  font-size: .7rem;
}

.inner-page h2,
.inner-page .section__head h2,
.inner-page h2.h3 {
  margin-bottom: 24px;
  color: var(--template-green);
  font: 600 34px/40px "Playfair Display", serif;
}

.inner-page h3,
.inner-page .h3 {
  color: var(--template-green);
  font-weight: 700;
}

.inner-page p,
.inner-page li {
  line-height: 1.75;
}

.inner-page .section__sub,
.inner-page .muted {
  color: #6f6a64;
}

.inner-page .card,
.inner-page .person-card,
.inner-page .event-card,
.inner-page .achievement-card,
.inner-page .gallery__item {
  border: 1px solid rgba(0, 100, 61, .1) !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(24, 61, 48, .08);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.inner-page .card:hover,
.inner-page .person-card:hover,
.inner-page .event-card:hover,
.inner-page .achievement-card:hover,
.inner-page .gallery__item:hover {
  border-color: rgba(0, 100, 61, .28) !important;
  box-shadow: 0 20px 42px rgba(24, 61, 48, .14);
  transform: translateY(-8px);
}

.inner-page .card {
  padding: 28px;
}

.inner-page .card--accent,
.inner-page .callout {
  border-color: rgba(0, 100, 61, .22) !important;
  background: linear-gradient(135deg, #f3f8f5, #fff);
}

.inner-page .btn--primary,
.inner-page .site-nav__cta {
  color: #fff;
  background: var(--template-green);
}

.inner-page .btn--ghost {
  color: var(--template-green);
  border-color: var(--template-green);
  background: #fff;
}

.inner-page .check-list li:before,
.inner-page .announcement-card__badge,
.inner-page .event-card__tag,
.inner-page .person-card__meta {
  background: var(--template-green);
  color: #fff;
}

.inner-page .gallery,
.inner-page .about-gallery {
  gap: 24px;
}

/* Gallery page uses Bootstrap gutters; an additional flex gap forced one card per row. */
.page-gallery .gallery.row {
  gap: 0;
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.page-gallery .gallery.row>.col {
  flex: 0 0 auto;
  width: 50%;
}

/* Keep statistic SVGs consistent with the other circular icons. */
.stats-grid i svg {
  display: block;
  width: 42px;
  height: 42px;
}

/* This must follow the generic inner-page card rules. */
.inner-page.page-contact .enquiry-card,
.inner-page.page-contact .enquiry-card:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .22) !important;
  background: #00643d !important;
}

.inner-page.page-contact .enquiry-card h2,
.inner-page.page-contact .enquiry-card label,
.inner-page.page-contact .enquiry-card .field__label,
.inner-page.page-contact .enquiry-card .form__actions {
  color: #fff !important;
}

.inner-page.page-contact .enquiry-card .btn--primary {
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .55);
  background: #004f30 !important;
}

.footer-social a svg,
.activity-grid i svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-social a:hover {
  color: var(--template-yellow);
  border-color: currentColor;
  background: transparent;
  transform: translateY(-2px);
}

.activity-grid i svg {
  width: 38px;
  height: 38px;
}

.activity-grid,
.gallery-ribbon {
  transition: transform .45s ease;
}

.mobile-carousel-controls {
  display: none;
}

@media(max-width:700px) {
  .mobile-track-viewport {
    overflow: hidden;
  }

  .activity-grid.row {
    width: max-content;
    margin-inline: 0;
    overflow: visible;
  }

  .activity-grid.row>a.col {
    width: 190px;
  }

  .gallery-section .gallery-ribbon {
    width: max-content;
    margin-inline: 0;
    overflow: visible;
  }

  .mobile-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
  }

  .mobile-carousel-controls button {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--template-lime);
    font-size: 1.1rem;
  }
}

/* ================================================================
   CARMEL SILIGURI — ORIGINAL VISUAL SYSTEM
   Modern alpine-campus direction; intentionally distinct from the
   original reference website while preserving all existing content.
   ================================================================ */
:root {
  --cs-ink: #102a43;
  --cs-blue: #1864ab;
  --cs-teal: #1d3b5d;
  --cs-amber: #f4b942;
  --cs-coral: #e76f51;
  --cs-mist: #f2f7fa;
  --cs-paper: #ffffff;
  --cs-text: #334e68;
  --cs-muted: #6b7f91;
  --cs-line: #dce7ee;
  --cs-radius: 24px;
}

.home-page,
.inner-page {
  --template-green: var(--cs-teal);
  --template-lime: var(--cs-blue);
  --template-yellow: var(--cs-amber);
  --home-red: var(--cs-teal);
  --home-deep: var(--cs-ink);
  --home-cream: var(--cs-mist);
  color: var(--cs-text);
  background: var(--cs-paper);
  font-family: "Manrope", system-ui, sans-serif;
}

.home-page h1,
.home-page h2,
.home-page h3,
.inner-page h1,
.inner-page h2,
.inner-page h3,
.home-page .story h3,
.inner-page .gallery__item figcaption {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: -.035em;
}

/* Splash */
.splash {
  background: var(--cs-ink);
}

.splash__mark {
  width: 132px;
  height: 132px;
}

.splash__name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
}

.splash__loader:after {
  background: var(--cs-amber);
}

/* Floating, left-brand navigation */
.home-header,
.inner-page .home-header {
  top: 16px;
  left: 20px;
  right: 20px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  background: rgba(16, 42, 67, .72);
  box-shadow: 0 14px 38px rgba(5, 24, 40, .14);
  backdrop-filter: blur(18px);
}

.social-bar {
  height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.social-bar .elements-social a {
  width: 28px;
  height: 28px;
  border: 0;
  font-size: .78rem;
}

.social-bar .elements-social a svg {
  width: 15px;
  height: 15px;
}

.overlay-admission,
.home-header .overlay-admission {
  padding: 8px 16px;
  color: var(--cs-ink);
  border-radius: 10px;
  background: var(--cs-amber);
  font-size: .78rem;
  font-weight: 800;
}

.home-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-brand {
  order: 1;
  grid-column: auto;
  flex: 0 0 auto;
  margin-right: auto;
  flex-direction: row;
  gap: 10px;
  text-align: left;
}

.home-brand img {
  width: 58px;
  height: 58px;
}

.home-brand span {
  justify-items: start;
}

.home-brand strong {
  font-family: "Manrope", sans-serif;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.home-brand small {
  font-size: .56rem;
}

.home-brand em {
  display: none;
}

.home-nav {
  padding: 0;
  gap: 0;
}

.home-nav--left {
  order: 2;
}

.home-nav--right {
  order: 3;
}

.home-nav .site-nav__link {
  padding: 12px 8px;
  font-size: .78rem;
  font-weight: 700;
}

.home-nav .site-nav__link:after {
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: var(--cs-amber);
}

.home-header.is-sticky,
.inner-page .home-header.is-sticky {
  top: 0;
  left: 0;
  right: 0;
  border: 0;
  border-bottom: 1px solid var(--cs-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
}

.home-header.is-sticky .home-header__inner {
  min-height: 70px;
  background: transparent;
}

.home-header.is-sticky .home-brand img {
  width: 48px;
  height: 48px;
}

/* Home hero: inset editorial canvas */
.home-hero {
  height: min(820px, 100vh);
  min-height: 680px;
  margin: 0 20px;
  border-radius: 0 0 34px 34px;
}

.home-slide__shade {
  background: linear-gradient(90deg, rgba(9, 31, 50, .88) 0%, rgba(9, 31, 50, .58) 45%, rgba(9, 31, 50, .1) 80%);
}

.home-slide__content {
  justify-content: center;
  align-items: flex-start;
  padding-top: 145px;
  padding-bottom: 0;
  text-align: left;
}

.home-slide__content p {
  color: var(--cs-amber);
}

.home-slide__content h1,
.home-slide__content h2 {
  max-width: 820px;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  font-weight: 800;
  line-height: .98;
}

.home-slide__content em {
  color: #fff;
  font-style: normal;
}

.home-hero__dots {
  left: max(40px, calc((100vw - 1180px)/2));
  bottom: 48px;
  transform: none;
}

.home-hero__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.home-hero__dots button.is-active {
  width: 32px;
  border-radius: 8px;
  background: var(--cs-amber);
}

/* Universal section rhythm */
.home-section {
  padding: 112px 0;
}

.section-heading.centered,
.notice-strip__title,
.stats-heading {
  max-width: 780px;
  margin-left: 0;
  text-align: left;
}

.section-heading.centered {
  margin-right: auto;
}

.section-kicker {
  color: var(--cs-coral);
}

.section-heading h2,
.notice-strip__title h2,
.stats-heading h2,
.home-page main section:not(.home-hero) h2 {
  color: var(--cs-ink);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
}

.section-heading h2 em,
.welcome-copy h2 em {
  color: var(--cs-teal);
  font-style: normal;
}

.ornament,
.section-heading:before,
.inner-page .section__head:before {
  display: none;
}

/* Notice: crisp horizontal information cards */
.notice-strip {
  margin: 26px 20px 0;
  padding: 82px 0;
  border-radius: 30px;
  background: var(--cs-mist);
}

.notice-strip__title {
  margin-bottom: 36px;
}

.notice-strip__items article {
  min-height: 150px;
  grid-template-columns: 105px 1fr;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 42, 67, .06);
}

.notice-strip__items time {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  color: #fff;
  background: var(--cs-teal);
}

.notice-strip__items time strong {
  color: #fff;
}

.strip-controls {
  justify-content: flex-start;
}

.strip-controls button,
.strip-controls a,
.mobile-carousel-controls button {
  background: var(--cs-blue);
}

/* Welcome: asymmetric image block */
.welcome-section {
  background: #fff;
}

.welcome-grid.row {
  align-items: stretch !important;
}

.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 5vw;
}

.welcome-copy h2 span {
  padding: 0;
  background: transparent;
}

.welcome-copy h2 {
  font-size: clamp(2.4rem, 4.2vw, 4.5rem) !important;
  line-height: 1.05 !important;
}

.welcome-frame {
  height: 100%;
  min-height: 440px;
  padding: 0;
  border-radius: 30px 8px 30px 8px;
  overflow: hidden;
  box-shadow: 20px 20px 0 var(--cs-mist);
}

.welcome-frame img {
  height: 100%;
  aspect-ratio: auto;
}

.welcome-play {
  color: #fff;
  background: var(--cs-coral);
}

/* Activities: light modular tiles */
.activity-section {
  margin: 0 20px;
  border-radius: 32px;
  background: var(--cs-ink);
}

.activity-section .section-heading h2,
.activity-section .section-heading p {
  color: #fff;
}

.activity-grid.row>a.col {
  aspect-ratio: auto;
  min-height: 210px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  box-shadow: none;
}

.activity-grid.row>a.col:hover {
  color: #fff;
  border-color: var(--cs-amber);
  background: rgba(255, 255, 255, .12);
}

.activity-grid.row>a.col i {
  color: var(--cs-amber);
  border: 0;
  background: transparent;
}

/* Stats: rectangular dashboard, not circles */
.stats-section {
  margin: 28px 20px;
  padding: 105px 0;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--cs-ink), #1d3b5d);
}

.stats-heading {
  margin-bottom: 40px;
}

.stats-section h2,
.stats-section h2 em {
  color: #fff;
  font-style: normal;
}

.stats-grid {
  gap: 12px;
}

.stats-grid article {
  min-height: 180px;
  aspect-ratio: auto;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
}

.stats-grid i {
  color: var(--cs-amber);
}

.stats-grid strong {
  font-size: 2rem;
}

/* Facilities: landscape cards */
.facilities-showcase {
  background: var(--cs-mist);
  border: 0;
}

.facility-home-grid {
  align-items: stretch;
}

.facility-home-grid a {
  min-width: calc(33.333% - 15px);
  width: auto;
  height: 360px;
  flex-basis: calc(33.333% - 15px);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(16, 42, 67, .12);
}

.facility-home-grid a:after,
.facility-home-grid img {
  border-radius: 22px;
}

.facility-home-grid span {
  align-items: flex-start;
  justify-content: flex-end;
  padding: 28px;
}

.facility-home-grid b {
  font-size: 1.3rem;
}

/* Leadership: warm paper editorial panel */
.leadership-section {
  margin: 0 20px;
  border-radius: 32px;
  color: var(--cs-text);
  background: #fff4df;
}

.leadership-grid {
  grid-template-columns: .65fr 1.35fr;
}

.leadership-photo {
  border: 0;
  border-radius: 24px;
  background: var(--cs-ink);
}

.leadership-copy h2,
.leadership-copy h2 em {
  color: var(--cs-ink);
}

.leadership-copy blockquote {
  color: var(--cs-text);
}

.leadership-copy small {
  color: var(--cs-muted);
}

/* Stories: balanced editorial row */
.stories-section {
  background: #fff;
}

.stories-grid {
  gap: 20px;
}

.story,
.story--feature {
  min-width: 330px;
  max-width: 330px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(16, 42, 67, .1);
}

.story>div {
  align-items: flex-start;
  text-align: left;
}

.story span {
  color: #fff;
  border-radius: 7px;
  background: var(--cs-coral);
}

/* Gallery: clean masonry-like cards */
.gallery-section {
  background: var(--cs-mist);
}

.gallery-ribbon {
  gap: 16px;
  align-items: stretch;
}

.gallery-ribbon a,
.gallery-ribbon a:nth-child(odd),
.gallery-ribbon a:nth-child(even) {
  width: 230px;
  height: 340px;
  margin: 0;
  padding: 0;
  border-radius: 18px;
  transform: none;
  box-shadow: 0 12px 28px rgba(16, 42, 67, .1);
  overflow: hidden;
}

.gallery-ribbon a:hover {
  transform: translateY(-10px);
}

.gallery-ribbon img {
  height: 265px;
  border-radius: 0;
}

.gallery-ribbon span {
  padding: 14px;
  font-family: "Manrope", sans-serif;
  text-align: left;
}

/* FAQ: bordered, airy layout */
.faq-section {
  background: #fff;
}

.faq-section .section-heading.centered {
  margin-left: auto;
  text-align: center;
}

.faq-list details {
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-list details[open] {
  border-color: rgba(29, 59, 93, .45);
  box-shadow: 0 10px 24px rgba(16, 42, 67, .06);
}

.faq-list details[open] summary {
  color: var(--cs-teal);
}

/* Footer: deep ink, simpler contemporary structure */
.home-footer {
  margin: 20px;
  border-radius: 32px 32px 0 0;
  background: var(--cs-ink);
}

.footer-main {
  grid-template-columns: 1.5fr .7fr .7fr;
}

.footer-main h3 {
  color: var(--cs-amber);
  font-family: "Manrope", sans-serif;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-main>div:not(:first-child) a {
  font-size: .86rem;
}

.footer-bottom {
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.footer-credit-line {
  color: rgba(255, 255, 255, .58);
}

/* Inner pages: distinct editorial banners and cards */
.inner-page main {
  background: var(--cs-mist);
}

.inner-page .page-hero {
  min-height: 560px;
  margin-bottom: 0;
  padding-bottom: 82px;
  background-color: var(--cs-ink);
}

.inner-page .page-hero h1 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.inner-page main>.section:first-child {
  padding-bottom: 100px;
}

.inner-page main>.section:first-child>.container {
  max-width: none;
  padding: 0;
}

.inner-page main>.section:first-child>.container>*:not(.page-hero) {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.inner-page .page-hero__content {
  padding-left: 0;
}

.inner-page .section {
  background: transparent;
}

.inner-page .section__head {
  margin-left: 0;
}

.inner-page h2,
.inner-page .section__head h2,
.inner-page h2.h3 {
  color: var(--cs-ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.inner-page .card,
.inner-page .person-card,
.inner-page .event-card,
.inner-page .achievement-card,
.inner-page .gallery__item {
  border: 1px solid var(--cs-line) !important;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(16, 42, 67, .06);
}

.inner-page .card:hover,
.inner-page .person-card:hover,
.inner-page .event-card:hover,
.inner-page .achievement-card:hover,
.inner-page .gallery__item:hover {
  border-color: rgba(29, 59, 93, .4) !important;
  box-shadow: 0 18px 38px rgba(16, 42, 67, .12);
}

.inner-page .check-list li:before,
.inner-page .announcement-card__badge,
.inner-page .event-card__tag,
.inner-page .person-card__meta {
  background: var(--cs-teal);
}

.inner-page .facility__img {
  background: var(--cs-mist);
}

.inner-page .pill-list li {
  color: var(--cs-teal);
  background: #e8f4f3;
}

.inner-page .home-footer {
  margin-top: 20px;
}

@media(max-width:1100px) {

  .home-header,
  .inner-page .home-header {
    left: 10px;
    right: 10px;
  }

  .home-nav .site-nav__link {
    padding-inline: 6px;
    font-size: .72rem;
  }
}

@media(max-width:1000px) {
  .home-header__inner {
    min-height: 72px;
  }

  .home-header[data-open="true"] {
    border-radius: 20px;
    background: #fff;
  }

  .mobile-home-nav {
    border-radius: 14px;
  }

  .activity-grid.row>a.col {
    min-width: 220px;
  }

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

@media(max-width:700px) {

  .home-header,
  .inner-page .home-header {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: 16px;
    background: rgba(16, 42, 67, .82);
  }

  .home-header.is-sticky,
  .inner-page .home-header.is-sticky {
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    background: #fff;
  }

  .home-brand img {
    width: 50px;
    height: 50px;
  }

  .home-hero {
    min-height: 620px;
    margin: 0 8px;
    border-radius: 0 0 24px 24px;
  }

  .home-slide__content {
    align-items: flex-start;
    padding: 120px 24px 30px;
    text-align: left;
  }

  .home-slide__content h1,
  .home-slide__content h2 {
    font-size: 2.8rem;
  }

  .home-section {
    padding: 78px 0;
  }

  .notice-strip,
  .activity-section,
  .stats-section,
  .leadership-section,
  .home-footer {
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 24px;
  }

  .section-heading.centered,
  .notice-strip__title,
  .stats-heading {
    text-align: left;
  }

  .welcome-copy {
    padding-right: calc(var(--bs-gutter-x)*.5);
  }

  .welcome-frame {
    min-height: 320px;
    box-shadow: 10px 10px 0 var(--cs-mist);
  }

  .activity-grid.row>a.col {
    min-height: 190px;
  }

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

  .stats-grid article {
    min-height: 145px;
    border-radius: 14px;
  }

  .facility-home-grid a {
    min-width: 85%;
    height: 320px;
    flex-basis: 85%;
  }

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

  .gallery-ribbon a,
  .gallery-ribbon a:nth-child(odd),
  .gallery-ribbon a:nth-child(even) {
    min-width: 78vw;
    width: 78vw;
    height: 360px;
  }

  .gallery-ribbon img {
    height: 285px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about {
    grid-column: 1/-1;
  }

  .inner-page .page-hero {
    min-height: 450px;
    padding-top: 170px;
    /* border-radius: 0 0 28px 28px; */
  }
}

.inner-page .gallery__item {
  padding: 10px 10px 0;
  overflow: hidden;
}

.inner-page .gallery__item img {
  border-radius: 13px;
  transition: transform .6s ease;
}

.inner-page .gallery__item:hover img {
  transform: scale(1.06);
}

.inner-page .gallery__item figcaption {
  padding: 14px 10px 16px;
  color: var(--template-green);
  font-family: "Playfair Display", serif;
}

.inner-page .person-card,
.inner-page .event-card {
  overflow: hidden;
}

.inner-page .person-card__photo,
.inner-page .event-card__media {
  background: #edf5f1;
}

.inner-page .person-card__photo img,
.inner-page .event-card__media img {
  transition: transform .6s ease;
}

.inner-page .person-card:hover img,
.inner-page .event-card:hover img {
  transform: scale(1.05);
}

.inner-page .facility__img {
  padding: 22px;
  border: 0;
  border-radius: 16px;
  background: #edf5f1;
}

.inner-page .timeline::before {
  background: linear-gradient(var(--template-green), rgba(0, 100, 61, .08));
}

.inner-page .timeline__item:before {
  background: var(--template-green);
  box-shadow: 0 5px 15px rgba(0, 100, 61, .25);
}

.inner-page .pill-list li {
  color: var(--template-green);
  border-color: rgba(0, 100, 61, .22);
  background: #edf5f1;
}

.inner-page .pill-list li:hover {
  color: #fff;
  background: var(--template-green);
}

.inner-page .announcement-card {
  border-left-color: var(--template-green) !important;
}

.inner-page input,
.inner-page textarea,
.inner-page .form-control {
  border: 1px solid #d9e4df;
  border-radius: 12px;
  background: #fff;
}

.inner-page input:focus,
.inner-page textarea:focus,
.inner-page .form-control:focus {
  border-color: var(--template-green);
  box-shadow: 0 0 0 .2rem rgba(0, 100, 61, .12);
}

.inner-page .map-card,
.inner-page .form {
  border-radius: 20px;
}

.inner-page .home-footer {
  margin-top: 0;
}

.inner-page .home-footer h3 {
  color: #fff;
}

.inner-page .reveal {
  opacity: 0;
  filter: blur(3px);
  transform: translateY(50px);
}

.inner-page .reveal.is-visible {
  animation: powerpointFloatIn .85s cubic-bezier(.18, .78, .22, 1) both;
}

/* Never hide a page-level wrapper: tall mobile pages cannot meet an intersection ratio. */
.inner-page main>.section.reveal {
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
}

@media(max-width:1000px) {
  .inner-page .nav-toggle {
    display: flex;
  }

  .inner-page .page-hero {
    min-height: 440px;
    padding-top: 185px;
  }
}

@media(max-width:700px) {
  .inner-page .page-hero {
    min-height: 390px;
    margin-bottom: 55px;
    padding: 155px 20px 50px;
  }

  .inner-page .page-hero h1 {
    font-size: 2.7rem;
  }

  .inner-page main>.section:first-child,
  .inner-page .section {
    padding-bottom: 65px;
  }

  .inner-page h2,
  .inner-page .section__head h2,
  .inner-page h2.h3 {
    font-size: 29px;
    line-height: 35px;
  }

  .inner-page .card {
    padding: 22px;
  }
}

/* Final inner-page cascade alignment for the original visual system. */
/* .inner-page .home-footer {
  margin: 20px;
} */

.inner-page .facility__img {
  background: var(--cs-mist);
}

.inner-page .timeline::before {
  background: linear-gradient(var(--cs-ink-soft), rgba(29, 59, 93, .08));
}

.inner-page .timeline__item:before {
  background: var(--cs-teal);
  box-shadow: 0 5px 15px rgba(29, 59, 93, .22);
}

.inner-page.page-contact .enquiry-card,
.inner-page.page-contact .enquiry-card:hover {
  color: #fff !important;
  background: var(--cs-teal) !important;
}

.inner-page.page-contact .enquiry-card h2,
.inner-page.page-contact .enquiry-card label,
.inner-page.page-contact .enquiry-card .field__label {
  color: #fff !important;
}

@media(max-width:700px) {
  .inner-page .page-hero {
    min-height: 450px;
    margin-bottom: 0;
    padding: 170px 20px 58px;
  }

  .inner-page .home-footer {
    margin: 8px;
  }
}

/* Requested structural corrections */
.shell-pending {
  visibility: hidden;
}

.home-header,
.inner-page .home-header,
.home-header.is-sticky,
.inner-page .home-header.is-sticky {
  left: 0;
  right: 0;
  top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.home-hero,
.notice-strip,
.activity-section,
.stats-section,
.leadership-section,
.home-footer,
.inner-page .home-footer {
  margin-left: 0;
  margin-right: 0;
  border-radius: 0;
}

.home-hero {
  margin-top: 0;
}

/* Campus stories return to the centered content rhythm. */
.stories-section>.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.stories-section>.section-heading.centered p {
  margin-left: auto;
  margin-right: auto;
}

.stories-section .stories-viewport,
.stories-section .strip-controls {
  justify-content: center;
}

/* Footer metadata shares one baseline; Go Top floats independently. */
.home-footer {
  position: relative;
  padding-bottom: 26px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  min-height: 62px;
  margin: 0 auto;
  padding: 0;
  justify-content: flex-start;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
  background: transparent;
}

.footer-bottom p {
  width: 32%;
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.footer-credit-line {
  min-height: 62px;
  margin-top: -62px;
  padding: 0 0 0 33%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  white-space: nowrap;
  font-size: clamp(.65rem, .72vw, .78rem);
}

.footer-bottom>a {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 54px;
  height: 54px;
  min-width: 54px;
  padding: 0;
  display: grid;
  place-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--cs-ink);
  background: var(--cs-amber);
  box-shadow: 0 10px 25px rgba(16, 42, 67, .22);
  font-size: 0;
}

.footer-bottom>a:before {
  content: "↑";
  font-size: 1.35rem;
  font-weight: 800;
}

.footer-bottom>a:hover {
  color: #fff;
  background: var(--cs-teal);
  transform: translateY(-4px);
}

/* Management and Events section separation. */
.page-management .page-hero+.section__head,
.page-events .page-hero+.section__head {
  margin-top: 86px !important;
  margin-bottom: 42px !important;
}

.page-management .people-grid+.section__head,
.page-events .events-grid+.section__head,
.page-events .achievement-grid+.section__head {
  margin-top: 110px !important;
  margin-bottom: 42px !important;
}

.page-management .section__head p,
.page-events .section__head p {
  margin-top: 0;
  color: var(--cs-muted);
}

/* Contact: original information/workspace composition. */
.page-contact .contact-overview {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 28px;
  margin-top: 86px !important;
}

.page-contact .contact-overview>.col-12 {
  width: auto;
  padding: 0;
}

.page-contact .contact-info-panel {
  padding: 42px;
  color: #fff;
  border: 0 !important;
  border-radius: 24px;
  background: var(--cs-ink);
}

.page-contact .contact-info-panel h2,
.page-contact .contact-info-panel strong,
.page-contact .contact-info-panel a {
  color: #fff;
}

.page-contact .contact-info-panel .muted {
  color: rgba(255, 255, 255, .66);
}

.page-contact .contact-info-panel .divider {
  border-color: rgba(255, 255, 255, .15);
}

.page-contact .contact-info-panel .btn--ghost {
  color: var(--cs-ink);
  border: 0;
  background: var(--cs-amber);
}

.page-contact .contact-visual-panel {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin: 0;
}

.page-contact .contact-visual-panel .gallery__item {
  width: auto;
  height: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 24px;
}

.page-contact .contact-visual-panel .gallery__item:first-child {
  grid-row: 1 / 3;
}

.page-contact .contact-visual-panel .gallery__item:last-child {
  grid-row: 1 / 3;
}

.page-contact .contact-visual-panel .gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 24px;
  object-fit: cover;
}

.page-contact .contact-visual-panel figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 11px;
  border-radius: 8px;
  color: #fff;
  background: rgba(16, 42, 67, .78);
  backdrop-filter: blur(6px);
}

.page-contact .contact-enquiry-wrap {
  margin-top: 100px !important;
}

.page-contact .contact-enquiry-workspace {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  border: 1px solid var(--cs-line);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 48px rgba(16, 42, 67, .1);
}

.page-contact .enquiry-intro {
  padding: 54px 46px;
  color: #fff;
  background: linear-gradient(145deg, var(--cs-ink), #1d3b5d);
}

.page-contact .enquiry-intro>span {
  color: var(--cs-amber);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.page-contact .enquiry-intro h2 {
  margin: 18px 0 22px;
  color: #fff;
  font-size: 2.5rem;
}

.page-contact .enquiry-intro p {
  color: rgba(255, 255, 255, .78);
}

.page-contact .enquiry-intro__contact {
  display: grid;
  gap: 10px;
  margin-top: 38px;
}

.page-contact .enquiry-intro__contact a {
  color: #fff;
  font-size: .84rem;
  text-decoration: none;
}

.page-contact .enquiry-form-grid {
  margin: 0;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-contact .enquiry-form-grid .field:nth-child(4),
.page-contact .enquiry-form-grid .form__actions {
  grid-column: 1 / -1;
}

.page-contact .enquiry-form-grid .field__label {
  color: var(--cs-ink) !important;
}

.page-contact .enquiry-form-grid .btn--primary {
  color: #fff !important;
  background: var(--cs-blue) !important;
}

@media(max-width:900px) {

  .page-contact .contact-overview,
  .page-contact .contact-enquiry-workspace {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-visual-panel {
    min-height: 480px;
  }
}

@media(max-width:700px) {
  .footer-bottom {
    min-height: auto;
    padding: 22px 0 14px;
  }

  .footer-bottom p {
    width: 100%;
    text-align: center;
  }

  .footer-credit-line {
    min-height: auto;
    margin-top: 0;
    padding: 8px 14px 16px;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .footer-bottom>a {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    min-width: 48px;
  }

  .page-management .page-hero+.section__head,
  .page-events .page-hero+.section__head {
    margin-top: 62px !important;
  }

  .page-management .people-grid+.section__head,
  .page-events .events-grid+.section__head,
  .page-events .achievement-grid+.section__head {
    margin-top: 78px !important;
  }

  .page-contact .contact-overview {
    margin-top: 62px !important;
  }

  .page-contact .contact-visual-panel {
    min-height: 440px;
    grid-template-columns: 1fr 1fr;
  }

  .page-contact .contact-visual-panel .gallery__item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .page-contact .contact-visual-panel .gallery__item:last-child {
    grid-row: auto;
  }

  .page-contact .contact-enquiry-wrap {
    margin-top: 76px !important;
  }

  .page-contact .enquiry-intro {
    padding: 38px 28px;
  }

  .page-contact .enquiry-form-grid {
    padding: 30px 22px;
    grid-template-columns: 1fr;
  }

  .page-contact .enquiry-form-grid .field,
  .page-contact .enquiry-form-grid .form__actions {
    grid-column: 1;
  }
}

/* Final cascade for the July 2026 content/layout revision. */
.footer-bottom {
  border-top: 0 !important;
}

.notice-strip>.home-container {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-areas: "title notices" "title controls";
  column-gap: 64px;
  align-items: center
}

.notice-strip .ornament {
  display: none
}

.notice-strip__title {
  grid-area: title;
  text-align: left
}

.notice-strip__title h2 {
  margin-bottom: 16px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .92
}

.notice-viewport {
  grid-area: notices;
  width: 100%
}

.notice-strip__items {
  gap: 18px
}

.notice-strip__items article {
  min-width: calc(50% - 9px);
  min-height: 180px;
  padding: 0;
  display: grid;
  grid-template-columns: 116px 1fr;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 0;
  background: #fff;
  box-shadow: none
}

.notice-strip__items time {
  width: auto;
  min-width: 0;
  height: 100%;
  border-radius: 0;
  background: var(--cs-amber)
}

.notice-strip__items article>div {
  align-self: center;
  padding: 28px
}

.notice-strip .strip-controls {
  grid-area: controls;
  justify-content: flex-start;
  margin-top: 24px
}

.activity-section {
  padding: 110px 0;
  background: #fff
}

.activity-section .section-heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 54px;
  text-align: left
}

.activity-section .section-heading p {
  margin-left: 0
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px !important;
  background: var(--cs-line)
}

.activity-grid>a {
  width: auto;
  min-height: 210px;
  padding: 36px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 24px;
  border: 0;
  border-radius: 0 !important;
  color: var(--cs-ink);
  background: #fff;
  box-shadow: none
}

.activity-grid>a:nth-child(2),
.activity-grid>a:nth-child(5) {
  background: var(--cs-mist)
}

.activity-grid>a i {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #fff;
  background: var(--cs-teal)
}

.activity-grid>a b {
  text-align: left;
  font-size: 1.1rem
}

.stats-section {
  padding: 110px 0;
  background: var(--cs-ink)
}

.stats-section>.home-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start
}

.stats-heading {
  position: sticky;
  top: 140px;
  text-align: left
}

.stats-heading .ornament {
  display: none
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0
}

.stats-grid article {
  min-height: 148px;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  border-radius: 0;
  background: transparent;
  box-shadow: none
}

.stats-grid article:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .16)
}

.stats-grid article i {
  grid-row: 1/3;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  color: var(--cs-amber);
  background: rgba(255, 255, 255, .08)
}

.stats-grid article strong {
  align-self: end;
  font-size: 2.15rem;
  text-align: left
}

.stats-grid article span {
  align-self: start;
  text-align: left
}

.page-about .current-vision-mission+.row,
.page-about .current-vision-mission~.card.mt-24:last-child {
  display: none !important
}

.about-content-card p {
  color: var(--cs-muted);
  line-height: 1.85
}

.empty-content-placeholder {
  min-height: 130px;
  border: 1px dashed var(--cs-line);
  background: var(--cs-mist)
}

.page-management .page-hero+.section__head+.people-grid .person-card>* {
  visibility: hidden
}

.page-management .page-hero+.section__head+.people-grid .person-card {
  min-height: 260px;
  background: var(--cs-mist)
}

.page-contact .contact-overview {
  display: block;
  margin-top: 86px !important
}

.page-contact .contact-visual-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 360px;
  gap: 22px;
  min-height: 0;
  margin: 0 0 28px
}

.page-contact .contact-visual-panel .gallery__item,
.page-contact .contact-visual-panel .gallery__item:first-child,
.page-contact .contact-visual-panel .gallery__item:last-child {
  grid-column: auto;
  grid-row: 1;
  height: 360px
}

.page-contact .contact-info-panel {
  width: 100%;
  padding: 44px 48px
}

.page-contact .contact-info-panel p,
.page-contact .contact-info-panel .contact-address {
  color: rgba(255, 255, 255, .72) !important
}

.page-contact .contact-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 34px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .15)
}

.page-contact .contact-hours-grid h3 {
  margin-bottom: 12px;
  color: var(--cs-amber);
  font-size: 1rem
}

.page-contact .contact-hours-grid p {
  line-height: 1.8
}

@media(max-width:900px) {
  .notice-strip>.home-container {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "notices" "controls";
    row-gap: 28px
  }

  .notice-strip__title {
    text-align: center
  }

  .notice-strip .strip-controls {
    justify-content: center
  }

  .activity-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-section>.home-container {
    grid-template-columns: 1fr;
    gap: 42px
  }

  .stats-heading {
    position: static;
    text-align: center
  }

  .page-contact .contact-hours-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:700px) {
  .notice-strip__items article {
    min-width: 100%
  }

  .activity-grid {
    display: flex;
    gap: 14px !important;
    background: transparent
  }

  .activity-grid>a {
    min-width: 82%
  }

  .stats-grid {
    grid-template-columns: 1fr
  }

  .stats-grid article:nth-child(odd) {
    border-right: 0
  }

  .page-contact .contact-visual-panel {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px;
    min-height: 0;
    gap: 10px
  }

  .page-contact .contact-visual-panel .gallery__item,
  .page-contact .contact-visual-panel .gallery__item:first-child,
  .page-contact .contact-visual-panel .gallery__item:last-child {
    grid-column: auto;
    grid-row: 1;
    height: 230px
  }

  .page-contact .contact-info-panel {
    padding: 32px 24px
  }
}

/* Unified school colour and card rhythm. */
main h1,
main h2,
main h3,
main h4,
.section-heading h2,
.notice-strip__title h2,
.stats-heading h2,
.stats-heading h2 em,
.leadership-copy h2,
.leadership-copy h2 em {
  color: var(--template-green);
}

.eyebrow,
.section-kicker,
.section-kicker.light,
.home-hero__content>p,
.home-hero__content>span,
.home-slide__content>p {
  /* color: var(--cs-coral) !important; */
  color:var(--template-yellow) !important;

}

/* Beyond the classroom: deep-ink panel with equal, overflow-safe cards. */
.activity-section {
  color: #fff;
  background: var(--cs-ink);
}

.activity-section .section-heading p {
  color: rgba(255, 255, 255, .72);
}

.activity-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  background: rgba(255, 255, 255, .14);
}

.activity-grid>a,
.activity-grid>a:nth-child(2),
.activity-grid>a:nth-child(5) {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 210px;
  padding: 32px 26px;
  overflow: hidden;
  color: #fff;
  background: #162f4b;
}

.activity-grid>a:nth-child(even) {
  background: #1d3b5d;
}

.activity-grid>a b {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  line-height: 1.35;
}

.activity-grid>a:hover {
  color: #fff;
  background: var(--cs-teal);
}

/* Both lines of the statistics title use one colour. */
.stats-heading h2,
.stats-heading h2 em {
  color: var(--template-green) !important;
}

/* Campus stories now follow the Learning Spaces four-card carousel proportion. */
.stories-section {
  padding-left: 20px;
  padding-right: 20px;
}

.stories-section .stories-viewport {
  width: min(1180px, 100%);
  margin-inline: auto;
  overflow: hidden;
}

.stories-grid {
  width: 100%;
  gap: 16px;
}

.story,
.story--feature {
  flex: 0 0 calc(25% - 12px);
  min-width: calc(25% - 12px);
  max-width: calc(25% - 12px);
  height: 360px;
  border-radius: 22px;
}

.story>a,
.story>a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story>div {
  min-height: 112px;
  padding: 18px;
}

.stories-section>.strip-controls {
  justify-content: center;
}

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

  .story,
  .story--feature {
    flex-basis: calc(50% - 8px);
    min-width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

@media(max-width:700px) {
  .activity-grid {
    display: flex;
  }

  .activity-grid>a {
    flex: 0 0 82%;
    width: 82%;
    min-width: 82%;
  }

  .story,
  .story--feature {
    flex-basis: 84%;
    min-width: 84%;
    max-width: 84%;
    height: 340px;
  }
}

/* Heading colour must include emphasized and split-line children. */
.activity-section .section-heading h2,
.activity-section .section-heading h2 em,
.facilities-showcase .section-heading h2,
.facilities-showcase .section-heading h2 em,
.leadership-copy h2,
.leadership-copy h2 em,
.stories-section .section-heading h2,
.stories-section .section-heading h2 em,
.gallery-section .section-heading h2,
.gallery-section .section-heading h2 em,
.faq-section .section-heading h2,
.faq-section .section-heading h2 em,
.section-heading h2>span {
  color: var(--template-green) !important;
}

.notice-strip__title h2,
.notice-strip__title h2 em,
.notice-strip__title h2 span {
  color: var(--template-green) !important;
}

.home-footer .footer-bottom,
.inner-page .home-footer .footer-bottom {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Equal activity cards: icon above label, contained by the Bootstrap row. */
.activity-section .mobile-track-viewport {
  width: 100%;
  overflow: hidden;
}

.activity-grid.row {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding: 0;
}

.activity-grid.row>a.col,
.activity-grid>a,
.activity-grid>a:nth-child(2),
.activity-grid>a:nth-child(5) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 220px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.activity-grid.row>a.col i {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  margin: 0;
}

.activity-grid.row>a.col b {
  width: 100%;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

@media(max-width:700px) {
  .activity-grid.row {
    width: max-content;
    max-width: none;
  }

  .activity-grid.row>a.col {
    flex: 0 0 min(82vw, 320px);
    width: min(82vw, 320px);
    min-width: min(82vw, 320px);
  }
}

/* About page follows the homepage heading and tick-mark system. */
.page-about main h1,
.page-about main h2,
.page-about main h3,
.page-about main h4,
.page-about main h1 em,
.page-about main h2 em,
.page-about main h2 span {
  color: var(--template-green) !important;
}

.page-about .eyebrow {
  color: var(--cs-coral) !important;
}

.page-about .check-list {
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
}

.page-about .check-list li {
  position: relative;
  min-height: 24px;
  margin-bottom: .85rem;
  padding-left: 34px;
  color: var(--cs-text);
}

.page-about .check-list li::before {
  content: "\2713" !important;
  position: absolute;
  top: 1px;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--template-green);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
}

/* Preserve the original light text treatment over every inner-page hero image. */
.inner-page .page-hero h1,
.inner-page .page-hero h2,
.inner-page .page-hero h3,
.inner-page .page-hero .hero-card__title {
  color: #fff !important;
}

.inner-page .page-hero .eyebrow {
  color: var(--template-yellow) !important;
}

.inner-page .page-hero .lead,
.inner-page .page-hero p,
.inner-page .page-hero li {
  color: rgba(255, 255, 255, .84) !important;
}

/* Every About card paragraph uses the same tick language as the Mission list. */
.page-about main .card p {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
}

.page-about main .card p::before {
  content: "\2713";
  position: absolute;
  top: .12em;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--template-green);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}

/* Academics card titles use the shared section-heading colour. */
.page-academics main .card h2,
.page-academics main .card h3,
.page-academics main .card h4,
.page-academics main .card .h3 {
  color: var(--template-green) !important;
}

/* Management headings align with the first card in every staff row. */
.page-management .section__head {
  width: min(1180px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
  text-align: left !important;
}

.page-management .section__head h2 {
  margin-left: 0 !important;
  color: var(--template-green) !important;
  text-align: left !important;
}

.page-management .section__head .section__sub,
.page-management .section__head p {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
  color: var(--cs-muted) !important;
  text-align: left !important;
}

/* Restore the populated School Management cards. */
.page-management .page-hero+.section__head+.people-grid .person-card>* {
  visibility: visible !important;
  opacity: 1 !important;
}

.page-management .page-hero+.section__head+.people-grid .person-card {
  background: #fff !important;
}

/* Facilities page colour, tick lists, and grouping badges. */
.page-facilities main .card h2,
.page-facilities main .card h3,
.page-facilities main .card h4,
.page-facilities main .card .h3 {
  color: var(--template-green) !important;
}
.page-facilities .facility-rules.check-list {
  padding-left: 0;
  list-style: none;
}
.page-facilities .facility-rules.check-list li { padding-left: 34px; }
.page-facilities .facility-rules.check-list li::marker { content: ""; }
.facility-badge {
  width: max-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  display: inline-flex;
  border-radius: 999px;
  color: #fff;
  background: var(--cs-coral);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

/* Admissions cards share the green heading and tick-list language. */
.page-admissions main .card h2,
.page-admissions main .card h3,
.page-admissions main .card h4,
.page-admissions main .card .h3 {
  color: var(--template-green) !important;
}
.page-admissions main .card > p {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
}
.page-admissions main .card > p::before {
  content: "\2713";
  position: absolute;
  top: .12em;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--template-green);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}
.page-admissions main .card > p > strong:first-child { display: none; }
.page-admissions .facility-rules.check-list {
  padding-left: 0;
  list-style: none;
}
.page-admissions .facility-rules.check-list li { padding-left: 34px; }
.page-admissions .facility-rules.check-list li::marker { content: ""; }

/* Events headings align with their first card, matching Management. */
.page-events .section__head {
  width: min(1180px,calc(100% - 40px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
  text-align: left !important;
}
.page-events .section__head h2,
.page-events .event-information .card h3 {
  /* margin-left: 0 !important; */
  color: var(--template-green) !important;
  text-align: left !important;
}
.page-events .section__head .section__sub,
.page-events .section__head p {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
  color: var(--cs-muted) !important;
  text-align: left !important;
}
.page-events .event-information .card p {
  position: relative;
  min-height: 24px;
  padding-left: 34px;
}
.page-events .event-information .card p::before {
  content: "\2713";
  position: absolute;
  top: .12em;
  left: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--template-green);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
}
.page-events .event-information .card p > strong:first-child { display: none; }

/* ================================================================
   HOME PAGE SYSTEM — mist/ink alternation, July 2026
   ================================================================ */
:root {
  --cs-mist: #f2f7fa;
  --cs-ink: #102a43;
  --cs-ink-soft: #1d3b5d;
  --cs-amber: #f4b942;
  --cs-teal: var(--cs-ink-soft);
  --template-green: var(--cs-ink-soft);
}

/* Alternating section surfaces after the carousel. */
.home-page .notice-strip,
.home-page .activity-section,
.home-page .facilities-showcase,
.home-page .stories-section,
.home-page .faq-section {
  margin-right: 0;
  margin-left: 0;
  border-radius: 0;
  color: var(--cs-ink);
  background: var(--cs-mist) !important;
}
.home-page .welcome-section,
.home-page .stats-section,
.home-page .leadership-section,
.home-page .gallery-section {
  margin-right: 0;
  margin-left: 0;
  border-radius: 0;
  color: #fff;
  background: var(--cs-ink) !important;
}

/* One heading scale everywhere except the image hero. */
.home-page main section:not(.home-hero) h2,
.home-page main section:not(.home-hero) .section-heading h2,
.home-page main section:not(.home-hero) .stats-heading h2,
.home-page main section:not(.home-hero) .leadership-copy h2 {
  margin-bottom: 30px;
  font-family: "Manrope",sans-serif;
  font-size: 34px !important;
  font-weight: 600 !important;
  line-height: 40px !important;
}
.home-page main section:not(.home-hero) h2 em,
.home-page main section:not(.home-hero) h2 span {
  font: inherit;
  font-style: normal;
}

/* Mist sections: deep-ink typography. */
.home-page .notice-strip h2,
.home-page .notice-strip h2 em,
.home-page .activity-section h2,
.home-page .activity-section h2 em,
.home-page .facilities-showcase h2,
.home-page .facilities-showcase h2 em,
.home-page .stories-section h2,
.home-page .stories-section h2 em,
.home-page .faq-section h2,
.home-page .faq-section h2 em {
  color: var(--cs-ink-soft) !important;
}
.home-page .notice-strip p,
.home-page .activity-section .section-heading p,
.home-page .facilities-showcase .section-heading p,
.home-page .stories-section .section-heading p,
.home-page .faq-section .section-heading p {
  color: rgba(16,42,67,.78) !important;
}

/* Ink sections: white typography. */
.home-page .welcome-section h2,
.home-page .welcome-section h2 span,
.home-page .welcome-section h2 em,
.home-page .stats-section h2,
.home-page .stats-section h2 em,
.home-page .leadership-section h2,
.home-page .leadership-section h2 em,
.home-page .gallery-section h2,
.home-page .gallery-section h2 em {
  color: #fff !important;
}
.home-page .welcome-section p,
.home-page .leadership-section p,
.home-page .leadership-section blockquote,
.home-page .gallery-section .section-heading p {
  color: rgba(255,255,255,.8) !important;
}

/* Every eyebrow/kicker uses amber, including carousel labels. */
.home-page .section-kicker,
.home-page .section-kicker.light,
.home-page .home-slide__content > p,
.home-page .eyebrow {
  color: var(--cs-amber) !important;
}

/* These three editorial headings share one left edge and rhythm. */
.home-page .activity-section .section-heading,
.home-page .facilities-showcase .section-heading,
.home-page .stories-section > .section-heading {
  width: min(1180px,calc(100% - 40px));
  max-width: none;
  margin: 0 auto 54px !important;
  text-align: left !important;
}
.home-page .activity-section .section-heading p,
.home-page .facilities-showcase .section-heading p,
.home-page .stories-section > .section-heading p {
  max-width: 760px;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

/* Activity cards stay inside the light section but use ink shades, not teal. */
.home-page .activity-grid > a,
.home-page .activity-grid > a:nth-child(2),
.home-page .activity-grid > a:nth-child(5) {
  color: #fff;
  background: var(--cs-ink) !important;
}
.home-page .activity-grid > a:nth-child(even) { background: var(--cs-ink-soft) !important; }
.home-page .activity-grid > a i { color: var(--cs-amber); background: rgba(255,255,255,.08); }
.home-page .activity-grid > a:hover { background: #294b6d !important; }
.home-page .activity-grid > a {
  padding: 0 0 22px;
  overflow: hidden;
  justify-content: flex-start;
}
.home-page .activity-grid > a > img {
  width: 100%;
  height: 145px;
  flex: 0 0 145px;
  object-fit: cover;
  transition: transform .35s ease;
}
.home-page .activity-grid > a:hover > img { transform: scale(1.05); }
.home-page .activity-grid > a > b { padding: 0 14px; }

.home-page .leadership-photo .photo-placeholder {
  overflow: hidden;
  place-content: stretch;
}
.home-page .leadership-photo .photo-placeholder img {
  width: 100%;
  height: 100%;
  /* height: auto;
  width: auto; */
  opacity: 1;
  object-fit: cover;
  object-position: center top;
}

/* Cards placed on ink sections retain readable light surfaces. */
.home-page .gallery-ribbon a { color: var(--cs-ink); background: #fff; }
.home-page .gallery-ribbon span { color: var(--cs-ink); }

@media(max-width:700px) {
  .home-page main section:not(.home-hero) h2,
  .home-page main section:not(.home-hero) .section-heading h2,
  .home-page main section:not(.home-hero) .stats-heading h2,
  .home-page main section:not(.home-hero) .leadership-copy h2 {
    font-size: 30px !important;
    line-height: 36px !important;
  }
}

/* Final cascade: requested restorations must follow the Home system above. */
.home-page .welcome-grid.row{align-items:center!important}.home-page .welcome-visual{padding:0}.home-page .welcome-visual:before{display:none}.home-page .welcome-frame{height:auto;min-height:0;padding:12px;overflow:visible;border-radius:0;background:#fff;box-shadow:0 18px 38px rgba(0,0,0,.16)}.home-page .welcome-frame img{width:100%;height:auto;aspect-ratio:16/10;border-radius:0;object-fit:cover}
.home-page .stats-section>.home-container{display:block}.home-page .stats-heading{position:static;margin-bottom:48px;text-align:center}.home-page .stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}.home-page .stats-grid article{min-height:0;aspect-ratio:1;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.32);border-radius:50%;color:#fff;background:rgba(255,255,255,.1);text-align:center}.home-page .stats-grid article:nth-child(odd){border-right:1px solid rgba(255,255,255,.32)}.home-page .stats-grid article i{width:42px;height:42px;margin:0 0 8px;background:transparent}.home-page .stats-grid article strong,.home-page .stats-grid article span{text-align:center}
.home-page main>section,.home-page .home-section,.home-page .notice-strip,.home-page .stats-section,.home-page .leadership-section,.home-page .faq-section,.home-page .home-footer{margin-top:0!important;margin-bottom:0!important}.home-page main{display:block;background:var(--cs-mist)}.home-page .home-footer{margin:0!important}
.home-brand,.home-brand:hover,.home-brand:focus,.home-brand:active{text-decoration:none!important}
.home-footer .footer-bottom,.inner-page .home-footer .footer-bottom{min-height:auto;padding:24px 20px 8px;display:flex;justify-content:center;text-align:center}.home-footer .footer-bottom p,.inner-page .home-footer .footer-bottom p{width:100%;margin:0;text-align:center;white-space:normal}.home-footer .footer-credit-line,.inner-page .home-footer .footer-credit-line{min-height:auto;margin-top:0;padding:4px 20px 24px;justify-content:center;text-align:center;white-space:normal}
.page-about .section__head,.page-management .section__head,.page-events .section__head{width:min(1180px,calc(100% - 40px))!important;max-width:none!important;margin-right:auto!important;margin-left:auto!important;text-align:left!important}.page-about .section__head h2,.page-about .section__head p,.page-management .section__head h2,.page-management .section__head p,.page-events .section__head h2,.page-events .section__head p{margin-right:0;margin-left:0;text-align:left!important}
@media(max-width:1000px){.home-page .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.home-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}

/* Revert By The Numbers to the rectangular dashboard structure. */
.home-page .stats-section > .home-container {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 72px;
  align-items: start;
}
.home-page .stats-heading {
  position: sticky;
  top: 140px;
  margin-bottom: 0;
  text-align: left;
}
.home-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0;
}
.home-page .stats-grid article {
  min-height: 148px;
  aspect-ratio: auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
  border-radius: 0;
  background: transparent;
  text-align: left;
}
.home-page .stats-grid article:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.16); }
.home-page .stats-grid article i {
  grid-row: 1/3;
  width: 58px;
  height: 58px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.home-page .stats-grid article strong,
.home-page .stats-grid article span { text-align: left; }

/* Developer credit ends flush with the bottom of the footer. */
.home-footer,
.inner-page .home-footer { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.home-footer .footer-credit-line,
.inner-page .home-footer .footer-credit-line {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media(max-width:900px) {
  .home-page .stats-section > .home-container { grid-template-columns: 1fr; gap: 42px; }
  .home-page .stats-heading { position: static; text-align: center; }
}
@media(max-width:700px) {
  .home-page .stats-grid { grid-template-columns: 1fr; }
  .home-page .stats-grid article:nth-child(odd) { border-right: 0; }
}

/* About page: spacing belongs to School Life; colour belongs to bands, not cards. */
.page-about .about-gallery {
  margin-bottom: 36px !important;
}
.page-about .about-content-card,
.page-about .affiliation-card,
.page-about main .card {
  background: #fff !important;
  background-image: none !important;
}

/* About/History colour is owned by the outer band, never by the card. */
.page-about .about-band {
  width: min(1180px,calc(100% - 40px));
  margin: 0 auto !important;
  background: transparent !important;
}
.page-about .about-band--ink::before {
  background: var(--cs-ink) !important;
}
.page-about .about-band > .card {
  width: 100%;
  margin: 0;
  color: var(--cs-ink);
  background: #fff !important;
}

/* Management: each heading, subheading, and card grid is one section. */
.page-management .management-band {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(1180px,calc(100% - 40px));
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 72px 0;
  background: transparent !important;
}
.page-management .management-band::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc(50% - 50vw);
  background: var(--cs-mist);
}
.page-management .management-band--ink::before { background: var(--cs-ink) !important; }
.page-management .management-band--mist::before { background: var(--cs-mist) !important; }
.page-management .management-band .section__head {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  position: relative;
  z-index: 2;
  text-align: left !important;
}
.page-management .management-band .section__head h2,
.page-management .management-band .section__head p {
  margin-left: 0 !important;
  text-align: left !important;
}
.page-management .management-band--ink .section__head h2,
.page-management .management-band--ink .section__head p { color: #fff !important; }
.page-management .management-band .people-grid {
  position: relative;
  z-index: 1;
  width: auto !important;
  margin-top: 0 !important;
}
.page-management .management-band .person-card { background: #fff !important; }

@media(max-width:700px) {
  .inner-page main > .section:first-child > .container > *:not(.page-hero) { margin-top: 22px !important; }
  .page-management .management-band { padding-top: 54px; padding-bottom: 54px; }
}

/* Admissions assistance remains content-only, with no callout surface. */
.page-admissions .callout {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Events: each heading, subheading, and related card set is one section. */
.page-events .events-band {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: min(1180px,calc(100% - 40px));
  margin-right: auto !important;
  margin-left: auto !important;
  padding: 72px 0;
  background: transparent !important;
}
.page-events .events-band::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc(50% - 50vw);
  background: var(--cs-mist);
}
.page-events .events-band--mist::before { background: var(--cs-mist) !important; }
.page-events .events-band--ink::before { background: var(--cs-ink) !important; }
.page-events .events-band .section__head {
  position: relative;
  z-index: 2;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 0px !important;
  padding: 0 !important;
  text-align: left !important;
}
.page-events .events-band .section__head h2,
.page-events .events-band .section__head p {
  margin-left: 0 !important;
  text-align: left !important;
}
.page-events .events-band--ink .section__head h2,
.page-events .events-band--ink .section__head p { color: #fff !important; }
.page-events .events-band .event-information,
.page-events .events-band .events-grid,
.page-events .events-band .achievement-grid {
  position: relative;
  z-index: 1;
  width: auto !important;
  margin-top: 0 !important;
}
.page-events .events-band .card { background: #fff !important; }

@media(max-width:700px) {
  .page-events .events-band { padding-top: 54px; padding-bottom: 54px; }
}

/* Remove the complete Admissions assistance background band. */
.page-admissions .callout::before {
  display: none !important;
  background: transparent !important;
}
.page-admissions main > .section:first-child > .container > .callout {
  margin-top: 55px !important;
  padding-top: 34px;
  padding-bottom: 4px;
}

/* Events ends immediately after the final achievement section. */
.page-events main > .section:first-child,
.page-events main > .section:first-child > .container {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.page-events .events-band:last-of-type {
  margin-bottom: 0 !important;
}

/* Gallery: three smaller cards per desktop row. */
.page-gallery .gallery.row > .col {
  flex: 0 0 auto;
  width: 33.333333%;
}
.page-gallery .gallery__item {
  min-height: 0;
}
.page-gallery .gallery__item img {
  width: 100%;
  height: 220px;
  aspect-ratio: auto;
  object-fit: cover;
}
.page-gallery .gallery__item figcaption {
  padding: 14px 16px;
}

/* Contact address owns a coloured band; Stay Connected owns none. */
.page-contact .contact-overview::before {
  display: block !important;
  background: var(--cs-mist) !important;
}
.page-contact .footer-callout {

  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
.page-contact .footer-callout::before {
  display: none !important;
  background: transparent !important;
}

@media(max-width:900px) {
  .page-gallery .gallery.row > .col { width: 50%; }
}
@media(max-width:576px) {
  .page-gallery .gallery.row > .col { width: 100%; }
  .page-gallery .gallery__item img { height: 210px; }
}

/* Facilities cards: equal initial height with in-card progressive disclosure. */
.page-facilities .facility.card {
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.page-facilities [data-expandable-list]:not(.is-expanded) > li:nth-child(n+4) {
  display: none;
}
.facility-read-more {
  width: max-content;
  margin-top: auto;
  padding: 10px 18px;
  border: 1px solid var(--cs-ink-soft);
  border-radius: 999px;
  color: #fff;
  background: var(--cs-ink-soft);
  font: 700 .82rem/1 "Manrope",sans-serif;
  cursor: pointer;
  transition: transform .2s ease,background-color .2s ease,color .2s ease;
}
.facility-read-more:hover,
.facility-read-more:focus-visible {
  color: var(--cs-ink);
  background: var(--cs-amber);
  transform: translateY(-2px);
}

/* Get Admission now belongs directly after Contact in the desktop navigation. */
.home-nav--right .overlay-admission {
  position: static;
  flex: 0 0 auto;
  margin-left: 4px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  text-decoration: none !important;
}

@media(max-width:700px) {
  .page-facilities .facility.card { min-height: 0; }
}

/* Fixed vertical social-media bar on the left edge of the viewport. */
.home-header .social-icon {
  position: fixed;
  z-index: 115;
  top: 50%;
  left: 18px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(16,42,67,.94);
  box-shadow: 8px 12px 26px rgba(16,42,67,.22);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.home-header .social-icon a,
.home-header.is-sticky .social-icon a {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #fff;
  border-color: rgba(255,255,255,.42);
  background: transparent;
}
.home-header .social-icon a:hover,
.home-header.is-sticky .social-icon a:hover {
  color: var(--cs-ink);
  border-color: var(--cs-amber);
  background: var(--cs-amber);
  transform: translateX(3px);
}

@media(max-width:700px) {
  .home-header .social-bar {
    height: 0;
    display: block !important;
    border: 0;
  }
  .home-header .social-icon {
    top: 50%;
    left: 10px;
    padding: 6px 4px;
    gap: 5px;
    border-radius: 13px;
  }
  .home-header .social-icon a,
  .home-header.is-sticky .social-icon a {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: .78rem;
  }
  .mobile-home-nav .mobile-admission,
  .home-header[data-open="true"] .mobile-home-nav .mobile-admission {
    width: 100%;
    margin: 8px 0 0;
    padding: 12px 16px;
    display: flex !important;
    justify-content: center;
    color: var(--cs-ink) !important;
    background: var(--cs-amber) !important;
    text-align: center;
  }
}

/* W3Schools-style sticky social bar: flush left, centred, individual tabs. */
.home-header .social-icon,
.home-header.is-sticky .social-icon {
  position: fixed;
  z-index: 115;
  top: 50%;
  left: 0;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  backdrop-filter: none;
}
.home-header .social-icon a,
.home-header.is-sticky .social-icon a {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 0;
  font-size: 1rem;
  transition: width .25s ease,background-color .25s ease;
}
.home-header .social-icon a:nth-child(1) { background: #3b5998; }
.home-header .social-icon a:nth-child(2) { background: #111; }
.home-header .social-icon a:nth-child(3) { background: #bb0000; }
.home-header .social-icon a:nth-child(4) { background: #0077b5; }
.home-header .social-icon a:nth-child(5) { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.home-header .social-icon a:nth-child(6) { background: #25d366; }
.home-header .social-icon a:nth-child(7) { background: var(--cs-ink); }
.home-header .social-icon a:hover,
.home-header.is-sticky .social-icon a:hover {
  width: 54px;
  color: #fff;
  background: #000;
  transform: none;
}
@media(max-width:700px) {
  .home-header .social-icon,
  .home-header.is-sticky .social-icon { top: 50%; left: 0; padding: 0; border-radius: 0; }
  .home-header .social-icon a,
  .home-header.is-sticky .social-icon a { width: 40px; height: 40px; font-size: .82rem; }
  .home-header .social-icon a:hover,
  .home-header.is-sticky .social-icon a:hover { width: 46px; }
}

/* Keep only the sticky left-centre placement; restore the school palette. */
.home-header .social-icon,
.home-header.is-sticky .social-icon {
  top: 50%;
  left: 0;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  background: rgba(16,42,67,.94);
  box-shadow: 8px 12px 26px rgba(16,42,67,.22);
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}
.home-header .social-icon a,
.home-header.is-sticky .social-icon a,
.home-header .social-icon a:nth-child(n) {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: transparent;
}
.home-header .social-icon a:hover,
.home-header.is-sticky .social-icon a:hover {
  width: 34px;
  color: var(--cs-ink);
  border-color: var(--cs-amber);
  background: var(--cs-amber);
  transform: translateX(3px);
}
@media(max-width:700px) {
  .home-header .social-icon,
  .home-header.is-sticky .social-icon { top: 50%; left: 0; padding: 6px 4px; gap: 5px; border-radius: 0 13px 13px 0; }
  .home-header .social-icon a,
  .home-header.is-sticky .social-icon a,
  .home-header .social-icon a:nth-child(n) { width: 30px; height: 30px; flex-basis: 30px; }
  .home-header .social-icon a:hover,
  .home-header.is-sticky .social-icon a:hover { width: 30px; }
}

/* Full social-bar rollback: restore its original horizontal topbar position. */
.home-header .social-bar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}
.home-header .social-icon,
.home-header.is-sticky .social-icon {
  position: static !important;
  z-index: auto;
  top: auto !important;
  left: auto !important;
  padding: 0;
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none !important;
  backdrop-filter: none;
}
.home-header .social-icon a,
.home-header.is-sticky .social-icon a,
.home-header .social-icon a:nth-child(n) {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
}
.home-header .social-icon a:hover,
.home-header.is-sticky .social-icon a:hover {
  width: 32px;
  color: var(--cs-ink);
  border-color: var(--cs-amber);
  background: var(--cs-amber);
  transform: none;
}
.home-header.is-sticky .social-bar {
  height: 42px;
  display: flex;
  justify-content: center;
}
@media(max-width:700px) {
  .home-header .social-bar,
  .home-header.is-sticky .social-bar {
    height: 40px;
    display: flex !important;
    justify-content: center;
  }
  .home-header .social-icon a,
  .home-header.is-sticky .social-icon a,
  .home-header .social-icon a:nth-child(n) {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: .82rem;
  }
}

/* Restore social links to their original horizontal topbar position. */
.home-header .social-bar {
  height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
}
.home-header.is-sticky .social-bar { display: none !important; }
.home-header .social-icon,
.home-header.is-sticky .social-icon {
  position: static;
  z-index: auto;
  inset: auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  backdrop-filter: none;
}
.home-header .social-icon a,
.home-header.is-sticky .social-icon a,
.home-header .social-icon a:nth-child(n) {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}
.home-header .social-icon a:hover,
.home-header.is-sticky .social-icon a:hover {
  width: 36px;
  color: var(--cs-ink);
  border-color: #fff;
  background: #fff;
  transform: none;
}
@media(max-width:700px) {
  .home-header .social-bar,
  .home-header.is-sticky .social-bar { display: none !important; }
}

/* Final shared placement: social row centred directly above the logo. */
.home-page .home-header .social-bar,
.inner-page .home-header .social-bar,
.home-header .social-bar,
.home-header.is-sticky .social-bar {
  height: 42px;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
}
@media(max-width:700px) {
  .home-page .home-header .social-bar,
  .inner-page .home-header .social-bar,
  .home-header .social-bar,
  .home-header.is-sticky .social-bar {
    height: 40px;
    display: flex !important;
    justify-content: center !important;
  }
}

/* Final rollback: original social row with Admission at the opposite side. */
.home-page .home-header .social-bar,
.inner-page .home-header .social-bar,
.home-header .social-bar {
  height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
}
.home-header.is-sticky .social-bar,
.inner-page .home-header.is-sticky .social-bar { display: none !important; }
@media(max-width:700px) {
  .home-page .home-header .social-bar,
  .inner-page .home-header .social-bar,
  .home-header .social-bar,
  .home-header.is-sticky .social-bar { display: none !important; }
}

/* Definitive index-only two-row topbar. */
@media(min-width:701px){
.home-page .home-header:not(.is-sticky){position:absolute;inset:0 0 auto;width:100%;border:0;border-bottom:1px solid rgba(255,255,255,.18);border-radius:0;color:#fff;background:var(--cs-ink)!important;box-shadow:none;backdrop-filter:none}
.home-page .home-header:not(.is-sticky) .social-bar{position:static!important;width:min(1180px,calc(100% - 40px));height:58px;margin:0 auto;display:flex!important;align-items:center;justify-content:space-between!important;transform:none!important}
.home-page .home-header:not(.is-sticky) .social-icon{position:static!important;inset:auto!important;margin:0;display:flex;flex-direction:row;transform:none!important}
.home-page .home-header:not(.is-sticky) .social-bar>.overlay-admission{position:static!important;inset:auto!important;margin:0;padding:10px 20px;color:var(--cs-ink);background:var(--cs-amber);transform:none!important}
.home-page .home-header:not(.is-sticky) .home-header__inner{width:min(1180px,calc(100% - 40px));min-height:86px;margin:0 auto;display:flex!important;align-items:center!important;gap:20px}
.home-page .home-header:not(.is-sticky) .home-brand{order:1;flex:0 0 auto;margin:0 auto 0 0!important;flex-direction:row;gap:12px;color:#fff;text-align:left}
.home-page .home-header:not(.is-sticky) .home-brand img{width:58px;height:58px}.home-page .home-header:not(.is-sticky) .home-brand span{display:grid;justify-items:start}
.home-page .home-header:not(.is-sticky) .home-nav--left,.home-page .home-header:not(.is-sticky) .home-nav--right{grid-column:auto;grid-row:auto;flex:0 0 auto;gap:4px}.home-page .home-header:not(.is-sticky) .home-nav--left{order:2}.home-page .home-header:not(.is-sticky) .home-nav--right{order:3}
.home-page .home-header:not(.is-sticky) .site-nav__link{padding:11px 8px;color:#fff;font-size:.78rem}
}

/* Image-overlay card language shared with Learning Spaces. */
@media(min-width:701px) {
  .home-page .activity-grid.row {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
  }
}
.home-page .activity-grid.row > a.col,
.home-page .gallery-ribbon > a {
  position: relative;
  min-height: 340px;
  height: 340px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: var(--cs-ink) !important;
  box-shadow: 0 14px 35px rgba(16,42,67,.16);
  transform: none;
}
.home-page .activity-grid.row > a.col::after,
.home-page .gallery-ribbon > a::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg,transparent 35%,rgba(7,25,41,.88) 100%);
  pointer-events: none;
}
.home-page .activity-grid.row > a.col > img,
.home-page .gallery-ribbon > a > img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}
.home-page .activity-grid.row > a.col > b,
.home-page .gallery-ribbon > a > span {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  left: 24px;
  width: auto;
  padding: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}
.home-page .activity-grid.row > a.col:hover,
.home-page .gallery-ribbon > a:hover {
  background: var(--cs-ink) !important;
  transform: translateY(-6px);
}

@media(max-width:700px) {
  .home-page .activity-grid.row > a.col,
  .home-page .gallery-ribbon > a {
    min-height: 320px;
    height: 320px;
  }
}

/* Final Home refinements: consistent radii and photographic statistics. */
.home-page .activity-grid.row > a.col,
.home-page .activity-grid.row > a.col > img {
  border-radius: 22px !important;
}

.home-page .stats-grid article {
  position: relative;
  min-height: 220px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  background: var(--cs-ink);
}
.home-page .stats-grid article::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg,rgba(7,25,41,.06) 20%,rgba(7,25,41,.92) 100%);
  pointer-events: none;
}
.home-page .stats-grid article > img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-page .stats-grid article > strong,
.home-page .stats-grid article > span {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: left;
}

.home-page .leadership-photo,
.home-page .leadership-photo .photo-placeholder,
.home-page .leadership-photo .photo-placeholder img {
  border-radius: 24px;
}

@media(min-width:701px) {
  .home-page .stories-section > .strip-controls button {
    display: none;
  }
}
@media(max-width:700px) {
  .home-page .stories-section > .strip-controls {
    display: flex;
    justify-content: center;
  }
  .home-page .stories-section > .strip-controls button {
    display: grid !important;
  }
  .home-page .leadership-photo {
    width: min(100%,330px);
    max-width: 330px;
    margin-right: auto;
    margin-left: auto;
    justify-self: center;
  }
}

/* Notice marker and rounded statistics cards. */
.home-page .notice-strip__title h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.home-page .notice-board-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--cs-ink);
  background: var(--cs-amber);
}
.home-page .notice-board-icon svg {
  width: 23px;
  height: 23px;
}
.home-page .stats-grid article {
  border-radius: 22px;
}
.home-page .stats-grid article > img {
  border-radius: 22px;
}

/* School Life uses the same image-and-overlay card treatment as Home. */
.page-about .about-gallery {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}
.page-about .about-gallery .gallery__item {
  position: relative;
  height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(16,42,67,.16);
}
.page-about .about-gallery .gallery__item::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg,transparent 38%,rgba(7,25,41,.9) 100%);
  pointer-events: none;
}
.page-about .about-gallery .gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
}
.page-about .about-gallery .gallery__item figcaption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: left;
}

@media(max-width:900px) {
  .page-about .about-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:576px) {
  .page-about .about-gallery { grid-template-columns: 1fr; }
  .page-about .about-gallery .gallery__item { height: 300px; }
}

/* Management leadership profiles use Home-style image-overlay cards. */
.page-management .management-leadership-grid {
  max-width: 980px;
}
.page-management .management-leadership-grid .person-card {
  position: relative;
  min-height: 550px;
  height: 550px !important;
  display: block;
  overflow: hidden;
  border: 0 !important;
  border-radius: 22px;
  background: var(--cs-ink) !important;
  box-shadow: 0 14px 35px rgba(16,42,67,.18);
}
.page-management .management-leadership-grid .person-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg,transparent 35%,rgba(7,25,41,.94) 100%);
  pointer-events: none;
}
.page-management .management-leadership-grid .person-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background: var(--cs-ink);
}
.page-management .management-leadership-grid .person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.page-management .management-leadership-grid .person-card__body {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 28px;
  left: 30px;
  padding: 0;
  color: #fff;
}
.page-management .management-leadership-grid .person-card__name {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}
.page-management .management-leadership-grid .person-card__role {
  color: var(--cs-amber);
  font-size: 1rem;
  font-weight: 800;
}
.page-management .management-leadership-grid .person-card__dept {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
}

@media(max-width:576px) {
  .page-management .management-leadership-grid .person-card {
    min-height: 380px;
    height: 380px !important;
  }
}

/* Events: images sit flush with the card edges; spacing belongs to text only. */
.page-events .event-card,
.page-events .achievement-card {
  padding: 0 !important;
  overflow: hidden;
}
.page-events .event-card__media,
.page-events .event-card__media .card-media-carousel,
.page-events .achievement-card__media {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.page-events .event-card__media .card-media-carousel > img,
.page-events .achievement-card__media > img {
  width: 100%;
  height: 190px;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.page-events .achievement-card__media {
  margin-bottom: 18px;
}
.page-events .achievement-card__title,
.page-events .achievement-card__text {
  margin-right: 18px;
  margin-left: 18px;
}
.page-events .achievement-card__title {
  color: var(--cs-ink-soft) !important;
}
.page-events .achievement-card__text {
  margin-bottom: 20px;
}

/* Match School Fees Details to the Online Application panel. */
.page-admissions .admission-fees.card {
  border-color: rgba(255,255,255,.12) !important;
  color: #fff;
  background: var(--cs-ink) !important;
  box-shadow: 0 14px 35px rgba(16,42,67,.16);
}
.page-admissions .admission-fees.card h2,
.page-admissions .admission-fees.card .h3,
.page-admissions .admission-fees.card p,
.page-admissions .admission-fees.card li {
  color: #fff !important;
}
.page-admissions .admission-fees.card .check-list li::before {
  color: var(--cs-ink);
  background: var(--cs-amber);
}

/* Compact card galleries and their shared medium modal. */
.card-media-carousel {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--cs-mist);
  cursor: pointer;
}
.card-media-carousel > img,
.page-facilities .card-media-carousel > .facility__img,
.page-events .event-card__media .card-media-carousel > img,
.page-events .achievement-card__media > img {
  width: 100%;
  height: 140px;
  display: block;
  border-radius: 14px;
  object-fit: cover;
}
.card-media-carousel > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(16,42,67,.86);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}
.card-media-carousel.has-multiple-images::before,
.card-media-carousel.has-multiple-images::after {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  color: #fff;
  /* background: rgba(16,42,67,.72); */
  background: rgb(126 177 225 / 72%);
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.card-media-carousel.has-multiple-images::before {
  content: "‹";
  left: 10px;
}
.card-media-carousel.has-multiple-images::after {
  content: "›";
  right: 10px;
}
.card-media-carousel:hover > img,
.card-media-carousel:focus-visible > img {
  transform: scale(1.06);
}
.card-media-carousel:focus-visible {
  outline: 3px solid var(--cs-amber);
  outline-offset: 3px;
}
.page-events .event-card__media {
  padding: 0;
  background: transparent;
}
.page-events .event-card__media .card-media-carousel,
.page-events .event-card__media .card-media-carousel > img {
  height: 190px;
  border-radius: 0;
}
.page-events .achievement-card__media {
  margin-bottom: 18px;
}

.media-modal-open { overflow: hidden; }
.media-gallery-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}
.media-gallery-modal[hidden] { display: none !important; }
.media-gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,18,30,.78);
  backdrop-filter: blur(5px);
}
.media-gallery-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px,100%);
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background: var(--cs-ink);
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
.media-gallery-modal__header {
  min-height: 64px;
  padding: 14px 18px 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.media-gallery-modal__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.35;
}
.media-gallery-modal__header button,
.media-gallery-modal__arrow {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.1);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.media-gallery-modal__stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  background: #081b2b;
}
.media-gallery-modal__stage > img {
  width: 100%;
  height: min(58vh,480px);
  display: block;
  object-fit: contain;
}
.media-gallery-modal__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}
.media-gallery-modal__arrow--prev { left: 16px; }
.media-gallery-modal__arrow--next { right: 16px; }
.media-gallery-modal__header button:hover,
.media-gallery-modal__arrow:hover {
  color: var(--cs-ink);
  border-color: var(--cs-amber);
  background: var(--cs-amber);
}
.media-gallery-modal__counter {
  padding: 12px 20px 16px;
  color: rgba(255,255,255,.72);
  text-align: center;
  font-weight: 700;
}
.events-footer-separator {
  width: min(1180px,calc(100% - 40px));
  margin: 0 auto;
  border: 0;
  border-top: 2px solid var(--cs-amber);
  opacity: 1;
}

@media(max-width:576px) {
  .media-gallery-modal { padding: 12px; }
  .media-gallery-modal__stage { min-height: 300px; }
  .media-gallery-modal__stage > img { height: min(56vh,380px); }
}

/* Campus Updates is the shared card scale for Home and About image sections. */
@media(min-width:701px) {
  .home-page .activity-grid.row {
    width: 100%;
    max-width: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
  }
  .home-page .activity-grid.row > a.col,
  .home-page .facility-home-grid > a,
  .home-page .stats-grid > article {
    flex: 0 0 calc(25% - 12px);
    width: calc(25% - 12px);
    min-width: calc(25% - 12px);
    max-width: calc(25% - 12px);
  }
  .home-page .activity-section .mobile-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
  }
}
.home-page .activity-grid.row > a.col,
.home-page .facility-home-grid > a,
.home-page .stats-grid > article,
.home-page .story,
.page-about .about-gallery .gallery__item {
  height: 360px !important;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px !important;
  box-shadow: 0 14px 32px rgba(16,42,67,.1);
  transition: transform .35s ease,box-shadow .35s ease;
}
.home-page .activity-grid.row > a.col:hover,
.home-page .facility-home-grid > a:hover,
.home-page .stats-grid > article:hover,
.home-page .story:hover,
.page-about .about-gallery .gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(16,42,67,.18);
}
.home-page .activity-grid.row > a.col > img,
.home-page .facility-home-grid > a > img,
.home-page .stats-grid > article > img,
.page-about .about-gallery .gallery__item > img {
  width: 100%;
  height: 100%;
  border-radius: 22px !important;
  object-fit: cover;
}

/* Four statistics use the same full-width four-card row. */
.home-page .stats-section > .home-container {
  display: block;
}
.home-page .stats-heading {
  position: static;
  margin-bottom: 48px;
  text-align: center;
}
.home-page .stats-grid {
  display: flex;
  gap: 16px;
}

/* Learning Spaces has five cards, so its four-card viewport remains a carousel. */
.home-page .facility-home-grid {
  gap: 16px;
}

/* School Life contains exactly four images: no carousel is required. */
.page-about .about-gallery {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}

/* Reduce School Management portraits without changing their composition. */
.page-management .management-leadership-grid {
  max-width: 760px;
}
.page-management .management-leadership-grid .person-card {
  min-height: 340px;
  height: 340px !important;
}

@media(max-width:900px) {
  .home-page .stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .stats-grid > article { width: auto; min-width: 0; max-width: none; }
  .page-about .about-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(min-width:701px) and (max-width:1000px) {
  .home-page .activity-grid.row > a.col,
  .home-page .facility-home-grid > a {
    flex-basis: calc(50% - 8px);
    width: calc(50% - 8px);
    min-width: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}
@media(max-width:700px) {
  .home-page .activity-grid.row > a.col,
  .home-page .facility-home-grid > a,
  .home-page .stats-grid > article,
  .page-about .about-gallery .gallery__item {
    height: 360px !important;
    min-height: 360px;
  }
  .home-page .stats-grid { grid-template-columns: 1fr; }
}
@media(max-width:576px) {
  .page-about .about-gallery { grid-template-columns: 1fr; }
  .page-management .management-leadership-grid { max-width: 620px; }
  .page-management .management-leadership-grid .person-card {
    min-height: 310px;
    height: 310px !important;
  }
}

/* Final alignment corrections for Home card rows and controls. */
.home-page .activity-section .mobile-track-viewport {
  width: 100%;
  padding: 0;
  overflow: hidden;
}
.home-page .activity-grid.row {
  column-gap: 16px !important;
  row-gap: 16px !important;
}
@media(min-width:1001px) {
  .home-page .activity-grid.row > a.col {
    flex-basis: calc(25% - 12px);
    width: calc(25% - 12px);
    min-width: calc(25% - 12px);
    max-width: calc(25% - 12px);
  }
}

.home-page .activity-section .mobile-carousel-controls,
.home-page .activity-section .activity-carousel-controls,
.home-page .facilities-showcase .strip-controls,
.home-page .stories-section > .strip-controls,
.home-page .gallery-section .mobile-carousel-controls {
  width: min(1180px,100%);
  margin-right: auto;
  margin-left: auto;
  justify-content: flex-start !important;
}

/* Restore only the original side placement of the statistics heading. */
.home-page .stats-section > .home-container {
  display: grid;
  grid-template-columns: 300px minmax(0,1fr);
  gap: 72px;
  align-items: start;
}
.home-page .stats-heading {
  position: sticky;
  top: 140px;
  margin-bottom: 0;
  text-align: left;
}
.home-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.home-page .stats-grid > article {
  width: auto;
  min-width: 0;
  max-width: none;
}

@media(max-width:900px) {
  .home-page .stats-section > .home-container {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .home-page .stats-heading {
    position: static;
    text-align: center;
  }
  .home-page .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .home-page .stats-grid { grid-template-columns: 1fr; }
}

/* School Life mirrors Learning Spaces without a section/card background or controls. */
.page-about .school-life-section,
.page-about .school-life-section::before,
.page-about .school-life-section::after,
.page-about .school-life-section .about-gallery {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
.page-about .school-life-section::before,
.page-about .school-life-section::after {
  display: none !important;
}
.page-about .school-life-section .section__head {
  width: 100% !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.page-about .school-life-section .gallery__item {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
}
.page-about .school-life-section .gallery__item::before,
.page-about .school-life-section .gallery__item::after {
  display: none !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
}
.page-about .school-life-section .gallery__item > img {
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
}
.page-about .school-life-section .gallery__item figcaption {
  right: 28px;
  bottom: 28px;
  left: 28px;
  font-size: 1.3rem;
  text-shadow: 0 2px 10px rgba(7,25,41,.75);
}

/* By The Numbers: left heading with Campus Updates-sized cards on the right. */
.home-page .stats-section > .home-container {
  width: min(1180px,calc(100% - 40px));
  grid-template-columns: 200px minmax(0,1fr);
  gap: 24px;
}
.home-page .stats-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.home-page .stats-grid > article {
  height: 360px !important;
  min-height: 360px;
  padding: 18px;
  justify-content: flex-end;
  align-items: flex-start;
}
.home-page .stats-grid > article > strong,
.home-page .stats-grid > article > span {
  right: auto;
  bottom: auto;
  left: auto;
  margin: 0;
  text-align: left;
}
.home-page .stats-grid > article > strong {
  font-size: 1.55rem;
  line-height: 1.15;
}
.home-page .stats-grid > article > span {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

@media(max-width:1100px) {
  .home-page .stats-section > .home-container {
    width: min(1180px,calc(100% - 40px));
    grid-template-columns: 180px minmax(0,1fr);
    gap: 20px;
  }
}
@media(max-width:900px) {
  .home-page .stats-section > .home-container {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .home-page .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .home-page .stats-grid { grid-template-columns: 1fr; }
}

/* Match the fees title with the Online Application title. */
.page-admissions .admission-fees > h2.text-light {
  color: #fff !important;
}

/* About: accessible vertical navigation for long-form content. */
.page-about .about-tabs {
  display: grid;
  grid-template-columns: minmax(220px,280px) minmax(0,1fr);
  gap: clamp(32px,5vw,72px);
  align-items: start;
  margin-top: 56px;
  padding-bottom: 64px;
}
.page-about .about-tabs__sidebar {
  position: sticky;
  top: 150px;
  padding: 26px 24px;
  border-radius: 20px;
  color: #fff;
  background: var(--cs-ink);
  box-shadow: 0 18px 42px rgba(16,42,67,.15);
}
.page-about .about-tabs__eyebrow {
  margin: 0 0 16px;
  color: var(--cs-amber);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-about .about-tabs__nav {
  display: flex;
  flex-direction: column;
}
.page-about .about-tabs__button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
  border-radius: 0;
  color: rgba(255,255,255,.76);
  background: transparent;
  font: inherit;
  font-weight: 650;
  text-align: left;
  transition: color .25s ease,padding-left .25s ease,border-color .25s ease;
}
.page-about .about-tabs__button:last-child { border-bottom: 0; }
.page-about .about-tabs__button:hover,
.page-about .about-tabs__button:focus-visible {
  color: #fff;
  padding-left: 7px;
}
.page-about .about-tabs__button:focus-visible {
  outline: 2px solid var(--cs-amber);
  outline-offset: 4px;
}
.page-about .about-tabs__button.is-active {
  color: var(--cs-amber);
  border-color: var(--cs-amber);
}
.page-about .about-tabs__button span:last-child {
  font-size: 1.15rem;
  transition: transform .25s ease;
}
.page-about .about-tabs__button:hover span:last-child,
.page-about .about-tabs__button.is-active span:last-child { transform: translateX(4px); }
.page-about .about-tabs__content { min-width: 0; }
.page-about .about-tab-panel[hidden] { display: none !important; }
.page-about .about-tab-panel.is-active { animation: aboutTabFade .55s ease both; }
.page-about .about-tab-panel > :first-child { margin-top: 50px; }
.page-about .about-tab-panel .school-life-section { padding-top: 0 !important; }
.page-about .about-tab-panel .section__head {
  width: 100% !important;
  margin-top: 0 !important;
}
.page-about .about-tab-panel .about-band,
.page-about .about-tab-panel > .row { margin-top: 0 !important; }
@keyframes aboutTabFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-about .about-tab-panel.is-active { animation: none; }
}
@media(max-width:991px) {
  .page-about .about-tabs {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }
  .page-about .about-tabs__sidebar {
    position: static;
    padding: 18px;
  }
  .page-about .about-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .page-about .about-tabs__button,
  .page-about .about-tabs__button:last-child {
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
  }
  .page-about .about-tabs__button:hover,
  .page-about .about-tabs__button:focus-visible { padding-left: 14px; }
  .page-about .about-tabs__button.is-active {
    border-color: var(--cs-amber);
    background: rgba(244,185,66,.1);
  }
}
@media(max-width:575px) {
  .page-about .about-tabs { margin-top: 30px; padding-bottom: 44px; }
  .page-about .about-tabs__nav { grid-template-columns: 1fr; }
}

/* About navigator keeps every section visible and preserves the original content width. */
.page-about .about-tabs {
  --about-sidebar-fixed-enabled: 0;
  display: block;
  margin-top: 56px;
}
.page-about .about-tabs__content {
  width: 100%;
}
.page-about .about-tab-panel,
.page-about .about-tab-panel[hidden] {
  display: block !important;
  scroll-margin-top: var(--about-scroll-offset,155px);
  margin-top: 72px;
}
.page-about .about-tab-panel:first-child { margin-top: 0; }
.page-about .about-tab-panel.is-active { animation: none; }
.page-about .about-tabs__sidebar {
  position: static;
  width: 100%;
  margin-bottom: 40px;
}
.page-about .about-tabs__nav {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px;
}
.page-about .about-tabs__button,
.page-about .about-tabs__button:last-child {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
}
.page-about .about-tabs__button:hover,
.page-about .about-tabs__button:focus-visible { padding-left: 14px; }
.page-about .about-tabs__button.is-active {
  border-color: var(--cs-amber);
  background: rgba(244,185,66,.1);
}
.page-about .about-tab-panel.section-fade-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease,transform .55s ease;
}
.page-about .about-tab-panel.section-fade-target.is-section-visible {
  opacity: 1;
  transform: translateY(0);
}
@media(min-width:1800px) {
  .page-about .about-tabs {
    --about-sidebar-fixed-enabled: 1;
    --about-sidebar-gap: 20px;
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0,1fr);
    position: relative;
    left: auto;
    transform: none;
  }
  .page-about .about-tabs__sidebar {
    grid-area: 1 / 1;
    position: absolute;
    top: 0;
    z-index: 4;
    align-self: start;
    justify-self: start;
    width: 290px;
    margin: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(calc(-100% - 20px));
  }
  .page-about .about-tabs.is-sidebar-fixed .about-tabs__sidebar {
    position: fixed;
    top: var(--about-sidebar-top,0px);
    left: var(--about-sidebar-left,0px);
    transform: none;
  }
  .page-about .about-tabs.is-sidebar-ended .about-tabs__sidebar {
    position: absolute;
    top: auto;
    bottom: 0;
    left: auto;
    transform: translateX(calc(-100% - 20px));
  }
  .page-about .about-tabs__content {
    grid-area: 1 / 1;
    width: 100%;
    min-width: 0;
  }
  .page-about .about-tabs__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .page-about .about-tabs__button,
  .page-about .about-tabs__button:last-child {
    padding: 17px 2px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
    border-radius: 0;
    background: transparent;
  }
  .page-about .about-tabs__button:last-child { border-bottom: 0; }
  .page-about .about-tabs__button:hover,
  .page-about .about-tabs__button:focus-visible { padding-left: 7px; }
  .page-about .about-tabs__button.is-active { border-color: var(--cs-amber); }
}
@media(max-width:991px) {
  .page-about .about-tabs__nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-about .about-tab-panel,
  .page-about .about-tab-panel[hidden] { margin-top: 54px; }
  .page-about .about-tab-panel:first-child { margin-top: 0; }
}
@media(max-width:575px) {
  .page-about .about-tabs__nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-about .about-tab-panel.section-fade-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Admissions uses the approved About section navigator. */
.page-admissions .about-tabs {
  --about-sidebar-fixed-enabled: 0;
  display: block;
  position: relative;
  width: 100%;
  margin-top: 56px;
  padding-bottom: 64px;
}
.page-admissions .about-tabs__sidebar {
  position: static;
  width: 100%;
  margin-bottom: 40px;
  padding: 26px 24px;
  border-radius: 20px;
  color: #fff;
  background: var(--cs-ink);
  box-shadow: 0 18px 42px rgba(16,42,67,.15);
}
.page-admissions .about-tabs__eyebrow {
  margin: 0 0 16px;
  color: var(--cs-amber);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-admissions .about-tabs__nav {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 8px;
}
.page-admissions .about-tabs__button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: rgba(255,255,255,.76);
  background: transparent;
  font: inherit;
  font-weight: 650;
  text-align: left;
  transition: color .25s ease,border-color .25s ease,background .25s ease;
}
.page-admissions .about-tabs__button:hover,
.page-admissions .about-tabs__button:focus-visible { color: #fff; }
.page-admissions .about-tabs__button:focus-visible {
  outline: 2px solid var(--cs-amber);
  outline-offset: 3px;
}
.page-admissions .about-tabs__button.is-active {
  color: var(--cs-amber);
  border-color: var(--cs-amber);
  background: rgba(244,185,66,.1);
}
.page-admissions .about-tabs__content { width: 100%; min-width: 0; }
.page-admissions .about-tab-panel {
  display: block !important;
  margin-top: 72px;
  scroll-margin-top: var(--about-scroll-offset,155px);
}
.page-admissions .about-tab-panel:first-child { margin-top: 0; }
.page-admissions .about-tab-panel > .row { margin-top: 0 !important; }
.page-admissions .about-tab-panel.section-fade-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease,transform .55s ease;
}
.page-admissions .about-tab-panel.section-fade-target.is-section-visible {
  opacity: 1;
  transform: translateY(0);
}
@media(min-width:1800px) {
  .page-admissions .about-tabs {
    --about-sidebar-fixed-enabled: 1;
    --about-sidebar-gap: 20px;
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  .page-admissions .about-tabs__sidebar {
    grid-area: 1 / 1;
    position: absolute;
    top: 0;
    z-index: 4;
    align-self: start;
    justify-self: start;
    width: 290px;
    margin: 0;
    transform: translateX(calc(-100% - 20px));
  }
  .page-admissions .about-tabs.is-sidebar-fixed .about-tabs__sidebar {
    position: fixed;
    top: var(--about-sidebar-top,0px);
    left: var(--about-sidebar-left,0px);
    transform: none;
  }
  .page-admissions .about-tabs.is-sidebar-ended .about-tabs__sidebar {
    position: absolute;
    top: auto;
    bottom: 0;
    left: auto;
    transform: translateX(calc(-100% - 20px));
  }
  .page-admissions .about-tabs__content {
    grid-area: 1 / 1;
  }
  .page-admissions .about-tabs__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .page-admissions .about-tabs__button {
    padding: 17px 2px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
    border-radius: 0;
    background: transparent;
  }
  .page-admissions .about-tabs__button:last-child { border-bottom: 0; }
  .page-admissions .about-tabs__button.is-active { border-color: var(--cs-amber); }
}
@media(max-width:991px) {
  .page-admissions .about-tabs__nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-admissions .about-tab-panel { margin-top: 54px; }
}
@media(max-width:575px) {
  .page-admissions .about-tabs { margin-top: 30px; padding-bottom: 44px; }
  .page-admissions .about-tabs__nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page-admissions .about-tab-panel.section-fade-target {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Restore the original mist/ink alternation inside the new page navigators. */
:is(.page-about,.page-admissions) main > .section:first-child > .container > .about-tabs::before {
  background: transparent !important;
}
:is(.page-about,.page-admissions) .about-tab-panel {
  position: relative;
  z-index: 0;
  isolation: isolate;
  margin-top: 0 !important;
  padding-top: 72px;
  padding-bottom: 72px;
}
:is(.page-about,.page-admissions) .about-tab-panel::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc(50% - 50vw);
  background: var(--cs-mist);
  pointer-events: none;
}
:is(.page-about,.page-admissions) .about-tab-panel:nth-child(even)::before {
  background: var(--cs-ink);
}
:is(.page-about,.page-admissions) .about-tab-panel:nth-child(even) {
  color: #fff;
}
:is(.page-about,.page-admissions) .about-tab-panel:nth-child(even) > h2,
:is(.page-about,.page-admissions) .about-tab-panel:nth-child(even) > p {
  color: #fff !important;
}
:is(.page-about,.page-admissions) .about-tab-panel .card {
  color: var(--cs-ink);
  background: #fff;
}

/* Management portraits match the Home Beyond-the-Classroom image scale. */
.page-management .management-leadership-grid {
  width: 100%;
  max-width: 598px;
  justify-content: flex-start;
}
@media(min-width:768px) {
  .page-management .management-leadership-grid > .col {
    flex: 0 0 299px;
    width: 299px;
    max-width: 299px;
  }
}
.page-management .management-leadership-grid .person-card {
  min-height: 360px;
  height: 360px !important;
  border-radius: 22px !important;
  transition: transform .35s ease,box-shadow .35s ease;
}
.page-management .management-leadership-grid .person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 42px rgba(16,42,67,.18);
}
.page-management .management-leadership-grid .person-card__photo,
.page-management .management-leadership-grid .person-card__photo img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
}
.page-management .management-leadership-grid .person-card__photo img {
  transition: transform .55s ease;
}
.page-management .management-leadership-grid .person-card:hover .person-card__photo img {
  transform: scale(1.055);
}
.page-management .management-leadership-grid .person-card__body {
  inset: 0;
  padding: 0;
}
.page-management .management-leadership-grid .person-card__role {
  position: absolute;
  top: 12px;
  right: 20px;
  max-width: calc(100% - 40px);
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--cs-amber);
  backdrop-filter: blur(6px);
  text-align: right;
}
.page-management .management-leadership-grid .person-card__name {
  position: absolute;
  right: 28px;
  bottom: 86px;
  left: 28px;
}
.page-management .management-leadership-grid .person-card__dept {
  position: absolute;
  right: 28px;
  bottom: 27px;
  left: 28px;
}
@media(max-width:767px) {
  .page-management .management-leadership-grid {
    max-width: 380px;
    margin-right: auto;
    margin-left: auto;
  }
  .page-management .management-leadership-grid > .col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}
@media(max-width:576px) {
  .page-management .management-leadership-grid .person-card {
    min-height: 360px;
    height: 360px !important;
  }
}

/* Final Events media alignment overrides. */
.page-events .event-card,
.page-events .achievement-card { padding: 0 !important; overflow: hidden; }
.page-events .event-card__media,
.page-events .event-card__media .card-media-carousel,
.page-events .achievement-card__media {
  width: 100%;
  /* margin: 0 0 18px; */
  border: 0;
  border-radius: 0;
}
/* .page-events .event-card__media { margin-bottom: 0; } */
.page-events .event-card__media .card-media-carousel > img,
.page-events .achievement-card__media > img {
  width: 100%;
  height: 190px;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.page-events .achievement-card__title {
  margin-right: 18px;
  margin-left: 18px;
  color: var(--cs-ink-soft) !important;
}
.page-events .achievement-card__text {
  margin: 0 18px 20px;
}

/* Gallery modal triggers retain the existing Gallery card design. */
.page-gallery .gallery__item[data-media-gallery] { cursor: pointer; }
.page-gallery .gallery__item[data-media-gallery]:focus-visible {
  outline: 3px solid var(--cs-amber);
  outline-offset: 4px;
}

/* Facilities: gallery images fill the card media area edge to edge. */
.page-facilities .card:has(> .card-media-carousel) {
  padding: 0 !important;
  overflow: hidden;
}
.page-facilities .card > .card-media-carousel,
.page-facilities .card > .card-media-carousel > .facility__img {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
}
.page-facilities .card > .card-media-carousel > .facility__img {
  height: 200px;
  object-fit: cover;
}
.page-facilities .card:has(> .card-media-carousel) > h2,
.page-facilities .card:has(> .card-media-carousel) > ul,
.page-facilities .card:has(> .card-media-carousel) > p,
.page-facilities .card:has(> .card-media-carousel) > .facility-badge {
  margin-right: 22px;
  margin-left: 22px;
}
.page-facilities .card:has(> .card-media-carousel) > h2,
.page-facilities .card:has(> .card-media-carousel) > .facility-badge {
  margin-top: 22px;
}
.page-facilities .card:has(> .card-media-carousel) > .facility-read-more {
  margin-right: 22px;
  margin-bottom: 22px;
  margin-left: 22px;
}
.page-facilities .card:has(> .card-media-carousel) > p:last-child,
.page-facilities .card:has(> .card-media-carousel) > ul:last-child {
  margin-bottom: 22px;
}

/* JPEG logo options must retain their original colours over the hero. */
.home-page .home-header:not(.is-sticky) .home-brand img,
.inner-page .home-header:not(.is-sticky) .home-brand img {
  filter: none !important;
  background: transparent !important;
}

/* School Life begins immediately at the start of the About content. */
.page-about #about-panel-school-life {
  padding-top: 0;
}

/* First navigated card rows begin without additional top padding. */
.page-academics #academics-programme,
.page-admissions #admission-process {
  padding-top: 0;
}

/* Events hero uses the current Annual Day photograph. */
.page-events .page-hero {
  background-image: linear-gradient(90deg,rgba(0,50,31,.86),rgba(0,50,31,.18)),
    url("../images/KE CARMEL (1)/Annual Day/AB1_4388.jpg");
}

/* Gallery hero uses the selected Annual Day photograph. */
.page-gallery .page-hero {
  background-image: linear-gradient(90deg,rgba(0,50,31,.86),rgba(0,50,31,.15)),
    url("../images/KE CARMEL (1)/Annual Day/DSC_8418.jpg");
}

/* Co-Curricular event information card includes an edge-to-edge gallery image. */
.page-events .event-information-card--media {
  padding: 0 !important;
  overflow: hidden;
}
.page-events .event-information-card--media > .card-media-carousel,
.page-events .event-information-card--media > .card-media-carousel > img {
  width: 100%;
  height: 190px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.page-events .event-information-card--media > h3,
.page-events .event-information-card--media > p {
  margin-right: 22px;
  margin-left: 22px;
}
.page-events .event-information-card--media > h3 { margin-top: 22px; }
.page-events .event-information-card--media > p:last-child { margin-bottom: 22px; }

/* Facilities primary cards: one static image, equal default size. */
.page-facilities .facility.card {
  height: 540px !important;
  min-height: 540px;
  padding: 0 !important;
  overflow: hidden;
}
.page-facilities .facility.card:has(.facility-extra.is-expanded) {
  height: auto !important;
  overflow: visible;
}
.page-facilities .facility-static-media,
.page-facilities .facility-static-media > .facility__img {
  width: 100%;
  height: 180px;
  margin: 0;
  padding: 0 !important;
  display: block;
  border: 0;
  border-radius: 0;
  object-fit: cover;
}
.page-facilities .facility.card > h2,
.page-facilities .facility.card > ul,
.page-facilities .facility.card > .facility-extra {
  margin-right: 22px;
  margin-left: 22px;
}
.page-facilities .facility.card > h2 { margin-top: 22px; }
.page-facilities .facility-extra { display: none; }
.page-facilities .facility-extra.is-expanded {
  display: block;
  margin-top: 14px;
}
.page-facilities .facility-extra > .check-list { margin-bottom: 0; }
.page-facilities .facility.card > .facility-read-more {
  margin-right: 22px;
  margin-bottom: 22px;
  margin-left: 22px;
}
@media(max-width:700px) {
  .page-facilities .facility.card {
    height: 540px !important;
    min-height: 540px;
  }
  .page-facilities .facility.card:has(.facility-extra.is-expanded) {
    height: auto !important;
  }
}

/* Facilities cards remain identical; detailed rules are presented separately. */
.page-facilities .facility.card,
.page-facilities .facility.card.h-100 {
  width: 100%;
  height: 540px !important;
  min-height: 540px !important;
  max-height: 540px !important;
  overflow: hidden;
  margin-bottom: 100px;
}
.page-facilities .facility-rules-source[hidden] { display: none !important; }
.rules-modal-open { overflow: hidden; }
.rules-modal {
  position: fixed;
  z-index: 2100;
  inset: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}
.rules-modal[hidden] { display: none !important; }
.rules-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,25,41,.78);
  backdrop-filter: blur(5px);
}
.rules-modal__dialog {
  position: relative;
  width: min(720px,100%);
  max-height: min(78vh,760px);
  overflow: hidden;
  border-radius: 22px;
  background: var(--cs-mist);
  box-shadow: 0 30px 80px rgba(7,25,41,.38);
}
.rules-modal__header {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background: var(--cs-ink);
}
.rules-modal__header p {
  margin: 0 0 3px;
  color: var(--cs-amber);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rules-modal__header h2 {
  margin: 0;
  color: #fff !important;
  font-size: 1.7rem;
}
.rules-modal__header button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  color: #fff;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
}
.rules-modal__content {
  max-height: calc(min(78vh,760px) - 104px);
  padding: 26px;
  overflow-y: auto;
  color: var(--cs-ink);
}
.rules-modal__content .check-list { margin: 0; }
.rules-modal__image {
  width: 100%;
  height: 220px;
  margin: 0 0 24px;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}
.rules-modal__image[hidden] { display: none !important; }
.page-facilities .facility.card > .facility-read-more {
  margin-bottom: 34px;
  position: relative;
  bottom: 16px;
}
@media(max-width:576px) {
  .rules-modal { padding: 12px; }
  .rules-modal__header,
  .rules-modal__content { padding: 20px; }
}

/* About narrative cards use justified paragraphs rather than checklist styling. */
.page-about .about-tabs__content p {
  padding-left: 0 !important;
  text-align: justify;
  text-justify: inter-word;
}
.page-about .about-tabs__content .card p::before {
  content: none !important;
  display: none !important;
}
/* Vision, Mission and Motto share one equal-height row. */
.page-about #about-panel-vision .current-vision-mission.row {
  align-items: stretch !important;
}
.page-about #about-panel-vision .current-vision-mission.row > .col {
  display: flex;
  align-self: stretch !important;
}
.page-about #about-panel-vision .current-vision-mission.row > .col > .card.h-100 {
  height: 100% !important;
  min-height: 100% !important;
  flex: 1 1 auto;
}

/* Academics is a full-width content flow without the section navigator. */
.page-academics .academics-content {
  width: 100%;
  margin-top: 56px;
}
.page-academics .academics-section {
  position: relative;
  isolation: isolate;
  padding: 72px 0;
}
.page-academics .academics-section::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0 calc(50% - 50vw);
  background: var(--cs-mist);
  pointer-events: none;
}
.page-academics .academics-section:nth-child(even) {
  color: #fff;
}
.page-academics .academics-section:nth-child(even)::before {
  background: var(--cs-ink);
}
.page-academics .academics-section .card {
  height: 360px !important;
  min-height: 360px;
  color: var(--cs-ink);
  background: #fff;
}
.page-academics #academics-programme {
  padding-top: 0;
}
@media(max-width:767px) {
  .page-academics .academics-content { margin-top: 30px; }
  .page-academics .academics-section { padding: 54px 0; }
  .page-academics .academics-section .card {
    height: auto !important;
    min-height: 0;
  }
}

/* One application-wide typeface. */
*,
*::before,
*::after {
  font-family: ui-sans-serif !important;
}

/* Academics: compact final cards and footer spacing. */
.page-academics #academics-support {
  padding-bottom: 40px;
}
.page-academics #academics-support .card {
  height: 270px !important;
  min-height: 270px;
}
.page-academics main > .section:first-child {
  padding-bottom: 0;
}

/* Management profiles use the Events card composition without changing card size. */
.page-management .management-leadership-grid .person-card {
  display: block !important;
  height: 360px !important;
  min-height: 360px;
  padding: 0 !important;
  overflow: hidden;
  color: var(--cs-ink);
  background: #fff !important;
}
.page-management .management-leadership-grid .person-card::after {
  content: none !important;
  display: none !important;
}
.page-management .management-leadership-grid .person-card__photo {
  position: static !important;
  display: block;
  width: 100%;
  height: 210px;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 0;
}
.page-management .management-leadership-grid .person-card__photo img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.page-management .management-leadership-grid .person-card__body {
  position: static !important;
  z-index: auto;
  inset: auto !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 150px;
  margin: 0 !important;
  padding: 16px 20px 18px;
  transform: none !important;
  background: #fff;
}
.page-management .management-leadership-grid .person-card__name,
.page-management .management-leadership-grid .person-card__role,
.page-management .management-leadership-grid .person-card__dept,
.page-management .management-leadership-grid .person-card__meta {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: var(--cs-ink);
  background: transparent;
  backdrop-filter: none;
  text-align: left;
}
.page-management .management-leadership-grid .person-card__name {
  order: 1;
  margin-bottom: 1px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
}
.page-management .management-leadership-grid .person-card__role {
  order: 2;
  margin-bottom: 2px;
  color: var(--cs-coral);
  font-size: .82rem;
  font-weight: 800;
}
.page-management .management-leadership-grid .person-card__dept {
  order: 3;
  color: var(--cs-ink-soft);
  font-size: .8rem;
  line-height: 1;
}
.page-management .management-leadership-grid .person-card__meta {
  order: 4;
}
@media(max-width:576px) {
  .page-academics #academics-support .card {
    height: auto !important;
    min-height: 0;
  }
}

/* Management profiles share the Gallery card and image treatment. */
.page-management .management-leadership-grid .person-card {
  height: 360px !important;
  min-height: 360px;
  padding: 10px 10px 0 !important;
  border: 0 !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: none;
}
.page-management .management-leadership-grid .person-card__photo {
  width: 100%;
  height: 220px;
  margin: 0 !important;
  border-radius: 13px;
}
.page-management .management-leadership-grid .person-card__photo img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  transition: transform .6s ease;
}
.page-management .management-leadership-grid .person-card:hover {
  transform: none;
  box-shadow: none;
}
.page-management .management-leadership-grid .person-card:hover .person-card__photo img {
  transform: scale(1.06);
}
.page-management .management-leadership-grid .person-card__body.card-body {
  width: 100%;
  height: 130px;
  padding: 14px 10px 16px;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  text-align: center;
}
.page-management .management-leadership-grid .person-card__name,
.page-management .management-leadership-grid .person-card__role,
.page-management .management-leadership-grid .person-card__dept {
  text-align: center;
}
@media(max-width:576px) {
  .page-management .management-leadership-grid .person-card__photo { height: 210px; }
  .page-management .management-leadership-grid .person-card__body.card-body { height: 140px; }
}

/* Facilities: balanced separation between each card group. */
.page-facilities main > .section:first-child > .container > .row:not(.page-hero) {
  margin-top: 0 !important;
  margin-bottom: 48px;
}
.page-facilities main > .section:first-child > .container > .page-hero + .row {
  margin-top: 48px !important;
}
.page-facilities main > .section:first-child > .container > .row:not(.page-hero):last-of-type {
  margin-bottom: 56px;
}
.page-facilities main > .section:first-child > .container > .facilities-secondary-row {
  margin-bottom: 48px;
}
@media(max-width:700px) {
  .page-facilities main > .section:first-child > .container > .row:not(.page-hero) {
    margin-top: 0 !important;
    margin-bottom: 36px;
  }
  .page-facilities main > .section:first-child > .container > .page-hero + .row {
    margin-top: 36px !important;
  }
  .page-facilities main > .section:first-child > .container > .row:not(.page-hero):last-of-type {
    margin-bottom: 42px;
  }
  .page-facilities main > .section:first-child > .container > .facilities-secondary-row {
    margin-bottom: 36px;
  }
}

/* Final Admissions section layout and content treatment. */
.page-admissions .admission-content-card {
  width: 100%;
}
.page-admissions .admission-content-card p {
  text-align: justify;
  text-justify: inter-word;
}
.page-admissions .admission-list {
  margin: 0;
  padding-left: 1.25rem;
}
.page-admissions .admission-list li {
  position: static;
  margin-bottom: .7rem;
  padding-left: 0;
}
.page-admissions .admission-list li::before {
  content: none !important;
  display: none !important;
}
.page-admissions #admission-help {
  margin-bottom: 0 !important;
  padding-bottom: 32px;
}
.page-admissions #admission-help .btn {
  flex: 0 0 auto;
  margin-left: auto;
}
.page-admissions main > .section:first-child {
  padding-bottom: 0;
}
@media(max-width:767px) {
  .page-admissions #admission-help .btn { align-self: flex-end; }
}

/* Admissions cards use plain text and one consistent bordered surface. */
.page-admissions .admission-content-card {
  border: 1px solid var(--cs-line);
  color: var(--cs-ink);
  background: #fff;
}
.page-admissions .admission-content-card h2,
.page-admissions .admission-content-card p,
.page-admissions .admission-content-card small {
  color: var(--cs-ink) !important;
}
.page-admissions .admission-content-card > p,
.page-admissions .admission-content-card .row p {
  padding-left: 0 !important;
}
.page-admissions .admission-content-card p::before {
  content: none !important;
  display: none !important;
}

/* Achievement cards show one clean preview; navigation remains inside the modal. */
.page-events .achievement-media-trigger {
  cursor: pointer;
}
.page-events .achievement-media-trigger::before,
.page-events .achievement-media-trigger::after {
  content: none !important;
  display: none !important;
}
.page-events .achievement-media-trigger:focus-visible {
  outline: 3px solid var(--cs-amber);
  outline-offset: -3px;
}
.media-gallery-modal__arrow[hidden] {
  display: none !important;
}

/* Contact address is an independent full-width card. */
.page-contact .contact-address-panel {
  width: 100%;
  margin-bottom: 28px;
  padding: 44px 48px;
}
@media(max-width:700px) {
  .page-contact .contact-address-panel {
    margin-bottom: 22px;
    padding: 28px 24px;
  }
}

/* Contact details mirror the two-card image row above. */
.page-contact .contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  margin-bottom: 28px;
}
.page-contact .contact-card-grid:last-of-type {
  margin-bottom: 0;
}
.page-contact .contact-card-grid .contact-detail-card,
.page-contact .contact-card-grid .contact-address-panel {
  width: 100%;
  height: 260px;
  margin: 0;
  padding: 44px 48px;
}
@media(max-width:700px) {
  .page-contact .contact-card-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 22px;
  }
  .page-contact .contact-card-grid .contact-detail-card,
  .page-contact .contact-card-grid .contact-address-panel {
    height: auto;
    min-height: 280px;
    padding: 28px 24px;
  }
}

/* Address text and map action share one line where space permits. */
.page-contact .contact-address-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 24px;
}
.page-contact .contact-address-panel > h2 {
  grid-column: 1 / -1;
}
.page-contact .contact-address-panel .contact-address {
  margin: 0;
}
.page-contact .contact-address-panel .contact-map-action {
  justify-self: end;
}
.page-contact .contact-address-panel .contact-map-action .btn {
  margin-top: 0 !important;
  white-space: nowrap;
}
@media(max-width:575px) {
  .page-contact .contact-address-panel {
    display: block;
  }
  .page-contact .contact-address-panel .contact-map-action {
    margin-top: 20px;
  }
}

/* Shared vertical rhythm sourced from the Home page. */
:root {
  --site-section-space: 112px;
}
@media(max-width:700px) {
  :root { --site-section-space: 78px; }
}

/* Inner-page heroes meet the first section exactly as the Home hero does. */
.inner-page .page-hero {
  margin-bottom: 0 !important;
}
.inner-page main > .section:first-child {
  padding-bottom: 0 !important;
}

/* About and Admissions: every navigated panel is one complete section. */
:is(.page-about,.page-admissions) .about-tabs {
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}
:is(.page-about,.page-admissions) .about-tab-panel,
.page-about .about-tab-panel[hidden] {
  margin-top: 0 !important;
  padding-top: var(--site-section-space) !important;
  padding-bottom: var(--site-section-space) !important;
}
.page-about .about-tab-panel > :first-child {
  margin-top: 0 !important;
}
.page-about #about-panel-school-life,
.page-admissions #admission-process,
.page-admissions #admission-help {
  padding-top: var(--site-section-space) !important;
  padding-bottom: var(--site-section-space) !important;
}

/* Academics, Management and Events expose explicit section wrappers. */
.page-academics .academics-content {
  margin-top: 0 !important;
}
.page-academics .academics-section,
.page-management .management-band,
.page-events .events-band {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: var(--site-section-space) !important;
  padding-bottom: var(--site-section-space) !important;
}
.page-academics #academics-programme,
.page-academics #academics-support {
  padding-top: var(--site-section-space) !important;
  padding-bottom: var(--site-section-space) !important;
}

/* Facilities card groups use the same gap and final footer clearance. */
.page-facilities main > .section:first-child > .container > .row:not(.page-hero) {
  margin-top: var(--site-section-space) !important;
  margin-bottom: 0 !important;
}
.page-facilities main > .section:first-child > .container > .row:not(.page-hero):last-of-type {
  margin-bottom: var(--site-section-space) !important;
}

/* Single-content pages receive one Home-sized section above the footer. */
.page-gallery .gallery {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: var(--site-section-space);
  padding-bottom: var(--site-section-space);
}
.page-contact .contact-overview {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: var(--site-section-space);
  padding-bottom: var(--site-section-space);
}
.page-announcements main > .section:first-child > .container > .section__head {
  margin-top: 0 !important;
  padding-top: var(--site-section-space);
}
.page-announcements main > .section:first-child > .container > .section__head + .row {
  margin-bottom: 0 !important;
  padding-bottom: var(--site-section-space);
}

/* First inner-page content matches the Home hero-to-Notice spacing. */
:root {
  --site-first-section-space: 78px;
}
:is(.page-about,.page-admissions) .about-tabs__content > .about-tab-panel:first-child {
  padding-top: var(--site-first-section-space) !important;
}
.page-about .about-tabs__content > .about-tab-panel:first-child > .section {
  padding-top: 0 !important;
}
.page-academics .academics-content > .academics-section:first-child,
.page-management .page-hero + .management-band,
.page-events .page-hero + .events-band {
  padding-top: var(--site-first-section-space) !important;
}
.page-academics .academics-content > .academics-section:first-child > .row:first-child {
  margin-top: 0 !important;
}
.page-facilities main > .section:first-child > .container > .page-hero + .row {
  margin-top: var(--site-first-section-space) !important;
}
.page-gallery .page-hero + .gallery,
.page-contact .page-hero + .contact-overview,
.page-announcements .page-hero + .section__head {
  padding-top: var(--site-first-section-space) !important;
}

/* Home: St. Chavara introduction and branch cards. */
/* .home-page .home-slide--chavara > img {
  object-position: 72% center;
} */
.home-page .home-slide--chavara .home-slide__content {
  max-width: 1180px;
}
.home-page .home-slide--chavara .home-slide__content h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.8rem,5vw,5.2rem);
}
.home-page .home-slide--chavara .home-slide__description {
  max-width: 720px;
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(.94rem,1.25vw,1.08rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
}
.home-page .branches-section .facility-home-grid {
  gap: 16px;
}
.home-page .branches-section__controls {
  width: min(1180px,100%);
  margin-right: auto;
  margin-left: auto;
  justify-content: flex-start !important;
}

/* Continue the Home mist/ink sequence after the new Branches section. */
.home-page main > .branches-section + .faq-section {
  color: #fff;
  background: var(--cs-ink) !important;
}
.home-page main > .branches-section + .faq-section .section-heading h2,
.home-page main > .branches-section + .faq-section .section-heading h2 em {
  color: #fff !important;
}
.home-page main > .branches-section + .faq-section .section-heading p {
  color: rgba(255,255,255,.8) !important;
}

/* Shared mobile-phone symbol for header and footer social groups. */
.elements-social a[href^="tel:"] {
  font-size: 0 !important;
}
.elements-social a[href^="tel:"]::before {
  content: "";
  display: block;
  width: 11px;
  height: 18px;
  border: 1.7px solid currentColor;
  border-radius: 2.5px;
  box-shadow: inset 0 -3px 0 -2px currentColor;
}

/* Home admission announcement. */
.admission-popup {
  width: min(1040px,calc(100% - 36px));
  max-width: none;
  max-height: min(88dvh,760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: var(--cs-ink);
  background: #fff;
  box-shadow: 0 28px 90px rgba(5,25,43,.36);
}
.admission-popup::backdrop {
  background: rgba(5,25,43,.72);
  backdrop-filter: blur(5px);
}
.admission-popup__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px,42%) minmax(0,58%);
  min-height: 610px;
}
.admission-popup__media {
  min-width: 0;
  padding: 16px;
  background: var(--cs-mist);
}
.admission-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 17px;
}
.admission-popup__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 58px 58px 48px;
}
.admission-popup__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--cs-ink-soft);
  background: rgba(242,247,250,.94);
  font: 400 2rem/1 ui-sans-serif,system-ui,sans-serif;
  cursor: pointer;
  transition: color .2s ease,background-color .2s ease,transform .2s ease;
}
.admission-popup__close:hover,
.admission-popup__close:focus-visible {
  color: #fff;
  background: var(--cs-ink-soft);
  transform: rotate(4deg);
}
.admission-popup__badge {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--cs-ink);
  background: rgba(244,185,66,.22);
  font-size: .84rem;
  font-weight: 700;
}
.admission-popup__content h2 {
  margin: 0 0 16px;
  color: var(--cs-ink-soft) !important;
  font-size: clamp(1.9rem,3vw,2.65rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
}
.admission-popup__intro {
  margin: 0 0 27px;
  color: rgba(16,42,67,.8);
  font-size: .98rem;
  line-height: 1.65;
}
.admission-popup__content h3 {
  margin: 0 0 14px;
  color: var(--cs-ink-soft);
  font-size: 1.25rem;
  font-weight: 700;
}
.admission-popup__highlights {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.admission-popup__highlights li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(16,42,67,.12);
  color: rgba(16,42,67,.88);
  font-size: .94rem;
  line-height: 1.45;
}
.admission-popup__highlights li:last-child {
  border-bottom: 0;
}
.admission-popup__apply {
  align-self: flex-start;
  border-radius: 999px;
}

/* Events: horizontal arrangement for Recent Events only. */
.page-events .recent-events-viewport {
  width: 100%;
  padding: 10px 0 18px;
  overflow: hidden;
}
.page-events .recent-events-track.row {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  margin: 0;
  transition: transform .45s ease;
}
.page-events .recent-events-track.row > .col {
  width: calc((100% - 32px)/3);
  min-width: calc((100% - 32px)/3);
  max-width: calc((100% - 32px)/3);
  padding: 0;
  flex: 0 0 calc((100% - 32px)/3);
}
.page-events .recent-events-controls {
  width: 100%;
  margin: 18px 0 0;
  justify-content: flex-start;
}

/* Compact event-information summaries; full copy opens below the image in the shared modal. */
.page-events .event-information-source[hidden] {
  display: none !important;
}
.page-events .event-information-card--compact > .event-information-summary {
  min-height: 0;
  margin-bottom: 20px;
  padding-left: 0;
}
.page-events .event-information-card--compact > .event-information-summary::before {
  display: none;
  content: none;
}
.page-events .event-information-read-more {
  align-self: flex-start;
  margin: auto 22px 24px;
}
.page-events .recent-events-track .event-card__body {
  height: 100%;
}
.page-events .recent-events-track .event-card__body > .event-information-read-more {
  margin: auto 0 0;
}

/* Our Team directory: the same image-over-content card language with replaceable placeholders. */
.page-management .team-directory-grid {
  align-items: stretch;
}
.page-management .team-directory-grid > .col {
  display: flex;
}
.page-management .team-directory-card {
  display: block;
  width: 100%;
  height: 150px !important;
  min-height: 150px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 14px 35px rgba(16,42,67,.13);
  content-visibility: auto;
  contain-intrinsic-size: auto 150px;
}
.page-management .team-directory-card .person-card__photo {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 13px;
}
.page-management .team-placeholder {
  display: none !important;
}
.page-management .team-directory-card .person-card__body.card-body {
  position: static;
  display: flex;
  width: 100%;
  height: 150px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px 16px;
  color: var(--cs-ink);
  background: transparent;
  text-align: center;
}
.page-management .team-directory-card .person-card__name,
.page-management .team-directory-card .person-card__role,
.page-management .team-directory-card .person-card__dept {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--cs-ink);
  background: transparent;
  text-align: center;
}
.page-management .team-directory-card .person-card__name {
  margin-bottom: 5px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.25;
}
.page-management .team-directory-card .person-card__role {
  color: var(--cs-coral);
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}
.page-management .team-directory-card .person-card__dept {
  margin-top: 4px;
  color: var(--cs-ink-soft);
  font-size: .78rem;
  line-height: 1.35;
}
.page-management .team-teachers-section .team-directory-card {
  height: 130px !important;
  min-height: 130px;
  contain-intrinsic-size: auto 130px;
}
.page-management .team-teachers-section .team-directory-card .person-card__body.card-body {
  height: 130px;
  padding: 8px 7px;
}

/* Team directory cards switch to the established image-over-content design when a real portrait exists. */
.page-management .team-directory-card.person-card--with-photo,
.page-management .team-teachers-section .team-directory-card.person-card--with-photo {
  height: 360px !important;
  min-height: 360px;
  padding: 10px 10px 0 !important;
  overflow: hidden;
  contain-intrinsic-size: auto 360px;
}
.page-management .team-directory-card.person-card--with-photo .person-card__photo {
  position: static;
  display: block;
  width: 100%;
  height: 220px;
  margin: 0;
  overflow: hidden;
  border-radius: 13px;
}
.page-management .team-directory-card.person-card--with-photo .person-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}
.page-management .team-directory-card.person-card--with-photo:hover .person-card__photo img {
  transform: scale(1.06);
}
.page-management .team-directory-card.person-card--with-photo .person-card__body.card-body,
.page-management .team-teachers-section .team-directory-card.person-card--with-photo .person-card__body.card-body {
  height: 130px;
  padding: 12px 8px 14px;
}

/* Recent Events use the same one-third desktop card width as the Gallery page. */
@media(min-width:901px) {
  .page-events:not(.page-all-events) .recent-events-grid.row > .col {
    width: 33.333333% !important;
    max-width: 33.333333% !important;
    flex: 0 0 auto !important;
  }
}

/* Home-only single-column admission announcement. */
.home-page .admission-popup {
  width: min(680px, calc(100% - 36px));
  max-height: min(90dvh, 720px);
  overflow-y: auto;
}
.home-page .admission-popup__layout {
  display: block;
  min-height: 0;
}
.home-page .admission-popup__content {
  min-height: 0;
  padding: 58px 64px 52px;
}

/* First hero: right-aligned portrait with the same layered treatment as other slides. */
.home-page .home-slide--chavara {
  background: var(--cs-ink);
}
.home-page .home-slide--chavara > img {
  position: absolute;
  top: 0;
  right: -5%;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: none;
}
.home-page .home-slide--chavara .home-slide__shade {
  z-index: 1;
  background: linear-gradient(90deg, #102a43 0%, rgba(16,42,67,.88) 30%, rgba(16,42,67,.34) 54%, transparent 72%),
    linear-gradient(0deg, rgba(9,31,50,.28), transparent 48%);
  backdrop-filter: none;
}
.home-page .home-slide--chavara .home-slide__content {
  z-index: 2;
  display: flex;
  max-width: 1180px;
  padding-top: 130px;
}

@media(max-width: 767px) {
  .home-page .admission-popup__content {
    padding: 54px 24px 32px;
  }
  .home-page .home-slide--chavara > img {
    width: 100%;
    right: 0;
    object-position: 62% center;
  }
  .home-page .home-slide--chavara .home-slide__shade {
    background: linear-gradient(90deg,rgba(9,31,50,.82) 0%,rgba(9,31,50,.52) 52%,rgba(9,31,50,.08) 100%),
      linear-gradient(0deg,rgba(9,31,50,.3),transparent 58%);
  }
  .home-page .home-slide--chavara .home-slide__content {
    justify-content: center;
    padding: 110px 24px 42px;
  }
  .home-page .home-slide--chavara .home-slide__content h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .home-page .home-slide--chavara .home-slide__description {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: .82rem;
    line-height: 1.45;
  }
}
@media(max-width:576px) {
  .page-management .team-directory-card {
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
  }
}

/* Static Facilities images retain their visual treatment without suggesting interaction. */
.page-facilities .card-media-static {
  cursor: default;
}
.page-facilities .card-media-static:focus {
  outline: 0;
}

/* Stories controls are needed only for the single-card mobile track. */
.home-page .stories-mobile-controls {
  display: none;
}

@media(max-width:700px) {
  /* Keep all hero captions below the important upper/central image area. */
  .home-page .home-slide__content,
  .home-page .home-slide--chavara .home-slide__content {
    justify-content: flex-end;
    padding-top: 150px;
    padding-bottom: 42px;
  }

  .home-page .stories-mobile-controls {
    display: flex;
    gap: 12px;
    padding: 0 20px;
  }

  /* Leadership cards stack naturally: complete image first, content immediately below. */
  .page-management .management-leadership-grid .person-card {
    height: auto !important;
    min-height: 0;
  }
  .page-management .management-leadership-grid .person-card__photo {
    position: static !important;
    height: 300px;
    flex: 0 0 300px;
    transform: none !important;
    background: #fff;
  }
  .page-management .management-leadership-grid .person-card__photo img {
    object-fit: contain;
    object-position: center;
  }
  .page-management .management-leadership-grid .person-card__body.card-body {
    position: static !important;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 14px 12px 16px;
    transform: none !important;
  }
}
.rules-modal__content [data-rules-content] p {
  color: var(--cs-ink);
  line-height: 1.7;
  text-align: justify;
}
.rules-modal__content [data-rules-content] p:last-child {
  margin-bottom: 0;
}
@media(min-width:701px) and (max-width:1000px) {
  .page-events .recent-events-track.row > .col {
    width: calc((100% - 16px)/2);
    min-width: calc((100% - 16px)/2);
    max-width: calc((100% - 16px)/2);
    flex-basis: calc((100% - 16px)/2);
  }
}
@media(max-width:700px) {
  .page-events .recent-events-track.row > .col {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media(max-width:767px) {
  .admission-popup {
    width: min(94%,560px);
    max-height: 90dvh;
    overflow-y: auto;
    border-radius: 18px;
  }
  .admission-popup__layout {
    display: block;
    min-height: 0;
  }
  .admission-popup__media {
    height: clamp(210px,43vh,340px);
    padding: 12px;
  }
  .admission-popup__media img {
    object-position: center 18%;
    border-radius: 12px;
  }
  .admission-popup__content {
    padding: 30px 24px 32px;
  }
  .admission-popup__close {
    position: fixed;
    top: max(7vh,18px);
    right: max(5vw,18px);
  }
  .admission-popup__badge {
    margin-bottom: 16px;
  }
  .admission-popup__intro {
    margin-bottom: 22px;
  }
  .admission-popup__highlights {
    margin-bottom: 24px;
  }
}
@media(max-width:700px) {
  .home-page .home-slide--chavara > img {
    object-position: 62% center;
  }
  .home-page .home-slide--chavara .home-slide__shade {
    background: linear-gradient(90deg,rgba(9,31,50,.82) 0%,rgba(9,31,50,.52) 52%,rgba(9,31,50,.08) 100%),
      linear-gradient(0deg,rgba(9,31,50,.3),transparent 58%);
  }
  .home-page .home-slide--chavara .home-slide__content h1 {
    font-size: clamp(2.25rem,10vw,3.25rem);
  }
  .home-page .home-slide--chavara .home-slide__description {
    max-width: 94%;
    font-size: .88rem;
    line-height: 1.55;
  }
}

/* Our Team: fluid photo cards at every viewport width. */
.page-management .management-leadership-grid .person-card,
.page-management .team-directory-card.person-card--with-photo,
.page-management .team-teachers-section .team-directory-card.person-card--with-photo {
  display: grid !important;
  grid-template-rows: auto auto;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-width: 0;
  min-height: 0 !important;
  padding: clamp(6px, .65vw, 10px) !important;
  overflow: hidden;
}

.page-management .management-leadership-grid .person-card__photo,
.page-management .team-directory-card.person-card--with-photo .person-card__photo,
.page-management .team-teachers-section .team-directory-card.person-card--with-photo .person-card__photo {
  position: static !important;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1;
  flex: none;
  margin: 0;
  overflow: hidden;
  transform: none !important;
  background: #fff;
}

.page-management .management-leadership-grid .person-card__photo img,
.page-management .team-directory-card.person-card--with-photo .person-card__photo img,
.page-management .team-teachers-section .team-directory-card.person-card--with-photo .person-card__photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.page-management .management-leadership-grid .person-card__body.card-body,
.page-management .team-directory-card.person-card--with-photo .person-card__body,
.page-management .team-teachers-section .team-directory-card.person-card--with-photo .person-card__body {
  position: static !important;
  align-self: stretch;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(8px, 1vw, 12px) clamp(8px, 1.15vw, 14px) clamp(10px, 1.2vw, 14px) !important;
  transform: none !important;
}

.page-management .team-directory-card.person-card--with-photo .person-card__name,
.page-management .team-directory-card.person-card--with-photo .person-card__role,
.page-management .management-leadership-grid .person-card__name,
.page-management .management-leadership-grid .person-card__role {
  margin-top: 0;
  margin-bottom: clamp(2px, .4vw, 5px);
}
