/* St. Augustine High School of Oteiza – public website
   Palette and type follow the school seal and hero banners: royal blue, gold, Poppins. */
:root {
    --navy: #1429a9;
    --navy-deep: #0d1b73;
    --navy-ink: #0c133f;
    --gold: #e8b931;
    --gold-deep: #b8891a;
    --gold-soft: #f8e7b0;
    --ink: #1b1d2b;
    --muted: #646a7a;
    --paper: #ffffff;
    --blush: #f3f5fc;
    --line: #e2e6f0;
    --radius: 10px;
    --shadow: 0 14px 40px rgba(10, 20, 80, .12);
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-line-height: 1.7;
    --bs-link-color: var(--navy);
    --bs-link-hover-color: var(--navy-deep);
    --bs-link-color-rgb: 20, 41, 169;
    --bs-link-hover-color-rgb: 13, 27, 115;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--paper); font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 { font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
p { max-width: 70ch; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: .5rem 1rem; z-index: 2000; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Buttons --------------------------------------------------------------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1.35rem; --bs-btn-padding-y: .65rem; --bs-btn-border-radius: 999px; letter-spacing: .01em; }
.btn-navy { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--navy-deep); --bs-btn-hover-border-color: var(--navy-deep); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-border-color: var(--navy-deep); --bs-btn-active-color: #fff; }
.btn-outline-navy { --bs-btn-color: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-color: #fff; }
.btn-gold { --bs-btn-bg: var(--gold); --bs-btn-border-color: var(--gold); --bs-btn-color: var(--navy-ink); --bs-btn-hover-bg: #f5c642; --bs-btn-hover-border-color: #f5c642; --bs-btn-hover-color: var(--navy-ink); --bs-btn-active-bg: var(--gold-deep); --bs-btn-active-color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* Top bar + header ------------------------------------------------------ */
.topbar { background: var(--navy-deep); color: #fff; font-size: .8rem; }
.topbar .container { min-height: 36px; }
.topbar a, .topbar button { color: rgba(255,255,255,.88); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0; padding: 0; font: inherit; }
.topbar a:hover, .topbar button:hover { color: #fff; }
.topbar .topbar-portal span { display: none; }
@media (min-width: 768px) { .topbar .topbar-portal span { display: inline; } }

.site-header { background: #fff; position: sticky; top: 0; z-index: 1020; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.site-header .navbar { padding: .55rem 0; }
.site-header .navbar-toggler { border: 0; font-size: 1.8rem; color: var(--navy); padding: .1rem .4rem; }
.site-header .nav-link { color: var(--ink); font-weight: 500; font-size: .93rem; padding: .55rem .85rem !important; border-radius: 6px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--navy); }
.site-header .nav-link.active { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-header .dropdown-menu { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 36px rgba(0,0,0,.1); padding: .5rem; min-width: 240px; }
.site-header .dropdown-item { border-radius: 6px; padding: .5rem .8rem; font-size: .9rem; }
.site-header .dropdown-item:hover { background: var(--blush); color: var(--navy); }
@media (min-width: 992px) {
    .site-header .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
    .site-header .dropdown-toggle::after { margin-left: .3em; vertical-align: .15em; }
}
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .75rem 0 1rem; max-height: calc(100vh - 110px); overflow-y: auto; }
    .site-header .nav-link.active { box-shadow: none; background: var(--blush); border-radius: 6px; }
    .site-header .dropdown-menu { box-shadow: none; border: 0; padding-left: 1rem; }
}

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; background: var(--navy-deep); }
.hero-slider { position: relative; overflow: hidden; }
.hero-main { aspect-ratio: 12 / 5; }
.hero-mobile { aspect-ratio: 4 / 3; display: none; }
@media (max-width: 767.98px) { .hero-main { display: none; } .hero-mobile { display: block; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: block; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(4px); font-size: 1.3rem; display: grid; place-items: center; transition: background .2s; }
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: transform .2s, background .2s; }
.hero-dots button.is-active { background: var(--gold); transform: scale(1.25); }
@media (max-width: 767.98px) { .hero-arrow { display: none; } }

/* Portal ribbon --------------------------------------------------------- */
.portal-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--gold); border-radius: var(--radius); margin-top: -34px; position: relative; z-index: 4; box-shadow: var(--shadow); overflow: hidden; }
.portal-ribbon > * { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; color: var(--navy-ink); text-decoration: none; background: none; border: 0; border-right: 1px solid rgba(12,19,63,.15); text-align: left; font: inherit; transition: background .2s; }
.portal-ribbon > *:last-child { border-right: 0; }
.portal-ribbon > *:hover { background: #f5c642; }
.portal-ribbon i { font-size: 1.7rem; line-height: 1; }
.portal-ribbon span { display: flex; flex-direction: column; line-height: 1.25; }
.portal-ribbon strong { font-weight: 600; font-size: .95rem; }
.portal-ribbon small { font-size: .78rem; opacity: .8; }
@media (max-width: 991.98px) { .portal-ribbon { grid-template-columns: repeat(2, 1fr); } .portal-ribbon > :nth-child(2) { border-right: 0; } .portal-ribbon > :nth-child(-n+2) { border-bottom: 1px solid rgba(12,19,63,.15); } }
@media (max-width: 575.98px) { .portal-ribbon { margin-top: -20px; } .portal-ribbon > * { padding: .85rem 1rem; gap: .6rem; } .portal-ribbon i { font-size: 1.4rem; } }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-blush { background: var(--blush); }
.section-dark { background: linear-gradient(135deg, var(--navy-deep), var(--navy-ink)); color: rgba(255,255,255,.88); clip-path: polygon(0 0, 100% 3.5vw, 100% 100%, 0 100%); padding-top: calc(clamp(3rem, 7vw, 5.5rem) + 3.5vw); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-kicker { color: var(--gold); }
.section-kicker { color: var(--navy); font-weight: 600; font-size: .85rem; margin-bottom: .5rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; max-width: 24ch; }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.section-head p:not(.section-kicker) { color: var(--muted); }
.section-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-head-split .section-title { margin-bottom: 0; }
.lead-text { font-size: 1.05rem; color: #3a3d4d; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.facts strong { display: block; font-size: 1.5rem; color: var(--navy); line-height: 1.1; white-space: nowrap; }
.facts span { font-size: .78rem; color: var(--muted); line-height: 1.3; display: block; }
@media (max-width: 575.98px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.framed-photo { position: relative; margin: 0 1.25rem 1.25rem 0; }
.framed-photo > img { border-radius: var(--radius); width: 100%; display: block; position: relative; z-index: 1; box-shadow: var(--shadow); }
.framed-photo::after { content: ''; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 3px solid var(--gold); border-radius: var(--radius); }
.framed-photo figcaption { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.95); border-radius: 999px; padding: .35rem .9rem .35rem .4rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ink); max-width: calc(100% - 2rem); }

/* Level tiles */
.level-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.level-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem 1.25rem; text-align: center; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: .4rem; transition: transform .2s, border-color .2s; }
.level-tile img { width: 86px; height: 86px; object-fit: contain; margin-bottom: .4rem; }
.level-tile strong { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.level-tile span { font-size: .78rem; color: var(--muted); }
.level-tile:hover { transform: translateY(-4px); border-color: var(--gold); color: var(--navy); }
@media (max-width: 991.98px) { .level-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .level-row { grid-template-columns: repeat(2, 1fr); gap: .75rem; } .level-tile { padding: 1.1rem .6rem 1rem; } .level-tile img { width: 64px; height: 64px; } }

/* Program cards */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.program-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--blush); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.program-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; transition: transform .4s; }
.program-card:hover img { transform: scale(1.04); }
.program-card-body { display: flex; flex-direction: column; padding: .9rem 1rem 1rem; line-height: 1.3; }
.program-card-body strong { color: var(--navy); font-size: 1rem; }
.program-card-body span { font-size: .82rem; color: var(--muted); }
@media (max-width: 991.98px) { .program-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .program-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }

/* News */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.news-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.news-card.is-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.news-card-img img { width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.news-card.is-featured .news-card-img img { aspect-ratio: auto; min-height: 260px; }
.news-card-body { padding: 1.25rem 1.35rem 1.4rem; }
.news-card.is-featured .news-card-body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; }
.news-card time { font-size: .78rem; color: var(--navy); font-weight: 600; }
.news-card h3 { font-size: 1.05rem; margin: .35rem 0 .5rem; }
.news-card.is-featured h3 { font-size: 1.35rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--navy); }
.news-card p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 767.98px) { .news-card.is-featured { grid-template-columns: 1fr; } .news-grid { grid-template-columns: 1fr; } }

