html, body {
    overflow-x: hidden;
}

body.school-public-body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

.school-section {
    padding: 80px 0;
    position: relative;
}

.school-section-alt {
    background: #ffffff;
}

.school-section-muted {
    background: #f3f7fb;
}

.school-section-header {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.school-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.school-section-header p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 0;
}

.school-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: linear-gradient(135deg, var(--school-primary), var(--school-secondary));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.school-navbar.navbar {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: auto;
    padding: 0;
}

.school-navbar .navbar-header {
    display: flex;
    align-items: center;
    min-height: 70px;
}

.school-navbar .navbar-brand {
    height: auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff !important;
    max-width: 420px;
}

.school-navbar .navbar-brand img {
    height: 46px;
    width: 46px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.22);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.2);
    background: #ffffff;
}

.school-brand-text {
    font-family: "Cinzel", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    display: block;
    color: #ffffff;
    word-break: break-word;
}

.school-navbar .navbar-nav > li > a {
    color: rgba(255,255,255,.95) !important;
    font-weight: 600;
    padding-top: 24px;
    padding-bottom: 24px;
    transition: all .25s ease;
}

.school-navbar .navbar-nav > li > a:hover,
.school-navbar .navbar-nav > li > a:focus,
.school-navbar .navbar-nav > li.active > a {
    color: #ffffff !important;
    background: rgba(255,255,255,.08) !important;
}

.school-navbar .navbar-toggle {
    margin-top: 18px;
    margin-bottom: 18px;
    border-color: rgba(255,255,255,.35);
    background: transparent;
}

.school-navbar .navbar-toggle .icon-bar {
    background: #ffffff;
}

.school-navbar .dropdown {
    position: relative;
}

.school-navbar .dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 10px 0;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 32px));
    overflow-y: auto;
    max-height: 72vh;
    margin-top: 0;
}

.school-navbar .dropdown-menu > li > a {
    padding: 12px 18px;
    font-weight: 500;
    color: #334155;
    white-space: normal;
}

.school-navbar .dropdown-menu > li > a:hover {
    background: #eff6ff;
    color: var(--school-primary);
}

.school-navbar .dropdown-menu.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
}

.school-navbar .dropdown-menu.school-dropdown-left-fix {
    left: 0 !important;
    right: auto !important;
}

.school-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
}

.school-btn,
.school-btn:hover,
.school-btn:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
    transition: all .25s ease;
}

.school-btn-primary {
    background: #ffffff;
    color: var(--school-primary);
    box-shadow: 0 14px 30px rgba(255, 255, 255, 0.18);
}

.school-btn-primary:hover,
.school-btn-primary:focus {
    color: var(--school-primary);
    transform: translateY(-2px);
}

.school-btn-light {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.school-btn-light:hover,
.school-btn-light:focus {
    color: #0f172a;
    transform: translateY(-2px);
}

.school-nav-login-btn {
    padding: 10px 20px;
}

.school-hero-slider-wrap {
    position: relative;
}

.school-hero-carousel,
.school-hero-carousel .carousel-inner,
.school-hero-carousel .item {
    min-height: 88vh;
}

.school-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*
|--------------------------------------------------------------------------
| Homepage Hero Slide Overlay
|--------------------------------------------------------------------------
| This overlay has been reduced so the banner/slider images can show clearly.
| The left side still keeps enough darkness for text readability, while the
| right side is now lighter so the beauty of the image can come out well.
*/
.school-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2, 6, 23, 0.35) 0%,
        rgba(15, 23, 42, 0.15) 45%,
        rgba(15, 23, 42, 0.12) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.school-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #ffffff;
    padding: 120px 0 100px;
    text-shadow: 0 3px 18px rgba(2, 6, 23, 0.45);
}

.school-hero-kicker {
    display: inline-block;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.school-hero h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(2, 6, 23, 0.55);
}

.school-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 0 3px 16px rgba(2, 6, 23, 0.50);
}

.school-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.school-hero-control {
    background: none !important;
    opacity: 1;
    width: 8%;
}

.school-hero-control span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 38px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.35);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.school-hero-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border: 0;
    background: rgba(255,255,255,.45);
}

.school-hero-indicators .active {
    background: #ffffff;
}

