/* 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);
    /* Align navbar, hero, and sections on one column (matches style.css .container-fluid) */
    --site-content-max: 1280px;
    --site-content-pad-x: 50px;
    /* Homepage vertical rhythm — same gap between every section */
    --home-section-y: clamp(3rem, 5vw, 4rem);
    --home-section-header-gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (max-width: 991.98px) {
    :root {
        --site-content-pad-x: 30px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --site-content-pad-x: 20px;
    }
}

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%),
        #f5f7fb;
    overflow-x: visible;
}

/* overflow-x: hidden on html breaks position:sticky — use clip instead */
html {
    overflow-x: clip;
}

/* Header strip */
.main-header {
    border-bottom: 1px solid color-mix(in srgb, var(--theme-secondary) 76%, #111827);
    box-shadow: none;
    background: color-mix(in srgb, var(--theme-secondary) 92%, #000000);
}

.main-header .container-fluid {
    width: min(1280px, calc(100% - 2rem));
    margin-inline: auto;
}

.utility-topbar {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.18rem 0;
    font-size: 0.82rem;
    color: #e5e7eb;
}

.utility-left,
.utility-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.utility-right {
    justify-content: flex-end;
    color: color-mix(in srgb, #e5e7eb 90%, var(--theme-secondary));
    font-size: 0.8rem;
}

.utility-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.utility-link:hover {
    color: #ffffff;
}

.utility-social-link {
    color: color-mix(in srgb, #e5e7eb 90%, var(--theme-secondary));
    text-decoration: none;
    font-size: 0.78rem;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.utility-social-link:hover {
    color: #ffffff;
}

.utility-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.utility-sep {
    color: color-mix(in srgb, #9ca3af 80%, var(--theme-secondary));
}

/* Navbar shell — pins to viewport top after utility bar scrolls away */
.site-nav-sticky {
    position: relative;
    z-index: 1200;
}

.site-nav-sticky.is-pinned {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.nav-pin-spacer {
    display: none;
    height: var(--navbar-height, 52px);
}

/* White navbar with brand red accent */
.main-nav {
    --nav-brand-red: #cc1f1f;
    --navbar-height: 52px;
    position: relative;
    z-index: 1;
    min-height: var(--navbar-height);
    background: #ffffff;
    border-bottom: 3px solid var(--nav-brand-red);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease;
}

.site-nav-sticky.is-pinned .main-nav {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

/* 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 .container-fluid {
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
    min-height: var(--navbar-height);
    box-sizing: border-box;
}

.main-nav .navbar-toggler {
    color: #1e293b;
    border-color: #e2e8f0;
}

.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 {
    position: relative;
    border-radius: 6px;
    padding: 0.4rem 0.7rem !important;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav .navbar-nav .nav-link:not(.dropdown-toggle)::after {
    display: none;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link:focus-visible {
    background: #fff5f5;
    color: var(--nav-brand-red);
    transform: none;
}

.main-nav .navbar-nav .nav-link.active {
    color: var(--nav-brand-red);
    background: transparent;
}

.main-nav .navbar-nav > .nav-item > .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0;
    height: 2px;
    background: var(--nav-brand-red);
    display: block;
    transform: none;
    width: auto;
}

.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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.62rem;
    color: #64748b;
    transition: transform 0.2s ease, color 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 {
    color: var(--nav-brand-red);
}

@media (min-width: 1200px) {
    .main-nav .navbar-nav .nav-dropdown-row {
        display: inline-flex;
        align-items: center;
    }

    .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(--nav-brand-red);
    }
}

.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(0deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.45)),
        linear-gradient(90deg, rgba(234, 179, 8, 0.42), rgba(249, 115, 22, 0.24));
    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: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.about-hero-split {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 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: linear-gradient(135deg, var(--theme-primary, #e31e24), color-mix(in srgb, var(--theme-primary, #e31e24) 75%, #000));
    box-shadow: 0 6px 18px color-mix(in srgb, var(--theme-primary, #e31e24) 35%, transparent);
}

.about-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    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: #0f172a;
    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(--theme-primary, #e31e24);
}

.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(--theme-primary, #e31e24);
}

.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(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.72)),
        linear-gradient(105deg, rgba(227, 30, 36, 0.35), transparent 55%);
    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 (bento grid + copy) */
.home-hero {
    position: relative;
    margin-bottom: 0;
    background: #0d0d0d;
    overflow: hidden;
}

.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        rgba(13, 13, 13, 0.94) 0%,
        rgba(13, 13, 13, 0.78) 36%,
        rgba(13, 13, 13, 0.22) 58%,
        transparent 72%
    );
}

.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(280px, 42%) 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: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.home-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    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: #ff6b6b;
}

.home-hero__divider {
    width: 40px;
    height: 3px;
    margin: 0 0 1.15rem;
    border: 0;
    border-radius: 2px;
    background: var(--theme-primary, #dc2626);
}

.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: #e11d48;
    color: #fff;
    border: 2px solid #f43f5e;
    box-shadow: 0 12px 32px rgba(225, 29, 72, 0.45);
}

.btn-hero--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    background: #f43f5e;
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.5);
}

.btn-hero--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-hero--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
}

.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: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    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, #0d0d0d 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);
}

.nav-admission-banner {
    background: linear-gradient(90deg, #fef2f2 0%, #fff5f5 50%, #fef2f2 100%);
    border-bottom: 1px solid #fecaca;
}

.nav-admission-banner.is-dismissed {
    display: none;
}

.nav-admission-banner__inner {
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
    padding-block: 0.5rem;
    padding-inline: var(--site-content-pad-x);
    box-sizing: border-box;
}

.nav-admission-banner__text {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #991b1b;
}

.nav-admission-banner__text i {
    color: #cc1f1f;
}

.nav-admission-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-admission-banner__register {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: #cc1f1f;
    border: 1px solid #cc1f1f;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-admission-banner__register:hover {
    color: #ffffff;
    background: #b91c1c;
    transform: translateY(-1px);
}

.nav-admission-banner__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-admission-banner__close:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.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-btn-notices {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    border-radius: 7px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    color: #b91c1c !important;
    background: #fff5f5;
    border: 1px solid #fecaca;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-btn-notices:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b !important;
    transform: translateY(-1px);
}

.nav-cta-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.38rem 0.9rem;
    border-radius: 7px;
    background: #cc1f1f;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    border: 2px solid #cc1f1f;
    box-shadow: 0 4px 12px rgba(204, 31, 31, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta-apply:hover {
    transform: translateY(-1px);
    background: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 10px 22px rgba(204, 31, 31, 0.35);
    color: #ffffff !important;
}

.nav-actions {
    gap: 0.5rem;
}

.nav-util-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: 7px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-util-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.nav-util-btn--square {
    width: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 7px;
}

.nav-util-btn--icon {
    padding: 0;
}

.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-notices,
    .nav-item-apply .nav-cta-apply {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 991.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(13, 13, 13, 0.55) 0%,
            rgba(13, 13, 13, 0.9) 72%
        );
    }

    .home-hero__media-fade {
        width: 100%;
        height: 35%;
        bottom: auto;
        background: linear-gradient(180deg, transparent 0%, #0d0d0d 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(240px, 42%) 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: min(1280px, calc(100% - 2rem));
    margin-inline: auto;
}

.about-notice-section .row {
    align-items: stretch !important;
}

.about-notice-section [class*="col-"] {
    display: flex;
}

.principal-section .principal-container {
    width: min(1280px, calc(100% - 2rem));
    margin-inline: auto;
}

.latest-blog-section .container {
    width: min(1280px, calc(100% - 2rem));
    max-width: none;
}

/* 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(--idx-text) !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 */
@media (max-width: 991.98px) {
    .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: min(1280px, calc(100% - 1.2rem));
    }

    .carousel-container {
        width: 100%;
    }

    .utility-topbar {
        flex-wrap: wrap;
        justify-content: center;
        min-height: 0;
        padding: 0.3rem 0;
    }

    .utility-right {
        width: 100%;
        justify-content: center;
        gap: 0.6rem;
        font-size: 0.74rem;
    }

    .main-nav {
        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: #cc1f1f !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 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;
    }

    .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.95rem 1.25rem !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;
    }

    .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: 52px;
        min-height: 52px;
        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-size: var(--type-h1) !important;
}

.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-header,
    .main-nav {
        background: rgba(2, 6, 23, 0.82);
        border-bottom-color: var(--idx-border);
    }

    .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);
}

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"] .main-header {
    background: color-mix(in srgb, var(--theme-secondary) 86%, #020617);
    border-bottom-color: var(--idx-border);
}