.side-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; border-top: 4px solid var(--navy); }
.side-panel h2 { margin-bottom: 1rem; }
.side-panel-link { display: inline-block; margin-top: .75rem; font-weight: 600; font-size: .88rem; text-decoration: none; }
.side-panel-link::after { content: ' \203A'; }
.announcement-list, .event-list { list-style: none; margin: 0; padding: 0; }
.announcement-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.announcement-list li:last-child { border-bottom: 0; }
.announcement-list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; display: block; }
.announcement-list a:hover { color: var(--navy); }
.announcement-list a i { color: var(--gold-deep); font-size: .85em; }
.announcement-list small { color: var(--muted); font-size: .78rem; }
.event-list li { display: flex; gap: .9rem; padding: .65rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.event-list li:last-child { border-bottom: 0; }
.event-list li > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.event-list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; }
.event-list a:hover { color: var(--navy); }
.event-list small { color: var(--muted); font-size: .78rem; }
.event-date { flex: 0 0 48px; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); line-height: 1.1; }
.event-date em { display: block; font-style: normal; background: var(--navy); color: #fff; font-size: .65rem; text-transform: uppercase; padding: 3px 0; letter-spacing: .04em; }
.event-date strong { display: block; font-size: 1.15rem; padding: 4px 0 5px; color: var(--ink); }

/* Video */
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 3px solid var(--gold); background: #000; }
.video-frame video { width: 100%; display: block; aspect-ratio: 16/9; }
.values-quote { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--gold-soft); font-weight: 500; font-size: 1.05rem; margin: 1.5rem 0 0; }

