/* =============================================
   BASE
============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Logo / wordmark (same as header brand) */
    --brand-red: #d32f2f;
    --brand-red-dark: #b71c1c;
    --brand-blue: #1565c0;
    --brand-blue-dark: #0d47a1;
    --brand-blue-soft: rgba(21, 101, 192, 0.12);
    --brand-yellow: #ffeb3b;
    --brand-yellow-mid: #fdd835;
    --brand-yellow-deep: #f9a825;
    --brand-ink: #111827;
    --brand-muted: #64748b;

    /* Site theme = logo colours */
    --yellow: var(--brand-yellow);
    --yellow-deep: var(--brand-yellow-deep);
    --yellow-on: var(--brand-ink);
    --accent: var(--brand-blue);
    --accent-hover: var(--brand-blue-dark);
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* =============================================
   COLOR UTILITIES
============================================= */
.text-primary-color {
    color: var(--brand-blue) !important;
}

.bg-primary-color {
    background-color: var(--yellow) !important;
}

/* =============================================
   TOP INFO BAR
============================================= */
.top-bar {
    background: var(--yellow);
    color: var(--yellow-on);
    font-size: 12.5px;
    padding: 6px 0;
}

.top-bar .text-primary {
    color: var(--brand-blue-dark) !important;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(17, 24, 39, 0.9);
    font-size: 12.5px;
}

.top-bar-item svg {
    flex-shrink: 0;
    opacity: 0.85;
}

.top-bar-divider {
    width: 1px;
    height: 14px;
    background: rgba(21, 101, 192, 0.2);
}

.top-bar-text {
    color: rgba(17, 24, 39, 0.55);
    font-size: 12px;
    letter-spacing: 0.3px;
}

.top-bar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(21, 101, 192, 0.12);
    border-radius: 50%;
    color: var(--brand-blue-dark);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.top-bar-social:hover {
    background: rgba(21, 101, 192, 0.2);
    color: var(--brand-blue-dark);
    transform: translateY(-1px);
}

/* =============================================
   SITE HEADER / NAVBAR
============================================= */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.09);
    border-bottom: 2px solid var(--brand-blue-soft);
    z-index: 1000;
    position: sticky;
    top: 0;
}

.site-header .navbar {
    padding: 0;
    min-height: 72px;
}

/* ---- Brand / Logo ---- */
.logo-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--yellow);
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* contain = full circular emblem visible (cover was cropping the outer text ring) */
.school-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: contain;
    object-position: center;
}

/* Footer / compact logo: same contain rule so ring text is not cropped */
.site-footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
    background: var(--yellow);
    padding: 4px;
}

/* ---- Brand wordmark (banner-style: red / blue / yellow bar) ---- */
.brand-wordmark-wrap {
    min-width: 0;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    line-height: 1.08;
}

.brand-wordmark-line {
    display: block;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(9px, 1.25vw, 12.5px);
    white-space: nowrap;
}

.brand-wordmark-line--red {
    color: var(--brand-red);
}

.brand-wordmark-line--blue {
    color: var(--brand-blue);
}

.brand-wordmark-line--yellow {
    background: var(--brand-yellow);
    color: var(--brand-ink);
    padding: 0.12em 0.45em 0.14em;
    margin-top: 0.1em;
    letter-spacing: 0.08em;
}

.brand-wordmark--compact .brand-wordmark-line {
    font-size: clamp(8px, 1.8vw, 11px);
}

.brand-wordmark-location {
    font-size: 9px;
    color: var(--brand-muted);
    margin: 4px 0 0;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .brand-wordmark-line {
        white-space: normal;
        max-width: min(58vw, 280px);
    }
}

/* =============================================
   MAIN NAV LIST
============================================= */
.main-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 8px;
}

/* ---- Nav Item ---- */
.nav-item-custom {
    position: relative;
    display: flex;
    align-items: stretch;
}

/* ---- Nav Link ---- */
.nav-link-custom {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2a2a2a;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
    min-height: 72px;
}

/* Animated underline indicator */
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    background: var(--brand-red);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-item-custom:hover .nav-link-custom,
.nav-link-custom.active {
    color: var(--brand-blue);
}

.nav-item-custom:hover .nav-link-custom::after,
.nav-link-custom.active::after {
    transform: scaleX(1);
}

/* Dropdown chevron */
.dropdown-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #888;
}

.nav-item-custom.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--brand-blue);
}

/* =============================================
   DROPDOWN PANEL
============================================= */
.dropdown-panel {
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 230px;
    background: #fff;
    border-radius: 14px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.07),
        0 0 0 1px var(--brand-blue-soft);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 9999;
    overflow: hidden;
}

