/*
|--------------------------------------------------------------------------
| LOPHIA CORE – SMART SCHOOL
| STICKY HEADER HOTFIX – BRIGHT EDUCATION
|--------------------------------------------------------------------------
| Additive stylesheet. Does not replace or modify the existing mega-menu CSS.
| The topbar remains in normal document flow and scrolls away naturally.
*/

.school-site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9995 !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(220, 234, 244, .88) !important;
    box-shadow: 0 3px 16px rgba(22, 133, 209, .055) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition:
        background-color .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.school-site-header .school-site-header-inner {
    min-height: 88px;
    transition: min-height .22s ease, gap .22s ease;
}

.school-site-header.is-scrolled {
    background: rgba(255, 255, 255, .88) !important;
    border-bottom-color: rgba(186, 230, 253, .82) !important;
    box-shadow: 0 7px 24px rgba(16, 42, 67, .085) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.school-site-header.is-scrolled .school-site-header-inner {
    min-height: 72px;
}

.school-site-header.is-scrolled .school-site-brand-logo {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    transition: width .22s ease, height .22s ease, flex-basis .22s ease;
}

.school-site-header.is-scrolled .school-site-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.school-site-header.is-scrolled .school-site-tutwuri {
    width: 42px;
    height: 42px;
    transition: width .22s ease, height .22s ease;
}

/* Tablet: compact without squeezing the navigation drawer. */
@media (max-width: 1100px) {
    .school-site-header .school-site-header-inner {
        min-height: 78px;
    }

    .school-site-header.is-scrolled .school-site-header-inner {
        min-height: 68px;
    }
}

/* Mobile: keep the header compact and thumb-friendly. */
@media (max-width: 600px) {
    .school-site-header .school-site-header-inner {
        min-height: 64px;
    }

    .school-site-header.is-scrolled .school-site-header-inner {
        min-height: 60px;
    }

    .school-site-header.is-scrolled .school-site-brand-logo {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .school-site-header.is-scrolled .school-site-brand-copy strong {
        font-size: 11.5px;
    }

    .school-site-header.is-scrolled .school-site-menu-toggle {
        width: 38px;
        height: 38px;
    }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    .school-site-header,
    .school-site-header .school-site-header-inner,
    .school-site-header .school-site-brand-logo,
    .school-site-header .school-site-tutwuri {
        transition: none !important;
    }
}