/* Galleries */
.gallery-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mosaic-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--blush); }
.mosaic-tile:first-child { grid-row: span 2; grid-column: span 1; aspect-ratio: auto; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem 1rem .9rem; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(5,10,40,.8)); }
@media (max-width: 767.98px) { .gallery-mosaic { grid-template-columns: repeat(2, 1fr); gap: .6rem; } .mosaic-tile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; } }
.facility-strip { margin-top: 2rem; display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 1rem; background: var(--blush); border-radius: var(--radius); padding: 1rem; align-items: center; }
.facility-strip-text { padding: .5rem 1rem; }
.facility-strip-text a { font-weight: 600; font-size: .9rem; text-decoration: none; }
.facility-strip-text a::after { content: ' \203A'; }
.facility-thumb { position: relative; border-radius: 8px; overflow: hidden; display: block; aspect-ratio: 16/11; }
.facility-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facility-thumb span { position: absolute; left: .6rem; bottom: .5rem; background: rgba(255,255,255,.95); border-radius: 999px; padding: .2rem .65rem; font-size: .75rem; font-weight: 600; color: var(--ink); }
@media (max-width: 991.98px) { .facility-strip { grid-template-columns: 1fr 1fr; } .facility-strip-text { grid-column: 1 / -1; } }

/* CTA */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: .5rem auto 1.5rem; color: rgba(255,255,255,.85); }