html[data-theme="dark"] .main-nav {
    background: #0f172a;
    border-bottom-color: #cc1f1f;
    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: #f87171;
}

html[data-theme="dark"] .brand-tagline {
    color: #94a3b8;
}

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-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 below hero — one equal gap between each section */
.home-notice-section,
.our-programs-section,
.why-choose-section,
.home-principal-section,
.home-testimonials-section,
.home-gallery-preview {
    margin: 0;
    padding-top: var(--home-section-y);
    padding-bottom: 0;
}

.home-gallery-preview {
    padding-bottom: var(--home-section-y);
}

.home-notice-section .section-header,
.our-programs-section .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-section .container-fluid,
.our-programs-section .container-fluid,
.why-choose-section .container-fluid,
.home-gallery-preview .container-fluid,
.home-principal-section .container-fluid,
.home-testimonials-section .container-fluid {
    width: min(var(--site-content-max), calc(100% - 2rem));
    margin-inline: auto;
}

.home-notice-section {
    background: #f8fafc;
}

.why-choose-section {
    background: #fff;
}

.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-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-section .section-title {
    font-family: "Playfair Display", Georgia, serif;
}

.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 #cc1f1f;
}

.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: #cc1f1f;
    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, #cc1f1f, #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: "Playfair Display", Georgia, serif;
    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(227, 30, 36, 0.1);
}

