@font-face {
  font-family: "AnselmSchool";
  src: url("../fonts/WeddingText.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AnselmBody";
  src: url("../fonts/ALLER_RG.TTF") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "AnselmHeading";
  src: url("../fonts/Aclonica.ttf") format("truetype");
  font-display: swap;
}

:root {
  --school-blue: #206aaa;
  --deep-blue: #003366;
  --gold: #fecc00;
  --ink: #172033;
  --muted: #697386;
  --paper: #f7fbff;
  --line: rgba(255, 255, 255, .24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "AnselmBody", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  overflow-x: hidden;
}

.page-banner-content {
  padding: 1.25rem 0;
}

.page-banner-content .breadcrumb {
  --bs-breadcrumb-divider-color: rgba(0, 51, 102, .7);
  --bs-breadcrumb-item-active-color: var(--deep-blue);
  margin: 0;
  color: var(--deep-blue);
  font-weight: 700;
}

.page-banner-content .breadcrumb a:hover,
.page-banner-content .breadcrumb a:focus {
  text-decoration: underline;
}

.page-banner-content h1 {
  margin: 0;
  color: var(--school-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.5rem);
}

.inner-page {
  background: var(--paper);
}

.introduction-page {
  padding-top: clamp(2.75rem, 4vw, 4.5rem);
}

.content-panel,
.info-card {
  height: 100%;
  border: 1px solid rgba(32, 106, 170, .14);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, .07);
}

.content-panel {
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
}

.content-panel p,
.info-card p,
.tradition-list {
  color: #435066;
  font-size: 1.02rem;
  line-height: 1.8;
}

.content-panel h3,
.info-card h3 {
  margin: 0 0 .9rem;
  color: var(--deep-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
}

.info-card {
  padding: 1.5rem;
  border-top: 4px solid var(--gold);
}

.info-card p {
  margin: 0;
}

.tradition-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.tradition-list li + li {
  margin-top: .45rem;
}

.patron-portrait {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 32, 51, .16);
}

.patron-portrait img {
  width: 100%;
  aspect-ratio: 5 / 6.55;
  object-fit: cover;
}

.patron-portrait figcaption {
  padding: .9rem 1rem;
  color: var(--deep-blue);
  font-family: "AnselmHeading", Georgia, serif;
  text-align: center;
}

.crest-artwork {
  width: min(100%, 720px);
  margin: 1.5rem auto 0;
}

.crest-artwork img {
  width: 100%;
  height: auto;
}

.crest-motto {
  text-align: center;
}

.crest-motto > p:first-of-type {
  margin-bottom: .65rem;
  color: var(--school-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem);
}

.anthem-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid rgba(32, 106, 170, .14);
  border-top: 5px solid var(--gold);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, .08);
  text-align: center;
}