/* Page header ----------------------------------------------------------- */
.page-header { background: var(--navy-deep); color: #fff; }
.page-header-img img { width: 100%; display: block; aspect-ratio: 16/5; object-fit: cover; }
.page-header-body { padding: 1.6rem 0 1.75rem; border-top: 4px solid var(--gold); }
.page-header h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0; }
.page-header .lead { color: rgba(255,255,255,.85); font-size: .98rem; margin: .4rem 0 0; max-width: 70ch; }
.page-header .breadcrumb { font-size: .78rem; margin-bottom: .4rem; --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-header .breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header .breadcrumb-item.active { color: var(--gold); }
@media (max-width: 767.98px) { .page-header-img img { aspect-ratio: 4/3; } }

/* Content pages --------------------------------------------------------- */
.prose { font-size: 1.02rem; }
.prose p, .prose ul, .prose ol { max-width: 70ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.prose img { border-radius: var(--radius); }
.prose blockquote { border-left: 4px solid var(--gold); padding: .5rem 1.25rem; color: var(--muted); }
.prose ul li { margin-bottom: .35rem; }
.subnav { position: sticky; top: 90px; }
.subnav a { display: block; padding: .55rem .9rem; border-left: 3px solid var(--line); color: var(--ink); text-decoration: none; font-size: .92rem; }
.subnav a:hover, .subnav a.active { border-color: var(--navy); color: var(--navy); background: var(--blush); }
.callout { background: var(--blush); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 1.75rem; position: relative; margin-bottom: .5rem; }
.check-list li::before { content: '\F26E'; font-family: 'bootstrap-icons'; color: var(--navy); position: absolute; left: 0; top: .05em; }
.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.35rem; }
.value-card h3 { font-size: 1.1rem; color: var(--navy); }
.value-card p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 991.98px) { .value-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .value-cards { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.75rem; }
.timeline li::before { content: ''; position: absolute; left: -9px; top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold); }
.timeline strong { color: var(--navy); display: block; }

/* People */
.people-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; }
.person { text-align: center; }
.person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--blush); margin-bottom: .6rem; }
.person strong { display: block; font-size: .92rem; line-height: 1.3; }
.person span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.person.is-lead img { border: 3px solid var(--gold); }
.people-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 992px) { .row.g-5 { --bs-gutter-x: 3rem; } }
@media (max-width: 991.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 2rem; } .people-grid, .people-grid.cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .people-grid, .people-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }
.president-card { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.president-card img { width: 100%; border-radius: var(--radius); border: 3px solid var(--gold); }
@media (max-width: 767.98px) { .president-card { grid-template-columns: 1fr; } .president-card img { max-width: 260px; } }

/* Program detail */
.program-hero { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.program-poster { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 3px solid var(--gold); }
.program-poster img { display: block; width: 100%; }
.program-logo { width: 110px; height: 110px; object-fit: contain; margin-bottom: 1rem; }
@media (max-width: 991.98px) { .program-hero { grid-template-columns: 1fr; } .program-poster { max-width: 420px; } }
.program-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.program-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--ink); align-items: center; transition: border-color .2s, transform .2s; }
.program-row:hover { border-color: var(--gold); transform: translateY(-2px); }
.program-row img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; }
.program-row img.is-logo { object-fit: contain; }
.program-row strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.25; }
.program-row span { font-size: .88rem; color: var(--muted); }
@media (max-width: 767.98px) { .program-list { grid-template-columns: 1fr; } .program-row { grid-template-columns: 84px 1fr; } .program-row img { width: 84px; height: 84px; } }

/* Listings */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 991.98px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .post-list { grid-template-columns: 1fr; } }
.article-hero img { width: 100%; border-radius: var(--radius); max-height: 520px; object-fit: cover; }
.article-meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.article-meta i { color: var(--navy); margin-right: .3rem; }
.pagination { --bs-pagination-color: var(--navy); --bs-pagination-active-bg: var(--navy); --bs-pagination-active-border-color: var(--navy); --bs-pagination-hover-color: var(--navy-deep); --bs-pagination-focus-color: var(--navy-deep); --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(20,41,169,.15); }
.announce-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.announce-item .event-date { flex: none; width: 64px; }
.announce-item h2 { font-size: 1.15rem; }
.announce-item h2 a { color: var(--ink); text-decoration: none; }
.announce-item h2 a:hover { color: var(--navy); }
.announce-item p { color: var(--muted); font-size: .92rem; margin: .35rem 0 0; }
@media (max-width: 575.98px) { .announce-item { grid-template-columns: 1fr; gap: .75rem; } }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.photo-grid a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: var(--blush); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.05); }
@media (max-width: 767.98px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }
.facility-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: center; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.facility-block:nth-child(even) { direction: rtl; }
.facility-block:nth-child(even) > * { direction: ltr; }
.facility-block:last-child { border-bottom: 0; }
.facility-block h2 { font-size: 1.5rem; }
.facility-block .photo-grid { grid-template-columns: repeat(3, 1fr); }
.facility-block .photo-grid a:first-child { grid-column: span 3; aspect-ratio: 16/8; }
@media (max-width: 767.98px) { .facility-block { grid-template-columns: 1fr; } }