/* Coloured top accent — logo red → blue */
.dropdown-panel::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-red) 38%, var(--brand-blue) 38%, var(--brand-blue) 100%);
}

/* Small upward pointing arrow/caret */
.dropdown-panel::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    border: 7px solid transparent;
    border-bottom-color: var(--brand-blue);
    pointer-events: none;
}

.dropdown-panel-inner {
    padding: 8px 0 12px;
}

/* Show on hover */
.nav-item-custom.has-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* ---- Dropdown Link ---- */
.dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.dropdown-link:hover {
    background: #f1f5f9;
    color: var(--brand-blue-dark);
    border-left-color: var(--brand-blue);
    padding-left: 28px;
}

.dropdown-link.active {
    background: #fffbeb;
    color: var(--brand-blue-dark);
    border-left-color: var(--brand-red);
    font-weight: 700;
    padding-left: 28px;
}

/* =============================================
   CTA BUTTON
============================================= */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--yellow);
    color: var(--yellow-on) !important;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 9px;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border: 1px solid rgba(21, 101, 192, 0.35);
    flex-shrink: 0;
}

.nav-cta-btn:hover {
    background: var(--brand-yellow-mid);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    color: var(--yellow-on) !important;
}

.nav-cta-btn svg {
    transition: transform 0.2s;
}

.nav-cta-btn:hover svg {
    transform: translateX(3px);
}

/* =============================================
   HAMBURGER TOGGLER
============================================= */
.navbar-toggler-custom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 8px;
    background: #fffbeb;
    border: 1.5px solid var(--brand-blue-soft);
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.navbar-toggler-custom:hover {
    background: #f1f5f9;
    border-color: rgba(21, 101, 192, 0.35);
}

.navbar-toggler-custom span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =============================================
   MOBILE (≤ 991px)
============================================= */
@media (max-width: 991px) {
    .site-header .navbar {
        min-height: 64px;
        padding: 10px 0;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px 0 4px;
        border-top: 1px solid var(--brand-blue-soft);
        margin-top: 10px;
    }

    .nav-item-custom {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-link-custom {
        padding: 12px 16px;
        min-height: unset;
        border-radius: 9px;
        justify-content: space-between;
    }

    .nav-link-custom::after {
        display: none;
    }

    .nav-item-custom:hover>.nav-link-custom {
        background: #fffbeb;
    }

    /* Mobile dropdown: accordion-style */
    .dropdown-panel {
        position: static;
        transform: none !important;
        box-shadow: none;
        border-radius: 9px;
        border: none;
        background: #fffbeb;
        opacity: 1;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin: 2px 8px 4px 8px;
    }

    .dropdown-panel::before {
        display: none;
    }

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

    .nav-item-custom.has-dropdown:hover .dropdown-panel {
        pointer-events: auto;
        max-height: 400px;
        transform: none !important;
    }

    .dropdown-link {
        padding: 9px 14px;
        font-size: 13px;
    }

    .dropdown-link:hover {
        padding-left: 18px;
    }

    .nav-cta-btn {
        margin: 12px 8px 4px;
        justify-content: center;
    }
}

/* =============================================
   HERO & REST
============================================= */
.hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
}

.hero .container {
    flex: 1;
}

/* =============================================
   CUSTOM BUTTON (reused across site)
============================================= */
.custom-btn {
    background-color: var(--yellow);
    border: 1px solid rgba(21, 101, 192, 0.4);
    color: var(--yellow-on);
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s;
}

.custom-btn:hover {
    background-color: var(--brand-yellow-mid);
    border-color: var(--brand-blue);
    color: var(--yellow-on);
}

/* Badge */
.badge-custom {
    background-color: var(--yellow);
    color: var(--yellow-on);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(21, 101, 192, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Sections */
.section-padding {
    padding: 5rem 0;
}

/* Feature card colors */
.bg-blue {
    background-color: #e8efff;
}

.bg-green {
    background-color: #f0fff5;
}

.bg-yellow {
    background-color: #fff9d9;
}

.bg-teal {
    background-color: #fefce8;
}

.bg-pink {
    background-color: #ffeef0;
}

.bg-beige {
    background-color: #f6f5f1;
}

.feature-card {
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Links */
.link-hover:hover {
    color: var(--brand-blue) !important;
}

/* =============================================
   ABOUT US SECTION
============================================= */
.about-us-section {
    background: #fffdf8;
}

.about-us-copy-col {
    padding-left: 0;
}

@media (min-width: 992px) {
    .about-us-copy-col {
        padding-left: 0.5rem;
    }
}

.about-section-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #424242;
}

.about-section-body .about-intro {
    font-size: 1.15rem;
    line-height: 1.7;
}

.about-mva-block {
    margin-top: 1.5rem;
    padding: 1.35rem 1.35rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid var(--brand-blue-soft);
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.about-mva-block:first-of-type {
    margin-top: 0.5rem;
}

.about-mva-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--brand-blue-dark);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--brand-yellow-deep);
}