.anthem-intro {
  max-width: 580px;
  margin: 1rem auto 2.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.anthem-lyrics {
  position: relative;
  max-width: 690px;
  margin: 0 auto;
  padding: clamp(1.7rem, 4vw, 2.75rem) clamp(1.15rem, 4vw, 3rem);
  border: 1px solid rgba(0, 51, 102, .12);
  border-radius: .75rem;
  background: linear-gradient(135deg, #f7fbff 0%, #fffdf3 100%);
  color: var(--deep-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, .98rem + .55vw, 1.45rem);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .01em;
}

.anthem-lyrics::before {
  content: "✦";
  position: absolute;
  top: -.85rem;
  left: 50%;
  width: 2rem;
  transform: translateX(-50%);
  color: var(--gold);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.7rem;
}

.anthem-lyrics p {
  margin: 0;
}

.anthem-lyrics p + p {
  margin-top: 1.55rem;
}

.anthem-source-link {
  display: inline-block;
  margin-top: .85rem;
  color: var(--school-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.rectorum-page {
  background: linear-gradient(180deg, #f7fbff 0%, #eaf4fc 100%);
}

.activities-page { background: linear-gradient(180deg, #f7fbff 0%, #fff 72%, #f6fbff 100%); }
.activities-intro { max-width: 750px; margin: 0 auto 2.6rem; text-align: center; }
.activities-intro > p:last-child { max-width: 670px; margin: .8rem auto 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.activity-card { position: relative; overflow: hidden; min-height: 350px; padding: 2rem; border-radius: 1rem; color: #fff; box-shadow: 0 15px 28px rgba(0, 51, 102, .16); }
.activity-card::after { content: ""; position: absolute; right: -2.7rem; bottom: -3.7rem; width: 10rem; height: 10rem; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.activity-art { background: linear-gradient(145deg, #c0256d, #7b1556); }
.activity-literary { background: linear-gradient(145deg, #206aaa, #003366); }
.activity-sports { background: linear-gradient(145deg, #0e866e, #075347); }
.activity-number { display: block; color: rgba(255,255,255,.62); font-family: Georgia, serif; font-size: .85rem; font-weight: 700; letter-spacing: .13em; }
.activity-icon { display: block; margin: 1.15rem 0 .75rem; color: var(--gold); font-size: 2.2rem; line-height: 1; }
.activity-card h3 { position: relative; margin: 0; color: #fff; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700; }
.activity-card p { position: relative; margin: .7rem 0 1rem; color: rgba(255,255,255,.9); line-height: 1.55; }
.activity-card ul { position: relative; margin: 0; padding-left: 1.2rem; color: rgba(255,255,255,.93); line-height: 1.7; }
.ncc-section { padding-top: 1rem; }
.ncc-panel { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 16px 36px rgba(23,32,51,.1); }
.ncc-image img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.ncc-copy { padding: clamp(2rem, 4vw, 3.7rem); }
.ncc-copy > p { line-height: 1.72; }
.ncc-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin: 1.45rem 0; }
.ncc-highlights span { padding: .8rem; border-left: 3px solid var(--gold); background: #f1f8fd; color: var(--deep-blue); font-size: .92rem; font-weight: 700; }
.ncc-note { color: var(--school-blue); font-weight: 700; }
.activities-clubs { padding-top: 1.25rem; }
.club-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.1rem; }
.club-row > div { padding: 1.6rem 1rem; border: 1px solid rgba(32,106,170,.16); border-radius: .8rem; background: #fff; box-shadow: 0 8px 22px rgba(23,32,51,.06); }
.club-row span { display: block; color: var(--gold); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.club-row h3 { margin: .65rem 0 0; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.1rem; }
@media (max-width: 991.98px) { .activity-grid { grid-template-columns: 1fr; } .activity-card { min-height: auto; } .ncc-panel { grid-template-columns: 1fr; } .ncc-image img { min-height: 260px; max-height: 350px; } .club-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .ncc-highlights, .club-row { grid-template-columns: 1fr; } .activity-card { padding: 1.7rem; } }

.features-page { background: linear-gradient(180deg, #f7fbff 0%, #fff 58%, #eef8f6 100%); }
.features-intro { max-width: 760px; margin: 0 auto 2.2rem; text-align: center; }
.features-intro > p:last-child { max-width: 670px; margin: .85rem auto 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.feature-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid rgba(32,106,170,.12); border-radius: 1rem; background: #fff; box-shadow: 0 13px 30px rgba(23,32,51,.08); }
.feature-stat-row > div { padding: 1.6rem 1rem; text-align: center; }
.feature-stat-row > div + div { border-left: 1px solid rgba(32,106,170,.12); }
.feature-stat-row strong { display: block; color: var(--school-blue); font-family: Georgia, serif; font-size: clamp(1.45rem, 1.15rem + 1vw, 2.1rem); }
.feature-stat-row span { display: block; margin-top: .35rem; color: var(--muted); font-size: .88rem; font-weight: 700; }
.feature-groups { padding-top: 1.2rem; }
.feature-group-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }
.feature-group { position: relative; overflow: hidden; padding: 2.1rem; border: 1px solid rgba(32,106,170,.14); border-radius: 1rem; background: #fff; box-shadow: 0 12px 28px rgba(23,32,51,.06); }
.feature-group::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 8rem; height: 8rem; border: 1px solid rgba(254,204,0,.65); border-radius: 50%; }
.feature-symbol { position: relative; z-index: 1; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .65rem; background: var(--deep-blue); color: var(--gold); font-family: Georgia, serif; font-size: 1.45rem; }
.feature-group h2 { margin: 1.15rem 0 .55rem; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.5rem; }
.feature-group p { color: var(--muted); line-height: 1.65; }
.feature-group ul { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.feature-group li { position: relative; padding-left: 1.2rem; color: var(--ink); font-size: .96rem; }
.feature-group li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .42rem; height: .42rem; border-radius: 50%; background: var(--gold); }
.features-commitment { padding-top: .5rem; }
.commitment-panel { display: grid; grid-template-columns: .95fr 1.05fr; gap: 2.2rem; align-items: center; padding: clamp(2rem, 4vw, 3.5rem); border-radius: 1rem; background: var(--deep-blue); color: #fff; }
.commitment-panel .section-kicker { color: var(--gold); }
.commitment-panel .section-title { color: #fff; }
.commitment-panel > p { margin: 0; color: rgba(255,255,255,.87); font-size: 1.05rem; line-height: 1.75; }
@media (max-width: 767.98px) { .feature-stat-row { grid-template-columns: repeat(2, 1fr); } .feature-stat-row > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(32,106,170,.12); } .feature-stat-row > div:nth-child(4) { border-top: 1px solid rgba(32,106,170,.12); } .feature-group-grid, .commitment-panel { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .feature-stat-row { grid-template-columns: 1fr; } .feature-stat-row > div + div, .feature-stat-row > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(32,106,170,.12); } .feature-group { padding: 1.65rem; } }

/* Rules & regulations pages */
.rules-page { background: linear-gradient(180deg, #f7fbff, #fff 40%, #f8fbfd); }
.rules-intro { max-width: 770px; margin: 0 auto 2.7rem; text-align: center; }
.rules-intro > p:last-child { max-width: 670px; margin: .85rem auto 0; color: var(--muted); font-size: 1.06rem; line-height: 1.75; }
.rules-icon { display: inline-grid; width: 3.6rem; height: 3.6rem; margin-bottom: .9rem; place-items: center; border: 1px solid rgba(32,106,170,.15); border-radius: 50%; background: #fff; color: var(--school-blue); box-shadow: 0 8px 20px rgba(23,32,51,.08); font-size: 1.4rem; }
.assembly-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: assembly; }
.assembly-flow article { position: relative; padding: 2rem 1.35rem; border-radius: 1rem; background: #fff; box-shadow: 0 12px 28px rgba(23,32,51,.07); text-align: center; animation: rise-in .55s ease both; }
.assembly-flow article:nth-child(2) { animation-delay: .1s; }.assembly-flow article:nth-child(3) { animation-delay: .2s; }.assembly-flow article:nth-child(4) { animation-delay: .3s; }
.assembly-flow article::before { counter-increment: assembly; content: "0" counter(assembly); position: absolute; top: 1rem; left: 1rem; color: rgba(32,106,170,.27); font-family: Georgia, serif; font-size: .85rem; font-weight: 700; }
.assembly-flow i { color: var(--gold); font-size: 2rem; }.assembly-flow h3 { margin: 1rem 0 .6rem; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.25rem; }.assembly-flow p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .93rem; }
.guidance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }.guidance-grid article { padding: 2rem; border-top: 4px solid var(--gold); border-radius: .9rem; background: #fff; box-shadow: 0 12px 28px rgba(23,32,51,.07); }.guidance-grid i { color: var(--school-blue); font-size: 1.55rem; }.guidance-grid h3 { margin: .85rem 0; color: var(--deep-blue); font-family: Georgia, serif; }.guidance-grid ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }.guidance-grid li { position: relative; padding-left: 1.25rem; color: var(--ink); line-height: 1.55; }.guidance-grid li::before { content: "✓"; position: absolute; left: 0; color: #158265; font-weight: 800; }
.leave-timeline { max-width: 800px; margin: 0 auto; }.leave-timeline article { display: grid; grid-template-columns: 3rem 1fr; gap: 1.2rem; position: relative; padding-bottom: 1.9rem; }.leave-timeline article:not(:last-child)::before { content: ""; position: absolute; top: 3rem; bottom: 0; left: 1.45rem; border-left: 1px dashed rgba(32,106,170,.4); }.leave-timeline span { display: grid; width: 3rem; height: 3rem; place-items: center; border-radius: 50%; background: var(--deep-blue); color: var(--gold); font-family: Georgia, serif; font-weight: 700; }.leave-timeline h3 { margin: .4rem 0; color: var(--deep-blue); font-family: Georgia, serif; }.leave-timeline p { margin: 0; color: var(--muted); line-height: 1.65; }.rules-alert { display: flex; max-width: 800px; gap: 1rem; margin: 1rem auto 0; padding: 1.2rem 1.35rem; border-radius: .7rem; background: #fff7dd; color: #6f5100; line-height: 1.55; }.rules-alert i { margin-top: .15rem; color: #c08a00; font-size: 1.3rem; }.rules-footnote { max-width: 800px; margin: 1.3rem auto 0; color: var(--muted); font-style: italic; text-align: center; }
.library-hero { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; align-items: center; max-width: 850px; margin: 0 auto 2.2rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 1rem; background: var(--deep-blue); color: #fff; }.library-hero > i { display: grid; width: 5rem; height: 5rem; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); color: var(--gold); font-size: 2rem; }.library-hero .section-kicker { color: var(--gold); }.library-hero .section-title { color: #fff; }.library-hero p:last-child { margin: .6rem 0 0; color: rgba(255,255,255,.85); line-height: 1.65; }.library-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }.library-rules article { padding: 1.55rem; border: 1px solid rgba(32,106,170,.13); border-radius: .8rem; background: #fff; }.library-rules i { color: var(--school-blue); font-size: 1.35rem; }.library-rules h3 { margin: .8rem 0 .5rem; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.13rem; }.library-rules p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }.library-note { max-width: 850px; margin: 1.25rem auto 0; padding: 1rem 1.2rem; border-radius: .6rem; background: #eaf4fc; color: var(--deep-blue); }.library-note i { margin-right: .45rem; color: var(--school-blue); }
.uniform-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }.uniform-grid article { overflow: hidden; border: 1px solid rgba(32,106,170,.14); border-radius: 1rem; background: #fff; box-shadow: 0 10px 25px rgba(23,32,51,.06); }.uniform-grid h3 { margin: 0; padding: 1.1rem 1.4rem; background: var(--deep-blue); color: #fff; font-family: Georgia, serif; font-size: 1.25rem; }.uniform-grid h3 i { margin-right: .45rem; color: var(--gold); }.uniform-season { padding: 1.2rem 1.4rem; }.uniform-season + .uniform-season { border-top: 1px solid rgba(32,106,170,.1); }.uniform-season strong { color: #ca397a; font-size: .86rem; letter-spacing: .07em; text-transform: uppercase; }.uniform-season p { margin: .45rem 0 0; color: var(--muted); line-height: 1.65; }.saturday-uniform { display: flex; align-items: center; gap: 1.3rem; margin-top: 1.25rem; padding: 1.6rem 2rem; border-radius: 1rem; background: linear-gradient(110deg, #0c6a87, var(--deep-blue)); color: #fff; }.saturday-uniform > i { color: var(--gold); font-size: 2.5rem; }.saturday-uniform h2 { margin: 0; font-family: Georgia, serif; font-size: 1.4rem; }.saturday-uniform p { margin: .35rem 0 0; color: rgba(255,255,255,.85); }
.discipline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }.discipline-grid article { padding: 1.6rem; border-radius: .8rem; background: #fff; box-shadow: 0 10px 24px rgba(23,32,51,.06); transition: transform .25s ease, box-shadow .25s ease; }.discipline-grid article:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(23,32,51,.13); }.discipline-grid i { color: #ca397a; font-size: 1.45rem; }.discipline-grid h3 { margin: .75rem 0 .5rem; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.18rem; }.discipline-grid p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .93rem; }
.transport-card { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; align-items: center; max-width: 850px; margin: 0 auto 1.4rem; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 1rem; background: #fff; box-shadow: 0 15px 35px rgba(23,32,51,.09); }.transport-icon { display: grid; width: 7rem; height: 7rem; place-items: center; border-radius: 50%; background: var(--gold); color: var(--deep-blue); font-size: 3rem; }.transport-card p:last-child { margin: .6rem 0 0; color: var(--muted); line-height: 1.7; }.transport-guidance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }.transport-guidance article { padding: 1.5rem; border-radius: .75rem; background: #eaf4fc; }.transport-guidance i { color: var(--school-blue); font-size: 1.4rem; }.transport-guidance h3 { margin: .75rem 0 .4rem; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.1rem; }.transport-guidance p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.35rem; }.schedule-card { overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 12px 28px rgba(23,32,51,.08); }.schedule-card h2 { margin: 0; padding: 1.35rem 1.6rem; color: #fff; font-family: Georgia, serif; font-size: 1.5rem; }.schedule-card h2 i { margin-right: .4rem; color: var(--gold); }.schedule-card.summer h2 { background: #be6f00; }.schedule-card.winter h2 { background: var(--school-blue); }.schedule-card h3 { margin: 1.3rem 1.6rem .45rem; color: var(--deep-blue); font-family: Georgia, serif; font-size: 1.1rem; }.schedule-card table { width: 100%; border-collapse: collapse; }.schedule-card tr + tr { border-top: 1px solid rgba(32,106,170,.1); }.schedule-card th, .schedule-card td { padding: .8rem 1.6rem; text-align: left; }.schedule-card th { width: 45%; color: var(--deep-blue); font-size: .9rem; }.schedule-card td { color: var(--muted); font-size: .92rem; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991.98px) { .assembly-flow, .library-rules, .transport-guidance { grid-template-columns: repeat(2, 1fr); } .discipline-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) { .guidance-grid, .uniform-grid, .schedule-grid { grid-template-columns: 1fr; } .library-hero, .transport-card { grid-template-columns: 1fr; text-align: center; }.library-hero > i, .transport-icon { margin: 0 auto; } }
@media (max-width: 575.98px) { .assembly-flow, .library-rules, .transport-guidance, .discipline-grid { grid-template-columns: 1fr; } .rules-alert { align-items: flex-start; } .leave-timeline article { grid-template-columns: 2.5rem 1fr; gap: .9rem; } .leave-timeline span { width: 2.5rem; height: 2.5rem; } .leave-timeline article:not(:last-child)::before { left: 1.2rem; top: 2.5rem; } .schedule-card th, .schedule-card td { padding: .75rem .9rem; } }

/* Keep regulation pages within the same visual family as the existing inner pages. */
.rules-page { background: var(--paper); }
.rules-page .section-kicker { color: #ce006a; }
.rules-page h3,
.rules-page .uniform-grid h3,
.rules-page .discipline-grid h3,
.rules-page .transport-guidance h3,
.rules-page .library-rules h3,
.rules-page .assembly-flow h3,
.rules-page .leave-timeline h3,
.rules-page .schedule-card h3 { font-family: "AnselmHeading", Georgia, serif; font-weight: 400; }
.assembly-flow article,
.guidance-grid article,
.uniform-grid article,
.discipline-grid article,
.library-rules article,
.transport-guidance article,
.schedule-card { border: 1px solid rgba(32, 106, 170, .14); box-shadow: 0 12px 28px rgba(23, 32, 51, .07); }
.guidance-grid article { border-top: 4px solid var(--gold); }
.discipline-grid article { border-top: 3px solid transparent; }
.discipline-grid article:hover { border-top-color: var(--gold); }
.assembly-flow i,
.guidance-grid i,
.library-rules i,
.discipline-grid i,
.transport-guidance i { color: var(--school-blue); }
.assembly-flow article:first-child i { color: var(--gold); }
.rules-alert { border: 1px solid rgba(254, 204, 0, .5); box-shadow: none; }

/* Shared card language used by the Welcome and Anthem pages. */
.rules-page .assembly-flow article,
.rules-page .guidance-grid article,
.rules-page .uniform-grid article,
.rules-page .discipline-grid article,
.rules-page .library-rules article,
.rules-page .transport-guidance article,
.rules-page .schedule-card {
  border: 1px solid rgba(32, 106, 170, .14);
  border-top: 5px solid var(--gold);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, .08);
}
.rules-page .assembly-flow article,
.rules-page .guidance-grid article,
.rules-page .discipline-grid article,
.rules-page .library-rules article,
.rules-page .transport-guidance article { transition: transform .25s ease, box-shadow .25s ease; }
.rules-page .assembly-flow article:hover,
.rules-page .guidance-grid article:hover,
.rules-page .discipline-grid article:hover,
.rules-page .library-rules article:hover,
.rules-page .transport-guidance article:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(23, 32, 51, .13); }
.rules-page .uniform-grid h3 {
  padding: 1.25rem 1.4rem .5rem;
  background: transparent;
  color: var(--school-blue);
}
.rules-page .uniform-grid h3 i { color: #ce006a; }
.rules-page .uniform-season:first-of-type { padding-top: .85rem; }
.rules-page .saturday-uniform {
  border: 1px solid rgba(32, 106, 170, .14);
  border-top: 5px solid var(--gold);
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, .08);
  color: var(--ink);
}
.rules-page .saturday-uniform > i { color: #ce006a; }
.rules-page .saturday-uniform h2 { color: var(--school-blue); font-family: "AnselmHeading", Georgia, serif; font-weight: 400; }
.rules-page .saturday-uniform p { color: var(--muted); }
.rules-page .library-hero,
.rules-page .transport-card {
  border: 1px solid rgba(32, 106, 170, .14);
  border-top: 5px solid var(--gold);
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, .08);
  color: var(--ink);
}
.rules-page .library-hero > i,
.rules-page .transport-icon { background: #eaf4fc; color: var(--school-blue); }
.rules-page .library-hero .section-kicker { color: #ce006a; }
.rules-page .library-hero .section-title { color: var(--school-blue); }
.rules-page .library-hero p:last-child,
.rules-page .transport-card p:last-child { color: var(--muted); }
.rules-page .schedule-card h2 { padding: 1.25rem 1.6rem .4rem; background: transparent !important; color: var(--school-blue); font-family: "AnselmHeading", Georgia, serif; font-weight: 400; }
.rules-page .schedule-card h2 i { color: #ce006a; }

/* The large page-heading badge does not suit the shared inner-page layout.
   Keep functional Font Awesome icons inside the content cards instead. */
.rules-page .rules-intro .rules-icon { display: none; }

.tc-page { background: linear-gradient(180deg, #f7fbff 0%, #fff 55%, #f7fbff 100%); }
.tc-intro { max-width: 720px; margin: 0 auto 2.35rem; text-align: center; }
.tc-intro > p:last-child { margin: .8rem auto 0; color: var(--muted); line-height: 1.7; }
.tc-search-card, .tc-results-card { max-width: 940px; margin: 0 auto; border: 1px solid rgba(32, 106, 170, .14); border-top: 5px solid var(--gold); border-radius: 1rem; background: #fff; box-shadow: 0 16px 40px rgba(23, 32, 51, .08); }
.tc-search-card { padding: clamp(1.5rem, 3vw, 2.5rem); }
.tc-card-title { display: flex; gap: 1rem; align-items: center; }.tc-card-title > span { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border-radius: 50%; background: #eaf4fc; color: var(--school-blue); font-size: 1.3rem; }.tc-card-title h3 { margin: 0; color: var(--school-blue); font-family: "AnselmHeading", Georgia, serif; font-size: 1.4rem; font-weight: 400; }.tc-card-title p { margin: .2rem 0 0; color: var(--muted); }
.tc-search-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; margin-top: 1.5rem; }.tc-search-fields label { display: block; margin-bottom: .4rem; color: var(--deep-blue); font-size: .9rem; font-weight: 700; }.tc-search-fields input { width: 100%; padding: .78rem .9rem; border: 1px solid rgba(32, 106, 170, .25); border-radius: .5rem; color: var(--ink); outline: none; }.tc-search-fields input:focus { border-color: var(--school-blue); box-shadow: 0 0 0 3px rgba(32,106,170,.12); }.tc-search-button { padding: .82rem 1.1rem; border: 0; border-radius: .5rem; background: #9cb8d1; color: #fff; font-weight: 700; cursor: not-allowed; white-space: nowrap; }.tc-search-button i { margin-right: .35rem; }.tc-status { margin: 1.2rem 0 0; color: var(--muted); font-size: .92rem; }.tc-status i { color: #ce006a; margin-right: .35rem; }
.tc-results-card { margin-top: 1.35rem; overflow: hidden; }.tc-results-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.5rem 1.8rem; border-bottom: 1px solid rgba(32,106,170,.12); }.tc-results-heading .section-kicker { margin: 0 0 .3rem; }.tc-results-heading h2 { margin: 0; color: var(--school-blue); font-family: "AnselmHeading", Georgia, serif; font-size: 1.5rem; font-weight: 400; }.tc-results-heading > span { padding: .38rem .7rem; border-radius: 999px; background: #fff3d0; color: #866200; font-size: .78rem; font-weight: 700; }.tc-empty-state { max-width: 490px; margin: 0 auto; padding: 3.6rem 1.5rem; text-align: center; }.tc-empty-state > span { display: grid; width: 4.3rem; height: 4.3rem; margin: 0 auto 1rem; place-items: center; border-radius: 50%; background: #eaf4fc; color: var(--school-blue); font-size: 1.7rem; }.tc-empty-state h3 { color: var(--deep-blue); font-family: "AnselmHeading", Georgia, serif; font-weight: 400; }.tc-empty-state p { color: var(--muted); line-height: 1.65; }.tc-help { display: flex; max-width: 940px; gap: .8rem; margin: 1.25rem auto 0; padding: 1rem 1.2rem; border-radius: .7rem; background: #edf8f3; color: #276a54; }.tc-help i { margin-top: .18rem; }.tc-help p { margin: 0; line-height: 1.55; }
@media (max-width: 767.98px) { .tc-search-fields { grid-template-columns: 1fr; }.tc-search-button { width: 100%; }.tc-results-heading { align-items: flex-start; flex-direction: column; } }
.rules-page .schedule-card h3 { color: #ce006a; font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }

.rectorum-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.rectorum-intro p:last-child {
  margin: 0;
}

.rector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.rector-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 32px rgba(23, 32, 51, .1);
  transition: transform .28s ease, box-shadow .28s ease;
}

.rector-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(23, 32, 51, .18);
}

.rector-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  filter: saturate(.88);
  transition: transform .45s ease, filter .45s ease;
}

.rector-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.rector-card div {
  position: relative;
  min-height: 104px;
  padding: 1rem;
  border-top: 4px solid var(--gold);
}

.rector-card span {
  display: block;
  margin-bottom: .35rem;
  color: #ce006a;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rector-card h3 {
  margin: 0;
  color: var(--deep-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

.reveal-card {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-card.is-visible {
  animation: rector-reveal .62s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes rector-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rector-card,
  .rector-card img {
    transition: none;
  }

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

.history-page {
  background: linear-gradient(180deg, #f7fbff 0%, #fffdf7 100%);
}

.history-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.history-intro p:last-child {
  margin-bottom: 0;
}

.history-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.history-timeline::before {
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: 50%;
  width: 3px;
  content: "";
  background: linear-gradient(var(--gold), var(--school-blue));
  transform: translateX(-50%);
}

.history-event {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

.history-event::before {
  position: absolute;
  z-index: 1;
  top: 1.5rem;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  content: "";
  background: var(--school-blue);
  box-shadow: 0 0 0 3px var(--gold);
  transform: translateX(-50%);
}

.history-event:nth-child(even) .history-year {
  grid-column: 2;
  grid-row: 1;
}

.history-event:nth-child(even) .history-copy {
  grid-column: 1;
  grid-row: 1;
}

.history-year {
  justify-self: end;
  padding: .6rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--deep-blue);
  box-shadow: 0 8px 22px rgba(0, 51, 102, .18);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: .95rem;
  text-align: center;
}

.history-event:nth-child(even) .history-year {
  justify-self: start;
}

.history-copy {
  padding: 1.5rem;
  border: 1px solid rgba(32, 106, 170, .14);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 32, 51, .08);
}

.history-copy h3 {
  margin: 0 0 .65rem;
  color: var(--school-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: 1.2rem;
}

.history-copy p {
  margin: 0;
  font-size: 1rem;
}

@media (max-width: 767.98px) {
  .history-timeline::before {
    left: .55rem;
  }

  .history-event,
  .history-event:nth-child(even) {
    display: block;
    padding-left: 2.2rem;
  }

  .history-event::before {
    top: .75rem;
    left: .55rem;
  }

  .history-year,
  .history-event:nth-child(even) .history-year {
    display: inline-block;
    margin-bottom: .75rem;
  }
}

.principal-message-page {
  background: linear-gradient(135deg, #f8fcff 0%, #fff 58%, #fff9e7 100%);
}

.principal-glow {
  position: relative;
  isolation: isolate;
}

.principal-glow::before {
  position: absolute;
  z-index: -1;
  inset: 7%;
  border-radius: 1.4rem;
  content: "";
  background: rgba(254, 204, 0, .5);
  filter: blur(26px);
  animation: principal-soft-glow 4.5s ease-in-out infinite;
}

.principal-glow img {
  width: 100%;
  min-height: 280px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  border: 7px solid #fff;
  border-radius: 1.15rem;
  box-shadow: 0 20px 50px rgba(0, 51, 102, .18);
  object-fit: cover;
}

.principal-message-portrait figcaption {
  padding: 1rem;
  color: var(--deep-blue);
  text-align: center;
}

.principal-message-portrait figcaption strong,
.principal-message-portrait figcaption span {
  display: block;
}

.principal-message-portrait figcaption strong {
  font-family: "AnselmHeading", Georgia, serif;
  font-size: 1.2rem;
}

.principal-message-portrait figcaption span {
  margin-top: .2rem;
  color: #ce006a;
  font-weight: 800;
}

.principal-message-copy {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 32, 51, .09);
}

.principal-message-copy::before {
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 0;
  width: 5px;
  border-radius: 0 5px 5px 0;
  content: "";
  background: var(--gold);
}

.principal-message-copy p {
  font-size: 1rem;
}

.principal-signoff {
  margin: 1.5rem 0 0 !important;
  color: var(--deep-blue) !important;
  font-weight: 800;
}

.principal-signoff span,
.principal-signoff small {
  display: block;
}

.principal-signoff span {
  margin-top: 1rem;
  color: var(--school-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.principal-signoff small {
  margin-top: .15rem;
  color: #ce006a;
  font-family: "AnselmBody", sans-serif;
  font-size: .85rem;
  font-weight: 800;
}

@keyframes principal-soft-glow {
  0%, 100% { opacity: .45; transform: scale(.94); }
  50% { opacity: .9; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .principal-glow::before { animation: none; }
}

.contact-page { background: linear-gradient(180deg, #f7fbff 0%, #fff 100%); }
.contact-intro { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.contact-intro p:last-child { margin-bottom: 0; }
.contact-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.contact-detail-card { display: flex; gap: 1rem; padding: 1.4rem; border-radius: 1rem; background: #fff; box-shadow: 0 14px 34px rgba(23, 32, 51, .08); transition: transform .25s ease, box-shadow .25s ease; }
.contact-detail-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(23, 32, 51, .14); }
.contact-icon { flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--school-blue); }
.contact-detail-card:nth-child(2) .contact-icon { background: #ce006a; }
.contact-detail-card:nth-child(3) .contact-icon { background: #0c8b64; }
.contact-icon svg { width: 23px; height: 23px; fill: currentColor; }
.contact-detail-card small, .contact-detail-card strong, .contact-detail-card em { display: block; }
.contact-detail-card small { margin-bottom: .25rem; color: #ce006a; font-size: .77rem; font-style: normal; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.contact-detail-card strong { color: var(--deep-blue); font-family: "AnselmHeading", Georgia, serif; font-size: 1rem; }
.contact-detail-card em { margin-top: .25rem; color: #5a6576; font-size: .9rem; font-style: normal; line-height: 1.5; }
.map-panel { overflow: hidden; border-radius: 1rem; background: #fff; box-shadow: 0 16px 40px rgba(23, 32, 51, .1); }
.map-panel iframe { width: 100%; min-height: 410px; border: 0; }
.map-panel > a { display: block; padding: .9rem 1.2rem; color: var(--deep-blue); font-weight: 800; text-align: center; }
.query-panel { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1rem; color: #fff; background: linear-gradient(145deg, var(--deep-blue), #145b96); box-shadow: 0 16px 40px rgba(0, 51, 102, .2); }
.query-panel .section-kicker { color: var(--gold); }
.query-panel h2 { margin: 0 0 .75rem; font-family: "AnselmHeading", Georgia, serif; font-size: clamp(1.45rem, 1.2rem + .8vw, 2rem); }
.query-panel-intro { color: rgba(255,255,255,.85) !important; font-size: .95rem !important; }
.query-form { margin-top: 1.35rem; }
.query-form label { display: block; margin: .85rem 0 .35rem; font-size: .88rem; font-weight: 800; }
.query-form label span { color: var(--gold); }
.query-form input, .query-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.32); border-radius: .45rem; color: var(--ink); background: #fff; }
.query-form textarea { resize: vertical; }
.query-form input:focus, .query-form textarea:focus { outline: 3px solid rgba(254, 204, 0, .55); outline-offset: 2px; }
.query-submit { width: 100%; margin-top: 1.1rem; padding: .8rem 1rem; border: 0; border-radius: .45rem; color: var(--deep-blue); background: var(--gold); font-family: "AnselmHeading", Georgia, serif; font-weight: 700; transition: transform .2s ease, background-color .2s ease; }
.query-submit:hover, .query-submit:focus { background: #ffe15a; transform: translateY(-2px); }
.query-form-note { min-height: 1.25rem; margin: .7rem 0 0 !important; color: rgba(255,255,255,.8) !important; font-size: .8rem !important; }
@media (max-width: 991.98px) { .contact-detail-grid { grid-template-columns: 1fr; } .map-panel iframe { min-height: 340px; } }

.welcome-page { background: linear-gradient(160deg, #f7fbff, #fff 55%, #fff9e8); }
.welcome-hero { display: flex; gap: 1.5rem; align-items: flex-start; max-width: 900px; margin: 0 auto 2.5rem; }
.welcome-hero-icon { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 1rem; color: #fff; background: var(--school-blue); box-shadow: 0 13px 27px rgba(32,106,170,.24); }
.welcome-hero-icon svg, .welcome-skill-icon svg { width: 32px; height: 32px; fill: currentColor; }
.welcome-hero .section-title { margin-bottom: .75rem; }
.welcome-hero p:last-child { margin-bottom: 0; }
.welcome-story { height: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 1rem; background: #fff; box-shadow: 0 16px 40px rgba(23,32,51,.08); }
.welcome-story h3, .welcome-callout h3 { margin: 0 0 1rem; font-family: "AnselmHeading", Georgia, serif; }
.welcome-story h3 { color: var(--deep-blue); }
.welcome-callout { height: 100%; padding: 2.25rem; border-radius: 1rem; color: #fff; background: linear-gradient(145deg, #d0006c, #8c0756); box-shadow: 0 16px 40px rgba(140,7,86,.2); }
.welcome-callout > span { display: block; margin-bottom: 1.25rem; color: var(--gold); font-size: 2.5rem; line-height: 1; }
.welcome-callout p { color: rgba(255,255,255,.88) !important; }
.welcome-skills header { margin-bottom: 1.5rem; text-align: center; }
.welcome-skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.welcome-skill-grid article { padding: 1.6rem; border-radius: 1rem; background: #fff; box-shadow: 0 14px 32px rgba(23,32,51,.08); }
.welcome-skill-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; color: var(--school-blue); background: #e2f1ff; }
.welcome-skill-grid article:nth-child(2) .welcome-skill-icon { color: #ce006a; background: #ffebf5; }
.welcome-skill-grid article:nth-child(3) .welcome-skill-icon { color: #0c8b64; background: #e3f8f0; }
.welcome-skill-grid h3 { margin: 0 0 .55rem; color: var(--deep-blue); font-family: "AnselmHeading", Georgia, serif; font-size: 1.1rem; }
.welcome-skill-grid p { margin: 0; font-size: .95rem; }
@media (max-width: 767.98px) { .welcome-hero { display: block; } .welcome-hero-icon { margin-bottom: 1rem; } .welcome-skill-grid { grid-template-columns: 1fr; } }

.rules-page { background: linear-gradient(180deg, #f7fbff, #fff); }
.rules-intro { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 850px; margin: 0 auto 2.5rem; }
.rules-intro-icon { flex: 0 0 60px; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: var(--deep-blue); background: var(--gold); font-family: Georgia, serif; font-size: 2.1rem; font-weight: 700; }
.rules-intro .section-title { margin-bottom: .65rem; }
.rules-intro p:last-child { margin-bottom: 0; }
.rules-layout { display: grid; grid-template-columns: minmax(220px, .38fr) 1fr; gap: 2rem; align-items: start; max-width: 1040px; margin: 0 auto; }
.rules-sidebar { padding: 1.5rem; border-radius: 1rem; color: #fff; background: linear-gradient(145deg, var(--deep-blue), #145b96); box-shadow: 0 16px 36px rgba(0,51,102,.18); }
.rules-sidebar strong { color: var(--gold); font-family: "AnselmHeading", Georgia, serif; font-size: 1.15rem; }
.rules-sidebar p { margin: .75rem 0 1.2rem; color: rgba(255,255,255,.88) !important; font-size: .95rem; }
.rules-sidebar a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: .2rem; }
.rules-accordions { display: grid; gap: .9rem; }
.rules-accordions details { overflow: hidden; border: 1px solid rgba(32,106,170,.14); border-radius: .8rem; background: #fff; box-shadow: 0 8px 22px rgba(23,32,51,.05); }
.rules-accordions summary { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; color: var(--deep-blue); cursor: pointer; font-family: "AnselmHeading", Georgia, serif; font-size: 1.02rem; list-style: none; }
.rules-accordions summary::-webkit-details-marker { display: none; }
.rules-accordions summary::after { margin-left: auto; content: '+'; color: var(--school-blue); font-family: "AnselmBody", sans-serif; font-size: 1.5rem; }
.rules-accordions details[open] summary { color: var(--school-blue); border-bottom: 1px solid rgba(32,106,170,.12); }
.rules-accordions details[open] summary::after { content: '–'; }
.rules-accordions summary span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--deep-blue); background: #e2f1ff; font-family: "AnselmBody", sans-serif; font-size: .78rem; font-weight: 800; }
.rules-accordions details > div { padding: 1.15rem 1.25rem 1.25rem 4.3rem; }
.rules-accordions details p { margin: 0; font-size: .98rem; }
.rules-accordions details p + p { margin-top: .85rem; }
.rules-source-note { max-width: 1040px; margin: 1.3rem auto 0; color: #5d6879 !important; font-size: .88rem !important; text-align: right; }
@media (max-width: 767.98px) { .rules-intro { display: block; } .rules-intro-icon { margin-bottom: 1rem; } .rules-layout { grid-template-columns: 1fr; } .rules-accordions details > div { padding-left: 1.25rem; } }

.organizations-page { background: linear-gradient(160deg, #f7fbff, #fff 52%, #fff9ea); }
.organizations-intro { max-width: 740px; margin: 0 auto 2.75rem; text-align: center; }
.organizations-intro p:last-child { margin-bottom: 0; }
.organization-groups { display: grid; gap: 2.4rem; }
.organization-group-heading { display: flex; gap: .65rem; align-items: center; margin-bottom: 1rem; }
.organization-group-heading span { color: #ce006a; font-size: 1.25rem; }
.organization-group-heading h3 { margin: 0; color: var(--deep-blue); font-family: "AnselmHeading", Georgia, serif; font-size: 1.35rem; }
.organization-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.organization-card { min-height: 156px; padding: 1.25rem; border-radius: 1rem; color: #fff; box-shadow: 0 13px 28px rgba(23,32,51,.12); transition: transform .25s ease; }
.organization-card:hover { transform: translateY(-6px) rotate(-.5deg); }
.organization-card > span { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.35rem; }
.organization-card h4 { margin: 0; font-family: "AnselmHeading", Georgia, serif; font-size: 1rem; line-height: 1.35; }
.organization-card p { margin: .25rem 0 0; color: rgba(255,255,255,.82) !important; font-size: .8rem; }
.literary { background: linear-gradient(140deg, #3e5192, #243872); }.photo { background: linear-gradient(140deg, #695078, #402a58); }.eco { background: linear-gradient(140deg, #168562, #075c43); }.health { background: linear-gradient(140deg, #d94761, #ad1b45); }.service { background: linear-gradient(140deg, #1675a8, #075378); }.culture { background: linear-gradient(140deg, #bd670b, #914707); }.music { background: linear-gradient(140deg, #7d377d, #59235c); }
.sports-feature { display: flex; gap: 1.5rem; align-items: flex-start; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: 1rem; color: #fff; background: linear-gradient(135deg, #003366, #206aaa); box-shadow: 0 18px 38px rgba(0,51,102,.2); }
.sports-feature-icon { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 1rem; background: var(--gold); font-size: 2rem; }
.sports-feature h4 { margin: 0 0 .6rem; font-family: "AnselmHeading", Georgia, serif; font-size: 1.4rem; }.sports-feature p { color: rgba(255,255,255,.88) !important; }
.sports-feature ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }.sports-feature li { padding: .3rem .65rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .86rem; }
@media (max-width: 575.98px) { .sports-feature { display: block; }.sports-feature-icon { margin-bottom: 1rem; } }

/* Text-symbol icon fallbacks can render as broken glyphs in the bundled school font. */
.rules-intro-icon,
.welcome-callout > span,
.organization-group-heading span,
.organization-card > span,
.sports-feature-icon {
  display: none;
}

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

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--school-blue);
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
  background: rgba(0,0,0,0.3);
}

.top-strip {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: clamp(.8rem, .78rem + .15vw, .95rem);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.top-strip a {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}

.brand-strip {
  border-bottom: 1px solid rgba(255, 255, 255, .36);
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-row {
  min-height: 112px;
  display: grid;
  grid-template-columns: 112px minmax(430px, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.crest-link img {
  width: 100px;
  height: auto;
}

.school-identity {
  min-width: 0;
}

.name-line {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 0;
}

.school-name {
  margin: 0;
  color: #fff;
  font-family: "AnselmSchool", "Times New Roman", serif;
  font-size: clamp(1.65rem, 1.05rem + 1.65vw, 2.75rem);
  line-height: .95;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 3px 8px rgba(0, 0, 0, .48);
}

.plain-apostrophe {
  font-family: Verdana, sans-serif;
}

.school-identity p {
  margin: .45rem 0 0;
  color: #fff;
  font-size: clamp(.9rem, .84rem + .2vw, 1.08rem);
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .42);
}

.social-links {
  display: inline-flex;
  gap: .45rem;
  flex: 0 0 auto;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--school-blue);
  box-shadow: 0 8px 22px rgba(32, 106, 170, .25);
  transition: transform .2s ease, background-color .2s ease;
}

.social-links a:first-child {
  background: #dc2626;
}

.social-links a:nth-child(3) {
  background: #1877f2;
}

.social-links a:hover,
.social-links a:focus {
  transform: translateY(-2px);
}

.social-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.quick-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.quick-actions .btn {
  --bs-btn-border-width: 0;
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.quick-actions span {
  font-weight: 700;
}

.action-blue { background: #337ab7; }
.action-orange { background: #f0ad4e; }
.action-red { background: #d9534f; }
.action-green { background: #5cb85c; }

.main-nav {
  min-height: 68px;
  border-bottom: 1px solid rgba(255, 255, 255, .42);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.main-nav .container-fluid,
.main-nav .navbar-collapse {
  min-width: 0;
}

.main-nav .navbar-collapse {
  flex: 1 1 auto;
}

.home-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-right: .6rem;
  color: #fff;
  border-radius: 50%;
}

.home-button:hover,
.home-button:focus {
  background: rgba(255, 255, 255, .14);
}

.home-button svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .45);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .15rem rgba(255, 255, 255, .25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.main-nav .navbar-nav {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
}

.main-nav .nav-link {
  color: #fff;
  padding: .58rem .48rem;
  border-radius: 999px;
  font-size: clamp(.7rem, .48rem + .38vw, .88rem);
  font-weight: 700;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus,
.main-nav .show > .nav-link {
  color: var(--school-blue);
  background: #fff;
}

.dropdown-menu {
  border: 0;
  border-radius: 6px;
  padding: .45rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.dropdown-item {
  color: var(--school-blue);
  border-radius: 4px;
  font-size: .93rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #fff;
  background: var(--school-blue);
}

.media-slider {
  min-height: 0;
  background: transparent;
}

.media-slide {
  height: min(86vh, 820px);
  min-height: 680px;
  background: #111;
}

.media-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .08) 42%, rgba(0, 0, 0, .18) 100%);
}

.media-slide img,
.media-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-video + .slide-fallback {
  display: none;
}

.video-missing .slide-video {
  display: none;
}

.video-missing .slide-fallback {
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  z-index: 5;
  width: 7%;
}

.carousel-indicators {
  z-index: 6;
  margin-bottom: 1.4rem;
}

.section-pad {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-kicker {
  margin-bottom: .65rem;
  color: #ce006a;
  font-family: "AnselmHeading", serif;
  font-size: .92rem;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 1.15rem;
  color: var(--school-blue);
  font-family: "AnselmHeading", Georgia, serif;
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 3rem);
  line-height: 1.18;
  font-weight: 400;
}

main p {
  color: #3e4858;
  font-size: 1.05rem;
  line-height: 1.75;
}

.feature-image,
.principal-photo {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(18, 49, 84, .18);
}

.feature-image {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.principal-photo {
  max-width: 430px;
  height: auto;
  margin-left: auto;
  object-fit: contain;
}

.orbit-section {
  overflow: hidden;
  background: var(--paper);
}

.student-orbit {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  isolation: isolate;
}

.orbit-ring {
  position: absolute;
  inset: 50%;
  translate: -50% -50%;
  border: 2px dashed rgba(0, 172, 235, .22);
  border-radius: 50%;
  transform-origin: center;
  animation: ringSpin var(--ring-speed, 36s) linear infinite;
}

.ring-one {
  width: 34%;
  height: 34%;
  --ring-speed: 28s;
}

.ring-two {
  width: 58%;
  height: 58%;
  --ring-speed: 36s;
  animation-direction: reverse;
}

.ring-three {
  width: 82%;
  height: 82%;
  --ring-speed: 44s;
}

.center-node,
.orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: block;
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
}

.center-node {
  --size: 28%;
  animation: none;
}

.center-node .orbit-img {
  animation-delay: 0s;
}

.orbit-img {
  width: 100%;
  height: 100%;
  border: 8px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
  transform-origin: center;
  animation: smoothZoom 6.5s ease-in-out infinite;
  will-change: transform;
}

.orbit-one .orbit-img {
  animation-delay: .4s;
}

.orbit-two .orbit-img {
  animation-delay: 1s;
}

.orbit-three .orbit-img {
  animation-delay: 1.6s;
}

.orbit-four .orbit-img {
  animation-delay: 2.2s;
}

.orbit-one {
  --size: 18%;
  top: 17%;
  left: 22%;
}

.orbit-two {
  --size: 23%;
  top: 11%;
  left: 72%;
}

.orbit-three {
  --size: 19%;
  top: 78%;
  left: 73%;
}

.orbit-four {
  --size: 16%;
  top: 68%;
  left: 25%;
}

.ring-dot {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.dot-blue {
  top: 50%;
  left: 0;
  width: 17px;
  height: 17px;
  translate: -50% -50%;
  background: #0066ad;
}

.dot-orange {
  top: 62%;
  left: 1%;
  width: 54px;
  height: 54px;
  translate: -50% -50%;
  background: #ff9517;
}

.dot-green {
  top: 100%;
  left: 54%;
  width: 34px;
  height: 34px;
  translate: -50% -50%;
  background: #a6cf37;
}

.dot-red {
  top: 48%;
  left: 100%;
  width: 16px;
  height: 16px;
  translate: -50% -50%;
  background: #f01827;
}

.dot-sky {
  top: 43%;
  left: 100%;
  width: 44px;
  height: 44px;
  translate: -50% -50%;
  background: #16b8e8;
}

@keyframes ringSpin {
  to {
    rotate: 1turn;
  }
}

@keyframes smoothZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.055);
  }
}


.principal-section {
  background: #fff;
}

.principal-signature {
  margin-top: 1.2rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: right;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem 1.05rem;
  margin-top: .35rem;
  color: #fff;
  border-radius: 4px;
  background: var(--school-blue);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(32, 106, 170, .22);
  transition: transform .2s ease, background-color .2s ease;
}

.read-more-link:hover,
.read-more-link:focus {
  color: #fff;
  background: #155e90;
  transform: translateY(-2px);
}

.principal-signature span {
  font-size: 1rem;
}

.principals-strip {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #eef7ff 100%);
}

.principal-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.principal-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: principalScroll 58s linear infinite;
}

.principal-track:hover {
  animation-play-state: paused;
}

.principal-track figure {
  position: relative;
  width: 154px;
  height: 220px;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #dce9f6;
  box-shadow: 0 14px 32px rgba(18, 49, 84, .14);
}

.principal-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-track figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: .8rem .55rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.principal-track figure:hover figcaption,
.principal-track figure:focus-within figcaption {
  opacity: 1;
  transform: translateY(0);
}

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

.footer {
  color: #fff;
  background: linear-gradient(135deg, #064b82 0%, #0f6aa8 58%, #155e90 100%);
}

.footer > .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer h2 {
  margin-bottom: 1rem;
  font-size: 1.18rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, .9);
}

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

.footer-school {
  text-align: center;
}

.footer-school img {
  margin: 0 auto 1rem;
}

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

.app-link img {
  width: 82px;
  height: auto;
}

.footer-social-links {
  display: flex;
  gap: .55rem;
  align-items: center;
  margin-top: 1rem;
}

.footer-social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  transition: transform .2s ease, background-color .2s ease;
}

.footer-social-links a:first-child {
  background: #dc2626;
}

.footer-social-links a:nth-child(2) {
  background: var(--school-blue);
}

.footer-social-links a:nth-child(3) {
  background: #1877f2;
}

.footer-social-links a:hover,
.footer-social-links a:focus {
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom {
  padding: .85rem 0;
  color: #fff;
  background: #050505;
  font-size: .9rem;
}

@media (min-width: 1200px) and (max-width: 1450px) {
  .brand-row {
    grid-template-columns: 98px minmax(350px, 1fr) auto;
    gap: .7rem;
  }

  .quick-actions .btn {
    padding-inline: 7px;
    font-size: 12px;
  }

  .main-nav .nav-link {
    padding-inline: .23rem;
    font-size: .65rem;
  }
}

@media (max-width: 1199.98px) {
  .site-header {
    position: relative;
  }

  .brand-row {
    grid-template-columns: 86px 1fr;
    align-items: center;
    padding: .9rem 0;
  }

  .quick-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .main-nav {
    background: var(--school-blue);
  }

  .home-button {
    margin-right: auto;
  }

  .main-nav .navbar-nav {
    align-items: stretch;
    flex-wrap: wrap;
    gap: .25rem;
    padding: .8rem 0;
  }

  .main-nav .nav-link {
    padding: .65rem .85rem;
    border-radius: 4px;
    font-size: .98rem;
  }

  .dropdown-menu {
    box-shadow: none;
  }

  .media-slider,
  .media-slide {
    min-height: auto;
  }

  .media-slide {
    height: clamp(420px, 58vw, 620px);
  }
}

@media (max-width: 767.98px) {
  .top-strip {
    padding: .35rem 0;
    text-align: center;
  }

  .brand-row {
    grid-template-columns: 76px 1fr;
  }

  .crest-link img {
    width: 74px;
  }

  .name-line {
    align-items: flex-start;
  }

  .school-name {
    white-space: normal;
    font-size: 1.85rem;
  }

  .school-identity p {
    font-size: .86rem;
  }

  .social-links {
    flex-direction: column;
    gap: .28rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

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

  .quick-actions .btn {
    font-size: .82rem;
    white-space: normal;
  }

  .media-slide {
    height: 360px;
  }

  .section-pad {
    padding: 3.25rem 0;
  }

  .student-orbit {
    width: min(100%, 430px);
  }

  .principal-photo {
    margin: 0 auto;
  }

  .principal-signature {
    text-align: left;
  }

  .principal-track figure {
    width: 132px;
    height: 190px;
  }
}

@media (max-width: 430px) {
  .brand-row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .crest-link img {
    margin: 0 auto;
  }

  .name-line {
    justify-content: center;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