/* Calendar */
#calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.fc { --fc-border-color: var(--line); --fc-button-bg-color: var(--navy); --fc-button-border-color: var(--navy); --fc-button-hover-bg-color: var(--navy-deep); --fc-button-hover-border-color: var(--navy-deep); --fc-button-active-bg-color: var(--navy-ink); --fc-button-active-border-color: var(--navy-ink); --fc-today-bg-color: #fff6d6; font-size: .9rem; }
.fc .fc-toolbar-title { font-size: 1.25rem; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
.legend span::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .4rem; background: var(--c); vertical-align: -1px; }

/* Contact */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; height: 100%; }
.contact-card h2 { font-size: 1.1rem; }
.contact-card p { margin-bottom: .6rem; display: flex; gap: .75rem; }
.contact-card i { color: var(--navy); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }
.form-control, .form-select { border-radius: 8px; padding: .7rem .9rem; }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 .25rem rgba(20,41,169,.12); }

/* Portal modal ---------------------------------------------------------- */
.portal-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.portal-modal .modal-header { border-bottom: 1px solid var(--line); padding: 1.25rem 1.5rem; }
.portal-switch { display: inline-flex; background: var(--blush); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; }
.portal-switch button { border: 0; background: none; padding: .5rem 1.25rem; border-radius: 999px; font-weight: 600; color: var(--muted); }
.portal-switch button.active { background: var(--navy); color: #fff; }
.portal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.portal-card { display: block; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--blush); border: 2px solid transparent; text-align: center; transition: border-color .2s, transform .2s; }
.portal-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.portal-card span { display: block; padding: .55rem .4rem; font-size: .8rem; font-weight: 600; line-height: 1.2; }
.portal-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--navy); }
@media (max-width: 575.98px) { .portal-grid { grid-template-columns: repeat(2, 1fr); } }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.78); padding: 3.5rem 0 0; font-size: .92rem; }
.site-footer h2 { font-size: 1.05rem; }
.footer-tagline { color: var(--gold); font-weight: 500; }
.footer-heading { color: #fff; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .footer-links button { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold); text-decoration: none; }
.footer-address { font-style: normal; }
.footer-address p { display: flex; gap: .7rem; margin-bottom: .5rem; }
.footer-address i { color: var(--gold); margin-top: .2rem; }
.footer-address a { color: inherit; text-decoration: none; }
.footer-address a:hover { color: var(--gold); }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.6); }