.about-section-body .about-mva-quote {
    border-color: var(--brand-red) !important;
    color: #555;
}

/* Mission / Vision / Aim — two-up + full-width aim when all three show */
.mva-columns-section {
    background: linear-gradient(180deg, #f8fafc 0%, #fffbeb 55%, #fffdf8 100%);
    border-top: 2px solid var(--brand-blue-soft) !important;
}

.mva-card-border {
    border-color: rgba(249, 168, 37, 0.42) !important;
}

.mva-card-heading-border {
    border-color: rgba(249, 168, 37, 0.75) !important;
}

.section-heading-rule {
    border-color: var(--brand-blue-soft) !important;
}

.mva-section-lead {
    max-width: 36rem;
    line-height: 1.55;
    color: var(--brand-muted);
}

.mva-trio-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .mva-trio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .mva-trio-aim {
        grid-column: 1 / -1;
    }
}

.mva-column-card {
    transition: box-shadow 0.2s ease;
}

.mva-column-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

.mva-card-heading {
    letter-spacing: 0.02em;
}

.mva-column-body {
    font-size: 0.95rem;
    line-height: 1.65;
}

.mva-column-body .about-mva-quote {
    font-size: 0.9rem;
}

.mva-mission-list {
    padding: 0;
    margin: 0;
}

.mva-mission-list li {
    position: relative;
    padding: 0.65rem 0 0.65rem 1.35rem;
    border-bottom: 1px solid rgba(234, 179, 8, 0.22);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #3f3f3f;
}

.mva-mission-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mva-mission-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-red);
}

.mva-vision-block {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.06) 0%, #fff 55%);
    border: 1px solid var(--brand-blue-soft);
    border-radius: 12px;
    padding: 1.1rem 1.15rem;
}

.mva-vision-text {
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 600;
    color: var(--brand-blue-dark);
}

.mva-aim-panel .mva-aim-lead {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #424242;
}

.mva-aim-pillar {
    background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: 12px;
    padding: 1rem 1rem 1.05rem;
}

.mva-aim-pillar__title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-blue-dark);
    margin: 0 0 0.55rem;
}

.mva-aim-pillar__text {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #555;
}

.mva-aim-pillar__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #555;
}

.mva-aim-pillar__list li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(180, 83, 9, 0.2);
}

.mva-aim-pillar__list li:last-child {
    border-bottom: 0;
}

@media (max-width: 991.98px) {
    .mva-trio-grid {
        grid-template-columns: 1fr;
    }
}

.about-img-grid {
    position: relative;
    padding-bottom: 60px;
    padding-right: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .about-img-grid {
        margin-left: 0;
        margin-right: 0;
    }
}

.about-img-main {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
}

.about-img-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 180px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about-img-secondary img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
}

.about-stats-badge {
    position: absolute;
    top: 30px;
    right: 0;
    transform: translateX(12%);
    background: linear-gradient(145deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 16px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 110px;
}

.about-stat-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.about-stat-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About mini stats row */
.about-mini-stat {
    background: #fffbeb;
    border: 1.5px solid rgba(249, 168, 37, 0.45);
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
}

.about-mini-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
}

.about-mini-lbl {
    font-size: 11px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* =============================================
   WHY CHOOSE US SECTION
============================================= */
.why-section {
    background: linear-gradient(180deg, #fffbeb 0%, #fffdf8 100%);
}

.why-section-headline {
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    color: var(--brand-blue-dark);
}

.why-section-sub {
    max-width: 40rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--brand-muted);
}

.why-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.65rem 1.4rem 1.5rem;
    border: 1px solid rgba(21, 101, 192, 0.14);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
    min-height: 100%;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(21, 101, 192, 0.12);
    border-color: rgba(211, 47, 47, 0.28);
}

.why-card-title {
    font-size: 1.05rem;
    color: #1c1917;
    letter-spacing: 0.01em;
}

.why-card-desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #57534e;
}

.why-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* =============================================
   HERO CAROUSEL SECTION
============================================= */
.hero-carousel {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-carousel .carousel-item {
    position: relative;
}

.hero-carousel .hero-bg {
    z-index: 0;
}

.hero-carousel .hero-bg img {
    transition: transform 8s ease-out;
}

.hero-carousel .carousel-item.active .hero-bg img {
    transform: scale(1.1);
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(21, 101, 192, 0.88);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 235, 59, 0.65);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 30px;
}

.hero-carousel .carousel-control-next {
    right: 30px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* Carousel Indicators */
.hero-carousel .carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
    z-index: 15;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
    width: 40px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-yellow-deep));
    border-color: #fff;
}