.testimonial-card__quote {
    color: var(--theme-primary, #e31e24);
    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, #e31e24), #c41a1f);
    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 {
    padding-top: var(--home-section-y) !important;
    padding-bottom: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-principal-section .container-fluid {
    max-width: 100%;
    padding-left: var(--site-content-pad-x);
    padding-right: var(--site-content-pad-x);
}

.home-principal-section .section-header {
    text-align: center;
}

.home-principal-section .section-title {
    font-family: "Playfair Display", Georgia, serif;
}

.home-principal-section .section-divider {
    margin-inline: auto;
}

.home-principal-section.principal-section::before {
    opacity: 0.35;
}

.home-principal-section .principal-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.home-principal-section .principal-card {
    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, #cc1f1f) !important;
}

.home-principal-section .principal-greeting-icon,
.home-principal-section .principal-badge {
    background: linear-gradient(
        135deg,
        var(--theme-primary, #cc1f1f),
        color-mix(in srgb, var(--theme-primary, #cc1f1f) 78%, #000)
    );
}

.home-principal-section .principal-image {
    border-color: var(--theme-primary, #cc1f1f);
}

.home-principal-section .principal-signature-line {
    background: linear-gradient(90deg, var(--theme-primary, #cc1f1f), transparent);
}

.home-principal-section .principal-read-more-btn {
    position: relative;
    z-index: 2;
    color: var(--theme-primary, #cc1f1f);
    border-color: var(--theme-primary, #cc1f1f);
}

.home-principal-section .principal-read-more-btn:hover {
    background: var(--theme-primary, #cc1f1f);
    color: #ffffff;
}

.home-principal-section .principal-message-text {
    color: var(--idx-muted) !important;
}

@media (max-width: 767.98px) {
    .home-principal-section .principal-message-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Program detail page */
.program-detail-hero {
    background: linear-gradient(135deg, var(--theme-primary, #e31e24), #b91c1c);
    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, #e31e24);
    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, #e31e24);
    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 */
.our-team-hero {
    background: linear-gradient(135deg, var(--theme-secondary, #c41a20) 0%, var(--theme-primary, #e31e24) 100%);
    color: #fff;
    padding: clamp(2rem, 4vw, 2.75rem) 0 clamp(1.75rem, 3vw, 2.25rem);
}

.our-team-hero__inner,
.our-team-body__inner {
    width: min(var(--site-content-max, 1280px), calc(100% - 2rem));
    margin-inline: auto;
}

.our-team-hero__kicker {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
}

.our-team-hero__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.65rem;
}

.our-team-hero__subtitle {
    margin: 0 0 1rem;
    max-width: 42rem;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    opacity: 0.92;
    line-height: 1.55;
}

.our-team-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    opacity: 0.9;
}

.our-team-hero__crumbs a {
    color: #fff;
    text-decoration: none;
}

.our-team-hero__crumbs a:hover {
    text-decoration: underline;
}

.our-team-body {
    padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}

.our-team-intro {
    max-width: 52rem;
    margin: 0 0 2rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--idx-text, #1e293b);
}

.our-team-section + .our-team-section {
    margin-top: 2.25rem;
}

.our-team-section__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--idx-text, #0f172a);
    margin: 0 0 1.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--theme-primary, #e31e24);
    display: inline-block;
}

.our-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--idx-shadow-sm, 0 4px 14px rgba(15, 23, 42, 0.06));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(227, 30, 36, 0.12);
}

.team-card__photo {
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.team-card__initials {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-primary, #e31e24);
}

.team-card__body {
    padding: 1.15rem 1.2rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.team-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--idx-text, #0f172a);
}

.team-card__role {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--theme-primary, #e31e24);
}

.team-card__bio {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--idx-muted, #64748b);
}

.team-card__contact {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.team-card__contact a {
    color: var(--idx-text, #334155);
    text-decoration: none;
}

.team-card__contact a:hover {
    color: var(--theme-primary, #e31e24);
}

.our-team-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--idx-muted, #64748b);
}

.our-team-empty i {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .our-team-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery detail page */
.gallery-detail-hero {
    background: linear-gradient(135deg, var(--theme-primary, #e31e24), #b91c1c);
    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, #e31e24);
    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, #e31e24);
    font-size: 0.8rem;
}

.gallery-detail__badge {
    color: var(--theme-primary, #e31e24);
    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, #e31e24);
    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(227, 30, 36, 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, #e31e24);
    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, #e31e24), #b91c1c);
    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(227, 30, 36, 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, #e31e24);
}

.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, #e31e24);
}

.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, #e31e24);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-list-pagination__btn:hover {
    background: #b91c1c;
    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, #e31e24);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.newsletter-subscribe__btn:hover {
    background: #b91c1c;
}

.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%;
}

.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;
}