/* SAHSOI additions ------------------------------------------------------- */
.level-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991.98px) { .level-row.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.strand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.strand-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.strand-card { display: flex; flex-direction: column; gap: .35rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 1.35rem 1.4rem; text-decoration: none; color: var(--ink); transition: transform .2s, border-color .2s; }
a.strand-card:hover { transform: translateY(-4px); border-color: var(--navy); color: var(--ink); }
.strand-card strong { font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.strand-name { font-weight: 600; font-size: .92rem; }
.strand-desc { font-size: .86rem; color: var(--muted); }
@media (max-width: 991.98px) { .strand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .strand-grid, .strand-grid.cols-2 { grid-template-columns: 1fr; } }
.portal-parent { background: var(--blush); border-radius: 10px; padding: 1.5rem; text-align: center; }
.portal-parent p { max-width: none; }
.portal-guide a { font-weight: 600; }
.people-grid.justify-content-center { justify-content: center; grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); }
.site-header .dropdown-item { display: flex; align-items: center; gap: .65rem; }
.site-header .dropdown-item .bi { width: 1.6rem; height: 1.6rem; flex: 0 0 1.6rem; display: grid; place-items: center; border-radius: 6px; background: var(--blush); color: var(--navy); font-size: .9rem; transition: background .2s, color .2s; }
.site-header .dropdown-item:hover .bi, .site-header .dropdown-item.active .bi { background: var(--navy); color: #fff; }
.site-header .dropdown-item.active { color: var(--navy); font-weight: 600; background: transparent; }

/* Top bar LMS button ---------------------------------------------------- */
.topbar .container { min-height: 44px; }
.lms-menu { margin-left: .25rem; }
.topbar .lms-btn { display: inline-flex; align-items: center; gap: .55rem; background: linear-gradient(135deg, var(--gold), #f5c642); color: var(--navy-ink); border: 0; border-radius: 999px; padding: .3rem .85rem .3rem .35rem; font: inherit; font-size: .8rem; line-height: 1.15; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.topbar .lms-btn:hover, .topbar .lms-btn:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.3); color: var(--navy-ink); }
.lms-btn-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1rem; flex: 0 0 28px; }
.lms-btn-text { display: flex; flex-direction: column; text-align: left; }
.lms-btn-text strong { font-weight: 700; letter-spacing: .01em; }
.lms-btn-text small { font-size: .66rem; opacity: .8; }
.lms-btn-caret { font-size: .7rem; opacity: .7; }
.lms-menu .dropdown-menu { border: 0; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: .5rem; min-width: 260px; margin-top: .5rem; }
.lms-menu .dropdown-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 8px; color: var(--ink); font-size: .9rem; }
.lms-menu .dropdown-item .bi { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--blush); color: var(--navy); display: grid; place-items: center; font-size: 1.1rem; }
.lms-menu .dropdown-item span { display: flex; flex-direction: column; line-height: 1.2; }
.lms-menu .dropdown-item small { color: var(--muted); font-size: .75rem; }
.lms-menu .dropdown-item:hover { background: var(--blush); }
.lms-menu .dropdown-item:hover .bi { background: var(--navy); color: #fff; }
@media (max-width: 575.98px) { .lms-btn-text small { display: none; } .lms-btn { padding-right: .7rem; } }
.framed-video .video-frame { position: relative; z-index: 1; box-shadow: var(--shadow); }
.framed-video .video-frame video { aspect-ratio: 16/9; object-fit: cover; }

/* Brand: high-resolution seal + live wordmark ----------------------------- */
.site-header .brand { display: flex; align-items: center; gap: .75rem; padding: 0; margin-right: 1rem; }
.site-header .brand-seal { height: 62px; width: 62px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(10,20,80,.18)); }
.site-header .brand-text { display: flex; flex-direction: column; line-height: 1.08; border-left: 2px solid var(--gold); padding-left: .75rem; }
.site-header .brand-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.site-header .brand-sub { font-weight: 600; font-size: .86rem; color: var(--navy-deep); white-space: nowrap; }
.site-header .brand-place { font-weight: 500; font-size: .64rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: .22rem; white-space: nowrap; }
@media (max-width: 1199.98px) { .site-header .brand-place { display: none; } }
@media (max-width: 991.98px) { .site-header .brand-seal { height: 54px; width: 54px; } }
@media (max-width: 575.98px) { .site-header .brand-seal { height: 46px; width: 46px; } .site-header .brand-text { padding-left: .55rem; } .site-header .brand-name { font-size: .88rem; } .site-header .brand-sub { font-size: .74rem; } }
@media (max-width: 359.98px) { .site-header .brand-text { display: none; } }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .nav-link { padding: .55rem .55rem !important; font-size: .88rem; }
    .site-header .brand-name { font-size: .95rem; }
    .site-header .brand-seal { height: 54px; width: 54px; }
    .site-header .navbar-nav .btn-gold { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .5rem; font-size: .88rem; }
}
.site-header .brand { flex: 0 1 auto; min-width: 0; }
.prose iframe { width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); background: #000; display: block; margin: 1.25rem 0; }
