:root {
    --school-blue: #104f86;
    --school-blue-dark: #07385f;
    --school-teal: #5f9ea0;
    --school-yellow: #f5b719;
    --school-red: #df4b4b;
    --school-ink: #0d2f4f;
    --school-muted: #657487;
    --school-soft: #f4f8fb;
}

body {
    background: #fff;
    color: var(--school-ink);
    padding-top: 112px;
}

.school-navbar {
    background: #fff !important;
    min-height: 112px;
    box-shadow: 0 8px 28px rgba(13, 47, 79, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1080;
}

.school-navbar .navbar-brand {
    color: var(--school-ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
    min-width: 0;
}

.school-logo {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(16, 79, 134, 0.12);
    border-radius: 50%;
    display: block;
    background: #edf6fb;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 6px;
}

.school-navbar .nav-link {
    color: var(--school-ink);
    font-weight: 700;
    padding-inline: 0.85rem !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    text-decoration-color: transparent;
}

.school-navbar .nav-link:hover,
.school-navbar .nav-link.active {
    color: var(--school-blue);
    text-decoration-color: var(--school-red);
}

.school-navbar .btn-ppdb {
    background: var(--school-red);
    border: 0;
    color: #fff;
    border-radius: 0;
    padding: 0.85rem 1.1rem;
    font-weight: 800;
    white-space: nowrap;
}

.school-navbar-toggler {
    border: 3px solid rgba(13, 47, 79, 0.65);
    border-radius: 12px;
    min-height: 48px;
    width: 58px;
}

.school-navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(16, 79, 134, 0.16);
}

.school-home {
    overflow: hidden;
}

.school-hero {
    min-height: calc(100vh - 112px);
    position: relative;
    isolation: isolate;
    background: var(--school-blue);
}

.school-hero__media {
    position: absolute;
    inset: 0 0 0 45%;
    z-index: -3;
}

.school-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.school-hero__blue {
    position: absolute;
    inset: 0 auto 0 0;
    width: 56%;
    background: var(--school-blue);
    clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
    z-index: -2;
}

.school-hero__teal,
.school-hero__yellow {
    position: absolute;
    z-index: -1;
    left: 47%;
    transform: translateX(-50%);
}

.school-hero__teal {
    top: 0;
    width: 140px;
    height: 38%;
    background: var(--school-teal);
    clip-path: polygon(0 0, 100% 0, 54% 100%);
    opacity: 0.95;
}

.school-hero__yellow {
    bottom: 0;
    width: 230px;
    height: 48%;
    background: var(--school-yellow);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.school-hero__content {
    min-height: calc(100vh - 112px);
    display: flex;
    align-items: center;
    padding-block: 5rem;
    color: #fff;
}

.school-hero h1 {
    max-width: 680px;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 1.25rem;
}

.school-hero p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.btn-school-primary,
.btn-school-secondary {
    border-radius: 0;
    padding: 0.9rem 1.25rem;
    font-weight: 800;
}

.btn-school-primary {
    background: var(--school-yellow);
    color: #102b45;
    border: 2px solid var(--school-yellow);
}

.btn-school-secondary {
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.school-wave {
    height: 42px;
    background: #fff;
    clip-path: polygon(0 38%, 100% 0, 100% 100%, 0 100%);
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

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

.section-kicker {
    color: var(--school-red);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.section-title {
    color: var(--school-ink);
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 3.2rem);
    letter-spacing: 0;
}

.section-copy {
    color: var(--school-muted);
    font-size: 1.03rem;
    line-height: 1.8;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    border-left: 4px solid var(--school-yellow);
    padding-left: 1rem;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--school-blue);
}

.stat-label {
    color: var(--school-muted);
    font-size: 0.92rem;
}

.program-band {
    background: var(--school-soft);
}

.program-card,
.news-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e1ebf3;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 18px 45px rgba(13, 47, 79, 0.07);
}

.program-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9f4fb;
    color: var(--school-blue);
    border-radius: 8px;
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.program-card h3,
.news-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--school-ink);
}

.program-card p,
.news-card p {
    color: var(--school-muted);
    margin-bottom: 0;
}

.school-scroll-wrap {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    margin: -0.5rem 0 1rem;
}

.school-scroll-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e5ef;
    border-radius: 8px;
    color: var(--school-blue);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    transition: 0.18s ease;
    width: 42px;
}

.school-scroll-btn:hover,
.school-scroll-btn:focus {
    background: var(--school-blue);
    border-color: var(--school-blue);
    color: #fff;
}

.school-card-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem 1.15rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--school-blue) #e8f0f6;
    scrollbar-width: thin;
}

.school-card-rail::-webkit-scrollbar {
    height: 8px;
}

.school-card-rail::-webkit-scrollbar-track {
    background: #e8f0f6;
    border-radius: 999px;
}

.school-card-rail::-webkit-scrollbar-thumb {
    background: var(--school-blue);
    border-radius: 999px;
}

