/* Index-only modern UI refresh
   Patterns used: sticky glass nav, clear visual hierarchy, modular cards, spacious rhythm. */

:root {
    --idx-surface: #ffffff;
    --idx-surface-soft: #f8fafc;
    --idx-border: #e2e8f0;
    --idx-text: #0f172a;
    --idx-muted: #64748b;
    --idx-radius-lg: 20px;
    --idx-radius-md: 14px;
    --idx-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
    --idx-shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --accent-gold: #c4a35a;
    --accent-gold-light: #e8d5a3;
    --accent-crimson: #9b2d30;
    --cta-primary: var(--accent-crimson, #9b2d30);
    --cta-primary-hover: #a83336;
    --cta-primary-shadow: rgba(155, 45, 48, 0.28);
    --navy-deep: darkblue;
    --navy-chrome: var(--navy-deep, darkblue);
    --navy-hero: #0f2847;
    --cream: #f7f3eb;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* Index typography scale — fluid from mobile through large desktop */
    --idx-display: clamp(1.85rem, 1.5vw + 1.25rem, 3.5rem);
    --idx-title: clamp(1.6rem, 1.2vw + 1rem, 2.75rem);
    --idx-heading: clamp(1rem, 0.6vw + 0.75rem, 1.375rem);
    --idx-lead: clamp(0.9375rem, 0.45vw + 0.8rem, 1.25rem);
    --idx-body: clamp(0.875rem, 0.25vw + 0.78rem, 1.0625rem);
    --idx-body-sm: clamp(0.8125rem, 0.2vw + 0.72rem, 1rem);
    --idx-caption: clamp(0.75rem, 0.15vw + 0.68rem, 0.9375rem);
    --idx-label: clamp(0.6875rem, 0.1vw + 0.62rem, 0.8125rem);
    --idx-card-title: clamp(0.9375rem, 0.35vw + 0.8rem, 1.125rem);
    /* Content width — fluid gutters; widens on large screens */
    --site-content-gutter: clamp(0.75rem, 4vw, 1.25rem);
    --site-content-max: min(1280px, calc(100% - 2 * var(--site-content-gutter)));
    --site-content-pad-x: clamp(1rem, 4vw, 3.125rem);
    /* Homepage vertical rhythm — same gap between every section */
    --home-section-y: clamp(2.25rem, 4vw, 3rem);
    --home-section-header-gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 1200px) {
    :root {
        --site-content-gutter: clamp(1rem, 2.5vw, 2.5rem);
        --site-content-max: min(1680px, calc(100vw - 2 * var(--site-content-gutter)));
        --site-content-pad-x: clamp(1.25rem, 2.5vw, 2.75rem);
    }
}

@media (min-width: 1400px) {
    :root {
        --site-content-gutter: clamp(1.25rem, 2vw, 2.75rem);
        --site-content-max: min(1840px, calc(100vw - 2 * var(--site-content-gutter)));
    }
}

@media (min-width: 1600px) {
    :root {
        --site-content-gutter: clamp(1.5rem, 1.75vw, 2.5rem);
        --site-content-max: min(2000px, calc(100vw - 2 * var(--site-content-gutter)));
    }
}

@media (min-width: 1920px) {
    :root {
        --site-content-gutter: clamp(1.25rem, 1.25vw, 2rem);
        --site-content-max: min(2400px, calc(100vw - 2 * var(--site-content-gutter)));
    }
}

@media (min-width: 2560px) {
    :root {
        --site-content-gutter: clamp(1.5rem, 1vw, 2.5rem);
        --site-content-max: min(2800px, calc(100vw - 2 * var(--site-content-gutter)));
    }
}

@media (max-width: 399.98px) {
    :root {
        --site-content-pad-x: 0.75rem;
    }
}

body {
    background:
        radial-gradient(1200px 500px at 12% -10%, color-mix(in srgb, var(--theme-primary) 10%, transparent), transparent 60%),
        radial-gradient(1000px 420px at 90% -8%, color-mix(in srgb, var(--theme-secondary) 8%, transparent), transparent 62%),
        var(--bg-light, #ecf0f1);
    overflow-x: clip;
    min-width: 0;
}

/* overflow-x: hidden on html breaks position:sticky — use clip instead */
html {
    overflow-x: clip;
}

::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
    animation-duration: 0.25s;
    animation-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Unified site header — one cohesive bar, no stacked “double site” feel */
@media (min-width: 1200px) {
    .site-header-sticky {
        background: #ffffff;
        border-bottom: 1px solid #e8ecef;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    .main-header {
        border-bottom: none;
        box-shadow: none;
    }

    .site-nav-sticky--menu {
        background: #ffffff;
    }

    .main-nav {
        border-top: none;
        border-bottom: none;
        min-height: 50px;
    }

    .header-masthead {
        padding-block: 0.35rem 0.15rem;
    }

    .header-brand__title {
        font-size: clamp(0.95rem, 1.5vw, 1.12rem);
    }

    .header-brand__tagline {
        display: block;
    }

    .header-contact {
        display: flex;
        margin-top: 0.15rem;
        padding-top: 0.35rem;
        font-size: 0.72rem;
    }

    .header-masthead__social {
        display: inline-flex;
    }

    .header-date {
        font-size: 0.68rem;
        opacity: 0.85;
    }
}

/* Top contact strip (mobile only utilities) */
.site-topbar {
    background: var(--navy-deep, darkblue);
    border-bottom: 1px solid rgba(196, 163, 90, 0.22);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
}

.site-topbar__inner {
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    min-height: 34px;
    padding-inline: var(--site-content-pad-x);
    box-sizing: border-box;
}

.site-topbar__start {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem 0.6rem;
    min-width: 0;
}

.site-topbar__center {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem 0.6rem;
    min-width: 0;
    text-align: center;
}

.site-topbar__date {
    display: inline-flex;
    align-items: center;
    text-align: center;
}

.site-topbar__end {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
    min-width: 0;
}

.site-topbar__contact {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    min-width: 0;
}

.site-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-topbar__phone {
    white-space: nowrap;
}

.site-topbar__start .site-topbar__link span {
    max-width: min(16rem, 28vw);
}

.site-topbar__center .site-topbar__location span {
    max-width: min(14rem, 22vw);
}

.site-topbar__date time {
    white-space: nowrap;
}

.site-topbar__link:hover {
    color: var(--accent-gold-light, #e8d5a3);
}

.site-topbar__sep {
    color: rgba(196, 163, 90, 0.55);
    user-select: none;
}

.site-topbar__location span {
    max-width: min(10rem, 18vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-topbar__link span {
    max-width: min(11rem, 20vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-topbar__sep--end {
    flex-shrink: 0;
}

.site-topbar__social {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.site-topbar__social a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    transition: color 0.2s ease;
}

.site-topbar__social a:hover {
    color: var(--accent-gold, #c4a35a);
}

@media (min-width: 1200px) {
    .header-brand-wrap .header-contact {
        display: flex;
    }
}

/* Top masthead — white bar, centered logo (news-portal style) */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    padding: 0;
}

.main-header .container-fluid,
.header-masthead {
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
}

.header-masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.5rem;
    min-height: 0;
    padding-block: 0.15rem;
}

@media (min-width: 992px) {
    .header-brand-wrap {
        grid-column: auto;
        justify-self: center;
    }
}

.header-masthead__left {
    justify-self: start;
    align-self: start;
    padding-top: 0;
}

.header-brand-wrap {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    max-width: min(520px, 78vw);
}

.header-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    width: 100%;
    margin: 0;
    padding-top: 0.35rem;
    border-top: 1px solid #e8ecef;
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1.3;
}

.header-contact__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-light, #5c6f82);
    text-decoration: none;
    font-weight: 500;
}

.header-contact__link i {
    font-size: 0.68rem;
    color: var(--accent-gold, #c4a35a);
    opacity: 0.9;
}

.header-contact__link:hover {
    color: var(--primary-blue, #003d7a);
}

.header-contact__sep {
    color: #cbd5e1;
    font-weight: 400;
    user-select: none;
}

.header-masthead__right {
    justify-self: end;
    align-self: start;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.header-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-blue, #003d7a);
    line-height: 1.25;
    white-space: nowrap;
}

.header-date--np {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: right;
    color: var(--navy-deep, darkblue);
    opacity: 1;
    min-height: 1.1em;
}

.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    max-width: 100%;
}

.header-brand__mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.header-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header-brand__copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    text-align: center;
}

.header-brand__title {
    font-family: var(--font-display, var(--font-heading));
    font-size: clamp(1rem, 1.9vw, 1.28rem);
    font-weight: 600;
    line-height: 1.08;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.header-brand__part {
    color: var(--navy-deep, #0f2847);
}

.header-brand__accent {
    color: var(--accent-crimson, #9b2d30);
    font-style: italic;
}

.header-brand__tagline {
    font-size: 0.65rem;
    color: var(--text-light, #666666);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 500;
    max-width: 100%;
}

.header-masthead__social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-social-link {
    color: var(--primary-blue, #003d7a);
    text-decoration: none;
    font-size: 0.78rem;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.header-social-link:hover {
    opacity: 1;
    color: var(--light-blue, #0e99b5);
}

.header-social-link[aria-disabled="true"] {
    opacity: 0.35;
    pointer-events: none;
}

/* Mobile header toolbar — menu | centered logo | language */
.header-mobile-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Hamburger icon color on mobile chrome — see max-width: 1199.98px block */

.header-mobile-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    line-height: 1;
}

.header-mobile-lang:hover {
    background: rgba(255, 255, 255, 0.22);
}

.header-mobile-ticker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

.header-mobile-ticker__label {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-red, #d63030);
    white-space: nowrap;
}

.header-mobile-ticker__track {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-mobile-ticker__marquee {
    overflow: hidden;
    width: 100%;
}

.header-mobile-ticker__text {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    white-space: nowrap;
    animation: site-ticker-scroll 24s linear infinite;
    will-change: transform;
}

.header-mobile-ticker__text--static {
    display: block;
    animation: none;
    color: var(--primary-blue, #003d7a);
}

.header-mobile-ticker__dup {
    flex-shrink: 0;
}

/* Sticky site header — masthead (mobile: + ticker) stays at top on scroll */
.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1300;
    width: 100%;
    background: transparent;
    transition: box-shadow 0.2s ease;
}

.site-header-sticky.is-scrolled {
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
}

.site-header-sticky .main-header {
    overflow: visible;
}

/* Navbar shell — stacks below masthead on desktop */
.site-nav-sticky {
    position: relative;
    z-index: 1299;
    background: #ffffff;
}

@media (min-width: 992px) {
    .site-nav-sticky {
        position: sticky;
        top: var(--site-masthead-h, 80px);
    }
}

.nav-pin-spacer {
    display: none !important;
}

/* Navbar — refined spacing, gold accents */
.main-nav {
    --nav-brand-red: var(--accent-crimson, #9b2d30);
    --navbar-height: 54px;
    position: relative;
    z-index: 1;
    min-height: var(--navbar-height);
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    transition: box-shadow 0.2s ease;
}

.site-header-sticky.is-scrolled .main-nav {
    box-shadow: none;
}

/* Legacy script.js — no body padding / parallax */
body.nav-sticky {
    padding-top: 0 !important;
}

.main-nav.sticky {
    position: relative !important;
    animation: none !important;
}

.main-header {
    transform: none !important;
}

.main-nav__inner {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    min-height: var(--navbar-height);
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    padding-inline: clamp(0.75rem, 2vw, 2rem);
    overflow: visible;
}

.main-nav,
.site-nav-sticky,
.site-nav-sticky--menu {
    overflow: visible;
}

.main-nav__toggler,
.main-nav .navbar-toggler {
    color: var(--primary-blue, #003d7a);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.35rem 0.55rem;
    margin-right: 0.25rem;
}

@media (min-width: 1200px) {
    .main-nav__inner > .navbar-collapse {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem 0.65rem;
        min-height: var(--navbar-height);
        min-width: 0;
        overflow: visible;
    }

    .main-nav__links {
        flex: 1 1 auto;
        justify-content: center;
        margin: 0;
        min-width: 0;
    }

    .main-nav .navbar-nav .nav-link {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.82rem;
    }

    .nav-actions {
        flex: 0 0 auto;
        margin-left: 0;
        flex-direction: row !important;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
}

.brand-navbar {
    max-width: min(480px, 48vw);
    text-decoration: none;
    margin-right: 0.35rem;
    background: transparent;
    border-radius: 0;
    padding: 0;
    gap: 0.5rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--nav-brand-red);
    color: #ffffff;
    font-size: 1rem;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.brand-copy {
    display: grid;
    align-items: center;
    line-height: 1.15;
    min-width: 0;
}

.brand-title {
    font-size: clamp(0.92rem, 1.5vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-title__part {
    color: #1e293b;
}

.brand-title__accent {
    color: var(--nav-brand-red);
}

.brand-tagline {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav .navbar-nav {
    gap: 0.15rem;
    flex-wrap: nowrap;
}

.main-nav .navbar-nav > .nav-item {
    position: relative;
}

.main-nav .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    display: none;
}

.main-nav .navbar-nav .nav-link {
    position: relative;
    border-radius: 999px;
    padding: 0.5rem 0.9rem !important;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy-deep, darkblue);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus-visible {
    background: rgba(10, 31, 61, 0.06);
    color: var(--navy-deep, darkblue);
    transform: none;
}

.main-nav .navbar-nav .nav-link.active {
    color: var(--navy-deep, darkblue);
    background: rgba(196, 163, 90, 0.18);
}

.main-nav .navbar-nav > .nav-item > .nav-link.active::after {
    display: none;
}

.main-nav .navbar-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.main-nav .navbar-nav .dropdown-toggle::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

.main-nav .navbar-nav .nav-dropdown-chevron--inline,
.main-nav .navbar-nav .nav-dropdown-chevron--static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    min-width: 12px;
    height: auto;
    font-size: 0.68rem;
    line-height: 1;
    color: currentColor;
    opacity: 0.85;
    transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.main-nav .navbar-nav .nav-submenu-toggle {
    display: none;
}

.main-nav .navbar-nav .dropdown-toggle:hover .nav-dropdown-chevron--inline,
.main-nav .navbar-nav .dropdown-toggle.active .nav-dropdown-chevron--inline,
.main-nav .navbar-nav .dropdown-toggle.show .nav-dropdown-chevron--inline,
.main-nav .navbar-nav .dropdown-toggle:hover .nav-dropdown-chevron--static,
.main-nav .navbar-nav .dropdown-toggle.active .nav-dropdown-chevron--static,
.main-nav .navbar-nav .dropdown-toggle.show .nav-dropdown-chevron--static,
.nav-item-overflow .overflow-toggle:hover .nav-dropdown-chevron--static,
.nav-item-overflow .overflow-toggle.show .nav-dropdown-chevron--static {
    color: currentColor;
    opacity: 1;
}

@media (min-width: 1200px) {
    .main-nav .navbar-nav .nav-dropdown-row {
        display: inline-flex;
        align-items: center;
    }

    .main-nav .navbar-nav .dropdown-toggle.nav-link--parent .nav-dropdown-chevron--inline {
        display: inline-flex !important;
        margin-left: 0.1rem;
        font-size: 0.72rem;
        opacity: 1;
    }

    .main-nav .navbar-nav > .nav-item.dropdown:hover > .nav-dropdown-row .nav-dropdown-chevron--inline,
    .main-nav .navbar-nav > .nav-item.dropdown:focus-within > .nav-dropdown-row .nav-dropdown-chevron--inline {
        color: var(--accent-crimson, #c41e3a);
        transform: rotate(180deg);
    }
}

.nav-item-overflow .overflow-toggle {
    width: auto;
    text-align: center;
    font-size: 0.94rem;
    border: 0;
    padding: 0.65rem 0.8rem !important;
    background: transparent;
    color: #334155;
}

.navbar-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.4rem;
}

.navbar-modal-group {
    padding: 0.25rem 0;
}

.navbar-modal-title {
    display: inline-block;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.navbar-modal-submenu {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.32rem;
}

.navbar-modal-submenu a {
    color: #475569;
    text-decoration: none;
}

.navbar-modal-submenu a:hover,
.navbar-modal-title:hover {
    color: var(--theme-primary);
}

.dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    padding: 0.6rem 0;
    background: #ffffff;
}

.dropdown-item {
    border-radius: 0;
    padding: 0.62rem 1rem;
    font-size: 0.98rem;
    color: #374151;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: var(--theme-primary);
    border-left-color: var(--theme-primary);
}

.lang-toggle {
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, #ffffff 32%, var(--theme-primary));
    background: color-mix(in srgb, var(--theme-secondary) 12%, transparent);
    color: #ffffff;
    min-width: 56px;
    font-weight: 700;
}

.social-link-navbar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: none;
    color: #fff;
}

.social-link-navbar:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 0;
    color: #ffffff;
    border-color: color-mix(in srgb, #ffffff 32%, var(--theme-primary)) !important;
    background: color-mix(in srgb, var(--theme-secondary) 12%, transparent);
}

/* About page banner overlay */
.page-banner--about {
    position: relative;
    padding: clamp(72px, 10vw, 110px) 0;
    background-image: var(--about-banner-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-banner--about .page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 61, 0.92) 0%,
        rgba(15, 40, 71, 0.78) 55%,
        rgba(10, 31, 61, 0.88) 100%
    );
    pointer-events: none;
}

.page-banner--about .container-fluid {
    position: relative;
    z-index: 1;
}

.page-banner-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    max-width: 42rem;
    margin: 0 auto 1rem;
    line-height: 1.55;
}

.page-banner-title {
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 3.7rem) !important;
    font-weight: 800 !important;
    margin-bottom: 0.75rem !important;
    text-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
}

.page-banner-crumbs {
    background: transparent !important;
    margin-bottom: 0;
}

.page-banner-crumbs .breadcrumb-item,
.page-banner-crumbs .breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 600;
}

.page-banner-crumbs .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.8);
}

.page-banner-crumbs .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-banner-crumbs .breadcrumb-item a:hover {
    color: #ffffff;
}

/* About page — YouTube hero (split or background) */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero__inner {
    position: relative;
    z-index: 2;
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    padding-inline: var(--site-content-pad-x);
    box-sizing: border-box;
}

/* Split: text left, video right */
.about-hero--split {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.about-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.about-hero__pill {
    display: inline-flex;
    margin: 0 0 0.85rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-hero__pill--brand {
    color: #fff;
    background: var(--navy-deep, darkblue);
    box-shadow: 0 6px 18px rgba(10, 31, 61, 0.22);
}

.about-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 1rem;
    color: #fff;
    text-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
}

.about-hero__title--dark {
    color: var(--navy-deep, darkblue);
    text-shadow: none;
}

.about-hero__lead {
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1rem;
    max-width: 52ch;
    color: rgba(248, 250, 252, 0.9);
}

.about-hero__lead--dark {
    color: #475569;
}

.about-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.about-hero__meta--dark {
    color: #64748b;
}

.about-hero__meta--dark i {
    color: var(--navy-deep, darkblue);
}

.about-hero__crumbs {
    background: transparent !important;
    margin: 0;
    padding: 0;
}

.about-hero__crumbs .breadcrumb-item,
.about-hero__crumbs .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
}

.about-hero__crumbs .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.75);
}

.about-hero__crumbs .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.about-hero__crumbs .breadcrumb-item a:hover {
    color: #fff;
}

.about-hero__crumbs--dark .breadcrumb-item,
.about-hero__crumbs--dark .breadcrumb-item.active {
    color: #64748b !important;
}

.about-hero__crumbs--dark .breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
}

.about-hero__crumbs--dark .breadcrumb-item a {
    color: var(--navy-deep, darkblue);
}

.about-hero__crumbs--dark .breadcrumb-item a:hover {
    color: var(--navy-hero, #0f2847);
}

.about-hero__media {
    min-width: 0;
}

.about-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.06);
}

.about-video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.about-video-frame iframe,
.about-video-frame__el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Background video behind text */
.about-hero--bg {
    min-height: clamp(380px, 52vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.about-hero__bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.about-hero__bg-video iframe,
.about-hero__bg-video-el {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100vw, 177.78vh);
    height: max(56.25vw, 100vh);
    transform: translate(-50%, -50%);
    border: 0;
    object-fit: cover;
}

.about-hero__bg-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 31, 61, 0.88) 0%,
        rgba(15, 40, 71, 0.75) 50%,
        rgba(10, 31, 61, 0.85) 100%
    );
    pointer-events: none;
}

.about-hero__copy--center {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    color: #fff;
}

.about-hero__copy--center .about-hero__crumbs {
    justify-content: center;
}

@media (max-width: 991.98px) {
    .about-hero-split {
        grid-template-columns: 1fr;
    }

    .about-video-frame {
        aspect-ratio: 16 / 9;
    }
}

/* Homepage hero — deep navy base, white UI, red accent on CTA + highlight only */
.home-hero {
    position: relative;
    margin-bottom: 0;
    background: linear-gradient(
        160deg,
        var(--hero-bg, #00285a) 0%,
        var(--primary-blue, #003d7a) 55%,
        var(--hero-bg, #00285a) 100%
    );
    overflow: hidden;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(0, 40, 90, 0.92) 0%,
        rgba(0, 40, 90, 0.7) 40%,
        rgba(0, 40, 90, 0.15) 62%,
        transparent 76%
    );
}

.home-hero__inner {
    position: relative;
    z-index: 3;
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: stretch;
    min-height: clamp(460px, 54vh, 580px);
    /* Keep horizontal padding from .container-fluid so copy lines up with navbar */
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
    padding-inline: var(--site-content-pad-x);
    box-sizing: border-box;
}

.home-hero__copy {
    color: #fff;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: visible;
    padding-right: 0.5rem;
}

.home-hero__motto-pill {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.home-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 1.1rem;
}

.home-hero__title-line {
    display: block;
}

.home-hero__title em {
    font-style: normal;
    color: var(--accent-red, #d63030);
}

.home-hero__divider {
    width: 40px;
    height: 3px;
    margin: 0 0 1.15rem;
    border: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
}

.home-hero__desc {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(248, 250, 252, 0.86);
    margin: 0 0 1.5rem;
    max-width: 46ch;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-hero--primary {
    background: var(--accent-red, #d63030);
    color: #ffffff;
    border: 2px solid var(--accent-red, #d63030);
    box-shadow: 0 10px 28px rgba(214, 48, 48, 0.4);
}

.btn-hero--primary:hover {
    color: #ffffff;
    transform: translateY(-2px);
    background: var(--accent-red-light, #e84040);
    border-color: var(--accent-red-light, #e84040);
    box-shadow: 0 14px 32px rgba(232, 64, 64, 0.45);
}

.btn-hero--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-hero--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
}

.home-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.home-hero__stat-badge {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: var(--hero-on-navy, rgba(255, 255, 255, 0.12));
    border: 1px solid var(--hero-on-navy-border, rgba(255, 255, 255, 0.22));
    backdrop-filter: blur(10px);
    min-width: 4.5rem;
}

.home-hero__stat-badge strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}

.home-hero__stat-badge span {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.home-hero__media {
    position: relative;
    min-height: 280px;
}

.home-hero__media-fade {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 28%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, var(--hero-bg, #00285a) 0%, transparent 100%);
}

.home-hero__grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
    min-height: clamp(280px, 38vw, 420px);
    position: relative;
    z-index: 1;
}

.home-hero__cell {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.home-hero__cell--lead {
    grid-row: 1 / 3;
    grid-column: 1;
    aspect-ratio: auto;
}

.home-hero__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
    filter: saturate(1.02) contrast(1.02);
}

.home-hero__cell:hover img {
    transform: scale(1.04);
}

/* School hero — white content panel + photo grid + navy trust strip */
.school-hero-wrap {
    margin-bottom: 0;
    width: 100%;
}

.school-hero {
    background: #ffffff;
    width: 100%;
}

.school-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
    min-height: clamp(380px, 46vh, 520px);
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    background: #ffffff;
    box-sizing: border-box;
}

.school-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
    padding-left: max(var(--site-content-pad-x), clamp(1.5rem, 2.5vw, 2rem));
    background: #ffffff;
    color: var(--navy-deep, darkblue);
    border-right: 1px solid #e8ecef;
}

@media (min-width: 992px) {
    .school-hero__copy-body {
        order: 1;
    }

    .school-hero__actions {
        order: 2;
    }

    .school-hero__stats {
        order: 3;
    }
}

.school-hero__copy-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
}

.school-hero__title {
    font-family: var(--font-display);
    font-size: var(--idx-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 0.85rem;
    color: var(--navy-deep, darkblue);
}

.school-hero__title-line {
    display: inline;
}

.school-hero__title-line + .school-hero__title-line {
    margin-top: 0;
}

.school-hero__title-line em {
    font-style: italic;
}

.school-hero__title em {
    font-style: italic;
    color: var(--accent-crimson, #9b2d30);
}

.school-hero__motto {
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    font-family: var(--font-display);
    font-size: var(--idx-lead);
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    color: #3d5a73;
}

.school-hero__motto p {
    margin: 0;
    white-space: normal;
}

.school-hero__lead {
    font-family: var(--font-body);
    font-size: var(--idx-body);
    line-height: 1.65;
    color: #4a6278;
    margin: 0 0 1rem;
    max-width: min(48ch, 100%);
}

.school-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 0.25rem;
}

.school-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--idx-body-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.school-hero__cta--apply {
    padding: 0.72rem 1.35rem;
    background: var(--cta-primary);
    color: #ffffff;
    border: 2px solid var(--cta-primary);
    box-shadow: 0 8px 22px var(--cta-primary-shadow);
}

.school-hero__cta--apply:hover {
    color: #ffffff;
    background: var(--cta-primary-hover);
    border-color: var(--cta-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(155, 45, 48, 0.32);
}

.school-hero__cta--explore {
    color: var(--navy-deep, darkblue);
    padding: 0.45rem 0;
}

.school-hero__cta--explore:hover {
    color: var(--accent-crimson, #9b2d30);
}

.school-hero__cta-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    border: 1px solid rgba(155, 45, 48, 0.35);
    color: var(--accent-crimson, #9b2d30);
    font-size: 0.68rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.school-hero__cta--explore:hover .school-hero__cta-ring {
    background: rgba(155, 45, 48, 0.08);
    border-color: var(--accent-crimson, #9b2d30);
}

.school-hero__stats {
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.school-hero__stats-rule {
    border: 0;
    height: 1px;
    margin: 0 0 0.65rem;
    background: #e8ecef;
}

.school-hero__stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.school-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.school-hero__stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.2vw + 0.75rem, 2rem);
    font-weight: 600;
    line-height: 1;
    color: var(--navy-deep, darkblue);
}

.school-hero__stat-label {
    font-family: var(--font-body);
    font-size: var(--idx-label);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b8499;
}

/* Image grid — tall lead (main photo) + two stacked */
.school-hero__media {
    position: relative;
    background: #f1f4f8;
}

@media (min-width: 992px) {
    .school-hero__media {
        min-height: 100%;
    }
}

.school-hero__grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    height: 100%;
    min-height: clamp(380px, 46vh, 480px);
    padding: 5px;
    padding-left: 0;
    box-sizing: border-box;
}

.school-hero__grid-cell {
    margin: 0;
    overflow: hidden;
    position: relative;
    min-height: 0;
    background: #e2e8f0;
}

.school-hero__grid-cell--lead {
    grid-row: 1 / 3;
    grid-column: 1;
}

.school-hero__grid-cell img,
.school-hero__grid-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.school-hero__grid-fallback {
    min-height: 100%;
    background: linear-gradient(160deg, #c5d4e3 0%, #9eb4c8 100%);
}

.school-hero__grid-fallback--alt {
    background: linear-gradient(160deg, #b8ccd9 0%, #8fa8bc 100%);
}

.school-hero__grid-fallback--alt2 {
    background: linear-gradient(160deg, #a8becf 0%, #7f99ae 100%);
}

.school-hero__grid-cell:hover img {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

/* Navy trust strip */
.school-trust-bar {
    background: linear-gradient(90deg, var(--navy-deep, darkblue) 0%, var(--navy-hero, #0f2847) 100%);
    border-bottom: none;
}

.school-trust-bar__inner {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

.school-trust-bar__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: 0;
    padding: 0.7rem 0;
    list-style: none;
}

.school-trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.school-trust-bar__item i {
    color: var(--accent-gold-light, #e8d5a3);
    font-size: 0.85rem;
    opacity: 0.95;
}

@media (max-width: 1199.98px) {
    .school-hero__inner {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 0;
    }

    /* Unwrap copy so mobile order is: text → images → apply → stats */
    .school-hero__copy {
        display: contents;
    }

    .school-hero__copy-body {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        box-sizing: border-box;
        padding: 0.85rem var(--site-content-pad-x) 0.65rem;
        background: #ffffff;
    }

    .school-hero__media {
        order: 2;
        flex: 0 0 auto;
        align-self: stretch;
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
        background: #f1f4f8;
    }

    .school-hero__actions {
        order: 3;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.85rem var(--site-content-pad-x) 1rem;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }

    .school-hero__stats {
        order: 4;
        display: none;
    }

    .school-hero__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(200px, 52vw) minmax(110px, 28vw);
        height: auto !important;
        min-height: 0 !important;
        padding: 0;
        gap: 6px;
    }

    .school-hero__grid-cell--lead {
        grid-row: 1;
        grid-column: 1 / -1;
    }

    .school-hero__grid-cell:not(.school-hero__grid-cell--lead) {
        min-height: 100px;
    }

    .school-hero__grid-cell img,
    .school-hero__grid-fallback {
        min-height: 0;
    }

    .school-hero__grid-fallback {
        min-height: 0;
    }

    .school-hero__est {
        margin-bottom: 0.5rem;
    }

    .school-hero__title {
        margin-bottom: 0.55rem;
        font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    }

    .school-hero__motto {
        margin-bottom: 0.65rem;
    }

    .school-hero__motto p {
        font-size: clamp(0.88rem, 3.2vw, 1rem);
    }

    .school-hero__lead {
        max-width: none;
        font-size: 0.86rem;
        line-height: 1.55;
        margin-bottom: 0;
    }

    .school-hero__cta--apply {
        justify-content: center;
        width: 100%;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .school-hero__cta--explore {
        justify-content: center;
        width: 100%;
    }

    .school-hero__photo-card {
        max-width: min(200px, 70%);
        left: 0.65rem;
        bottom: 0.65rem;
        padding: 0.5rem 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .school-hero__grid {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(220px, 58vw) repeat(2, minmax(120px, 32vw));
        gap: 8px;
    }

    .school-hero__grid-cell--lead {
        grid-column: 1;
        grid-row: 1;
    }

    .school-hero__grid-cell:not(.school-hero__grid-cell--lead) {
        grid-column: 1;
        min-height: 120px;
    }

    .school-hero__grid-cell:not(.school-hero__grid-cell--lead):nth-child(2) {
        grid-row: 2;
    }

    .school-hero__grid-cell:not(.school-hero__grid-cell--lead):nth-child(3) {
        grid-row: 3;
    }

    .school-hero__copy-body {
        padding-top: 0.7rem;
        padding-bottom: 0.55rem;
    }

    .school-hero__actions {
        padding-top: 0.75rem;
        padding-bottom: 0.9rem;
    }

    .school-hero__title {
        font-size: clamp(1.35rem, 6vw, 1.65rem);
    }

    .school-hero__lead {
        font-size: 0.82rem;
    }

    .school-hero__photo-card {
        max-width: min(240px, 85%);
    }
}

/* Notice ticker — white bar, navy scrolling text (desktop + mobile) */
.notice-ticker {
    --notice-ticker-red: var(--accent-crimson, #c41e3a);
    --notice-ticker-bg: #ffffff;
    --notice-ticker-text: var(--navy-deep, darkblue);
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 34px;
    background: var(--notice-ticker-bg);
    border-block: 1px solid #e5e7eb;
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    padding-block: 0.15rem;
    padding-inline-end: clamp(0.5rem, 1.5vw, 1.25rem);
}

.notice-ticker__view-all {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.4rem 0.2rem 0.55rem;
    margin-inline-end: 0;
    border: none;
    background: transparent;
    color: var(--notice-ticker-red);
    font-weight: 700;
    font-size: 0.72rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-ticker__inner {
    display: contents;
}

.notice-ticker__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    align-self: center;
    padding: 0.28rem 1.1rem 0.28rem 0.85rem;
    background: var(--notice-ticker-red);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.notice-ticker__badge i {
    font-size: 0.68rem;
}

.notice-ticker__track {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    position: relative;
    background: var(--notice-ticker-bg);
}

.notice-ticker__marquee {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    white-space: nowrap;
    animation: notice-ticker-scroll var(--ticker-duration, 40s) linear infinite;
    will-change: transform;
}

.notice-ticker__marquee.is-static {
    animation: none;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .notice-ticker__marquee {
        animation: none;
    }
}

.notice-ticker:hover .notice-ticker__marquee,
.notice-ticker:focus-within .notice-ticker__marquee {
    animation-play-state: paused;
}

.notice-ticker__scroll {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding-inline: 0.65rem 0.15rem;
}

.notice-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.notice-ticker__new {
    display: inline-flex;
    align-items: center;
    padding: 0.06rem 0.38rem;
    border-radius: 999px;
    background: var(--notice-ticker-red);
    color: #ffffff;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.15;
    text-transform: uppercase;
}

.notice-ticker__link {
    color: var(--notice-ticker-text);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.notice-ticker__link:hover {
    color: var(--accent-crimson, #9b2d30);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice-ticker__dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-inline: 0.85rem 0.65rem;
    border-radius: 50%;
    background: var(--primary-blue, #003d7a);
    opacity: 0.45;
    flex-shrink: 0;
}

.notice-ticker__view-all:hover {
    color: var(--accent-crimson, #9b2d30);
}

.notice-ticker__view-all i {
    font-size: 0.65rem;
}

@keyframes notice-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 991.98px) {
    .notice-ticker__view-all {
        padding-inline: 0.65rem;
        font-size: 0.72rem;
    }

    .notice-ticker__link {
        font-size: 0.78rem;
    }
}

/* Breaking-news ticker bar below navbar */
.site-ticker-bar,
.nav-admission-banner {
    background: var(--bg-light, #ecf0f1);
    border-bottom: 1px solid #e5e7eb;
}

.site-ticker-bar.is-dismissed,
.nav-admission-banner.is-dismissed {
    display: none;
}

.site-ticker-bar__inner,
.nav-admission-banner__inner {
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-block: 0.45rem;
    padding-inline: var(--site-content-pad-x);
    box-sizing: border-box;
    min-height: 40px;
}

.site-ticker-bar__label {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-blue, #003d7a);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.site-ticker-bar__track {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.site-ticker-bar__text,
.nav-admission-banner__text {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-blue, #003d7a);
    white-space: nowrap;
    animation: site-ticker-scroll 28s linear infinite;
    will-change: transform;
}

.site-ticker-bar__dup {
    flex-shrink: 0;
}

@keyframes site-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.site-ticker-bar__aside,
.nav-admission-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-ticker-bar__cta,
.nav-admission-banner__register {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-blue, #003d7a);
    background: #ffffff;
    border: 1px solid rgba(0, 61, 122, 0.2);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-ticker-bar__cta:hover,
.nav-admission-banner__register:hover {
    color: var(--primary-blue, #003d7a);
    background: var(--bg-light, #ecf0f1);
    border-color: var(--primary-blue, #003d7a);
}

.site-ticker-bar__meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-blue, #003d7a);
    text-decoration: none;
    white-space: nowrap;
    display: none;
}

@media (min-width: 992px) {
    .site-ticker-bar__meta {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }
}

.site-ticker-bar__close,
.nav-admission-banner__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-ticker-bar__close:hover,
.nav-admission-banner__close:hover {
    background: #ffffff;
    color: var(--primary-blue, #003d7a);
    border-color: var(--primary-blue, #003d7a);
}

.notice-list-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    padding: 0.72rem 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.notice-list-item:last-child {
    border-bottom: none;
}

.notice-list-item:hover {
    color: var(--theme-primary);
    padding-left: 4px;
}

.notice-list-date {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-primary);
    white-space: nowrap;
}

.notice-list-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.35;
}

.notice-list-item:hover .notice-list-title {
    color: var(--theme-primary);
}

/* Nav action buttons — login / sign-up style */
.nav-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    min-width: 160px;
}

.nav-search-input {
    border: 0;
    box-shadow: none;
    padding: 0.32rem 0.55rem;
    font-size: 0.8rem;
    min-width: 0;
    width: 120px;
    color: var(--text-dark, #003d7a);
}

.nav-search-input:focus {
    outline: none;
    box-shadow: none;
}

.nav-search-btn {
    border: 0;
    background: transparent;
    color: var(--primary-blue, #003d7a);
    padding: 0.32rem 0.55rem;
    cursor: pointer;
    line-height: 1;
}

.nav-search-btn:hover {
    color: var(--light-blue, #0e99b5);
}

.nav-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-blue, #003d7a) !important;
    background: #ffffff;
    border: 1px solid var(--primary-blue, #003d7a);
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-btn-outline:hover {
    background: var(--bg-light, #ecf0f1);
    color: var(--primary-blue, #003d7a) !important;
}

.nav-cta-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 4px;
    background: var(--cta-primary);
    color: #ffffff !important;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 2px solid var(--cta-primary);
    white-space: nowrap;
    box-shadow:
        3px 3px 0 0 var(--accent-gold, #c4a35a),
        0 6px 16px var(--cta-primary-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta-apply:hover {
    background: var(--cta-primary-hover);
    border-color: var(--cta-primary-hover);
    color: #ffffff !important;
    transform: translate(-1px, -1px);
    box-shadow:
        4px 4px 0 0 var(--accent-gold-light, #e8d5a3),
        0 8px 20px rgba(155, 45, 48, 0.32);
}

.nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-actions > .nav-item {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-action-label {
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item-notices .nav-btn-outline {
    min-width: 4.85rem;
    height: 34px;
    padding-inline: 0.75rem;
    box-sizing: border-box;
}

.nav-item-apply .nav-cta-apply {
    min-width: 4.85rem;
    height: 34px;
    padding-inline: 0.85rem;
    box-sizing: border-box;
}

.nav-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 4.35rem;
    height: 34px;
    padding: 0 0.55rem;
    border-radius: 999px;
    border: 1px solid #d8dee8;
    background: #f8fafc;
    color: var(--navy-deep, darkblue);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-lang-btn__opt {
    opacity: 0.45;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.nav-lang-btn__sep {
    opacity: 0.35;
    font-weight: 500;
    user-select: none;
}

.nav-lang-btn.is-en .nav-lang-btn__opt[data-lang="en"],
.nav-lang-btn.is-np .nav-lang-btn__opt[data-lang="np"] {
    opacity: 1;
    color: var(--accent-crimson, #c41e3a);
}

.nav-lang-btn:hover {
    background: #ffffff;
    border-color: var(--accent-gold, #c4a35a);
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: var(--primary-blue, #003d7a);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-icon-btn:hover {
    background: var(--bg-light, #ecf0f1);
    border-color: #d1d5db;
}

.nav-item-overflow .overflow-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

@media (min-width: 1200px) {
    .nav-item-overflow {
        display: none !important;
    }
}

@media (max-width: 1199.98px) {
    .nav-item-notices,
    .nav-item-apply {
        width: 100%;
        margin-bottom: 0.45rem;
    }

    .nav-btn-outline,
    .nav-item-apply .nav-cta-apply {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1199.98px) {
    .home-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .home-hero__copy {
        order: 1;
        max-width: none;
    }

    .home-hero__media {
        order: 0;
    }

    .home-hero__shade {
        background: linear-gradient(
            180deg,
            rgba(0, 40, 90, 0.45) 0%,
            rgba(0, 40, 90, 0.92) 72%
        );
    }

    .home-hero__media-fade {
        width: 100%;
        height: 35%;
        bottom: auto;
        background: linear-gradient(180deg, transparent 0%, var(--hero-bg, #00285a) 100%);
    }

    .home-hero__stats {
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero__grid {
        grid-template-columns: 1fr 1fr;
        min-height: 240px;
    }

    .home-hero__cell--lead {
        grid-row: auto;
        grid-column: 1 / -1;
        min-height: 180px;
    }

    .nav-admission-banner__inner {
        justify-content: center;
        text-align: center;
    }

    .nav-admission-banner__actions {
        width: 100%;
        justify-content: center;
    }
}

/* Legacy carousel (other pages) */
.hero-carousel {
    margin-top: 0;
    margin-bottom: 1.3rem;
    padding-inline: 0;
}

.carousel-container {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.carousel-slide .slide-image {
    min-height: clamp(360px, 56vw, 600px);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    background: linear-gradient(98deg, rgba(2, 6, 23, 0.64) 4%, rgba(15, 23, 42, 0.34) 46%, rgba(30, 41, 59, 0.12) 100%);
}

.slide-text {
    max-width: min(640px, 92%);
    color: #ffffff;
}

.slide-title {
    font-size: clamp(1.7rem, 4.2vw, 3rem);
    line-height: 1.14;
    margin-bottom: 0.52rem;
    color: #ffffff;
    text-shadow: 0 8px 28px rgba(2, 6, 23, 0.35);
}

.slide-description {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: rgba(248, 250, 252, 0.92);
    opacity: 1;
}

.slide-cta-btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #2563eb, #a855f7);
    color: #fff;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.38);
    padding: 0.72rem 1.45rem;
}

.slide-micro-kpi {
    margin-top: 0.85rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kpi-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.98);
    color: #0f172a;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.about-wrapper,
.notice-board-wrapper,
.principal-card,
.news-item,
.event-item,
.blog-card,
.stats-content {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* Index About section: image/text clearly separated */
.home-about-split {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}

.home-about-media {
    min-height: 100%;
    border-right: 1px solid var(--idx-border);
    background: #f8fafc;
}

.home-about-split .about-main-img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    display: block;
}

.home-about-copy {
    padding: clamp(1rem, 2.1vw, 1.5rem);
    display: grid;
    align-content: center;
    gap: 0.7rem;
}

.kpi-pill small {
    font-weight: 500;
    opacity: 0.95;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
}

/* Main content container rhythm */
.about-notice-section .container-fluid,
.news-events-section .container-fluid,
.stats-section .container-fluid {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

.about-notice-section .row {
    align-items: stretch !important;
}

.about-notice-section [class*="col-"] {
    display: flex;
}

.principal-section .principal-container {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

.latest-blog-section .container {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

/* Card system */
.about-wrapper,
.notice-board-wrapper,
.principal-card,
.news-item,
.event-item,
.blog-card,
.stats-content {
    border-radius: var(--idx-radius-lg);
    border: 1px solid var(--idx-border);
    background: var(--idx-surface);
    box-shadow: var(--idx-shadow-sm);
}

.about-wrapper,
.notice-board-wrapper {
    width: 100%;
    height: 100%;
}

.about-wrapper:hover,
.notice-board-wrapper:hover,
.principal-card:hover,
.news-item:hover,
.event-item:hover,
.blog-card:hover,
.stats-content:hover {
    box-shadow: var(--idx-shadow-md);
    transform: translateY(-2px);
}

.section-title,
.principal-section-title,
.blog-section-title,
.notice-board-title,
.academy-title {
    color: var(--navy-deep, darkblue) !important;
}

.section-subtitle,
.academy-description,
.principal-message-text,
.news-excerpt,
.event-excerpt,
.blog-excerpt,
.stats-description {
    color: var(--idx-muted) !important;
}

/* Tabs / toggles polish */
.notice-board-tabs,
.news-tabs {
    background: var(--idx-surface-soft);
    border: 1px solid var(--idx-border);
    border-radius: 11px;
    padding: 4px;
}

.notice-board-tab,
.news-tab {
    border-radius: 8px !important;
    color: #334155 !important;
    background: transparent !important;
    font-weight: 600;
}

.notice-board-tab.active,
.news-tab.active {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    color: var(--theme-primary) !important;
    background: #ffffff !important;
}

.notice-board-tab:hover,
.news-tab:hover {
    color: #0f172a !important;
}

.news-content,
.event-content,
.blog-content {
    padding: 1rem 1rem 1.15rem;
}

.news-title,
.event-title,
.blog-title {
    line-height: 1.35;
}

.blog-view-all-btn,
.view-all-btn,
.btn-read-more,
.principal-read-more-btn,
.stats-cta-btn {
    border-radius: 999px !important;
}

.notice-board-wrapper {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100%;
    overflow: hidden;
}

.notice-board-header {
    border-bottom: none !important;
}

.notice-board-compact {
    max-width: 460px;
    margin-left: auto;
}

.notice-list {
    max-height: clamp(380px, 54vh, 560px);
    overflow: auto;
}

/* Slider dots visible for manual navigation */
.carousel-indicators {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 6;
}

.indicator {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Keep progress line hidden; user requested dots */
.carousel-progress {
    display: none !important;
}

@media (min-width: 992px) {
    .about-notice-section {
        position: relative;
    }

    .notice-board-compact {
        position: relative;
        z-index: 8;
        margin-top: -124px;
        transform: none;
    }
}

/* Mobile / tablet — masthead + notice stick together; nav shell out of flow */
@media (max-width: 1199.98px) {
    .site-top-chrome {
        position: sticky;
        top: 0;
        z-index: 1300;
        background: #ffffff;
        color: var(--navy-deep, darkblue);
        transition: box-shadow 0.2s ease;
    }

    .site-top-chrome.is-scrolled {
        box-shadow: 0 4px 18px rgba(15, 23, 42, 0.1);
    }

    .site-header-sticky {
        position: static;
        top: auto;
        z-index: auto;
        background: #ffffff !important;
        box-shadow: none !important;
        padding-top: env(safe-area-inset-top, 0);
    }

    .site-header-sticky.is-scrolled {
        box-shadow: none !important;
    }

    .site-top-chrome .main-header {
        background: #ffffff !important;
        border-bottom: none !important;
        color: inherit;
    }

    .notice-ticker {
        --notice-ticker-bg: #ffffff;
        --notice-ticker-text: var(--navy-deep, darkblue);
        position: relative;
        top: auto;
        z-index: 1;
        flex-shrink: 0;
        background: #ffffff !important;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .notice-ticker__track {
        background: #ffffff !important;
    }

    .notice-ticker__link {
        color: var(--notice-ticker-text) !important;
    }

    .notice-ticker__link:hover {
        color: var(--accent-crimson, #9b2d30) !important;
    }

    .notice-ticker__view-all {
        color: var(--notice-ticker-red) !important;
    }

    .notice-ticker__view-all:hover {
        color: var(--accent-crimson, #9b2d30) !important;
    }

    .site-nav-sticky--menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
        height: 0;
        min-height: 0;
        overflow: visible;
        pointer-events: none;
        z-index: 1400;
    }

    .site-nav-sticky--menu .mobile-sidebar-overlay,
    .site-nav-sticky--menu .navbar-collapse.mobile-sidebar {
        pointer-events: auto;
    }

    .site-nav-sticky--menu .main-nav {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
        border: none !important;
        pointer-events: none;
    }

    .site-nav-sticky--menu .main-nav__inner {
        padding: 0 !important;
        min-height: 0 !important;
        pointer-events: none;
    }
}

/* Mobile — notice row, then logo | menu, then hero */
@media (max-width: 991.98px) {
    .main-header {
        padding: 0;
        border-bottom: none;
    }

    .site-ticker-bar:not(.is-dismissed),
    .nav-admission-banner:not(.is-dismissed) {
        display: none;
    }

    .main-nav {
        background: transparent;
        border-bottom: none;
        box-shadow: none;
        min-height: 0;
    }

    .main-nav__inner {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        display: block;
    }

    .main-header .container-fluid,
    .main-nav .container-fluid,
    .home-hero__inner,
    .nav-admission-banner__inner,
    .about-notice-section .container-fluid,
    .news-events-section .container-fluid,
    .stats-section .container-fluid,
    .principal-section .principal-container,
    .latest-blog-section .container {
        width: 100%;
        max-width: var(--site-content-max);
        padding-inline: var(--site-content-gutter);
    }

    .main-header .container-fluid.header-masthead {
        max-width: none;
        margin-inline: 0;
        padding-inline: var(--header-mobile-pad-x, clamp(0.65rem, 3.5vw, 0.9rem));
    }

    .carousel-container {
        width: 100%;
    }

    .header-masthead {
        min-height: 48px;
        gap: 0.5rem;
        padding-block: 0.35rem;
    }

    .header-mobile-strip__inner {
        min-height: 30px;
        padding-block: 0.3rem;
    }

    .main-header .header-brand__title {
        font-size: clamp(0.76rem, 2.9vw, 0.9rem);
    }

    .header-mobile-ticker {
        width: 100%;
        box-sizing: border-box;
        gap: 0.35rem;
        padding: 0.22rem 0.5rem;
        min-height: 0;
    }

    .header-mobile-ticker__label {
        font-size: 0.62rem;
    }

    .header-mobile-ticker__text {
        font-size: 0.62rem;
        gap: 1.5rem;
    }

    .header-masthead__left,
    .header-masthead__right {
        display: none !important;
    }

    .page-index .main-header .header-brand__title {
        font-size: clamp(0.8rem, 3.1vw, 0.94rem);
    }

    .main-header {
        border-bottom: none;
        padding: 0 !important;
    }

    .home-hero {
        margin-top: 0;
    }

    /* Menu open: lift nav shell above sticky header (1300) and page content */
    body.sidebar-open .site-nav-sticky--menu {
        z-index: 1500 !important;
    }

    body.sidebar-open .mobile-sidebar-overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        z-index: 1501 !important;
        background: rgba(15, 23, 42, 0.45);
    }

    body.sidebar-open .navbar-collapse.mobile-sidebar,
    body.sidebar-open .navbar-collapse.mobile-sidebar.show {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1502 !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-right: 1px solid #e2e8f0;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
        background: #ffffff;
    }

    .navbar-collapse.mobile-sidebar {
        border-right: 1px solid #e2e8f0;
        box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
        background: #ffffff;
    }

    .navbar-collapse.mobile-sidebar .nav-link {
        color: #334155 !important;
    }

    .navbar-collapse.mobile-sidebar .nav-link:hover {
        background: #fff5f5 !important;
        color: var(--accent-crimson, #9b2d30) !important;
    }

    .news-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .brand-navbar {
        max-width: min(260px, 72vw);
    }

    .home-about-split {
        grid-template-columns: 1fr;
    }

    .about-notice-section [class*="col-"] {
        display: block;
    }

    .home-about-media {
        border-right: 0;
        border-bottom: 1px solid var(--idx-border);
    }

    .home-about-split .about-main-img {
        min-height: 240px;
    }

    .notice-list {
        max-height: none;
    }

    .notice-board-compact {
        max-width: none;
        margin-left: 0;
        transform: none;
    }

    .desktop-aux-control {
        display: inline-flex !important;
    }

    .navbar-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199.98px) {
    .brand-navbar {
        max-width: min(340px, 68vw);
    }

    .brand-tagline {
        display: none;
    }

    /* Mobile header — row 1: navy contact strip | row 2: white brand bar */
    .main-header {
        display: flex;
        flex-direction: column;
        padding: 0;
        border-bottom: none;
        background: transparent !important;
        color: inherit;
    }

    .header-mobile-strip {
        flex-shrink: 0;
        width: 100%;
        background: var(--navy-deep, darkblue);
        border-bottom: 1px solid rgba(196, 163, 90, 0.22);
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(0.62rem, 2.4vw, 0.72rem);
        line-height: 1.3;
    }

    .header-mobile-strip__inner {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem 0.55rem;
        min-height: 32px;
        padding: 0.35rem clamp(0.65rem, 3.5vw, 0.9rem);
        box-sizing: border-box;
    }

    .header-mobile-strip__link {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        font-weight: 500;
        min-width: 0;
        transition: color 0.2s ease;
    }

    .header-mobile-strip__link span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: min(52vw, 280px);
    }

    .header-mobile-strip__link i {
        flex-shrink: 0;
        font-size: 0.85em;
        color: var(--accent-gold-light, #e8d5a3);
        opacity: 0.95;
    }

    .header-mobile-strip__link:hover {
        color: #ffffff;
    }

    .header-mobile-strip__sep {
        color: rgba(255, 255, 255, 0.35);
        user-select: none;
    }

    .main-header .container-fluid.header-masthead {
        max-width: none;
        margin-inline: 0;
        padding-inline: var(--header-mobile-pad-x, clamp(0.65rem, 3.5vw, 0.9rem));
    }

    .header-masthead {
        --header-mobile-pad-x: clamp(0.65rem, 3.5vw, 0.9rem);
        --header-mobile-touch: 40px;
        --header-mobile-side: var(--header-mobile-touch);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.55rem;
        position: relative;
        width: 100%;
        max-width: none;
        min-height: 52px;
        padding: 0.4rem 0;
        box-sizing: border-box;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    .header-masthead__toggler {
        flex: 0 0 var(--header-mobile-touch);
        width: var(--header-mobile-touch);
        height: var(--header-mobile-touch);
        min-width: var(--header-mobile-touch);
        min-height: var(--header-mobile-touch);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        visibility: visible !important;
        opacity: 1 !important;
        border: 1px solid var(--navy-deep, darkblue) !important;
        border-radius: 8px !important;
        background: var(--navy-deep, darkblue) !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;
        padding: 0 !important;
        margin: 0;
        font-size: 1.05rem;
        color: #ffffff !important;
        line-height: 1;
        z-index: 2;
        cursor: pointer;
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .header-masthead__toggler .hamburger-icon,
    .header-masthead__toggler .close-icon {
        color: #ffffff !important;
        font-size: 1.1rem;
        line-height: 1;
    }

    .header-masthead__toggler:hover,
    .header-masthead__toggler:focus-visible {
        background: #002a5c !important;
        border-color: #002a5c !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
    }

    .header-masthead__toggler:active {
        transform: scale(0.96);
    }

    .header-brand-wrap {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 0.25rem;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    .main-header .header-brand {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        max-width: 100%;
        min-width: 0;
        text-decoration: none;
        color: inherit;
        pointer-events: auto;
    }

    .main-header .header-brand__mark {
        display: inline-flex !important;
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        height: 40px;
        flex-shrink: 0;
        background: transparent;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .main-header .header-brand__mark img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        filter: none;
    }

    .main-header .header-brand__tagline {
        display: none !important;
    }

    .main-header .header-brand__copy {
        display: block;
        text-align: left;
        min-width: 0;
    }

    .main-header .header-brand__title {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        font-size: clamp(0.78rem, 3.1vw, 0.92rem);
        line-height: 1.12;
        font-weight: 700;
        letter-spacing: 0.01em;
        color: var(--navy-deep, darkblue);
    }

    .main-header .header-brand__part {
        color: var(--navy-deep, darkblue);
        font-weight: 700;
    }

    .main-header .header-brand__accent {
        color: var(--accent-crimson, #9b2d30);
        font-style: italic;
        font-weight: 600;
    }

    .header-mobile-actions {
        flex: 0 0 var(--header-mobile-touch);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: var(--header-mobile-touch);
    }

    .header-mobile-lang {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: var(--header-mobile-touch);
        width: var(--header-mobile-touch);
        height: var(--header-mobile-touch);
        min-height: var(--header-mobile-touch);
        padding: 0;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.04em;
        border-radius: 8px;
        border: 1px solid var(--navy-deep, darkblue);
        background: var(--navy-deep, darkblue);
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
        color: #ffffff;
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    }

    .header-mobile-lang:hover {
        background: #002a5c;
        border-color: #002a5c;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    }

    .header-mobile-lang:active {
        transform: scale(0.96);
    }

    .page-index .main-header .header-brand__title,
    .page-index .main-header .header-brand__part {
        color: var(--navy-deep, darkblue);
    }

    .page-index .main-header .header-brand__accent {
        color: var(--accent-crimson, #9b2d30);
    }
}

/* Mobile sidebar — dropdowns (navbar-expand-xl) */
@media (max-width: 1199.98px) {
    .main-nav .navbar-nav > .nav-item > .nav-link::after,
    .main-nav .navbar-nav > .nav-item > .nav-link.active::after {
        display: none !important;
        content: none !important;
    }

    .main-nav .navbar-nav .dropdown-toggle::after {
        display: none !important;
        content: none !important;
        border: none !important;
    }

    .navbar-collapse.mobile-sidebar .navbar-nav {
        flex: 0 1 auto;
        gap: 0 !important;
        justify-content: flex-start !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .navbar-nav > .nav-item {
        border-bottom: 1px solid #e2e8f0;
    }

    .main-nav .navbar-collapse.mobile-sidebar .navbar-nav > .nav-item.dropdown {
        border-bottom: none;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-dropdown-row {
        display: flex;
        align-items: stretch;
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-item.dropdown.is-submenu-open .nav-dropdown-row,
    .main-nav .navbar-collapse.mobile-sidebar .nav-item.dropdown:has(.dropdown-menu.show) .nav-dropdown-row {
        background: #fff5f5;
        border-bottom-color: transparent;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-link {
        padding: 0.72rem 1rem !important;
        border-radius: 0;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-link--parent {
        flex: 1;
        min-width: 0;
        width: auto;
        justify-content: flex-start;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-link:hover,
    .main-nav .navbar-collapse.mobile-sidebar .nav-link.active {
        padding-left: 1.45rem !important;
        background: #fff5f5 !important;
        color: var(--accent-crimson, #9b2d30) !important;
    }

    .navbar-collapse.mobile-sidebar {
        display: flex !important;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .navbar-collapse.mobile-sidebar .main-nav__links {
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        gap: 0 !important;
        justify-content: flex-start !important;
        align-content: flex-start;
        align-items: stretch;
    }

    .navbar-collapse.mobile-sidebar .navbar-nav.main-nav__links {
        justify-content: flex-start !important;
    }

    .navbar-collapse.mobile-sidebar .sidebar-intro__name .school-name-styled__part {
        color: var(--navy-deep, #0f2847) !important;
    }

    .navbar-collapse.mobile-sidebar .sidebar-intro__name .school-name-styled__accent {
        color: var(--accent-crimson, #9b2d30) !important;
    }

    .navbar-collapse.mobile-sidebar .sidebar-footer {
        margin-top: 0;
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .navbar-collapse.mobile-sidebar .sidebar-bottom.nav-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
        margin-top: 0;
        padding: 0.55rem 0.75rem;
    }

    .navbar-collapse.mobile-sidebar .sidebar-footer {
        padding-bottom: max(0.65rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
    }

    .navbar-collapse.mobile-sidebar .sidebar-contact__icon {
        background: linear-gradient(145deg, var(--navy-deep, #0f2847) 0%, #1a3d66 100%);
    }

    .navbar-collapse.mobile-sidebar .sidebar-contact__item-link:hover .sidebar-contact__icon {
        background: linear-gradient(145deg, var(--accent-crimson, #9b2d30) 0%, #7a2226 100%);
    }

    .navbar-collapse.mobile-sidebar .sidebar-bottom.nav-actions > .nav-item {
        width: auto;
        margin-bottom: 0;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-dropdown-chevron--inline {
        display: none !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        min-height: 44px;
        padding: 0;
        margin: 0;
        border: none;
        border-left: 1px solid #e2e8f0;
        background: #f1f5f9;
        color: #64748b;
        font-size: 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s ease;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-submenu-toggle:hover,
    .main-nav .navbar-collapse.mobile-sidebar .nav-submenu-toggle:focus-visible {
        background: #e8eef5;
        color: var(--nav-brand-red);
        outline: none;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-submenu-toggle.expanded {
        transform: rotate(180deg);
        background: #fff5f5;
        color: var(--nav-brand-red);
        border-left-color: #f3d4d4;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-item.dropdown.is-submenu-open .nav-link--parent,
    .main-nav .navbar-collapse.mobile-sidebar .nav-item.dropdown:has(.dropdown-menu.show) .nav-link--parent {
        color: var(--nav-brand-red) !important;
        background: transparent !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .nav-item-overflow .overflow-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .main-nav .navbar-collapse.mobile-sidebar .dropdown-menu {
        position: static !important;
        float: none !important;
        display: none;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #f8fafc !important;
        border-left: 3px solid var(--nav-brand-red) !important;
        animation: none !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .dropdown-menu.show {
        display: block !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .dropdown-menu::before {
        display: none !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .dropdown-item {
        padding: 0.82rem 1.25rem 0.82rem 1.65rem !important;
        font-size: 0.92rem;
        font-weight: 500;
        color: #475569 !important;
        border-bottom: 1px solid #e8ecef;
        border-radius: 0;
    }

    .main-nav .navbar-collapse.mobile-sidebar .dropdown-item:hover,
    .main-nav .navbar-collapse.mobile-sidebar .dropdown-item:focus-visible {
        background: #ffffff !important;
        color: var(--nav-brand-red) !important;
        padding-left: 1.85rem !important;
    }

    .main-nav .navbar-collapse.mobile-sidebar .dropdown-menu > li:last-child .dropdown-item {
        border-bottom: none;
    }
}

/* Desktop horizontal nav (matches navbar-expand-xl) */
@media (min-width: 1200px) {
    .main-nav,
    .main-nav .navbar-collapse,
    .main-nav .navbar-nav {
        overflow: visible;
    }

    .main-nav .navbar-nav > .nav-item {
        position: relative;
    }

    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-toggle:hover {
        transform: none;
    }

    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        margin-top: 0;
        min-width: 240px;
        width: max-content;
        max-width: 320px;
        display: none;
        z-index: 1300;
        transform: none;
        pointer-events: auto;
    }

    /* Invisible bridge so the pointer does not leave the dropdown hit area */
    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
    }

    .main-nav .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu,
    .main-nav .navbar-nav > .nav-item.dropdown:focus-within > .dropdown-menu,
    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-menu.show {
        display: block;
        animation: dropdownFade 0.15s ease both;
    }

    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-menu > li {
        list-style: none;
    }

    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-menu .dropdown-item {
        white-space: nowrap;
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 0.65rem 1.1rem;
    }

    .desktop-aux-control {
        display: none !important;
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    .school-name {
        font-size: 1rem;
    }

    .utility-link:nth-child(3),
    .current-date {
        display: none;
    }

    .carousel-slide .slide-image {
        min-height: clamp(300px, 72vw, 460px);
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.10) 0%, rgba(2, 6, 23, 0.62) 90%);
    }

    .slide-content {
        align-items: flex-end;
        padding-bottom: 1rem;
    }

    .slide-cta-btn {
        width: 100%;
        max-width: 240px;
    }

    .about-wrapper,
    .notice-board-wrapper,
    .principal-card,
    .news-item,
    .event-item,
    .blog-card,
    .stats-content {
        border-radius: 14px;
    }
}

/* =========================================================
   Phase 2 Premium: mega-menu + reveal + type scale + dark-ready
   ========================================================= */

/* Typography scale map */
:root {
    --type-display: clamp(2rem, 5vw, 3.35rem);
    --type-h1: clamp(1.5rem, 3.2vw, 2.25rem);
    --type-h2: clamp(1.28rem, 2.5vw, 1.85rem);
    --type-h3: clamp(1.1rem, 1.8vw, 1.35rem);
    --type-body-lg: clamp(1rem, 1.35vw, 1.08rem);
    --type-body: clamp(0.94rem, 1.1vw, 1rem);
    --type-small: clamp(0.8rem, 0.95vw, 0.88rem);
}

.slide-title {
    font-size: var(--type-display);
}

.section-title,
.principal-section-title,
.blog-section-title,
.notice-board-title {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-title, clamp(1.75rem, 3.2vw, 2.35rem)) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    color: var(--navy-deep, darkblue) !important;
}

.section-subtitle,
.academy-description,
.principal-message-text,
.news-excerpt,
.event-excerpt,
.blog-excerpt,
.stats-description {
    font-family: var(--font-body, var(--font-heading));
    font-size: var(--idx-body, var(--type-body));
    line-height: 1.55;
}

.academy-title,
.news-title,
.event-title,
.blog-title {
    font-size: var(--type-h3);
}

.slide-description,
.section-subtitle,
.academy-description,
.principal-message-text,
.news-excerpt,
.event-excerpt,
.blog-excerpt,
.stats-description {
    font-size: var(--type-body);
}

.notice-label,
.notice-text,
.stat-label,
.news-tag,
.blog-date {
    font-size: var(--type-small);
}

/* Scroll reveal primitives */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px) scale(0.995);
    transition: opacity 0.55s ease, transform 0.55s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-stagger .reveal-on-scroll {
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .main-nav .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        animation: none !important;
    }
}

/* Dark mode-ready token layer */
@media (prefers-color-scheme: dark) {
    :root {
        --idx-surface: #0f172a;
        --idx-surface-soft: #111c31;
        --idx-border: #1f2b40;
        --idx-text: #e2e8f0;
        --idx-muted: #94a3b8;
        --idx-shadow-sm: 0 10px 28px rgba(2, 6, 23, 0.45);
        --idx-shadow-md: 0 20px 48px rgba(2, 6, 23, 0.6);
    }

    body {
        background:
            radial-gradient(1200px 520px at 12% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
            radial-gradient(1000px 420px at 92% -8%, rgba(219, 39, 119, 0.2), transparent 62%),
            #020617;
        color: var(--idx-text);
    }

    .main-nav {
        background: rgba(2, 6, 23, 0.82);
        border-bottom-color: var(--idx-border);
    }

    .main-header {
        background: rgba(2, 6, 23, 0.82);
        border-bottom-color: var(--idx-border);
    }

    @media (max-width: 1199.98px) {
        .site-top-chrome,
        .site-header-sticky,
        .site-top-chrome .main-header,
        .main-header,
        .header-masthead {
            background: #ffffff !important;
            border-bottom-color: #e5e7eb;
        }

        .main-header .header-brand__part,
        .main-header .header-brand__title {
            color: var(--navy-deep, darkblue) !important;
        }

        .header-masthead__toggler,
        .header-masthead__toggler .hamburger-icon,
        .header-masthead__toggler .close-icon,
        .header-mobile-lang {
            color: #ffffff !important;
        }

        .header-masthead__toggler,
        .header-mobile-lang {
            background: var(--navy-deep, darkblue) !important;
            border: 1px solid var(--navy-deep, darkblue) !important;
        }
    }

    .main-nav .navbar-nav .nav-link,
    .dropdown-item,
    .school-subtitle,
    .school-location,
    .section-subtitle,
    .academy-description,
    .principal-message-text,
    .news-excerpt,
    .event-excerpt,
    .blog-excerpt,
    .stats-description {
        color: var(--idx-muted) !important;
    }

    .main-nav .navbar-nav .nav-link:hover,
    .main-nav .navbar-nav .nav-link:focus-visible {
        color: #fff !important;
        background: color-mix(in srgb, var(--theme-primary) 22%, #0f172a);
    }

    .about-wrapper,
    .notice-board-wrapper,
    .principal-card,
    .news-item,
    .event-item,
    .blog-card,
    .stats-content,
    .dropdown-menu {
        background: var(--idx-surface);
        border-color: var(--idx-border);
        box-shadow: var(--idx-shadow-sm);
    }

    .notice-board-tabs,
    .news-tabs {
        background: var(--idx-surface-soft);
        border-color: var(--idx-border);
    }

    .social-link-navbar,
    .lang-toggle {
        background: #0b1324;
        border-color: var(--idx-border);
        color: #cbd5e1;
    }
}

/* Manual dark mode via html[data-theme='dark'] */
html[data-theme="dark"] {
    --idx-surface: #0f172a;
    --idx-surface-soft: #111c31;
    --idx-border: #1f2b40;
    --idx-text: #e2e8f0;
    --idx-muted: #94a3b8;
    --idx-shadow-sm: 0 10px 28px rgba(2, 6, 23, 0.45);
    --idx-shadow-md: 0 20px 48px rgba(2, 6, 23, 0.6);
    --white: #1e293b;
    --bg-light: #0f172a;
    --text-dark: #e2e8f0;
    --text-light: #94a3b8;
    --border-color: #334155;
    --notice-ticker-bg: #111c31;
    --notice-ticker-text: #e2e8f0;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(1200px 520px at 12% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(1000px 420px at 92% -8%, rgba(219, 39, 119, 0.2), transparent 62%),
        #020617;
    color: var(--idx-text);
}

html[data-theme="dark"] .site-header-sticky {
    background: #0f172a;
}

html[data-theme="dark"] .site-header-sticky.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .main-header {
    background: #0f172a;
    border-bottom-color: var(--idx-border);
}

html[data-theme="dark"] .header-date,
html[data-theme="dark"] .header-brand__part,
html[data-theme="dark"] .header-social-link {
    color: #e2e8f0;
}

html[data-theme="dark"] .header-contact__link {
    color: #94a3b8;
}

html[data-theme="dark"] .header-contact__link:hover {
    color: #e2e8f0;
}

html[data-theme="dark"] .header-brand__accent {
    color: var(--accent-red-light, #e84040);
}

html[data-theme="dark"] .header-brand__tagline {
    color: #94a3b8;
}

html[data-theme="dark"] .main-nav {
    background: #0f172a;
    border-bottom-color: var(--idx-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .brand-title__part {
    color: #f1f5f9;
}

html[data-theme="dark"] .brand-title__accent {
    color: #7ec9d9;
}

html[data-theme="dark"] .brand-tagline {
    color: #94a3b8;
}

html[data-theme="dark"] .notice-ticker {
    border-block-color: var(--idx-border);
}

html[data-theme="dark"] .notice-ticker__track {
    background: var(--notice-ticker-bg) !important;
}

html[data-theme="dark"] .notice-ticker__link {
    color: var(--notice-ticker-text);
}

html[data-theme="dark"] .notice-ticker__view-all {
    background: transparent;
    border-color: transparent;
    color: var(--notice-ticker-red);
}

html[data-theme="dark"] .site-ticker-bar {
    background: #111c31;
    border-bottom-color: var(--idx-border);
}

html[data-theme="dark"] .site-ticker-bar__text {
    color: #e2e8f0;
}

html[data-theme="dark"] .header-mobile-ticker {
    background: #0f172a;
    border-bottom-color: var(--idx-border);
}

html[data-theme="dark"] .header-mobile-ticker__text {
    color: #e2e8f0;
}

@media (max-width: 1199.98px) {
    html[data-theme="dark"] .site-top-chrome {
        background: transparent;
    }

    html[data-theme="dark"] .header-mobile-strip {
        background: var(--navy-chrome, var(--navy-deep, darkblue));
    }

    html[data-theme="dark"] .header-masthead {
        background: #1e293b;
        border-bottom-color: var(--idx-border);
        box-shadow: none;
    }

    html[data-theme="dark"] .main-header .header-brand__part,
    html[data-theme="dark"] .main-header .header-brand__title {
        color: #f1f5f9;
    }

    html[data-theme="dark"] .main-header .header-brand__accent {
        color: var(--accent-crimson, #9b2d30);
    }

    html[data-theme="dark"] .main-header .header-brand__mark {
        background: transparent;
        border: none;
        box-shadow: none;
    }

    html[data-theme="dark"] .header-masthead__toggler,
    html[data-theme="dark"] .header-mobile-lang {
        background: var(--navy-deep, darkblue) !important;
        border-color: var(--navy-deep, darkblue) !important;
        color: #ffffff !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;
    }

    html[data-theme="dark"] .header-masthead__toggler .hamburger-icon,
    html[data-theme="dark"] .header-masthead__toggler .close-icon {
        color: #ffffff !important;
    }

    html[data-theme="dark"] .notice-ticker,
    html[data-theme="dark"] .notice-ticker__track {
        background: var(--notice-ticker-bg) !important;
    }
}

@media (min-width: 1200px) {
    html[data-theme="dark"] .site-header-sticky {
        background: #0f172a;
        border-bottom-color: var(--idx-border);
    }

    html[data-theme="dark"] .site-nav-sticky--menu {
        background: #0f172a;
    }
}

html[data-theme="dark"] .site-nav-sticky,
html[data-theme="dark"] .site-top-chrome {
    background: #0f172a;
}

html[data-theme="dark"] .site-topbar__link,
html[data-theme="dark"] .site-topbar__date time {
    color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] .dropdown-menu {
    background: var(--idx-surface-soft);
    border-color: var(--idx-border);
    box-shadow: var(--idx-shadow-md);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--idx-text) !important;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
    background: rgba(148, 163, 184, 0.12);
    color: #fecaca !important;
}

html[data-theme="dark"] .modal-content {
    background: var(--idx-surface);
    border-color: var(--idx-border);
    color: var(--idx-text);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
    border-color: var(--idx-border);
}

html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .navbar-modal-title {
    color: var(--idx-text);
}

html[data-theme="dark"] .navbar-modal-submenu a {
    color: var(--idx-muted);
}

html[data-theme="dark"] .navbar-modal-submenu a:hover,
html[data-theme="dark"] .navbar-modal-title:hover {
    color: #fecaca;
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .principal-section-title,
html[data-theme="dark"] .blog-section-title,
html[data-theme="dark"] .notice-board-title,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .banner-title,
html[data-theme="dark"] .school-hero__title,
html[data-theme="dark"] .school-hero__stat-value {
    color: var(--idx-text) !important;
}

html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .school-hero__lead,
html[data-theme="dark"] .school-hero__motto p,
html[data-theme="dark"] .school-hero__stat-label,
html[data-theme="dark"] .school-hero__est {
    color: var(--idx-muted) !important;
}

html[data-theme="dark"] .school-hero,
html[data-theme="dark"] .school-hero__inner,
html[data-theme="dark"] .school-hero__copy {
    background: var(--idx-surface) !important;
    color: var(--idx-text);
    border-color: var(--idx-border);
}

html[data-theme="dark"] .school-hero__title em {
    color: #7ec9d9;
}

html[data-theme="dark"] .home-notice-programs,
html[data-theme="dark"] .why-choose-section,
html[data-theme="dark"] .why-choose-showcase,
html[data-theme="dark"] .home-testimonials-section,
html[data-theme="dark"] .home-gallery-preview,
html[data-theme="dark"] .home-principal-section.principal-section {
    background: var(--idx-surface) !important;
}

html[data-theme="dark"] .why-choose-showcase {
    background: linear-gradient(180deg, #111c31 0%, #0f172a 100%) !important;
}

html[data-theme="dark"] .home-testimonials-section {
    background: linear-gradient(180deg, #0f172a 0%, #111c31 100%) !important;
}

html[data-theme="dark"] .why-card,
html[data-theme="dark"] .program-card,
html[data-theme="dark"] .testimonial-card {
    background: var(--idx-surface-soft) !important;
    border-color: var(--idx-border) !important;
    box-shadow: var(--idx-shadow-sm);
}

html[data-theme="dark"] .why-card h3,
html[data-theme="dark"] .program-body h3,
html[data-theme="dark"] .testimonial-card__name {
    color: var(--idx-text) !important;
}

html[data-theme="dark"] .testimonial-card__author {
    border-top-color: var(--idx-border);
}

html[data-theme="dark"] .notice-list-item {
    border-bottom-color: var(--idx-border);
}

html[data-theme="dark"] .notice-list-title {
    color: var(--idx-text);
}

html[data-theme="dark"] .scroll-to-top {
    background: var(--idx-surface-soft);
    border-color: var(--idx-border);
    color: var(--idx-text);
}

html[data-theme="dark"] .navbar-collapse.mobile-sidebar {
    background: #0f172a;
    color: var(--idx-text);
}

html[data-theme="dark"] .navbar-collapse.mobile-sidebar .nav-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .navbar-collapse.mobile-sidebar .sidebar-bottom {
    background: #111c31;
    border-top-color: var(--idx-border);
}

html[data-theme="dark"] .navbar-collapse.mobile-sidebar .sidebar-contact {
    background: #0f172a;
    border-top-color: var(--idx-border);
}

html[data-theme="dark"] .navbar-collapse.mobile-sidebar .sidebar-contact__heading,
html[data-theme="dark"] .navbar-collapse.mobile-sidebar .sidebar-contact__text {
    color: var(--idx-muted);
}

html[data-theme="dark"] .navbar-collapse.mobile-sidebar .nav-submenu-toggle {
    background: #1e293b;
    border-left-color: var(--idx-border);
    color: #94a3b8;
}

html[data-theme="dark"] .main-nav__brand .brand-title__part {
    color: #f1f5f9;
}

html[data-theme="dark"] .header-contact__link {
    color: #94a3b8;
}

html[data-theme="dark"] .header-contact__link:hover {
    color: #e2e8f0;
}

html[data-theme="dark"] .main-nav .navbar-nav .nav-link,
html[data-theme="dark"] .dropdown-item,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .academy-description,
html[data-theme="dark"] .principal-message-text,
html[data-theme="dark"] .news-excerpt,
html[data-theme="dark"] .event-excerpt,
html[data-theme="dark"] .blog-excerpt,
html[data-theme="dark"] .stats-description {
    color: var(--idx-muted) !important;
}

html[data-theme="dark"] .main-nav .navbar-nav .nav-link {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .main-nav .navbar-nav .nav-link:hover,
html[data-theme="dark"] .main-nav .navbar-nav .nav-link:focus-visible {
    color: #fecaca !important;
    background: rgba(204, 31, 31, 0.15);
}

html[data-theme="dark"] .main-nav .navbar-nav .nav-link.active {
    color: #fca5a5 !important;
}

html[data-theme="dark"] .nav-btn-notices {
    background: rgba(204, 31, 31, 0.2);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca !important;
}

html[data-theme="dark"] .nav-btn-outline {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .nav-btn-outline:hover {
    background: #334155;
    color: #f8fafc !important;
}

html[data-theme="dark"] .nav-lang-btn {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .nav-lang-btn:hover {
    background: #334155;
    border-color: #64748b;
}

html[data-theme="dark"] .nav-icon-btn {
    background: #1e293b;
    border-color: #475569;
    color: #e2e8f0;
}

html[data-theme="dark"] .nav-icon-btn:hover {
    background: #334155;
    border-color: #64748b;
}

html[data-theme="dark"] .nav-util-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-theme="dark"] .nav-admission-banner {
    background: linear-gradient(90deg, #1f1212 0%, #1a1515 50%, #1f1212 100%);
    border-bottom-color: #7f1d1d;
}

html[data-theme="dark"] .nav-admission-banner__text {
    color: #fecaca;
}

html[data-theme="dark"] .about-wrapper,
html[data-theme="dark"] .notice-board-wrapper,
html[data-theme="dark"] .principal-card,
html[data-theme="dark"] .news-item,
html[data-theme="dark"] .event-item,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .stats-content,
html[data-theme="dark"] .dropdown-menu {
    background: var(--idx-surface);
    border-color: var(--idx-border);
    box-shadow: var(--idx-shadow-sm);
}

html[data-theme="dark"] .notice-board-tabs,
html[data-theme="dark"] .news-tabs {
    background: var(--idx-surface-soft);
    border-color: var(--idx-border);
}

html[data-theme="dark"] .social-link-navbar,
html[data-theme="dark"] .lang-toggle,
html[data-theme="dark"] .theme-toggle-btn {
    background: #0b1324;
    border-color: var(--idx-border);
    color: #cbd5e1;
}

/* Format-only section layout (keeps existing site colors) */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    justify-content: start;
}

.program-grid:has(.program-card:only-child) {
    grid-template-columns: minmax(0, 380px);
}

.program-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--idx-border);
}

.program-card a {
    color: inherit;
    text-decoration: none;
}

.program-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.program-body {
    padding: 0.85rem 0.95rem 1rem;
}

.program-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.22rem;
}

.program-body p {
    margin: 0;
    color: var(--idx-muted);
}

.why-choose-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.why-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.why-card {
    border: 1px solid var(--idx-border);
    border-radius: 16px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.7rem;
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: #fff;
}

.why-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1.08rem;
}

.why-card p {
    margin: 0;
    color: var(--idx-muted);
}

.why-visual img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--idx-border);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

@media (max-width: 991.98px) {
    .program-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-choose-layout {
        grid-template-columns: 1fr;
    }

    .why-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .program-grid,
    .why-cards {
        grid-template-columns: 1fr;
    }

    .program-grid:has(.program-card:only-child) {
        grid-template-columns: 1fr;
    }
}

/* Homepage flow — equal gap between every section */
.page-index > section:not(.school-hero-wrap) {
    margin: 0;
    padding-top: var(--home-section-y);
    padding-bottom: 0;
}

.page-index > section:last-child {
    padding-bottom: var(--home-section-y);
}

.page-index .why-choose-section,
.page-index .home-principal-section,
.page-index .home-testimonials-section,
.page-index .home-gallery-preview {
    margin: 0;
    padding-top: var(--home-section-y);
    padding-bottom: 0;
}

.page-index .home-notice-programs {
    margin: 0;
    padding-top: var(--home-section-y);
    padding-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

.page-index .home-gallery-preview:last-child {
    padding-bottom: var(--home-section-y);
}

.page-index .home-principal-section.principal-section {
    padding-top: var(--home-section-y) !important;
    padding-bottom: 0 !important;
}

.home-notice-programs .section-header,
.why-choose-section .section-header,
.home-principal-section .section-header,
.home-testimonials-section .section-header,
.home-gallery-preview .section-header {
    margin-bottom: var(--home-section-header-gap) !important;
}

.home-notice-programs .container-fluid,
.why-choose-section .container-fluid,
.home-gallery-preview .container-fluid,
.home-principal-section .container-fluid,
.home-testimonials-section .container-fluid {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

.home-notice-programs {
    background: #ffffff;
}

.home-notice-programs .container-fluid {
    padding-inline: clamp(1.1rem, 4.5vw, 2.75rem);
    padding-bottom: clamp(1.35rem, 3vw, 2.35rem);
}

/* Notices + programs — narrower notices, wider programs */
.home-notice-programs__grid {
    --notice-programs-notice: minmax(0, 2fr);
    --notice-programs-program: minmax(0, 3fr);
    display: grid;
    grid-template-columns: var(--notice-programs-notice) var(--notice-programs-program);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
}

@media (min-width: 1200px) {
    .home-notice-programs__grid {
        grid-template-columns: minmax(0, 1.85fr) minmax(0, 3.15fr);
    }
}

.home-notice-programs__col {
    min-width: 0;
    padding-inline: clamp(0.15rem, 0.6vw, 0.35rem);
}

.home-notice-programs__col--notices {
    padding-inline-end: clamp(0.35rem, 1vw, 0.65rem);
}

.home-notice-programs__col--programs {
    padding-inline-start: clamp(0.35rem, 1vw, 0.65rem);
}

.home-notice-programs__col .section-header {
    margin-bottom: clamp(0.5rem, 1.2vw, 0.75rem) !important;
}

.home-notice-programs__col .section-subtitle {
    margin-top: 0.35rem;
}

.home-notice-programs__col .section-divider {
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.home-notice-programs .notice-board-wrapper,
.home-notice-programs .notice-board-wide {
    background: #ffffff !important;
}

.home-notice-programs .notice-board-wide .notice-board-header,
.home-notice-programs .notice-board-wrapper .notice-board-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--idx-border) !important;
    padding: 0.55rem 0.75rem 0;
}

.home-notice-programs .notice-board-tabs,
.home-notice-programs .notice-board-wide .notice-board-tabs {
    background: #f1f5f9 !important;
    border: 1px solid var(--idx-border);
    border-radius: 11px;
    padding: 4px;
}

.home-notice-programs .notice-board-tab {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.65rem !important;
    color: #475569 !important;
    background: transparent !important;
}

.home-notice-programs .notice-board-tab.active {
    color: var(--theme-primary, #003d7a) !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.home-notice-programs .notice-card-grid {
    background: #ffffff;
}

.home-notice-programs__col--notices .notice-card-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem 0.65rem;
    max-height: min(440px, 58vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.home-notice-programs__col--notices .notice-card {
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.home-notice-programs__col--notices .notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.home-notice-programs__col--notices .notice-card--urgent {
    border-left-width: 3px;
}

.home-notice-programs__col--notices .notice-card__band {
    height: 3px;
}

.home-notice-programs__col--notices .notice-card__body {
    gap: 0.35rem;
    padding: 0.55rem 0.65rem 0.5rem;
}

.home-notice-programs__col--notices .notice-card__badge {
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.58rem;
}

.home-notice-programs__col--notices .notice-card__tag {
    padding: 0.12rem 0.45rem;
    font-size: 0.6rem;
}

.home-notice-programs__col--notices .notice-card__title {
    font-size: 0.88rem;
    line-height: 1.28;
    font-weight: 600;
    color: var(--navy-deep, darkblue) !important;
}

.home-notice-programs__col--notices .notice-card__excerpt {
    font-size: 0.76rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    color: #64748b !important;
}

.home-notice-programs__col--notices .notice-card__footer,
.home-notice-programs__col--notices .notice-card__footer time {
    color: #64748b !important;
}

.home-notice-programs .notice-card {
    color: var(--navy-deep, darkblue);
    background: #ffffff !important;
}

.home-notice-programs__col--notices .notice-card__footer {
    padding-top: 0.4rem;
    font-size: 0.68rem;
    font-weight: 500;
}

.home-notice-programs__col--notices .notice-card__footer i {
    font-size: 0.65rem;
}

.home-notice-programs .notice-board-footer {
    padding: 0.45rem 0.65rem 0.55rem;
}

.home-notice-programs .view-all-notices {
    font-size: 0.78rem;
}

.home-notice-programs__col--programs .program-grid--stacked {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

.home-notice-programs__col--programs .program-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-notice-programs__col--programs .program-card--featured {
    grid-column: 1 / -1;
}

.home-notice-programs__col--programs .program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.home-notice-programs__col--programs .program-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.home-notice-programs__col--programs .program-card__hero {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
}

.home-notice-programs__col--programs .program-card__emoji {
    display: none;
}

.home-notice-programs__col--programs .program-card__hero:not(:has(.program-card__photo)) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 0.85rem;
    aspect-ratio: auto;
}

.home-notice-programs__col--programs .program-card__hero:not(:has(.program-card__photo)) .program-card__emoji {
    display: block;
    position: relative;
    z-index: 1;
    font-size: 1.85rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.home-notice-programs__col--programs .program-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-notice-programs__col--programs .program-card--blue .program-card__hero:not(:has(.program-card__photo)) {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
}

.home-notice-programs__col--programs .program-card--purple .program-card__hero:not(:has(.program-card__photo)) {
    background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
}

.home-notice-programs__col--programs .program-card--green .program-card__hero:not(:has(.program-card__photo)) {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
}

.home-notice-programs__col--programs .program-card--orange .program-card__hero:not(:has(.program-card__photo)) {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
}

.home-notice-programs__col--programs .program-card--teal .program-card__hero:not(:has(.program-card__photo)) {
    background: linear-gradient(135deg, #0d9488 0%, #2dd4bf 100%);
}

.home-notice-programs__col--programs .program-card--crimson .program-card__hero:not(:has(.program-card__photo)) {
    background: linear-gradient(135deg, #be123c 0%, #fb7185 100%);
}

.home-notice-programs__col--programs .program-card--featured .program-card__hero {
    aspect-ratio: 21 / 9;
}

.home-notice-programs__col--programs .program-card--featured .program-card__hero:not(:has(.program-card__photo)) {
    min-height: 88px;
    aspect-ratio: auto;
}

.home-notice-programs__col--programs .program-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.65rem 0.75rem 0.7rem;
    background: #fff;
    position: relative;
}

.home-notice-programs__col--programs .program-body h3 {
    font-family: var(--font-body);
    font-size: var(--idx-card-title, 0.9375rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.25;
    color: var(--idx-text);
}

.home-notice-programs__col--programs .program-body > p:not(.program-card__grades) {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm, 0.8125rem);
    line-height: 1.45;
    margin: 0;
    color: var(--idx-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-notice-programs__col--programs .program-card__grades {
    margin: 0.15rem 0 0;
    font-family: var(--font-body);
    font-size: var(--idx-caption, 0.75rem);
    font-weight: 700;
    color: var(--accent-crimson, #c41e3a);
    letter-spacing: 0.02em;
}

.home-notice-programs__col--programs .program-card__arrow {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: var(--navy-deep, darkblue);
    font-size: 0.62rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-notice-programs__col--programs .program-card:hover .program-card__arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(15, 23, 42, 0.1);
}

/* Notice cards — pills, priority border, hover arrow */
.home-notice-programs .notice-card {
    position: relative;
    border-left: 3px solid transparent;
}

.home-notice-programs .notice-card--priority {
    border-left-color: var(--accent-crimson, #c41e3a);
}

.home-notice-programs .notice-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.home-notice-programs .notice-card__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: var(--idx-label, 0.6875rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.home-notice-programs .notice-card__pill--admissions { background: #fce7f3; color: #be185d; }
.home-notice-programs .notice-card__pill--exam { background: #dbeafe; color: #1d4ed8; }
.home-notice-programs .notice-card__pill--event,
.home-notice-programs .notice-card__pill--events { background: #fae8ff; color: #7e22ce; }
.home-notice-programs .notice-card__pill--holiday { background: #dcfce7; color: #15803d; }
.home-notice-programs .notice-card__pill--news { background: #e0f2fe; color: #0369a1; }
.home-notice-programs .notice-card__pill--sports { background: #ffedd5; color: #c2410c; }
.home-notice-programs .notice-card__pill--results { background: #ede9fe; color: #6d28d9; }
.home-notice-programs .notice-card__pill--fees { background: #ccfbf1; color: #0f766e; }
.home-notice-programs .notice-card__pill--parents { background: #ffe4e6; color: #be123c; }
.home-notice-programs .notice-card__pill--staff { background: #f1f5f9; color: #475569; }
.home-notice-programs .notice-card__pill--annual { background: #fef3c7; color: #b45309; }
.home-notice-programs .notice-card__pill--meeting { background: #e0e7ff; color: #4338ca; }
.home-notice-programs .notice-card__pill--general { background: #f1f5f9; color: #64748b; }

.home-notice-programs .notice-card__badge {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.home-notice-programs .notice-card__badge--new {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
}

.home-notice-programs .notice-card__badge--hot {
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
}

.home-notice-programs .notice-card__arrow {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.06);
    color: var(--navy-deep, darkblue);
    font-size: 0.58rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.home-notice-programs .notice-card:hover .notice-card__arrow {
    opacity: 1;
    transform: translateX(0);
    background: rgba(196, 30, 58, 0.12);
    color: var(--accent-crimson, #c41e3a);
}

.home-notice-programs .notice-card__band,
.home-notice-programs .notice-card__tag {
    display: none;
}

.home-notice-programs__col--notices .notice-card__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-notice-programs .notice-board-wide {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

.home-notice-programs .notice-board-wide .notice-card-grid {
    flex: 1 1 auto;
}

@media (max-width: 991.98px) {
    .home-notice-programs__grid {
        grid-template-columns: 1fr;
    }

    .home-notice-programs__col--notices,
    .home-notice-programs__col--programs {
        padding-inline: 0;
    }

    .home-notice-programs__col--notices {
        padding-bottom: clamp(0.5rem, 2vw, 1rem);
    }

    .home-principal-section .section-header {
        margin-bottom: clamp(0.65rem, 1.2vw, 0.9rem) !important;
    }

    .home-notice-programs__col--notices .notice-card-grid {
        max-height: none;
    }

    .home-notice-programs__col--programs .program-grid--stacked {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    }

    .home-notice-programs__col--programs .program-card {
        display: block;
    }

    .home-notice-programs__col--programs .program-card a {
        display: flex;
        flex-direction: column;
    }

    .home-notice-programs__col--programs .program-card--featured {
        grid-column: 1 / -1;
    }
}

.home-notice-section {
    background: #f8fafc;
}

.why-choose-section {
    background: #fff;
}

/* Why choose showcase — cards flanking center illustration */
.why-choose-showcase {
    background: linear-gradient(180deg, #f5f8fc 0%, #eef2f8 100%);
}

.why-choose-showcase .section-header {
    margin-bottom: clamp(0.75rem, 1.6vw, 1rem) !important;
}

.why-choose-showcase .container-fluid {
    padding-bottom: clamp(1.15rem, 2.8vw, 2rem);
}

.section-header--center {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

.section-kicker {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-crimson, #9b2d30);
    margin: 0 0 0.45rem;
}

.section-divider--gold {
    width: 52px;
    height: 3px;
    margin: 0.65rem auto 0.85rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-gold, #c4a35a), var(--accent-gold-light, #e8d5a3));
}

.why-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 360px) minmax(0, 1fr);
    gap: clamp(1.15rem, 2.4vw, 2rem);
    align-items: center;
    padding-bottom: clamp(0.35rem, 1vw, 0.65rem);
}

.why-showcase__col {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 1.35rem);
}

.why-showcase-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.35rem 1.45rem 1.55rem;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.95);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.why-showcase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

.why-showcase-card--1 {
    --why-accent: #ff6b9d;
    --why-glow: rgba(255, 107, 157, 0.38);
}

.why-showcase-card--2 {
    --why-accent: #9b59b6;
    --why-glow: rgba(155, 89, 182, 0.38);
}

.why-showcase-card--3 {
    --why-accent: #f5a623;
    --why-glow: rgba(245, 166, 35, 0.38);
}

.why-showcase-card--4 {
    --why-accent: #29b6f6;
    --why-glow: rgba(41, 182, 246, 0.38);
}

.why-showcase-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    color: #fff;
    margin-bottom: 0.85rem;
    background: var(--why-accent, var(--theme-primary));
    box-shadow: 0 10px 26px var(--why-glow, rgba(15, 23, 42, 0.15));
}

.why-showcase-card h3 {
    font-family: var(--font-body);
    font-size: 1.06rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.why-showcase-card p {
    font-family: var(--font-body);
    margin: 0;
    padding-bottom: 0.2rem;
    font-size: 0.92rem;
    line-height: 1.62;
    color: #64748b;
}

.why-showcase__visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.why-showcase__visual img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
}

@media (max-width: 991.98px) {
    .why-showcase {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        max-width: none;
        margin-inline: auto;
        align-items: stretch;
    }

    .why-showcase__col--left,
    .why-showcase__col--right {
        display: contents;
    }

    .why-showcase__visual {
        order: 0;
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0.15rem 0 0.25rem;
        padding: 0.15rem 0;
    }

    .why-showcase__visual img {
        max-width: min(220px, 58vw);
        margin-inline: auto;
    }

    .why-showcase-card--1 {
        grid-column: 1;
        grid-row: 1;
    }

    .why-showcase-card--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .why-showcase-card--3 {
        grid-column: 1;
        grid-row: 3;
    }

    .why-showcase-card--4 {
        grid-column: 2;
        grid-row: 3;
    }

    .why-showcase {
        padding-bottom: clamp(0.5rem, 1.5vw, 0.85rem);
    }

    .why-showcase-card {
        padding: 1rem 0.85rem 1.2rem;
        height: 100%;
    }

    .why-showcase-card h3 {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .why-showcase-card p {
        font-size: 0.76rem;
        line-height: 1.5;
        padding-bottom: 0.15rem;
    }

    .why-showcase-card__icon {
        width: 42px;
        height: 42px;
        font-size: 0.92rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 575.98px) {
    /* Keep 2×2 cards + center illustration (same order as tablet mobile) */
    .why-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .why-showcase__col--left,
    .why-showcase__col--right {
        display: contents;
    }

    .why-showcase__visual {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 0;
        margin: 0.1rem 0 0.15rem;
        padding: 0.1rem 0;
    }

    .why-showcase__visual img {
        max-width: min(200px, 68vw);
    }

    .why-showcase-card--1 {
        grid-column: 1;
        grid-row: 1;
    }

    .why-showcase-card--2 {
        grid-column: 2;
        grid-row: 1;
    }

    .why-showcase-card--3 {
        grid-column: 1;
        grid-row: 3;
    }

    .why-showcase-card--4 {
        grid-column: 2;
        grid-row: 3;
    }

    .why-showcase {
        padding-bottom: 0.65rem;
    }

    .why-choose-showcase .container-fluid {
        padding-bottom: clamp(1rem, 4vw, 1.5rem);
    }

    .why-showcase-card {
        padding: 0.85rem 0.7rem 1.05rem;
        height: 100%;
    }

    .why-showcase-card h3 {
        font-size: 0.82rem;
    }

    .why-showcase-card p {
        font-size: 0.72rem;
        padding-bottom: 0.12rem;
    }

    .why-showcase-card__icon {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
}

@media (min-width: 992px) {
    .why-showcase__col--left .why-showcase-card:first-child {
        margin-inline-end: 0.35rem;
    }

    .why-showcase__col--right .why-showcase-card:first-child {
        margin-inline-start: 0.35rem;
    }
}

.section-header--left {
    text-align: left;
    margin-bottom: 1.25rem;
}

.section-header--left .section-divider {
    margin-left: 0;
}

.notice-board-wide {
    max-width: none;
    margin: 0;
    border-radius: 16px;
    box-shadow: var(--idx-shadow-sm);
}

.notice-board-wide .notice-board-header {
    padding: 1rem 1.15rem 0;
    text-align: center;
}

.home-notice-programs .notice-board-tabs,
.home-notice-section .notice-board-tabs,
.notice-board-wide .notice-board-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Notice board — editorial card grid */
.home-notice-programs .section-title,
.home-notice-section .section-title {
    font-family: var(--font-display);
}

.notice-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.15rem;
    padding: 1.15rem 1.15rem 1.25rem;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.notice-card-grid.is-leaving {
    opacity: 0;
    transform: translateY(8px);
}

.notice-card-grid.is-loading {
    opacity: 0.55;
}

.notice-card-grid__loading,
.notice-card-grid__empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2.5rem 1rem;
    color: var(--idx-muted);
    text-align: center;
}

.notice-card-grid__empty i {
    font-size: 2rem;
    opacity: 0.45;
}

.notice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid var(--idx-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--idx-shadow-sm);
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.38s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.38s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.notice-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.notice-card:hover {
    border-color: #fecaca;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.notice-card--urgent {
    border-left: 4px solid #003d7a;
}

.notice-card__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: #003d7a;
    box-shadow: 0 4px 12px rgba(204, 31, 31, 0.35);
}

.notice-card__band {
    display: block;
    height: 5px;
    width: 100%;
    background: #94a3b8;
}

.notice-card__band--admissions { background: linear-gradient(90deg, #003d7a, #e11d48); }
.notice-card__band--exam { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.notice-card__band--holiday { background: linear-gradient(90deg, #059669, #10b981); }
.notice-card__band--sports { background: linear-gradient(90deg, #d97706, #f59e0b); }
.notice-card__band--results { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.notice-card__band--fees { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.notice-card__band--parents { background: linear-gradient(90deg, #db2777, #ec4899); }
.notice-card__band--staff { background: linear-gradient(90deg, #475569, #64748b); }
.notice-card__band--annual { background: linear-gradient(90deg, #b45309, #d97706); }
.notice-card__band--meeting { background: linear-gradient(90deg, #4f46e5, #6366f1); }
.notice-card__band--news { background: linear-gradient(90deg, #0284c7, #0ea5e9); }
.notice-card__band--event { background: linear-gradient(90deg, #c026d3, #d946ef); }
.notice-card__band--general { background: linear-gradient(90deg, #64748b, #94a3b8); }

.notice-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.55rem;
    padding: 1rem 1rem 0.9rem;
}

.notice-card__tag {
    align-self: flex-start;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #991b1b;
    background: #fff5f5;
    border: 1px solid #fecaca;
}

.notice-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--idx-text);
}

.notice-card__excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--idx-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.notice-card__footer time {
    color: #475569;
}

.notice-card__views {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.notice-board-footer--center {
    text-align: center;
}

.notice-board-footer--center .view-all-notices {
    display: inline-flex;
}

@media (max-width: 575.98px) {
    .notice-card-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-card,
    .notice-card-grid {
        transition: none;
    }

    .notice-card {
        opacity: 1;
        transform: none;
    }
}

.why-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.why-highlight-card {
    background: #fff;
    border: 1px solid var(--idx-border);
    border-radius: 16px;
    padding: 1.15rem 1.2rem;
    box-shadow: var(--idx-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--idx-shadow-md);
}

.why-highlight-card h3 {
    margin: 0.5rem 0 0.35rem;
    font-size: 1.08rem;
    color: var(--idx-text);
}

.why-highlight-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--idx-muted);
    line-height: 1.55;
}

.home-testimonials-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.35rem 1.4rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: var(--idx-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 61, 122, 0.1);
}

.testimonial-card__quote {
    color: var(--theme-primary, #003d7a);
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.85;
}

.testimonial-card__stars {
    display: flex;
    gap: 0.2rem;
    color: #f59e0b;
    font-size: 0.85rem;
}

.testimonial-card__text {
    margin: 0;
    flex: 1;
}

.testimonial-card__text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--idx-text);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.testimonial-card__avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--theme-primary, #003d7a), #0a7d92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__name {
    display: block;
    font-style: normal;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--idx-text);
}

.testimonial-card__role {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--idx-muted);
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.home-gallery-preview {
    background: #fff;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.home-gallery-preview .section-footer {
    margin-top: 1.25rem;
    padding-top: 0;
    border-top: 0;
}

.home-gallery-cell {
    display: block;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    position: relative;
}

.home-gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-gallery-cell:hover img {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .notice-list--wide {
        grid-template-columns: 1fr;
    }

    .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479.98px) {
    .home-gallery-grid {
        grid-template-columns: 1fr;
    }
}

.footer-map-row {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map-wrap {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Sentence-case headings (no shouty ALL CAPS) */
.section-title,
.principal-section-title,
.blog-section-title,
.notice-board-title,
.principal-section-header .principal-section-title {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 700 !important;
}

/* Notice board: clean panel, neutral scrollbar */
.notice-board-wrapper .notice-board-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--idx-border) !important;
    padding: 1rem 1.15rem 0.85rem !important;
}

.notice-board-wrapper .notice-board-title {
    color: var(--idx-text) !important;
    font-size: 1.12rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.65rem 0 !important;
}

.notice-board-wrapper .notice-board-tabs {
    background: var(--idx-surface-soft) !important;
    justify-content: center !important;
}

.notice-board-wrapper .notice-board-tab {
    color: #475569 !important;
    background: transparent !important;
}

.notice-board-wrapper .notice-board-tab.active {
    color: var(--theme-primary) !important;
    background: #ffffff !important;
}

.notice-board-wrapper .notice-list::-webkit-scrollbar {
    width: 6px;
}

.notice-board-wrapper .notice-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.notice-board-wrapper .notice-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 8px;
}

.notice-board-wrapper .notice-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

.notice-board-wrapper .notice-list {
    scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Principal's message — homepage */
.home-principal-section.principal-section {
    background: #ffffff;
}

.home-principal-section.principal-section::before {
    display: none;
}

.home-principal-section .container-fluid {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

.home-principal-section .section-header {
    text-align: center;
}

.home-principal-section .section-title {
    font-family: var(--font-display);
}

.home-principal-section .section-divider {
    margin-inline: auto;
}

.home-principal-section .principal-content,
.page-index .home-principal-section .principal-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-principal-section .principal-card {
    width: 100%;
    border: 1px solid var(--idx-border);
    border-radius: var(--idx-radius-lg);
    box-shadow: var(--idx-shadow-sm);
    background: var(--idx-surface);
    min-height: 0;
}

.home-principal-section .principal-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--idx-shadow-md);
}

.home-principal-section .principal-greeting-title,
.home-principal-section .principal-name {
    color: var(--theme-primary, #003d7a) !important;
}

.home-principal-section .principal-greeting-icon,
.home-principal-section .principal-badge {
    background: linear-gradient(
        135deg,
        var(--theme-primary, #003d7a),
        color-mix(in srgb, var(--theme-primary, #003d7a) 78%, #000)
    );
}

.home-principal-section .principal-image {
    border-color: var(--theme-primary, #003d7a);
}

.home-principal-section .principal-signature-line {
    background: linear-gradient(90deg, var(--theme-primary, #003d7a), transparent);
}

.home-principal-section .principal-read-more-btn {
    position: relative;
    z-index: 2;
    background: var(--cta-primary);
    color: #ffffff;
    border-color: var(--cta-primary);
    box-shadow: 0 6px 18px var(--cta-primary-shadow);
}

.home-principal-section .principal-read-more-btn:hover {
    background: var(--cta-primary-hover);
    border-color: var(--cta-primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(155, 45, 48, 0.32);
}

.home-principal-section .principal-message-text {
    color: var(--idx-muted) !important;
}

@media (min-width: 1200px) {
    .home-principal-section .principal-card {
        min-height: clamp(380px, 32vw, 480px);
    }

    .home-principal-section .principal-image-container {
        flex: 0 0 min(36%, 420px);
    }

    .home-principal-section .principal-image {
        width: min(100%, 320px);
        max-width: 320px;
    }

    .home-principal-section .principal-message-content {
        flex: 1 1 auto;
        min-width: 0;
        padding: clamp(1.75rem, 2.5vw, 2.75rem);
    }
}

@media (max-width: 767.98px) {
    .home-principal-section .principal-message-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Mobile — notice + principal sections stay white (override grey/dark theme tints) */
@media (max-width: 991.98px) {
    .home-notice-programs,
    .home-notice-programs .container-fluid {
        background: #ffffff !important;
    }

    .home-principal-section.principal-section,
    .home-principal-section .container-fluid {
        background: #ffffff !important;
    }

    .home-principal-section .principal-card {
        background: #ffffff !important;
    }

    .home-principal-section .principal-image-container {
        background: #ffffff !important;
    }

    .home-principal-section .principal-message-content {
        background: #ffffff;
    }
}

html[data-theme="dark"] .home-notice-programs .container-fluid,
html[data-theme="dark"] .home-principal-section .container-fluid {
    background: transparent !important;
}

html[data-theme="dark"] .home-notice-programs .notice-board-wrapper,
html[data-theme="dark"] .home-notice-programs .notice-board-wide,
html[data-theme="dark"] .home-notice-programs .notice-board-header,
html[data-theme="dark"] .home-notice-programs .notice-card,
html[data-theme="dark"] .home-notice-programs .notice-card-grid,
html[data-theme="dark"] .home-principal-section .principal-card,
html[data-theme="dark"] .home-principal-section .principal-image-container,
html[data-theme="dark"] .home-principal-section .principal-message-content {
    background: var(--idx-surface-soft) !important;
    border-color: var(--idx-border);
}

html[data-theme="dark"] .home-notice-programs .notice-board-tabs,
html[data-theme="dark"] .home-notice-programs .notice-board-wide .notice-board-tabs {
    background: #0b1324 !important;
    border-color: var(--idx-border) !important;
}

html[data-theme="dark"] .home-notice-programs .notice-board-tab {
    color: var(--idx-muted) !important;
}

html[data-theme="dark"] .home-notice-programs .notice-board-tab.active {
    color: #fecaca !important;
    background: var(--idx-surface) !important;
    box-shadow: var(--idx-shadow-sm);
}

html[data-theme="dark"] .home-notice-programs .notice-card__title {
    color: var(--idx-text) !important;
}

html[data-theme="dark"] .home-notice-programs .notice-card__excerpt,
html[data-theme="dark"] .home-notice-programs .notice-card__footer,
html[data-theme="dark"] .home-notice-programs .notice-card__footer time {
    color: var(--idx-muted) !important;
}

html[data-theme="dark"] .home-principal-section .principal-greeting-title,
html[data-theme="dark"] .home-principal-section .principal-name {
    color: #7ec9d9 !important;
}

html[data-theme="dark"] .home-principal-section .principal-message-text,
html[data-theme="dark"] .home-principal-section .principal-designation {
    color: var(--idx-muted) !important;
}

html[data-theme="dark"] .notice-board-wrapper .notice-board-header {
    background: var(--idx-surface-soft) !important;
    border-bottom-color: var(--idx-border) !important;
}

html[data-theme="dark"] .notice-board-wrapper .notice-board-title {
    color: var(--idx-text) !important;
}

html[data-theme="dark"] .view-all-notices,
html[data-theme="dark"] .view-all-btn {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.35);
}

html[data-theme="dark"] .view-all-notices:hover,
html[data-theme="dark"] .view-all-btn:hover {
    color: #fff;
    background: rgba(204, 31, 31, 0.25);
}

/* Program detail page */
.program-detail-hero {
    background: linear-gradient(135deg, var(--theme-primary, #003d7a), #0a7d92);
    padding: clamp(2.25rem, 5vw, 3.5rem) 0;
    color: #fff;
}

.program-detail-hero__inner,
.program-detail-body__inner {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.program-detail-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.program-detail-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
}

.program-detail-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.9rem;
    opacity: 0.92;
}

.program-detail-hero__crumbs a {
    color: #fff;
    text-decoration: none;
}

.program-detail-hero__crumbs a:hover {
    text-decoration: underline;
}

.program-detail-body {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
    background: #f8f9fb;
}

.program-detail__grid {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.program-detail__figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--idx-border, #e5e7eb);
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    aspect-ratio: 4 / 3;
    max-height: 300px;
}

.program-detail__figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.program-detail__content {
    background: #fff;
    border: 1px solid var(--idx-border, #e5e7eb);
    border-radius: 16px;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.program-detail__content--full {
    grid-column: 1 / -1;
}

.program-detail__lead {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--idx-muted, #64748b);
    font-weight: 500;
}

.program-detail__prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.program-detail__prose p {
    margin-bottom: 1rem;
}

.program-detail__prose p:last-child {
    margin-bottom: 0;
}

.program-detail__prose ul,
.program-detail__prose ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.program-detail__prose h2,
.program-detail__prose h3,
.program-detail__prose h4 {
    color: var(--theme-primary, #003d7a);
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
}

.program-detail__empty {
    margin: 0;
    color: var(--idx-muted, #64748b);
}

.program-detail__back {
    margin: 1.75rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
}

.program-detail__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-primary, #003d7a);
    font-weight: 600;
    text-decoration: none;
}

.program-detail__back-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .program-detail__grid {
        grid-template-columns: 1fr;
    }

    .program-detail__media {
        max-width: 420px;
    }

    .program-detail__figure {
        max-height: 260px;
    }
}

@media (max-width: 575.98px) {
    .program-detail__media {
        max-width: 100%;
    }

    .program-detail__figure {
        max-height: 220px;
    }
}

/* Our Team page — dark blue + white */
.page-our-team {
    --team-navy: var(--navy-deep, darkblue);
    --team-white: #ffffff;
}

.page-our-team .our-team-hero {
    background: var(--team-navy);
    color: var(--team-white);
    padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.75rem, 3vw, 2.25rem);
}

.page-our-team .our-team-hero__inner,
.page-our-team .our-team-body__inner {
    width: min(var(--site-content-max, 1280px), calc(100% - 2rem));
    margin-inline: auto;
}

.page-our-team .our-team-hero__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--team-white);
    opacity: 0.85;
}

.page-our-team .our-team-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.65rem;
    color: var(--team-white);
}

.page-our-team .our-team-hero__subtitle {
    margin: 0 0 1rem;
    max-width: 42rem;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--team-white);
    opacity: 0.92;
    line-height: 1.55;
}

.page-our-team .our-team-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--team-white);
    opacity: 0.9;
}

.page-our-team .our-team-hero__crumbs a {
    color: var(--team-white);
    text-decoration: none;
}

.page-our-team .our-team-hero__crumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

.page-our-team .our-team-body {
    padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: var(--team-white);
    color: var(--team-navy);
}

.page-our-team .our-team-intro {
    max-width: 52rem;
    margin: 0 0 2rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--team-navy);
}

.page-our-team .our-team-section + .our-team-section {
    margin-top: 2.25rem;
}

.page-our-team .our-team-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--team-navy);
    margin: 0 0 1.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--team-navy);
    display: inline-block;
}

.page-our-team .our-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.page-our-team .team-card {
    display: flex;
    flex-direction: column;
    background: var(--team-white);
    border: 2px solid var(--team-navy);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 139, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-our-team .team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 139, 0.16);
}

.page-our-team .team-card__photo {
    aspect-ratio: 4 / 3;
    background: var(--team-white);
    border-bottom: 1px solid color-mix(in srgb, var(--team-navy) 15%, var(--team-white));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-our-team .team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-our-team .team-card__initials {
    font-size: 2rem;
    font-weight: 700;
    color: var(--team-navy);
}

.page-our-team .team-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.page-our-team .team-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--team-navy);
}

.page-our-team .team-card__role {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--team-navy);
}

.page-our-team .team-card__bio {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--team-navy) 72%, var(--team-white));
}

.page-our-team .team-card__contact {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.page-our-team .team-card__contact a {
    color: var(--team-navy);
    text-decoration: none;
}

.page-our-team .team-card__contact a:hover {
    text-decoration: underline;
}

.page-our-team .team-card__contact i {
    color: var(--team-navy);
}

.page-our-team .our-team-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--team-navy);
}

.page-our-team .our-team-empty i {
    font-size: 2.5rem;
    opacity: 0.45;
    margin-bottom: 0.75rem;
    color: var(--team-navy);
}

@media (max-width: 640px) {
    .page-our-team .our-team-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery detail page */
.gallery-detail-hero {
    background: linear-gradient(135deg, var(--theme-primary, #003d7a), #0a7d92);
    padding: clamp(2rem, 4.5vw, 3rem) 0;
    color: #fff;
}

.gallery-detail-hero__inner,
.gallery-detail-body__inner {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.gallery-detail-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.gallery-detail-hero__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.gallery-detail-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    opacity: 0.92;
}

.gallery-detail-hero__crumbs a {
    color: #fff;
    text-decoration: none;
}

.gallery-detail-hero__crumbs a:hover {
    text-decoration: underline;
}

.gallery-detail-body {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: #f8f9fb;
}

.gallery-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    color: var(--theme-primary, #003d7a);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.gallery-detail__back:hover {
    text-decoration: underline;
}

.gallery-detail__header {
    background: #fff;
    border: 1px solid var(--idx-border, #e5e7eb);
    border-radius: 14px;
    padding: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.gallery-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: #64748b;
}

.gallery-detail__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gallery-detail__meta i {
    color: var(--theme-primary, #003d7a);
    font-size: 0.8rem;
}

.gallery-detail__badge {
    color: var(--theme-primary, #003d7a);
    font-weight: 600;
}

.gallery-detail__lead {
    margin: 0.85rem 0 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #475569;
}

.gallery-detail__photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.gallery-detail__photo {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.gallery-detail__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-detail__prose {
    background: #fff;
    border: 1px solid var(--idx-border, #e5e7eb);
    border-radius: 14px;
    padding: clamp(1rem, 2vw, 1.35rem);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #334155;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.gallery-detail__prose p {
    margin: 0 0 0.75rem;
}

.gallery-detail__prose p:last-child {
    margin-bottom: 0;
}

.gallery-detail__prose h2,
.gallery-detail__prose h3,
.gallery-detail__prose h4 {
    font-size: 1.05rem;
    color: var(--theme-primary, #003d7a);
    margin: 1rem 0 0.5rem;
    font-weight: 700;
}

.gallery-detail__prose ul,
.gallery-detail__prose ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.gallery-detail__share {
    background: #fff;
    border: 1px solid var(--idx-border, #e5e7eb);
    border-radius: 14px;
    padding: 1.15rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.gallery-detail__share-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.gallery-detail__share-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.gallery-detail__share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-detail__share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-detail__share-btn--fb { background: #1877f2; }
.gallery-detail__share-btn--tw { background: #0f1419; }
.gallery-detail__share-btn--wa { background: #25d366; }

.gallery-detail__related-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.gallery-detail__related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.gallery-detail__related-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-detail__related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 61, 122, 0.12);
}

.gallery-detail__related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.gallery-detail__related-body {
    padding: 0.75rem 0.9rem 0.9rem;
}

.gallery-detail__related-body h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-primary, #003d7a);
    line-height: 1.35;
}

.gallery-detail__related-body p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 575.98px) {
    .gallery-detail__photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .gallery-detail__photo {
        aspect-ratio: 1;
    }
}

/* Blog list page */
.blog-list-hero {
    background: linear-gradient(135deg, var(--theme-primary, #003d7a), #0a7d92);
    padding: clamp(2rem, 4.5vw, 3rem) 0;
    color: #fff;
}

.blog-list-hero__inner,
.blog-list-section__inner {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}

.blog-list-hero__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.blog-list-hero__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
}

.blog-list-hero__lead {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 36rem;
    opacity: 0.92;
}

.blog-list-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

.blog-list-hero__crumbs a {
    color: #fff;
    text-decoration: none;
}

.blog-list-hero__crumbs a:hover {
    text-decoration: underline;
}

.blog-list-section {
    padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
}

.blog-list-section--muted {
    background: #f8f9fb;
}

.blog-list-section__title {
    margin: 0 0 1.15rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.blog-list-grid--featured {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.blog-list-card {
    margin: 0;
    height: 100%;
}

.blog-list-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-list-card__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 61, 122, 0.12);
}

.blog-list-card__thumb {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    max-height: 200px;
    overflow: hidden;
    background: #e2e8f0;
}

.blog-list-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-list-card__badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-list-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.9rem 1rem 1rem;
    gap: 0.35rem;
}

.blog-list-card__date {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
}

.blog-list-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-list-card__link:hover .blog-list-card__title {
    color: var(--theme-primary, #003d7a);
}

.blog-list-card__excerpt {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #64748b;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-list-card__more {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--theme-primary, #003d7a);
}

.blog-list-card__more i {
    font-size: 0.75rem;
    transition: transform 0.15s ease;
}

.blog-list-card__link:hover .blog-list-card__more i {
    transform: translateX(3px);
}

.blog-list-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.blog-list-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.blog-list-pagination__btn {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--theme-primary, #003d7a);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-list-pagination__btn:hover {
    background: #0a7d92;
    color: #fff;
}

.blog-list-pagination__info {
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 575.98px) {
    .blog-list-grid,
    .blog-list-grid--featured {
        grid-template-columns: 1fr;
    }

    .blog-list-card__thumb {
        max-height: 180px;
    }
}

/* Newsletter subscribe (footer + contact) */
.footer-section__subscribe {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-section__subscribe .newsletter-subscribe {
    max-width: 100%;
}

.newsletter-subscribe__label {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.footer-section__subscribe .newsletter-subscribe__label,
.footer-section__subscribe .newsletter-subscribe__hint {
    color: rgba(255, 255, 255, 0.92);
}

.newsletter-subscribe__hint {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    opacity: 0.88;
    line-height: 1.45;
}

.newsletter-subscribe__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.newsletter-subscribe__input {
    flex: 1;
    min-width: 180px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.newsletter-subscribe__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: var(--theme-primary, #003d7a);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-subscribe__btn:hover {
    background: #0a7d92;
}

.newsletter-subscribe__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-subscribe__feedback {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
}

.newsletter-subscribe__feedback.is-success {
    color: #86efac;
}

.newsletter-subscribe__feedback.is-error {
    color: #fca5a5;
}

.footer-section__subscribe .newsletter-subscribe__feedback.is-success {
    color: #bbf7d0;
}

.footer-section__subscribe .newsletter-subscribe__feedback.is-error {
    color: #fecaca;
}

.footer-section__subscribe .newsletter-subscribe__row {
    flex-direction: column;
    align-items: stretch;
}

.footer-section__subscribe .newsletter-subscribe__btn {
    justify-content: center;
    width: 100%;
    background: #ffffff;
    color: var(--accent-crimson, #9b2d30);
}

.footer-section__subscribe .newsletter-subscribe__btn:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #7a2226;
}

.newsletter-subscribe--compact .newsletter-subscribe__hint {
    display: none;
}

.newsletter-subscribe--compact .newsletter-subscribe__label {
    font-size: 0.9rem;
}

.ct-subscribe-card {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
}

.ct-subscribe-card .newsletter-subscribe__label {
    color: #0f172a;
}

.ct-subscribe-card .newsletter-subscribe__hint {
    color: #64748b;
}

.ct-subscribe-card .newsletter-subscribe__feedback.is-success {
    color: #15803d;
}

.ct-subscribe-card .newsletter-subscribe__feedback.is-error {
    color: #dc2626;
}

/* ── Mockup design alignment (Sanskar English School landing) ── */
.site-topbar {
    background: var(--navy-deep, darkblue);
    border-bottom: 1px solid rgba(196, 163, 90, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.site-topbar__inner {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.75rem;
    min-height: 36px;
    padding-inline: clamp(0.75rem, 2vw, 2rem);
    box-sizing: border-box;
}

.site-topbar__start {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem 0.6rem;
    min-width: 0;
}

.site-topbar__center {
    grid-column: 2;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.4rem 0.6rem;
    min-width: 0;
    text-align: center;
}

.site-topbar__date {
    display: inline-flex;
    align-items: center;
    text-align: center;
}

.site-topbar__end {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
    min-width: 0;
}

.site-topbar__contact {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    min-width: 0;
}

.site-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 500;
}

.site-topbar__link i {
    color: var(--accent-gold-light, #e8d5a3);
    font-size: 0.72rem;
}

.site-topbar__link:hover {
    color: #ffffff;
}

.site-topbar__phone {
    white-space: nowrap;
}

.site-topbar__start .site-topbar__link span {
    max-width: min(16rem, 28vw);
}

.site-topbar__center .site-topbar__location span {
    max-width: min(14rem, 22vw);
}

.site-topbar__sep {
    color: rgba(196, 163, 90, 0.55);
}

.site-topbar__location span {
    max-width: min(10rem, 18vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-topbar__link span {
    max-width: min(11rem, 20vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-topbar__sep--end {
    flex-shrink: 0;
}

.site-topbar__date time {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
}

.site-topbar__social {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.site-topbar__social-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    text-decoration: none;
}

.site-topbar__social-link:hover {
    color: var(--accent-gold, #c4a35a);
}

.main-nav__brand {
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    margin-right: 0.35rem;
    flex-shrink: 1;
    min-width: 0;
    max-width: min(360px, 38vw);
}

.main-nav__brand .header-brand__copy {
    min-width: 0;
    text-align: left;
}

.main-nav__brand .header-brand__title {
    font-size: clamp(0.82rem, 1.1vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav__brand .header-brand__tagline {
    display: block !important;
    max-width: 100%;
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-weight: 500;
    line-height: 1.35;
}

.header-brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
}

.header-brand__mark img {
    filter: none;
}

.header-brand__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--navy-deep, darkblue);
}

.header-brand__accent {
    color: var(--accent-crimson, #c41e3a);
    font-style: italic;
}

.header-brand__tagline {
    display: block !important;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #64748b;
    margin-top: 0.1rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
}

@media (min-width: 1200px) {
    :root {
        --site-topbar-h: 36px;
        --site-masthead-h: var(--site-topbar-h);
    }

    /* Unwrap chrome so topbar + nav can stick to the viewport (notice bar scrolls away) */
    .site-top-chrome {
        display: contents;
    }

    .site-header-sticky {
        position: sticky;
        top: 0;
        z-index: 1301;
        background: var(--navy-deep, darkblue);
        border-bottom: none;
        box-shadow: none;
    }

    .site-header-sticky.is-scrolled {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    }

    .site-nav-sticky,
    .site-nav-sticky--menu {
        position: sticky;
        top: var(--site-topbar-h, 36px);
        z-index: 1300;
        background: #ffffff;
        border-bottom: 1px solid #e8ecef;
    }

    .site-nav-sticky--menu.is-scrolled {
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    }

    .main-nav__inner {
        display: grid;
        grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
        align-items: center;
        gap: 0.5rem 0.85rem;
        padding-inline: clamp(0.75rem, 2vw, 2rem);
    }

    .main-nav__inner > .navbar-collapse {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem 0.65rem;
        min-width: 0;
    }

    .main-nav__links {
        flex: 1 1 auto;
        justify-content: center;
        margin: 0 auto;
        min-width: 0;
    }

    .nav-actions {
        margin-left: 0;
        flex-shrink: 0;
    }
}

.main-nav .navbar-nav .nav-link.active {
    color: var(--accent-crimson, #c41e3a);
    background: transparent;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus-visible {
    background: transparent;
    color: var(--accent-crimson, #c41e3a);
}

.nav-btn-outline {
    border-color: #cbd5e1;
    color: var(--navy-deep, darkblue) !important;
    font-weight: 600;
}

.nav-cta-apply {
    background: var(--cta-primary);
    color: #ffffff !important;
    border: 2px solid var(--cta-primary);
    box-shadow:
        3px 3px 0 0 var(--accent-gold, #c4a35a),
        0 6px 16px var(--cta-primary-shadow);
    border-radius: 6px;
}

.nav-cta-apply:hover {
    background: var(--cta-primary-hover);
    color: #ffffff !important;
    border-color: var(--cta-primary-hover);
    transform: translate(-1px, -1px);
    box-shadow:
        4px 4px 0 0 var(--accent-gold-light, #e8d5a3),
        0 8px 20px rgba(155, 45, 48, 0.32);
}

.school-hero__est {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    font-family: var(--font-body);
    font-size: var(--idx-label);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-crimson, #c41e3a);
}

.school-hero__est-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-crimson, #c41e3a);
    flex-shrink: 0;
}

.school-hero__title {
    font-size: var(--idx-display);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.65rem;
}

.school-hero__motto {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding: 0;
    border: none;
    font-family: var(--font-display);
    font-size: var(--idx-lead);
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
    color: #3d5a73;
}

.school-hero__motto-rule {
    flex-shrink: 0;
    width: 36px;
    height: 2px;
    margin-top: 0.65rem;
    background: var(--accent-gold, #c4a35a);
}

.school-hero__motto p {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.school-hero__cta--apply {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
    box-shadow: 0 8px 22px var(--cta-primary-shadow);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
}

.school-hero__cta--apply:hover {
    background: var(--cta-primary-hover);
    border-color: var(--cta-primary-hover);
    box-shadow: 0 10px 26px rgba(155, 45, 48, 0.32);
}

.school-hero__cta--explore {
    padding: 0.65rem 1.15rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
}

.school-hero__stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.school-hero__stat-value {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.school-hero__photo-card {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 2;
    max-width: min(220px, 72%);
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    border-left: 3px solid var(--accent-gold, #c4a35a);
    box-shadow: 0 8px 24px rgba(10, 31, 61, 0.12);
}

.school-hero__photo-card-title {
    display: block;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    font-style: italic;
    color: var(--navy-deep, darkblue);
    line-height: 1.25;
}

.school-hero__photo-card-sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-gold, #c4a35a);
}

@media (min-width: 992px) {
    .school-trust-bar__list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        padding: 0;
    }

    .school-trust-bar__item {
        justify-content: center;
        gap: 0.65rem;
        padding: 1rem 0.75rem;
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }
}

.school-trust-bar__item:last-child {
    border-right: none;
}

.school-trust-bar__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}

.school-trust-bar__copy strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
}

.school-trust-bar__copy small {
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 991.98px) {
    .school-trust-bar__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 0;
    }

    .school-trust-bar__item {
        justify-content: flex-start;
        white-space: normal;
    }

    .school-trust-bar__item:nth-child(even) {
        border-right: none;
    }

    .school-trust-bar__item:nth-child(1),
    .school-trust-bar__item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .school-hero__stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .school-trust-bar__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-trust-bar__item {
        justify-content: flex-start;
        gap: 0.4rem;
        padding: 0.65rem 0.45rem;
        font-size: 0.68rem;
        white-space: normal;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .school-trust-bar__item:nth-child(even) {
        border-right: none;
    }

    .school-trust-bar__item:nth-child(1),
    .school-trust-bar__item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .school-trust-bar__copy strong {
        font-size: 0.68rem;
        line-height: 1.2;
    }

    .school-trust-bar__copy small {
        font-size: 0.58rem;
        line-height: 1.2;
    }
}

/* =========================================================
   Index page — unified font family & size (header + sections)
   Display/headings: Cormorant Garamond | Body/UI: DM Sans
   ========================================================= */
.page-index {
    font-family: var(--font-body);
    font-size: var(--idx-body);
    line-height: 1.55;
    color: var(--idx-text);
}

/* Site header */
.page-index .site-topbar,
.page-index .site-topbar__link,
.page-index .notice-ticker,
.page-index .notice-ticker__link,
.page-index .notice-ticker__view-all {
    font-family: var(--font-body);
    font-size: var(--idx-caption);
}

.page-index .notice-ticker__badge {
    font-size: var(--idx-label);
}

.page-index .main-nav .navbar-nav .nav-link,
.page-index .nav-action-label,
.page-index .header-mobile-lang {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    font-weight: 600;
}

.page-index .header-brand__title {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy-deep, #0f2847);
}

@media (max-width: 1199.98px) {
    body.page-index {
        overflow-x: clip;
    }

    .page-index .main-header .header-brand__title,
    .page-index .main-header .header-brand__part {
        font-family: var(--font-body);
        font-size: clamp(0.88rem, 3.6vw, 1rem);
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    .page-index .main-header .header-brand__accent {
        font-family: var(--font-display, var(--font-heading));
        font-style: italic;
        font-weight: 700;
    }
}

.page-index .header-brand__tagline {
    font-family: var(--font-body);
    font-size: var(--idx-caption);
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
}

/* Hero */
.page-index .school-hero__title {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-display);
    font-weight: 600;
    line-height: 1.12;
}

.page-index .school-hero__motto,
.page-index .school-hero__motto p {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-lead);
    line-height: 1.45;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
}

.page-index .school-hero__lead {
    font-family: var(--font-body);
    font-size: var(--idx-body);
    line-height: 1.55;
}

.page-index .school-hero__est {
    font-family: var(--font-body);
    font-size: var(--idx-label);
}

.page-index .school-hero__cta {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    font-weight: 600;
}

.page-index .school-hero__stat-value {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-heading);
    font-weight: 600;
}

.page-index .school-hero__stat-label {
    font-family: var(--font-body);
    font-size: var(--idx-caption);
}

.page-index .school-hero__photo-card-title {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-body-sm);
}

.page-index .school-hero__photo-card-sub {
    font-family: var(--font-body);
    font-size: var(--idx-label);
}

.page-index .school-trust-bar__copy strong {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    font-weight: 700;
}

.page-index .school-trust-bar__copy small {
    font-family: var(--font-body);
    font-size: var(--idx-caption);
}

/* Section headings — one scale everywhere */
.page-index .section-title,
.page-index .principal-section-title,
.page-index h2.section-title {
    font-family: var(--font-display, var(--font-heading)) !important;
    font-size: var(--idx-title) !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
}

.page-index .section-subtitle {
    font-family: var(--font-body) !important;
    font-size: var(--idx-body) !important;
    line-height: 1.55 !important;
    color: var(--idx-muted) !important;
}

/* Why choose */
.page-index .why-showcase-card h3 {
    font-family: var(--font-body);
    font-size: var(--idx-card-title);
    font-weight: 700;
    line-height: 1.3;
}

.page-index .why-showcase-card p {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    line-height: 1.55;
}

/* Notices + programs */
.page-index .notice-board-tab {
    font-family: var(--font-body);
    font-size: var(--idx-caption) !important;
}

.page-index .notice-card__title {
    font-family: var(--font-body);
    font-size: var(--idx-card-title);
    font-weight: 700;
    line-height: 1.3;
}

.page-index .notice-card__excerpt,
.page-index .notice-card__footer,
.page-index .view-all-notices {
    font-family: var(--font-body);
}

.page-index .notice-card__excerpt {
    font-size: var(--idx-body-sm);
}

.page-index .notice-card__footer {
    font-size: var(--idx-caption);
}

.page-index .notice-card__tag,
.page-index .notice-card__badge {
    font-size: var(--idx-label);
}

.page-index .view-all-notices {
    font-size: var(--idx-body-sm);
}

.page-index .program-body h3 {
    font-family: var(--font-body);
    font-size: var(--idx-card-title);
    font-weight: 700;
    line-height: 1.3;
}

.page-index .program-body p {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    line-height: 1.5;
}

.page-index .no-content {
    font-family: var(--font-body);
    font-size: var(--idx-body);
}

/* Principal */
.page-index .principal-greeting-title {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-title);
    font-weight: 600;
    line-height: 1.15;
}

.page-index .principal-message-text {
    font-family: var(--font-body);
    font-size: var(--idx-body);
    line-height: 1.6;
}

.page-index .principal-name {
    font-family: var(--font-display, var(--font-heading));
    font-size: var(--idx-heading);
    font-weight: 600;
}

.page-index .principal-designation {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
}

.page-index .principal-read-more-btn {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    font-weight: 600;
}

/* Testimonials */
.page-index .testimonial-card__text p {
    font-family: var(--font-body);
    font-size: var(--idx-body);
    line-height: 1.6;
}

.page-index .testimonial-card__name {
    font-family: var(--font-body);
    font-size: var(--idx-card-title);
    font-weight: 700;
}

.page-index .testimonial-card__role {
    font-family: var(--font-body);
    font-size: var(--idx-caption);
}

/* Gallery + buttons */
.page-index .view-all-btn,
.page-index .view-all-btn .btn-text {
    font-family: var(--font-body);
    font-size: var(--idx-body-sm);
    font-weight: 600;
}

/* ===== Site-wide responsive — all viewports ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
svg,
canvas,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

.site-header-sticky,
.site-nav-sticky,
#main-content,
.page-index,
.school-hero-wrap,
.school-hero,
.school-hero__inner,
.school-hero__copy,
.school-hero__media,
.school-hero__grid,
.home-hero,
.home-hero__inner,
.about-hero-split,
.home-about-split,
.why-showcase,
.home-notice-programs__grid,
.program-detail__grid,
.principal-content,
.main-footer {
    min-width: 0;
    max-width: 100%;
}

/* Shared content width — any page section using container-fluid */
.about-notice-section .container-fluid,
.news-events-section .container-fluid,
.stats-section .container-fluid,
.principal-section .principal-container,
.latest-blog-section .container,
.about-hero__inner {
    width: 100%;
    max-width: var(--site-content-max);
    margin-inline: auto;
    padding-inline: var(--site-content-gutter);
    box-sizing: border-box;
}

/* Tablet: stack split layouts */
@media (max-width: 1199.98px) {
    .about-hero-split,
    .home-about-split {
        grid-template-columns: 1fr;
    }

    .home-about-media {
        border-right: 0;
        border-bottom: 1px solid var(--idx-border);
    }

    .home-about-split .about-main-img {
        min-height: clamp(200px, 40vw, 320px);
    }

    .program-detail__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .program-detail__media {
        max-width: min(100%, 480px);
        margin-inline: auto;
    }
}

/* Phone: tighter hero photo grid + trust bar */
@media (max-width: 767.98px) {
    .school-hero__copy-body,
    .school-hero__actions {
        padding-inline: var(--site-content-pad-x);
    }

    .school-trust-bar__inner {
        padding-inline: var(--site-content-pad-x);
    }

    .notice-ticker {
        padding-inline-start: 0;
    }

    .home-notice-programs__col--programs .program-grid--stacked {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .school-trust-bar__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-trust-bar__item {
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 0.65rem 0.5rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        white-space: normal;
    }

    .school-trust-bar__item:nth-child(even) {
        border-right: none;
    }

    .school-trust-bar__item:nth-child(1),
    .school-trust-bar__item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .school-trust-bar__item:nth-child(3),
    .school-trust-bar__item:nth-child(4) {
        border-bottom: none;
    }

    .home-hero__grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .home-hero__cell--lead {
        min-height: clamp(180px, 50vw, 260px);
    }

    .home-hero__cell:not(.home-hero__cell--lead) {
        min-height: clamp(100px, 28vw, 140px);
    }

}

/* Very small phones */
@media (max-width: 399.98px) {
    .header-masthead {
        --header-mobile-touch: 40px;
        --header-mobile-pad-x: 0.55rem;
        column-gap: 0.55rem;
        padding-block: 0.4rem 0.35rem;
    }

    .header-mobile-strip__link span {
        max-width: 46vw;
    }

    .main-header .header-brand__mark {
        width: 36px;
        min-width: 36px;
        max-width: 36px;
        height: 36px;
    }

    .main-header .header-brand__title {
        font-size: 0.74rem;
        white-space: normal;
        line-height: 1.18;
    }

    .school-hero__cta--apply,
    .school-hero__cta--explore {
        font-size: 0.88rem;
        padding-block: 0.75rem;
    }

    .why-showcase-card {
        padding: 0.9rem 0.8rem;
    }
}

/* Landscape phones / short viewports */
@media (max-width: 991.98px) and (orientation: landscape) {
    .school-hero__grid {
        grid-template-rows: minmax(140px, 38vh) minmax(80px, 20vh);
    }

    .school-hero__inner {
        min-height: 0;
    }

    .header-masthead {
        min-height: 0;
        padding-block: 0.15rem;
    }
}

/* ===== Large desktop — scale type & hero proportionally ===== */
@media (min-width: 1200px) {
    .site-topbar__inner,
    .main-nav__inner {
        width: 100%;
        max-width: var(--site-content-max);
        margin-inline: auto;
        padding-inline: var(--site-content-gutter);
    }

    .school-hero__copy {
        padding: clamp(2rem, 2.5vw, 3rem) clamp(1.75rem, 2vw, 2.5rem);
        padding-left: clamp(1.75rem, 2vw, 2.5rem);
    }

    .school-hero__copy-body {
        max-width: none;
    }

    .school-hero__lead {
        max-width: min(58ch, 100%);
        font-size: var(--idx-body);
    }

    .school-hero__inner {
        min-height: clamp(440px, 44vh, 600px);
        grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
        padding-inline: var(--site-content-gutter);
    }

    .school-hero__grid {
        min-height: clamp(440px, 44vh, 580px);
    }

    .school-hero__cta--apply {
        padding: clamp(0.8rem, 1vw, 1rem) clamp(1.35rem, 2vw, 1.75rem);
        font-size: var(--idx-body);
    }

    .school-hero__cta--explore {
        font-size: var(--idx-body);
        padding: clamp(0.65rem, 0.8vw, 0.85rem) clamp(1.1rem, 1.5vw, 1.35rem);
    }

    .school-hero__stats-grid {
        gap: clamp(1rem, 2vw, 2rem);
    }

    .school-trust-bar__item {
        font-size: var(--idx-body-sm);
    }

    .school-trust-bar__copy strong {
        font-size: var(--idx-body-sm);
    }

    .school-trust-bar__copy small {
        font-size: var(--idx-caption);
    }

    .school-trust-bar__item i {
        font-size: clamp(0.9rem, 1vw, 1.1rem);
    }

    /* Nav + header scale on desktop */
    .main-nav .navbar-nav .nav-link {
        font-size: clamp(1rem, 0.35vw + 0.85rem, 1.15rem);
    }

    .main-nav__brand .header-brand__title {
        font-size: clamp(0.95rem, 0.5vw + 0.75rem, 1.2rem);
    }

    .main-nav__brand .header-brand__tagline {
        font-size: clamp(0.62rem, 0.3vw + 0.5rem, 0.75rem);
    }

    .site-topbar__link,
    .site-topbar__date time {
        font-size: clamp(0.74rem, 0.25vw + 0.65rem, 0.875rem);
    }

    .notice-ticker,
    .notice-ticker__link {
        font-size: var(--idx-body-sm);
    }

    /* Homepage sections */
    .page-index .section-title,
    .page-index h2.section-title {
        font-size: var(--idx-title) !important;
    }

    .page-index .section-subtitle {
        font-size: var(--idx-lead) !important;
    }

    .why-showcase-card h3 {
        font-size: var(--idx-card-title);
    }

    .why-showcase-card p {
        font-size: var(--idx-body);
    }

    .why-showcase-card__icon {
        width: clamp(52px, 4vw, 60px);
        height: clamp(52px, 4vw, 60px);
        font-size: clamp(1.1rem, 1vw, 1.35rem);
    }

    .why-showcase {
        gap: clamp(1.25rem, 2.5vw, 2.5rem);
    }
}

@media (min-width: 1400px) {
    .school-hero__inner {
        grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
        min-height: clamp(460px, 46vh, 640px);
    }

    .school-hero__grid {
        min-height: clamp(460px, 46vh, 640px);
    }
}

@media (min-width: 1600px) {
    .school-hero__inner {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    }

    .school-hero__title {
        letter-spacing: -0.02em;
    }

    .school-hero__motto-rule {
        width: clamp(36px, 3vw, 48px);
    }

    .school-hero__stats-grid {
        gap: clamp(1.25rem, 2.5vw, 3rem);
    }
}

@media (min-width: 1920px) {
    .school-hero__inner {
        min-height: clamp(480px, 48vh, 680px);
    }

    .school-hero__grid {
        min-height: clamp(480px, 48vh, 680px);
    }
}

/* Prevent embedded content from breaking layout */
.prose,
.program-detail__prose,
.principal-message-text,
.notice-detail-body,
.page-description {
    overflow-wrap: anywhere;
    word-break: break-word;
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
}
