:root {
  --brand-blue-dark: #1d1f68;
  --brand-blue: #2e3192;
  --brand-blue-mid: #4347ad;
  --brand-maroon: #7d1416;
  --brand-maroon-light: #982029;
  --brand-green-dark: #08783d;
  --brand-green-soft: #cdeedb;
  --brand-green: #0c9b4d;
  --brand-red: #d12c39;
  --ink: #24223e;
  --muted: #5f6073;
  --cream: #fbf7f7;
  --mist: #f1f1f8;
  --white: #ffffff;
  --border: #dbdceb;
  --shadow-sm: 0 10px 30px rgba(30, 32, 110, 0.08);
  --shadow-lg: 0 24px 65px rgba(30, 32, 110, 0.18);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --content: 74rem;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: var(--brand-blue-mid);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-maroon);
}

:focus-visible {
  outline: 3px solid var(--brand-green-dark);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--brand-blue-dark);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 49rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-sm {
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

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

.section-mist {
  background: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  color: var(--brand-maroon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 0.22rem;
  background: var(--brand-green-dark);
  border-radius: 999px;
  content: "";
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brand-blue-dark);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.75rem, 7vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0;
}

.lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading.center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.topbar {
  color: rgba(255, 255, 255, 0.88);
  background: var(--brand-blue-dark);
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar p {
  font-weight: 700;
  letter-spacing: 0.025em;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

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

.topbar a:hover {
  color: var(--brand-green-soft);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(30, 32, 110, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 24px rgba(30, 32, 110, 0.06);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  min-height: 5.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 13rem;
  align-items: center;
  gap: 0.9rem;
  color: var(--brand-blue-dark);
  text-decoration: none;
}

.brand:hover {
  color: var(--brand-blue-dark);
}

.brand-logo {
  width: 5rem;
  height: 4.4rem;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  color: var(--brand-blue-dark);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-copy small {
  margin-top: 0.3rem;
  color: var(--brand-maroon);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  color: var(--brand-blue-dark);
  background: var(--white);
  border-radius: 0.75rem;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.3rem auto;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.35vw, 1.2rem);
}

.site-nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.68rem;
  align-items: center;
  color: var(--ink);
  border-radius: 0.55rem;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-maroon);
  background: #f9f0f3;
}

.site-nav .nav-cta {
  padding-inline: 1rem;
  color: var(--white);
  background: var(--brand-maroon);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: var(--brand-green-dark);
}

.site-nav .has-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.68rem;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"],
.has-dropdown.is-active > .nav-dropdown-toggle {
  color: var(--brand-maroon);
  background: #f9f0f3;
}

.nav-chevron {
  font-size: 0.7rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  min-width: 14rem;
  margin: 0;
  padding: 0.75rem 0.4rem 0.4rem;
  gap: 0.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  list-style: none;
  z-index: 50;
}

.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown {
  display: flex;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  min-height: auto;
  padding: 0.6rem 0.75rem;
  color: var(--ink);
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--brand-maroon);
  background: #f9f0f3;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  min-height: 3.2rem;
  padding: 0.78rem 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 2px solid transparent;
  border-radius: 0.7rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--brand-green-dark);
}

.btn-primary:hover {
  color: var(--white);
  background: var(--brand-maroon-light);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(30, 32, 110, 0.35);
}

.btn-secondary:hover {
  color: var(--brand-blue-dark);
  background: var(--white);
}

.btn-dark {
  color: var(--white);
  background: var(--brand-blue);
}

.btn-dark:hover {
  color: var(--white);
  background: var(--brand-green-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-maroon);
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(0.3rem);
}

.hero {
  position: relative;
  min-height: min(47rem, calc(100vh - 8rem));
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue-dark);
}

.hero-media,
.hero-media img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 38%;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30, 32, 110, 0.95) 0%, rgba(30, 32, 110, 0.75) 44%, rgba(30, 32, 110, 0.2) 75%),
    linear-gradient(0deg, rgba(30, 32, 110, 0.35), transparent 45%);
  content: "";
}

.hero-inner {
  display: grid;
  min-height: inherit;
  padding-block: clamp(5rem, 10vw, 8rem);
  align-content: center;
}

