/* Shared school navigation: one accessible, responsive style for public pages. */
.navbar-school {
    position:sticky; top:0; z-index:1030; padding:8px 0; color:#fff;
    background:rgba(17,24,39,.96)!important; border-bottom:1px solid rgba(148,163,184,.14);
    box-shadow:0 8px 22px rgba(15,23,42,.14); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
}
.navbar-school>.container { min-height:58px; }
.navbar-school .brand-wrap { display:flex; flex:0 0 auto; align-items:center; gap:11px; min-width:0; margin-right:1rem; color:#fff; text-decoration:none; }
.navbar-school .navbar-brand { display:flex; align-items:center; gap:10px; min-width:0; margin-right:1rem; color:#fff; font-family:'Nunito',system-ui,sans-serif; font-size:1rem; font-weight:800; line-height:1.2; white-space:nowrap; }
.navbar-school .navbar-brand>img,.navbar-school .brand-logo { display:grid; place-items:center; width:48px; height:48px; flex:0 0 48px; overflow:hidden; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; animation:schoolLogoFloat 4.5s ease-in-out infinite; }
.navbar-school .navbar-brand>img { object-fit:contain; }
.navbar-school .brand-logo img { width:100%; height:100%; object-fit:contain; }
.navbar-school .brand-title { display:block; color:#fff; font-family:'Nunito',system-ui,sans-serif; font-size:1.04rem; font-weight:900; line-height:1.05; }
.navbar-school .brand-sub { display:block; margin-top:4px; color:#cbd5e1; font-size:.68rem; font-weight:700; line-height:1.2; }
.navbar-school .navbar-nav { align-items:center; gap:3px; }
.navbar-school .nav-link { display:flex; align-items:center; min-height:42px; padding:.62rem .78rem!important; border-radius:12px; color:#dbeafe!important; font-family:'Nunito',system-ui,sans-serif; font-size:.94rem; font-weight:800; line-height:1.25; white-space:nowrap; transition:color .18s ease,background-color .18s ease; }
.navbar-school .nav-link:hover,.navbar-school .nav-link:focus-visible,.navbar-school .nav-link.active,.navbar-school .show>.nav-link { color:#fff!important; background:rgba(59,130,246,.2); }
.navbar-school .dropdown-menu {
    width:248px;
    min-width:248px;
    margin-top:0;
    padding:8px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    background:#fff;
    box-shadow:0 18px 40px rgba(15,23,42,.17);
    box-sizing:border-box;
}
.navbar-school .dropdown-menu>li { width:100%; margin:0; padding:0; }
.navbar-school .dropdown-item {
    display:flex;
    align-items:center;
    width:100%;
    min-height:40px;
    box-sizing:border-box;
    padding:.62rem .72rem;
    border-radius:10px;
    color:#334155;
    font-size:.9rem;
    font-weight:750;
    line-height:1.25;
    text-align:left;
    white-space:normal;
    transition:color .16s ease,background-color .16s ease;
}
.navbar-school .dropdown-item>i {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 1.2rem;
    width:1.2rem;
    margin-right:.65rem!important;
    text-align:center;
}
.navbar-school .dropdown-item:not(:has(> i)) { padding-left:calc(.72rem + 1.2rem + .65rem); }
.navbar-school .dropdown-item:hover,.navbar-school .dropdown-item:focus-visible,.navbar-school .dropdown-item.active { color:#1d4ed8; background:#eff6ff; }
.navbar-school .navbar-toggler { display:none; place-items:center; width:44px; height:44px; padding:.45rem; border:1px solid rgba(255,255,255,.23)!important; border-radius:12px; }
.navbar-school .navbar-toggler:focus-visible { outline:3px solid rgba(125,211,252,.7); outline-offset:2px; box-shadow:none; }
@keyframes schoolLogoFloat { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-2px); } }
@media(min-width:992px) {
    .navbar-school .dropdown:hover>.dropdown-menu,
    .navbar-school .dropdown:focus-within>.dropdown-menu { display:block; animation:schoolMenuAppear .14s ease-out both; }
    @keyframes schoolMenuAppear { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
}
html.dark-mode .navbar-school .dropdown-menu { border-color:#334155; background:#111827; }
html.dark-mode .navbar-school .dropdown-item { color:#dbeafe; }
html.dark-mode .navbar-school .dropdown-item:hover,html.dark-mode .navbar-school .dropdown-item:focus-visible,html.dark-mode .navbar-school .dropdown-item.active { color:#bfdbfe; background:#1e3a5f; }
@media(max-width:991.98px) {
    .navbar-school { padding:7px 0; }
    .navbar-school .navbar-toggler { display:grid; }
    .navbar-school>.container { min-height:54px; }
    .navbar-school .navbar-collapse { max-height:calc(100vh - 76px); max-height:calc(100dvh - 76px); overflow-y:auto; margin-top:8px; padding:10px; border:1px solid rgba(148,163,184,.2); border-radius:16px; background:#111827; box-shadow:0 18px 35px rgba(0,0,0,.2); }
    .navbar-school .navbar-nav { align-items:stretch!important; gap:3px; }
    .navbar-school .nav-item { width:100%; }
    .navbar-school .nav-link { min-height:44px; padding:.72rem .8rem!important; }
    .navbar-school .dropdown-menu { position:static!important; float:none; width:100%; min-width:0; margin:3px 0 8px 0; padding:5px; border:0; border-radius:12px; background:rgba(255,255,255,.07); box-shadow:none; }
    .navbar-school .dropdown-item { min-height:42px; padding:.7rem .75rem; }
    .navbar-school .dropdown-item:not(:has(> i)) { padding-left:calc(.75rem + 1.2rem + .65rem); }
    .navbar-school .dropdown-item { color:#dbeafe; }
    .navbar-school .dropdown-item:hover,.navbar-school .dropdown-item:focus-visible,.navbar-school .dropdown-item.active { color:#fff; background:rgba(59,130,246,.24); }
    .navbar-school .navbar-brand { margin-right:.5rem; }
}
@media(max-width:575.98px) {
    .navbar-school>.container { padding-right:14px; padding-left:14px; }
    .navbar-school .navbar-brand { gap:9px; margin-right:.35rem; font-size:.9rem; }
    .navbar-school .navbar-brand>img,.navbar-school .brand-logo { width:44px; height:44px; flex-basis:44px; border-radius:13px; }
    .navbar-school .brand-title { font-size:.94rem; }
    .navbar-school .brand-sub { margin-top:3px; font-size:.62rem; }
    .navbar-school .navbar-toggler { width:42px; height:42px; }
}
@media(prefers-reduced-motion:reduce) {
    .navbar-school *, .navbar-school *::before, .navbar-school *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; }
    .navbar-school .brand-logo,.navbar-school .navbar-brand>img { animation:none!important; }
}