/* Slide-up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Fade transition for carousel */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* Footer — logo colours (red / yellow / blue stripe) */
.site-footer-brand {
    position: relative;
    border-top: none !important;
}

.site-footer-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-yellow) 42%, var(--brand-blue) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-carousel {
        height: 500px;
    }
    
    .hero-carousel .display-3 {
        font-size: 2rem;
    }
    
    .hero-carousel .fs-4 {
        font-size: 1.1rem !important;
    }
    
    .hero-carousel .fs-5 {
        font-size: 0.95rem !important;
    }
    
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .hero-carousel .carousel-control-prev {
        left: 15px;
    }
    
    .hero-carousel .carousel-control-next {
        right: 15px;
    }
}
/* =============================================
   CBSE BUTTON (Moved from inline)
============================================= */
.nav-cbse-btn {
    background: #dc3545 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 9px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.nav-cbse-btn:hover {
    background: #b02a37 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
    color: white !important;
    text-decoration: none;
}

.nav-cbse-btn-active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(220, 53, 69, 0.85) !important;
}

@media (max-width: 991px) {
    .nav-cbse-btn {
        margin: 5px 8px;
        justify-content: center;
    }
}

/* =============================================
   UI ENHANCEMENTS
============================================= */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0.3 !important; /* Slightly visible for better UX */
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1 !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--brand-blue);
}

.feature-card:focus-within,
.why-card:focus-within {
    outline: 2px solid var(--brand-blue);
    outline-offset: 4px;
}

/* =============================================
   FACULTY & GALLERY HOVER EFFECTS
============================================= */
.card, .gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =============================================
   ACCESSIBILITY IMPROVEMENTS
============================================= */
.link-hover:focus {
    color: var(--brand-blue) !important;
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

/* =============================================
   MODERN PREMIUM REDESIGN OVERRIDES
============================================= */

/* Global Typography & Spacing */
body {
    background-color: #fcfcfc;
    color: #1f2937;
    line-height: 1.7;
}

.section-padding {
    padding: 7rem 0;
}

.badge-custom {
    background: rgba(253, 224, 71, 0.2);
    color: var(--brand-blue-dark);
    border: none;
    box-shadow: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Premium Buttons */
.custom-btn, .nav-cta-btn {
    background: var(--brand-blue);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-btn:hover, .nav-cta-btn:hover {
    background: var(--brand-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(21, 101, 192, 0.35);
}

/* Hero Section Refinements */
.hero-overlay {
    background: linear-gradient(to right, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0.9;
}

/* Premium Cards */
.card, .feature-card, .why-card, .mva-column-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.04) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.card:hover, .feature-card:hover, .why-card:hover, .mva-column-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1) !important;
}

/* Neutralize legacy database MVA HTML wrappers inside new premium cards */
.mva-column-card .mva-vision-block, 
.mva-column-card .mva-aim-pillar {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.mva-column-card .mva-vision-text {
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
}

.mva-column-card .mva-mission-list li {
    border-bottom-color: rgba(0,0,0,0.05);
}

.mva-column-card .mva-aim-pillar__title {
    color: var(--brand-blue) !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid rgba(21, 101, 192, 0.1) !important;
}

/* Modernizing specific sections */
.about-mva-block {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
}

.why-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Gallery and Images */
.gallery-item img, .about-img-main img, .about-img-secondary img {
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Form Styling */
.form-control {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    background: #f3f4f6;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: white;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

/* Stats/Facts Modernization */
.stat-box {
    text-align: center;
    padding: 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.05);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 1rem;
    color: var(--brand-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Carousel controls */
.carousel-control-prev, .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0;
    transition: all 0.3s;
}

.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: rgba(255,255,255,0.25);
}

/* =============================================
   MOBILE RESPONSIVENESS OVERRIDES
============================================= */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden; /* Prevent horizontal scrolling from injected content */
    }

    .container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    .section-padding {
        padding: 3.5rem 0 !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        word-break: break-word;
        hyphens: auto;
    }

    .hero p {
        font-size: 1.1rem !important;
    }

    /* Hide carousel controls on mobile to save screen space */
    .carousel-control-prev, .carousel-control-next {
        display: none !important;
    }

    /* Fix image heights on mobile */
    .about-img-main, #principals-desk img, #admission img {
        min-height: 300px !important;
        height: 300px !important;
        max-height: 300px !important;
    }

    /* Force database-injected columns in MVA cards to stack cleanly */
    .mva-column-card .row {
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }
    
    .mva-column-card .row > div {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .badge-custom {
        margin-bottom: 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem !important;
    }
    .display-5 {
        font-size: 2rem !important;
    }
    .display-6 {
        font-size: 1.75rem !important;
    }
}