.hero .eyebrow {
  color: var(--brand-green-soft);
}

.hero h1,
.hero .lead {
  color: var(--white);
}

.hero .lead {
  max-width: 38rem;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero .btn-row {
  margin-top: 2rem;
}

.hero-note {
  display: flex;
  margin-top: 2.2rem;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-note::before {
  width: 0.65rem;
  height: 0.65rem;
  background: var(--brand-green-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem rgba(12, 155, 77, 0.2);
  content: "";
}

.page-hero {
  position: relative;
  min-height: 28rem;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue-dark);
}

.page-hero-media,
.page-hero-media img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-media img {
  object-fit: cover;
}

.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 32, 110, 0.96), rgba(30, 32, 110, 0.68) 58%, rgba(30, 32, 110, 0.28));
  content: "";
}

.page-hero-inner {
  display: grid;
  min-height: 28rem;
  padding-block: 4rem;
  align-content: end;
}

.page-hero h1 {
  max-width: 15ch;
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 4.7rem);
}

.page-hero .eyebrow {
  color: var(--brand-green-soft);
}

.page-hero .lead {
  max-width: 38rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb {
  display: flex;
  margin: 0 0 1.5rem;
  padding: 0;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 700;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 0.55rem;
  content: "/";
}

.breadcrumb a {
  color: var(--white);
}

.quick-facts {
  position: relative;
  z-index: 3;
  margin-top: -2rem;
}

.quick-facts-inner {
  display: grid;
  padding: 1.15rem;
  grid-template-columns: repeat(4, 1fr);
  color: var(--white);
  background: var(--brand-maroon);
  border: 5px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.quick-fact {
  display: grid;
  min-height: 5.25rem;
  padding: 0.75rem 1.25rem;
  align-content: center;
  gap: 0.1rem;
}

.quick-fact + .quick-fact {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.quick-fact strong {
  color: var(--brand-green-soft);
  font-size: 1.1rem;
}

.quick-fact span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.87rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.split {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.split.reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.split-copy {
  display: grid;
  gap: 1.25rem;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg) var(--radius-lg) 0.4rem var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.split-media::after {
  position: absolute;
  z-index: -1;
  right: -1rem;
  bottom: -1rem;
  width: 45%;
  height: 45%;
  background: var(--brand-green-dark);
  border-radius: var(--radius-md);
  content: "";
}

.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.card p,
.level-card p,
.media-card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.card .text-link,
.level-card .text-link,
.media-card .text-link {
  margin-top: 1.1rem;
}

.number-badge {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  place-items: center;
  color: var(--white);
  background: var(--brand-maroon);
  border-radius: 0.75rem;
  font-weight: 900;
}

.statement-card,
.value-card,
.club-card {
  border-top: 5px solid var(--brand-maroon);
}

.motto-callout {
  display: flex;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--white);
  background: var(--brand-blue-dark);
  border-radius: var(--radius-md);
  text-align: center;
}

.motto-callout span {
  color: var(--brand-green-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.motto-callout strong {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.values-grid .card,
.club-card {
  height: 100%;
}

.subject-list {
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
}

.subject-list li {
  padding: 0.7rem 1rem;
  color: var(--brand-blue-dark);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 800;
}

.academic-facts {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.fact-card {
  text-align: center;
}

.fact-card > strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--brand-maroon);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.fee-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border-top: 5px solid var(--brand-maroon);
}

.fee-card .eyebrow,
.fee-card p {
  margin-top: 0;
}

.fee-amount {
  display: grid;
  gap: 0.25rem;
}

.fee-amount strong,
.fee-list strong {
  color: var(--brand-blue-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.fee-amount span,
.fee-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.fee-list {
  display: grid;
  margin: 0;
  gap: 1rem;
}

.fee-list div {
  display: grid;
  gap: 0.3rem;
}

.fee-list div + div {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.fee-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.fee-list dd {
  display: grid;
  margin: 0;
  gap: 0.25rem;
}

.fees-notice {
  margin-top: 1.5rem;
}

.level-card {
  position: relative;
  min-height: 31rem;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.level-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.level-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 32, 110, 0.98), rgba(30, 32, 110, 0.08) 80%);
  content: "";
}

.level-card-content {
  display: grid;
  min-height: inherit;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  align-content: end;
}

.level-card h3,
.level-card p,
.level-card .text-link {
  color: var(--white);
}

.level-tag {
  justify-self: start;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  color: var(--white);
  background: var(--brand-green-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.media-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.media-card-content {
  padding: 1.35rem;
}

.feature-list,
.check-list,
.contact-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 1rem;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  padding-left: 2rem;
}

.feature-list li::before,
.check-list li::before {
  position: absolute;
  top: 0.15rem;
  left: 0;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: var(--white);
  background: var(--brand-green);
  border-radius: 50%;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.notice {
  padding: 1.25rem 1.35rem;
  color: var(--brand-blue-dark);
  background: #e8f7ee;
  border-left: 5px solid var(--brand-green-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue);
}

.cta-band::before {
  position: absolute;
  top: -8rem;
  right: -7rem;
  width: 23rem;
  height: 23rem;
  border: 4rem solid rgba(12, 155, 77, 0.13);
  border-radius: 50%;
  content: "";
}

.cta-inner {
  position: relative;
  display: flex;
  padding-block: clamp(3rem, 6vw, 5rem);
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-copy {
  display: grid;
  max-width: 43rem;
  gap: 0.8rem;
}

.cta-copy h2,
.cta-copy p {
  color: var(--white);
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.8);
}

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

.gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.gallery-item a {
  display: block;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-item a:hover img {
  transform: scale(1.025);
}

.gallery-item figcaption {
  display: grid;
  padding: 1rem 1.1rem 1.15rem;
  gap: 0.25rem;
}

.gallery-item strong {
  color: var(--brand-blue-dark);
}

.gallery-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card {
  display: grid;
  gap: 0.6rem;
}

.portal-card {
  display: grid;
  min-height: 19rem;
  align-content: start;
  gap: 0.75rem;
  border-top: 5px solid var(--brand-maroon);
}

.portal-card .portal-symbol {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.5rem;
  place-items: center;
  color: var(--white);
  background: var(--brand-blue);
  border-radius: 0.9rem;
  font-weight: 900;
}

.portal-card p {
  color: var(--muted);
}

.portal-card .btn {
  margin-top: auto;
}

.contact-card .contact-label {
  color: var(--brand-maroon);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card a,
.contact-card address {
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.contact-card .contact-detail {
  margin-top: 0;
  color: var(--brand-blue-dark);
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-card a:hover {
  color: var(--brand-maroon);
}

.contact-panel {
  display: grid;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  gap: 1.4rem;
  color: var(--white);
  background: var(--brand-maroon);
  border-radius: var(--radius-lg);
}

.contact-panel h2,
.contact-panel a,
.contact-panel address {
  color: var(--white);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-panel .contact-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-panel .contact-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-panel .contact-list span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--brand-green-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel .contact-list a,
.contact-panel .contact-list address {
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--brand-blue-dark);
}

.footer-grid {
  display: grid;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  gap: 2.5rem;
  grid-template-columns: 1.4fr 0.8fr 1fr;
}

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

.site-footer .brand-copy strong {
  color: var(--white);
}

.site-footer .brand-copy small {
  color: var(--brand-green-soft);
}

.site-footer .brand-logo {
  border-radius: 0.65rem;
}

.footer-intro {
  display: grid;
  max-width: 28rem;
  gap: 1rem;
}

.footer-heading {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.65rem;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand-green-soft);
}

.footer-contact address {
  font-style: normal;
}

.footer-bottom {
  display: flex;
  padding-block: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  background: #08783d;
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(30, 32, 110, 0.3);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-float:hover {
  color: var(--white);
  background: var(--brand-maroon);
}

.whatsapp-float::before {
  content: "●";
  font-size: 0.8rem;
}

.empty-state {
  display: grid;
  min-height: 55vh;
  place-items: center;
  text-align: center;
}

.empty-state-inner {
  display: grid;
  max-width: 38rem;
  justify-items: center;
  gap: 1rem;
}

.empty-state .error-code {
  color: var(--brand-maroon);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

@media (max-width: 70rem) {
  .site-nav a {
    padding-inline: 0.45rem;
    font-size: 0.83rem;
  }

  .site-nav .nav-cta {
    display: none;
  }
}

@media (max-width: 56rem) {
  .topbar-inner {
    justify-content: center;
  }

  .topbar-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: calc(2.6rem + 5.4rem);
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 1rem;
    align-items: stretch;
    overflow-y: auto;
    background: rgba(30, 32, 110, 0.98);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav > ul {
    display: grid;
    align-items: stretch;
  }

  .site-nav a {
    min-height: 3.4rem;
    padding: 0.9rem 1rem;
    color: var(--white);
    font-size: 1rem;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--white);
    background: var(--brand-green-dark);
  }

  .site-nav .nav-cta {
    display: inline-flex;
    margin-top: 0.8rem;
    justify-content: center;
    background: var(--brand-maroon-light);
  }

  .nav-dropdown-toggle {
    width: 100%;
    min-height: 3.4rem;
    padding: 0.9rem 1rem;
    justify-content: space-between;
    color: var(--white);
    font-size: 1rem;
    text-align: left;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle[aria-expanded="true"],
  .has-dropdown.is-active > .nav-dropdown-toggle {
    color: var(--white);
    background: var(--brand-green-dark);
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.25rem 0 0.5rem;
    padding: 0.25rem 0.4rem;
    background: rgba(0, 0, 0, 0.18);
    border: 0;
    box-shadow: none;
    border-radius: 0.55rem;
  }

  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown {
    display: flex;
  }

  .nav-dropdown a {
    padding: 0.75rem 1rem;
    color: var(--white);
    font-size: 0.95rem;
    white-space: normal;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a[aria-current="page"] {
    color: var(--white);
    background: var(--brand-green-dark);
  }

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

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

  .quick-fact:nth-child(odd) {
    border-left: 0;
  }

  .quick-fact:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
  }

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

  .split.reverse .split-media {
    order: -1;
  }

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

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

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .container {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand-copy strong {
    font-size: 1.25rem;
  }

  .brand-copy small {
    font-size: 0.58rem;
  }

  .brand-logo {
    width: 4rem;
    height: 3.4rem;
  }

  .hero {
    min-height: 41rem;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(30, 32, 110, 0.93), rgba(30, 32, 110, 0.62));
  }

  .hero-media img {
    object-position: 58% center;
  }

  .quick-facts {
    margin-top: 0;
    background: var(--brand-maroon);
  }

  .quick-facts .container {
    width: 100%;
  }

  .quick-facts-inner {
    padding: 0.65rem;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .quick-fact {
    min-height: 4.6rem;
    padding-inline: 0.7rem;
  }

  .quick-fact + .quick-fact {
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 0;
  }

  .quick-fact strong {
    font-size: 0.91rem;
  }

  .quick-fact span {
    font-size: 0.73rem;
  }

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

  .level-card {
    min-height: 27rem;
  }

  .footer-intro {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .whatsapp-float {
    width: 3.5rem;
    padding-inline: 0;
    justify-content: center;
  }

  .whatsapp-float::before {
    content: "WA";
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- HSMS integration: hero slider ---------- */

.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slider .hero-slide.active {
  opacity: 1;
}

.hero-slider .hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero-content {
  transition: opacity 400ms ease;
}

.hero-content.fade-out {
  opacity: 0;
}

/* ---------- HSMS integration: footer social ---------- */

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-social a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.footer-social svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- HSMS integration: events ---------- */

.events-grid {
  align-items: stretch;
}

.event-card {
  display: flex;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
}

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

.event-card-body {
  display: grid;
  padding: clamp(1.4rem, 3vw, 2rem);
  gap: 0.75rem;
}

.event-card-body p {
  margin: 0;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand-maroon);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-date::before {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--brand-green-dark);
  border-radius: 50%;
  content: "";
}

.event-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.6rem;
  color: var(--white);
  background: var(--brand-green-dark);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

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

.event-description p {
  margin-bottom: 0.6rem;
}

.event-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.event-gallery a {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
}

.event-gallery img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  transition: transform 200ms ease;
}

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

.hsms-status {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- HSMS integration: calendar ---------- */

.today-banner {
  display: grid;
  margin-bottom: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  gap: 0.6rem;
  color: var(--white);
  background: linear-gradient(120deg, var(--brand-blue-dark), var(--brand-blue-mid));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.today-banner .eyebrow {
  color: var(--brand-green-soft);
}

.today-banner .today-date {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 800;
}

.today-banner .today-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.today-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.today-pill {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  color: var(--white);
  background: var(--brand-green-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.today-pill.is-break {
  color: var(--brand-blue-dark);
  background: var(--brand-green-soft);
}

.today-pill.is-holiday {
  background: var(--brand-maroon);
}

.today-pill.is-quiet {
  color: var(--brand-blue-dark);
  background: var(--mist);
}

.calendar-block + .calendar-block {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.calendar-block h3 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
}

.term-card {
  display: grid;
  gap: 0.9rem;
  border-top: 5px solid var(--brand-blue);
}

.term-card.is-current {
  border-top-color: var(--brand-green-dark);
}

.term-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.term-card h4 {
  margin: 0;
  font-size: 1.15rem;
}

.term-badge {
  padding: 0.2rem 0.65rem;
  color: var(--white);
  background: var(--brand-green-dark);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term-dates {
  display: grid;
  margin: 0;
  gap: 0.6rem 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.term-dates div {
  display: grid;
  gap: 0.15rem;
}

.term-dates dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term-dates dd {
  margin: 0;
  font-weight: 700;
}

.term-midterm {
  padding: 0.7rem 0.9rem;
  color: var(--brand-blue-dark);
  background: var(--mist);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.term-card p {
  margin: 0;
  font-size: 0.9rem;
}

.calendar-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.85rem;
  list-style: none;
}

.calendar-item {
  display: grid;
  padding: 1rem 1.1rem;
  align-items: start;
  gap: 1rem;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.calendar-date-box {
  display: grid;
  padding: 0.4rem 0;
  color: var(--brand-blue-dark);
  background: var(--mist);
  border-top: 4px solid var(--brand-maroon);
  border-radius: 0.5rem;
  text-align: center;
}

.calendar-date-box strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.calendar-date-box span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-item h4 {
  display: flex;
  margin: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1rem;
}

.calendar-item p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-type {
  padding: 0.15rem 0.6rem;
  color: var(--white);
  background: var(--brand-blue-mid);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-type.is-muted {
  color: var(--muted);
  background: var(--mist);
}

@media (max-width: 40rem) {
  .term-dates {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- HSMS integration: API-filled text ---------- */

[data-hsms-field="contactAddress"] {
  white-space: pre-line;
}

.event-meta {
  color: var(--brand-blue-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

/* ---------- Home marquee ---------- */

.home-marquee {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.home-marquee .section-heading a {
  color: var(--brand-blue);
  font-weight: 700;
  text-decoration: none;
}

.home-marquee .section-heading a:hover {
  color: var(--brand-maroon);
  text-decoration: underline;
}

.marquee {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-slide 90s linear infinite;
}

.marquee:hover .marquee-track,
.marquee-track:focus-within {
  animation-play-state: paused;
}

.marquee-track img {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 320px);
  height: clamp(160px, 18vw, 220px);
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--mist);
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ---------- Apply via WhatsApp ---------- */

.apply-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  max-width: 52rem;
  margin: 0 auto;
}

.apply-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.apply-card-level {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--brand-blue-dark);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apply-card-title {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--brand-green-dark);
  margin: 0;
  font-weight: 800;
}

.apply-card-sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.apply-qr-wrap {
  padding: 0.9rem;
  background: var(--white);
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius-md);
  display: inline-flex;
}

.apply-qr {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.apply-code {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.apply-code strong {
  color: var(--brand-blue);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-left: 0.35rem;
}

.apply-note {
  margin-top: 1.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.apply-note a {
  color: var(--brand-blue);
  font-weight: 700;
}