.school-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: all .25s ease;
    height: 100%;
}

.school-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.12);
}

.school-about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: stretch;
}

.school-about-text-card,
.school-about-profile-card {
    padding: 34px;
}

.school-about-text-card h3,
.school-about-profile-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

.school-about-text-card p,
.school-about-profile-card p {
    color: #475569;
    margin-bottom: 14px;
}

.school-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.school-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: #eff6ff;
    color: var(--school-primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.school-profile-head {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.school-profile-head img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.school-team-card .school-team-image-wrap,
.school-gallery-card .school-gallery-image-wrap {
    position: relative;
    overflow: hidden;
}

.school-team-card img,
.school-gallery-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform .35s ease;
}

.school-team-card:hover img,
.school-gallery-card:hover img {
    transform: scale(1.06);
}

.school-team-body,
.school-gallery-body {
    padding: 22px 22px 24px;
}

.school-team-body h4,
.school-gallery-body h4 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 21px;
    font-weight: 800;
    color: #0f172a;
}

.school-team-role {
    color: var(--school-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.school-team-bio {
    color: #64748b;
    margin-bottom: 16px;
}

.school-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.school-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--school-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.school-socials a:hover {
    background: var(--school-primary);
    color: #ffffff;
}

.school-gallery-overlay {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.88));
    color: #ffffff;
}

.school-gallery-overlay h4 {
    color: #ffffff;
    margin: 0 0 5px;
    font-size: 18px;
}

.school-gallery-overlay p {
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
    font-size: 14px;
}

.school-contact-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 30px;
}

.school-contact-card,
.school-contact-details-card {
    padding: 34px;
}

.school-form-group {
    margin-bottom: 18px;
}

.school-form-label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #0f172a;
}

.school-form-control {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 16px;
    background: #ffffff;
    padding: 14px 16px;
    font-size: 15px;
    color: #0f172a;
    transition: all .25s ease;
}

.school-form-control:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

textarea.school-form-control {
    min-height: 160px;
    resize: vertical;
}

.school-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.school-contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    color: #475569;
}

.school-contact-list i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--school-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.school-map-section#map {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.school-map-section .container {
    position: relative;
    z-index: 1;
}

.school-map-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    background: #ffffff;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.school-map-embed {
    display: block;
    width: 100%;
    height: 420px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.school-map-wrap iframe {
    display: block !important;
    width: 100% !important;
    height: 420px !important;
    min-height: 0 !important;
    max-height: 420px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.school-subpage-shell {
    padding: 115px 0 75px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    min-height: 60vh;
}

.school-rich-card {
    background: #ffffff;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 36px;
}

.school-rich-card p,
.school-rich-card li {
    color: #475569;
}

.school-subpage-heading {
    width: 100%;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5edf5;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.school-subpage-heading h1 {
    width: 100%;
    margin: 0 auto 10px;
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    text-align: center !important;
}

.school-subpage-heading p {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    color: #64748b;
    font-size: 16px;
    text-align: center !important;
}

.school-subpage-heading .school-rich-content,
.school-subpage-heading .school-page-excerpt-content {
    width: 100%;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
}

.school-subpage-heading .school-rich-content *,
.school-subpage-heading .school-page-excerpt-content * {
    text-align: center !important;
}

.school-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

.school-footer h4 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 16px;
}

.school-footer p,
.school-footer li,
.school-footer a {
    color: rgba(255, 255, 255, 0.78);
}

.school-footer a:hover {
    color: #ffffff;
}

.school-footer-bottom {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.school-alert {
    position: relative;
    border-radius: 18px;
    padding: 16px 50px 16px 18px;
    margin-bottom: 24px;
    font-weight: 600;
}

.school-alert-success {
    background: #dcfce7;
    color: #166534;
}

.school-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.school-alert-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pagination > li > a,
.pagination > li > span {
    border-radius: 12px !important;
    border: 1px solid #dbe2ea !important;
    color: #334155 !important;
    padding: 10px 14px;
}

.pagination > .active > span,
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background: var(--school-primary) !important;
    border-color: var(--school-primary) !important;
    color: #ffffff !important;
}

@media (min-width: 992px) {
    .school-navbar .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .school-navbar .navbar-nav > li.dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all .22s ease;
    }
}