.school-card-rail__item {
    flex: 0 0 calc((100% - 3rem) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.news-card {
    overflow: hidden;
}

.news-card__image {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
    margin-bottom: 1rem;
    object-fit: cover;
    width: 100%;
}

.staff-card {
    background: #fff;
    border: 1px solid #e1ebf3;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(13, 47, 79, 0.07);
}

.staff-card__photo {
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.staff-card__body {
    padding: 1.25rem;
}

.staff-card__body span {
    color: var(--school-red);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.staff-card__body h3 {
    color: var(--school-ink);
    font-size: 1.12rem;
    font-weight: 900;
    margin-bottom: 0.55rem;
}

.staff-card__body p {
    color: var(--school-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

.ppdb-panel {
    background: var(--school-blue-dark);
    color: #fff;
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.ppdb-panel::after {
    display: none;
}

.ppdb-panel > .row {
    position: relative;
    z-index: 1;
}

.ppdb-panel__action {
    display: flex;
    justify-content: flex-end;
}

.ppdb-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.ppdb-panel .btn-school-primary {
    min-width: 180px;
    position: relative;
    z-index: 2;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-list li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    color: var(--school-muted);
    margin-bottom: 0.9rem;
}

.contact-list i {
    color: var(--school-blue);
    margin-top: 0.2rem;
}

.footer {
    background: var(--school-blue-dark) !important;
    color: #fff !important;
}

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

.footer-location-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    overflow: hidden;
}

.footer-map {
    height: 360px;
    overflow: hidden;
    position: relative;
}

.footer-map::after {
    background: linear-gradient(90deg, transparent 68%, rgba(7, 56, 95, 0.18));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.footer-map iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.footer-map-panel {
    align-self: stretch;
    background:
        linear-gradient(135deg, rgba(16, 79, 134, 0.94), rgba(7, 56, 95, 0.98));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.footer-map-kicker {
    color: var(--school-yellow);
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.footer-map-panel h3 {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 0.9rem;
}

.footer-map-panel p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.6;
    margin-bottom: 1.35rem;
}

.footer-map-action {
    align-items: center;
    background: var(--school-yellow);
    border-radius: 8px;
    color: #102b45;
    display: inline-flex;
    font-weight: 900;
    gap: 0.55rem;
    justify-content: center;
    padding: 0.85rem 1rem;
    text-decoration: none;
    width: fit-content;
}

.footer-map-action:hover {
    color: #102b45;
    filter: brightness(0.96);
}

@media (max-width: 991.98px) {
    body {
        padding-top: 82px;
    }

    .school-navbar {
        min-height: auto;
    }

    .school-navbar > .container {
        min-height: 82px;
        position: relative;
    }

    .school-navbar .navbar-brand {
        flex: 1 1 auto;
        font-size: 1.25rem;
        gap: 0.75rem !important;
        margin-right: 0.75rem;
        max-width: calc(100% - 76px);
    }

    .school-logo {
        width: 54px;
        height: 54px;
    }

    .school-navbar-menu {
        background: #fff;
        border: 1px solid #dbe7ef;
        border-radius: 8px;
        box-shadow: 0 22px 45px rgba(13, 47, 79, 0.16);
        left: 0.75rem;
        max-height: calc(100vh - 104px);
        overflow-y: auto;
        padding: 0.75rem;
        position: absolute;
        right: 0.75rem;
        top: calc(100% + 0.5rem);
        z-index: 1090;
    }

    .school-navbar-menu .navbar-nav {
        align-items: stretch !important;
        gap: 0.15rem;
        width: 100%;
    }

    .school-navbar .nav-link {
        border-radius: 8px;
        padding: 0.78rem 0.9rem !important;
        text-decoration: none;
    }

    .school-navbar .nav-link:hover,
    .school-navbar .nav-link.active {
        background: #edf6fb;
        text-decoration: none;
    }

    .school-navbar .btn-ppdb {
        border-radius: 8px;
        display: flex;
        justify-content: center;
        margin-top: 0.45rem;
        padding: 0.85rem 1rem;
        width: 100%;
    }

    .school-hero,
    .school-hero__content {
        min-height: 720px;
    }

    .school-hero__media {
        inset: 0;
        opacity: 0.38;
    }

    .school-hero__blue {
        width: 100%;
        clip-path: none;
        background: rgba(16, 79, 134, 0.9);
    }

    .school-hero__teal,
    .school-hero__yellow {
        display: none;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .school-card-rail__item {
        flex-basis: calc((100% - 1rem) / 2);
    }

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

    .footer-map {
        height: 320px;
    }

    .footer-map::after {
        display: none;
    }

    .footer-map-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 82px;
    }

    .school-navbar > .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .school-navbar .navbar-brand {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .school-logo {
        height: 52px;
        width: 52px;
    }

    .school-navbar-toggler {
        min-height: 46px;
        width: 56px;
    }

    .school-navbar-menu {
        left: 0.9rem;
        right: 0.9rem;
    }

    .school-hero,
    .school-hero__content {
        min-height: 600px;
    }

    .school-hero__content {
        padding-block: 4rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

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

    .school-scroll-wrap {
        justify-content: flex-start;
        margin-top: 0;
    }

    .school-card-rail__item {
        flex-basis: 84%;
    }

    .ppdb-panel {
        padding: 2rem;
    }

    .ppdb-panel::after {
        display: none;
    }

    .ppdb-panel__action {
        justify-content: stretch;
    }

    .ppdb-panel .btn-school-primary {
        width: 100%;
    }

    .footer-map {
        height: 260px;
    }

    .footer-map-panel h3 {
        font-size: 1.25rem;
    }

    .footer-map-action {
        width: 100%;
    }
}