@media (max-width: 991px) {
    .school-navbar .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .school-brand-text {
        font-size: 18px;
    }

    .school-navbar .navbar-nav > li > a {
        padding-top: 12px;
        padding-bottom: 12px;
        color: #ffffff !important;
    }

    .school-navbar .navbar-collapse {
        border-top: 0;
        box-shadow: none;
    }

    .school-nav-actions {
        padding: 0 15px 18px;
        justify-content: flex-start;
    }

    .school-hero-carousel,
    .school-hero-carousel .carousel-inner,
    .school-hero-carousel .item,
    .school-hero {
        min-height: 74vh;
    }

    .school-hero-content {
        padding: 100px 0 80px;
    }

    .school-hero h1 {
        font-size: 40px;
    }

    .school-about-grid,
    .school-contact-grid {
        grid-template-columns: 1fr;
    }

    .school-subpage-shell {
        padding-top: 95px;
    }

    .school-subpage-heading h1 {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .school-section {
        padding: 60px 0;
    }

    .school-section-header h2 {
        font-size: 30px;
    }

    .school-hero h1 {
        font-size: 32px;
    }

    .school-hero p {
        font-size: 16px;
    }

    .school-team-card img,
    .school-gallery-card img {
        height: 270px;
    }

    .school-about-text-card,
    .school-about-profile-card,
    .school-contact-card,
    .school-contact-details-card,
    .school-rich-card {
        padding: 24px;
    }

    .school-map-embed {
        height: 320px;
    }

    .school-map-wrap iframe {
        height: 320px !important;
        max-height: 320px !important;
    }

    .school-map-wrap {
        border-radius: 18px;
    }

    .school-brand-text {
        font-size: 16px;
    }

    .school-navbar .navbar-brand img {
        height: 40px;
        width: 40px;
    }

    .school-hero-control {
        display: none;
    }
}









/* =========================================
   CLEAN TWO-BAR SCHOOL HEADER
   - Title bar and menu bar same height
   - Menu aligned left
   - Apply Now behaves like normal menu item
   - No horizontal scroll
========================================= */

:root {
    --school-primary: #0f4c81;
    --school-secondary: #19a7ce;
    --school-title-height: 92px;
    --school-menu-height: 92px;
}

/* Wrapper */
.school-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1200;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

/* =========================
   TOP TITLE BAR
========================= */
.school-titlebar {
    background: linear-gradient(135deg, #0b4f8a 0%, #1565a9 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.school-titlebar-inner {
    min-height: var(--school-title-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.school-titlebar .school-brand-link {
    display: flex !important;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 12px 0;
    color: #ffffff !important;
}

.school-titlebar .school-brand-link img {
    width: 62px;
    height: 62px;
    min-width: 62px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid rgba(255, 255, 255, 0.24);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.school-brand-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.school-titlebar .school-brand-text {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.school-titlebar .school-brand-subtext {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.school-titlebar-actions {
    flex: 0 0 auto;
}

.school-title-login-btn {
    background: #ffffff;
    color: #0b4f8a;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(255, 255, 255, 0.16);
}

.school-title-login-btn:hover,
.school-title-login-btn:focus {
    color: #0b4f8a;
    transform: translateY(-1px);
}

/* =========================
   BOTTOM MENU BAR
========================= */
.school-menubar {
    background: linear-gradient(135deg, #0a2f57 0%, #123f70 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.school-menubar .school-navbar.navbar {
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-height: auto;
    padding: 0;
}

.school-menubar .school-navbar-inner {
    min-height: var(--school-menu-height);
    display: flex;
    align-items: center;
}

.school-menubar .school-navbar-header {
    float: none !important;
    min-width: 0;
}

.school-menubar .school-navbar-collapse {
    float: none !important;
    display: block !important;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0 !important;
    overflow: visible !important;
    border-top: 0;
    box-shadow: none;
}

.school-menubar .school-navbar-primary {
    width: 100%;
}

.school-menubar .school-navbar .navbar-nav.school-navbar-menu {
    float: none;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-menubar .school-navbar .navbar-nav.school-navbar-menu > li {
    float: none;
    flex: 0 1 auto;
    min-width: 0;
    list-style: none;
}

.school-menubar .school-navbar .navbar-nav.school-navbar-menu > li > a {
    color: rgba(255, 255, 255, 0.96) !important;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    height: var(--school-menu-height);
    display: flex;
    align-items: center;
    padding: 0 10px;
    white-space: nowrap;
    line-height: 1;
    text-align: left;
    transition: all 0.22s ease;
}

.school-menubar .school-navbar .navbar-nav.school-navbar-menu > li:first-child > a {
    padding-left: 0;
}

.school-menubar .school-navbar .navbar-nav.school-navbar-menu > li > a:hover,
.school-menubar .school-navbar .navbar-nav.school-navbar-menu > li > a:focus,
.school-menubar .school-navbar .navbar-nav.school-navbar-menu > li.active > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Toggle */
.school-menubar .school-navbar .navbar-toggle {
    margin-top: 10px;
    margin-bottom: 10px;
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
}

.school-menubar .school-navbar .navbar-toggle .icon-bar {
    background: #ffffff;
}

/* Dropdowns */
.school-menubar .school-navbar .dropdown {
    position: relative;
}

.school-menubar .school-navbar .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    padding: 10px 0;
    min-width: 220px;
    max-width: min(320px, calc(100vw - 32px));
    overflow-y: auto;
    max-height: 72vh;
    margin-top: 0;
    background: rgba(12, 25, 45, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.school-menubar .school-navbar .dropdown-menu > li > a {
    padding: 12px 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.94);
    white-space: normal;
}

.school-menubar .school-navbar .dropdown-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.school-menubar .school-navbar .dropdown-menu.dropdown-menu-right {
    left: auto !important;
    right: 0 !important;
}

.school-menubar .school-navbar .dropdown-menu.school-dropdown-left-fix {
    left: 0 !important;
    right: auto !important;
}

/* Desktop hover dropdown */
@media (min-width: 992px) {
    .school-menubar .school-navbar .navbar-nav > li.dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .school-menubar .school-navbar .navbar-nav > li.dropdown > .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all .22s ease;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .school-titlebar .school-brand-text {
        font-size: 24px;
    }

    .school-menubar .school-navbar .navbar-nav.school-navbar-menu > li > a {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* Medium desktop */
@media (min-width: 992px) and (max-width: 1199px) {
    .school-titlebar .school-brand-text {
        font-size: 20px;
    }

    .school-menubar .school-navbar .navbar-nav.school-navbar-menu > li > a {
        font-size: 10px;
        padding: 0 7px;
        letter-spacing: 0.02em;
    }
}

/* =========================
   MOBILE / TABLET
========================= */
@media (max-width: 991px) {
    .school-header-wrap {
        position: relative;
    }

    .school-titlebar-inner {
        min-height: auto;
        padding: 10px 0;
    }

    .school-titlebar .school-brand-link {
        max-width: calc(100% - 70px);
        gap: 12px;
    }

    .school-titlebar .school-brand-link img {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .school-titlebar .school-brand-text {
        font-size: 17px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .school-titlebar .school-brand-subtext {
        font-size: 10px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .school-menubar .school-navbar-inner {
        display: block;
        min-height: auto;
    }

    .school-menubar .school-navbar-header {
        display: block;
        min-height: 56px;
    }

    .school-menubar .school-navbar-collapse {
        display: block !important;
        width: 100%;
        background: rgba(255, 255, 255, 0.04);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 0;
    }

    .school-menubar .school-navbar .navbar-nav.school-navbar-menu {
        display: block;
        width: 100%;
    }

    .school-menubar .school-navbar .navbar-nav.school-navbar-menu > li > a {
        height: auto;
        display: block;
        padding: 12px 14px;
        font-size: 13px;
        text-align: left;
    }
}


.school-about-title-center {
    text-align: center;
}

.school-news-modal .modal-body p {
    padding: 0 !important;
    margin-bottom: 16px !important;
    line-height: 1.8em;
    color: #334155;
}

.school-news-modal .school-subpage-content p {
    padding: 0 !important;
    margin-bottom: 16px !important;
}

.school-news-modal .school-subpage-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.school-news-modal .modal-title {
    color: #ffffff;
}


.school-page-banner-slider-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
}

.school-page-banner-carousel {
    width: 100%;
    margin: 0;
    padding: 0;
}

.school-page-banner-hero {
    width: 100%;
    min-height: 520px;
    height: 70vh;
    max-height: 760px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

.school-page-banner-hero::before {
    display: none !important;
    content: none !important;
}

.school-page-banner-empty-layer {
    display: none !important;
}

.school-page-banner-carousel .school-hero-content,
.school-page-banner-carousel .school-hero-kicker,
.school-page-banner-carousel h1,
.school-page-banner-carousel p,
.school-page-banner-carousel .school-hero-actions {
    display: none !important;
}

.school-page-banner-carousel .carousel-control {
    background-image: none !important;
}

.school-page-banner-carousel .school-hero-control {
    opacity: 1;
}

.school-page-banner-carousel .school-hero-control span {
    width: 44px;
    height: 44px;
    line-height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    color: #ffffff;
    font-size: 28px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.school-page-banner-carousel .left.school-hero-control span {
    left: 24px;
}

.school-page-banner-carousel .right.school-hero-control span {
    right: 24px;
}

.school-page-banner-carousel .school-hero-indicators {
    bottom: 24px;
}

@media (max-width: 991px) {
    .school-page-banner-hero {
        min-height: 380px;
        height: 55vh;
    }
}

@media (max-width: 575px) {
    .school-page-banner-hero {
        min-height: 280px;
        height: 42vh;
    }
}

/* =========================================================
   FRONTEND WYSIWYG CONTENT DISPLAY
   Keeps homepage editor content looking exactly like admin input.
========================================================= */

.school-rich-content {
    width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

.school-rich-content * {
    max-width: 100%;
}

.school-rich-content p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.8;
}

.school-rich-content h1,
.school-rich-content h2,
.school-rich-content h3,
.school-rich-content h4,
.school-rich-content h5,
.school-rich-content h6 {
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.school-rich-content ul,
.school-rich-content ol {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 26px;
}

.school-rich-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.school-rich-content blockquote {
    border-left: 4px solid var(--school-primary);
    padding: 12px 18px;
    margin: 18px 0;
    background: #f8fafc;
    color: #334155;
    border-radius: 0 12px 12px 0;
}

.school-rich-content a {
    color: var(--school-primary);
    font-weight: 700;
    text-decoration: underline;
}

.school-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 16px auto;
}

.school-rich-content video {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 16px auto;
}

.school-rich-content audio {
    width: 100%;
    margin: 16px 0;
}

.school-rich-content figure {
    margin: 18px 0;
}

.school-rich-content figcaption {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-top: 8px;
}

.school-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    background: #ffffff;
}

.school-rich-content table th,
.school-rich-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    vertical-align: top;
}

.school-rich-content table th {
    background: #f8fafc;
    font-weight: 800;
}

.school-rich-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 24px 0;
}

.school-hero-title {
    margin-bottom: 18px;
}

.school-hero-title,
.school-hero-title p,
.school-hero-title h1,
.school-hero-title h2,
.school-hero-title h3,
.school-hero-title h4 {
    color: #ffffff;
}

.school-hero-title p,
.school-hero-title h1,
.school-hero-title h2,
.school-hero-title h3,
.school-hero-title h4 {
    margin-bottom: 0;
}

.school-hero-title p:not([style]),
.school-hero-title h1:not([style]),
.school-hero-title h2:not([style]),
.school-hero-title h3:not([style]),
.school-hero-title h4:not([style]) {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
}

.school-hero-subtitle {
    margin-bottom: 30px;
}

.school-hero-subtitle,
.school-hero-subtitle p,
.school-hero-subtitle h1,
.school-hero-subtitle h2,
.school-hero-subtitle h3,
.school-hero-subtitle h4,
.school-hero-subtitle li {
    color: rgba(255, 255, 255, 0.9);
}

.school-hero-subtitle p:not([style]),
.school-hero-subtitle li:not([style]) {
    font-size: 18px;
    line-height: 1.8;
}

.school-hero-subtitle p {
    margin-bottom: 0;
}

.school-hero-title a,
.school-hero-subtitle a {
    color: #ffffff;
}

.school-homepage-intro-content,
.school-director-welcome-content {
    color: #475569;
}

.school-homepage-intro-content p,
.school-director-welcome-content p {
    color: inherit;
}

.school-homepage-intro-content h1,
.school-homepage-intro-content h2,
.school-homepage-intro-content h3,
.school-homepage-intro-content h4,
.school-director-welcome-content h1,
.school-director-welcome-content h2,
.school-director-welcome-content h3,
.school-director-welcome-content h4 {
    color: #0f172a;
}

.school-homepage-intro-content img,
.school-director-welcome-content img {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.school-homepage-intro-content iframe,
.school-director-welcome-content iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 14px;
}

@media (max-width: 767px) {
    .school-hero-title p:not([style]),
    .school-hero-title h1:not([style]),
    .school-hero-title h2:not([style]),
    .school-hero-title h3:not([style]),
    .school-hero-title h4:not([style]) {
        font-size: 34px;
    }

    .school-hero-subtitle p:not([style]),
    .school-hero-subtitle li:not([style]) {
        font-size: 16px;
    }
}

/* =========================================================
   WEBSITE PAGES & MENU-DROPDOWN WYSIWYG DISPLAY SUPPORT
   Applies to Website Pages & Content entries created from
   admin menu/dropdown page settings.
========================================================= */

.school-page-excerpt-content {
    max-width: 850px;
    margin: 12px auto 0;
    color: #64748b;
}

.school-page-excerpt-content p {
    margin-bottom: 8px;
}

.school-entry-summary-content {
    width: 100%;
    overflow-wrap: break-word;
}

.school-entry-summary-content p {
    margin-bottom: 8px;
}

.school-subpage-content.school-rich-content {
    overflow-wrap: break-word;
}

.school-subpage-content.school-rich-content img,
.school-subpage-content.school-rich-content video {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.school-subpage-content.school-rich-content iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 14px;
}

.school-subpage-content.school-rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    background: #ffffff;
}

.school-subpage-content.school-rich-content table th,
.school-subpage-content.school-rich-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px;
    vertical-align: top;
}

.school-subpage-content.school-rich-content blockquote {
    border-left: 4px solid var(--school-primary);
    padding: 12px 18px;
    margin: 18px 0;
    background: #f8fafc;
    color: #334155;
    border-radius: 0 12px 12px 0;
}

/* Footer social icons: keep icons visible on the dark footer.
   This overrides the general .school-footer a color rule without changing the existing footer flow. */
.school-footer .school-socials a {
    background: #eff6ff !important;
    color: var(--school-primary) !important;
}

.school-footer .school-socials a i {
    color: var(--school-primary) !important;
}

.school-footer .school-socials a:hover {
    background: var(--school-secondary) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.school-footer .school-socials a:hover i {
    color: #ffffff !important;
}

/* =========================================================
   Equal Team Cards Fix - Homepage and Full Team Page
   Keeps all team cards the same height, crops text evenly,
   and shows full profile content inside the existing modal.
   ========================================================= */
.school-team-equal-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.school-team-equal-col {
    display: flex;
    margin-bottom: 30px;
}

.school-team-equal-col .school-team-card {
    width: 100%;
    min-height: 610px;
    display: flex;
    flex-direction: column;
}

.school-team-home-grid .school-team-equal-col .school-team-card {
    min-height: 560px;
}

.school-team-page-grid .school-team-equal-col .school-team-card {
    min-height: 610px;
}

.school-team-card .school-team-image-wrap {
    width: 100%;
    height: 300px;
    display: block;
    flex: 0 0 300px;
    padding: 0;
    border: 0;
    background: #f8fafc;
    cursor: pointer;
}

.school-team-home-grid .school-team-card .school-team-image-wrap {
    height: 260px;
    flex-basis: 260px;
}

.school-team-card .school-team-image-wrap img,
.school-team-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.school-team-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.school-team-body h4 {
    min-height: 50px;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-team-role {
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-team-department-line {
    margin-bottom: 8px;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-team-bio-preview {
    min-height: 66px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-team-home-grid .school-team-bio-preview {
    min-height: 44px;
    -webkit-line-clamp: 2;
}

.school-team-body .school-socials {
    min-height: 40px;
    margin-top: auto;
    margin-bottom: 14px;
}

.school-card-modal-btn {
    align-self: flex-start;
    margin-top: 0;
}

@media (max-width: 991px) {
    .school-team-home-grid .school-team-equal-col .school-team-card,
    .school-team-page-grid .school-team-equal-col .school-team-card,
    .school-team-equal-col .school-team-card {
        min-height: 590px;
    }

    .school-team-card .school-team-image-wrap,
    .school-team-home-grid .school-team-card .school-team-image-wrap {
        height: 280px;
        flex-basis: 280px;
    }
}

@media (max-width: 767px) {
    .school-team-equal-grid {
        display: block;
    }

    .school-team-equal-col {
        display: block;
    }

    .school-team-home-grid .school-team-equal-col .school-team-card,
    .school-team-page-grid .school-team-equal-col .school-team-card,
    .school-team-equal-col .school-team-card {
        min-height: auto;
    }

    .school-team-card .school-team-image-wrap,
    .school-team-home-grid .school-team-card .school-team-image-wrap {
        height: 270px;
        flex-basis: auto;
    }
}

/* =========================================================
   Equal Gallery Cards + Unified Gallery Display Fix
   Applies to:
   - Homepage gallery preview
   - /media/gallery full gallery page
   - Gallery pages created through Website Pages & Content
   ========================================================= */
.school-gallery-equal-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.school-gallery-equal-col {
    display: flex;
    margin-bottom: 30px;
}

.school-gallery-balanced-card {
    width: 100%;
    min-height: 468px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.school-gallery-home-grid .school-gallery-balanced-card {
    min-height: 448px;
}

.school-gallery-page-grid .school-gallery-balanced-card {
    min-height: 468px;
}

.school-gallery-balanced-card .school-gallery-image-wrap {
    width: 100%;
    height: 235px;
    flex: 0 0 235px;
    display: block;
    padding: 0;
    border: 0;
    background: #f8fafc;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.school-gallery-page-grid .school-gallery-balanced-card .school-gallery-image-wrap {
    height: 250px;
    flex-basis: 250px;
}

.school-gallery-balanced-card .school-gallery-image-wrap img,
.school-gallery-balanced-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.school-gallery-balanced-card .school-gallery-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.school-gallery-balanced-card .school-gallery-body h4 {
    min-height: 54px;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-gallery-caption-preview {
    min-height: 78px;
    margin-bottom: 16px;
    color: #475569;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.school-gallery-home-grid .school-gallery-caption-preview {
    min-height: 72px;
    -webkit-line-clamp: 3;
}

.school-gallery-view-btn {
    align-self: flex-start;
    margin-top: auto;
    border: 0;
    background: transparent;
    color: var(--school-primary);
    font-weight: 800;
    padding: 0;
}

.school-gallery-view-btn:hover,
.school-gallery-view-btn:focus {
    color: var(--school-secondary);
    text-decoration: underline;
    outline: none;
}

.school-gallery-modal-photo {
    width: 100%;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
}

.school-gallery-modal-photo img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    display: block;
    background: #f8fafc;
}

@media (max-width: 991px) {
    .school-gallery-balanced-card,
    .school-gallery-home-grid .school-gallery-balanced-card,
    .school-gallery-page-grid .school-gallery-balanced-card {
        min-height: 450px;
    }

    .school-gallery-balanced-card .school-gallery-image-wrap,
    .school-gallery-page-grid .school-gallery-balanced-card .school-gallery-image-wrap {
        height: 235px;
        flex-basis: 235px;
    }
}

@media (max-width: 767px) {
    .school-gallery-equal-grid {
        display: block;
    }

    .school-gallery-equal-col {
        display: block;
    }

    .school-gallery-balanced-card,
    .school-gallery-home-grid .school-gallery-balanced-card,
    .school-gallery-page-grid .school-gallery-balanced-card {
        min-height: auto;
    }

    .school-gallery-balanced-card .school-gallery-image-wrap,
    .school-gallery-page-grid .school-gallery-balanced-card .school-gallery-image-wrap {
        height: 250px;
        flex-basis: auto;
    }

    .school-gallery-balanced-card .school-gallery-body h4,
    .school-gallery-caption-preview {
        min-height: auto;
    }
}
