/*
 * public/css/kvuc-home-base.css
 * Home page base styles (were in the <head> of home/index.blade.php).
 * Edit here; the version in the address updates by itself (App\Support\Assets).
 */


/* ==========================================================================
   home/index.blade.php
   ========================================================================== */

    :root {
        --kvuc-blue: #3d4a1f;
        --kvuc-deep-blue: #2c3616;
        --kvuc-crimson: #C65A2E;
        --kvuc-ochre: #D2B48C;
        --kvuc-gold: #D2B48C;
        --kvuc-cream: #FAF7F0;
        --kvuc-light: #FAF7F0;
    }

    html {
        scroll-behavior: smooth;
        scroll-padding-top: 100px;
    }

    body {
        font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system,
            BlinkMacSystemFont, "Segoe UI", sans-serif;
        color: #44493A;
        background: #ffffff;
        padding-bottom: 0;
    }

    h1, h2, h3, h4, h5, h6,
    .h1, .h2, .h3, .h4, .h5, .h6,
    .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
        font-family: 'Manrope', 'DM Sans', sans-serif;
    }

    ::selection {
        background: #A84320;
        color: #ffffff;
    }

    a {
        text-decoration: none;
    }

    img {
        max-width: 100%;
    }

    .kvuc-skip-link {
        position: fixed;
        top: -100px;
        left: 15px;
        z-index: 99999;
        padding: 11px 18px;
        border-radius: 8px;
        background: var(--kvuc-deep-blue);
        color: #ffffff;
        font-weight: 700;
        text-decoration: none;
    }

    .kvuc-skip-link:focus {
        top: 15px;
        color: #ffffff;
        outline: 3px solid var(--kvuc-gold);
        outline-offset: 2px;
    }

    #main-content:focus {
        outline: none;
    }

    .text-kvuc-blue { color: var(--kvuc-blue) !important; }
    .text-kvuc-crimson { color: #A84320 !important; }
    .text-kvuc-gold { color: var(--kvuc-gold) !important; }
    .text-kvuc-ochre { color: var(--kvuc-ochre) !important; }
    /* Ochre deep enough to read on light backgrounds (5.6:1). */
    .text-kvuc-ochre-dark { color: #7d5f2e !important; }

    .bg-kvuc-blue { background-color: var(--kvuc-blue) !important; }
    .bg-kvuc-deep-blue { background-color: var(--kvuc-deep-blue) !important; }
    .bg-kvuc-crimson { background-color: #A84320 !important; } /* darker Kerio Earth: white text 6:1 */
    .pillar-card.crimson .text-white-50,
    .admissions-cta .text-white-50 { color: rgba(255, 255, 255, .92) !important; }
    .bg-kvuc-gold { background-color: var(--kvuc-gold) !important; }
    .bg-kvuc-cream { background-color: var(--kvuc-cream) !important; }

    .btn-kvuc-crimson {
        background-color: #A84320;
        border-color: var(--kvuc-crimson);
        color: #ffffff;
    --kvuc-heading-color: currentColor;
}

    .btn-kvuc-crimson:hover,
    .btn-kvuc-crimson:focus-visible {
        background-color: var(--kvuc-blue);
        border-color: var(--kvuc-blue);
        color: #ffffff;
    }

    .btn-kvuc-blue {
        background-color: var(--kvuc-blue);
        border-color: var(--kvuc-blue);
        color: #ffffff;
    --kvuc-heading-color: currentColor;
}

    .btn-kvuc-blue:hover,
    .btn-kvuc-blue:focus-visible {
        background-color: var(--kvuc-crimson);
        border-color: var(--kvuc-crimson);
        color: #ffffff;
    }

    .btn-outline-kvuc {
        color: var(--kvuc-blue);
        border: 1px solid #E7D8C4;
        background: #ffffff;
    }

    .btn-outline-kvuc:hover,
    .btn-outline-kvuc:focus-visible {
        color: #A84320;
        border-color: var(--kvuc-crimson);
        background: #ffffff;
    }

    .shadow-premium {
        box-shadow: 0 20px 50px rgba(28, 35, 14, .12);
    }

    .shadow-card {
        box-shadow: 0 12px 35px rgba(28, 35, 14, .08);
    }

    /* =====================================================
       HOMEPAGE SLIDER
       The best of two university sliders:
       - Kabarak: full-bleed media, left-aligned text that
         rises in line by line, slow zoom, autoplay timer.
       - UoE: "01 / 04" counter, title + summary + read-more
         link, video controls and a progress bar.
       Desktop/tablet: text over the media, control bar along
       the bottom with slide titles. Phones: media on top, text
       on a solid panel below (never over a busy picture), dots.
    ===================================================== */

    .kvuc-slider {
        position: relative;
        z-index: 5;
        background: var(--kvuc-deep-blue);
        color: #ffffff;
        --kvuc-heading-color: currentColor;
    }

    /* Every slide sits in the same grid cell, so the slider is as
       tall as its tallest slide and nothing jumps between slides. */
    .kvuc-slider-viewport {
        display: grid;
    }

    .kvuc-slide {
        grid-area: 1 / 1;
        position: relative;
        display: flex;
        align-items: center;
        min-height: clamp(520px, 72vh, 700px);
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: opacity .8s ease, visibility 0s linear .8s;
    }

    .kvuc-slide.is-active {
        z-index: 1;
        opacity: 1;
        visibility: visible;
        transition: opacity .8s ease, visibility 0s;
    }

    .kvuc-slide-media {
        position: absolute;
        inset: 0;
        overflow: hidden;
        background: linear-gradient(135deg, #151610 0%, #2c3616 60%, #3d4a1f 100%);
    }

    .kvuc-slide-image,
    .kvuc-slide-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 25%;
    }

    .kvuc-slide.is-active .kvuc-slide-image {
        animation: kvuc-slide-zoom 9s ease-out both;
    }

    .kvuc-slide-overlay {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            linear-gradient(90deg, rgba(19, 21, 15, .9) 0%, rgba(19, 21, 15, .74) 38%, rgba(19, 21, 15, .28) 68%, rgba(19, 21, 15, .05) 100%),
            linear-gradient(0deg, rgba(19, 21, 15, .7) 0%, rgba(19, 21, 15, 0) 32%);
    }

    /* Big play button over a paused video (mouse/touch shortcut for
       the Play button in the control bar). */
    .kvuc-slide-play {
        position: absolute;
        top: 46%;
        right: 14%;
        z-index: 2;
        width: 84px;
        height: 84px;
        display: none;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, .7);
        border-radius: 50%;
        background: rgba(168, 67, 32, .88);
        color: #ffffff;
        font-size: 2.4rem;
        transform: translateY(-50%);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, .12);
        transition: transform .2s ease, background-color .2s ease;
    }

    .kvuc-slide.is-video-paused .kvuc-slide-play {
        display: inline-flex;
    }

    .kvuc-slide-play:hover {
        background: #A84320;
        transform: translateY(-50%) scale(1.06);
    }

    .kvuc-slide-inner {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .kvuc-slide-content {
        max-width: 760px;
        padding: 4.5rem 0 7.5rem; /* leaves room for the control bar */
        text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
    }

    /* Kabarak-style layered entrance: eyebrow, title, summary, button. */
    .kvuc-slide.is-active .kvuc-slide-content > * {
        animation: kvuc-slide-rise .75s cubic-bezier(.2, .7, .2, 1) both;
    }

    .kvuc-slide.is-active .kvuc-slide-content > :nth-child(2) { animation-delay: .15s; }
    .kvuc-slide.is-active .kvuc-slide-content > :nth-child(3) { animation-delay: .3s; }
    .kvuc-slide.is-active .kvuc-slide-content > :nth-child(4) { animation-delay: .45s; }

    .kvuc-slide-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: .65rem;
        margin: 0 0 1.1rem;
        color: var(--kvuc-gold);
        font-size: .75rem;
        font-weight: 800;
        letter-spacing: .2em;
        text-transform: uppercase;
    }

    .kvuc-slide-eyebrow::before {
        content: "";
        width: 32px;
        height: 2px;
        background: currentColor;
    }

    .kvuc-slide-title {
        margin: 0;
        color: #ffffff;
        font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.5rem);
        font-weight: 800;
        line-height: 1.08;
        letter-spacing: -.03em;
    }

    .kvuc-slide-title a {
        color: inherit;
        text-decoration: none;
        background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
        transition: background-size .3s ease;
    }

    .kvuc-slide-title a:hover {
        color: #ffffff;
        background-size: 100% 2px;
    }

    .kvuc-slide-description {
        max-width: 620px;
        margin: 1.1rem 0 0;
        color: rgba(255, 255, 255, .92);
        font-size: 1.075rem;
        line-height: 1.7;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kvuc-slide-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .75rem;
        margin-top: 1.6rem;
    }

    .kvuc-slide-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .6rem;
        min-height: 48px;
        padding: .75rem 1.4rem;
        border: 1px solid #A84320;
        border-radius: 8px;
        background: #A84320;
        color: #ffffff;
        font-size: .9rem;
        font-weight: 800;
        letter-spacing: .02em;
        text-decoration: none;
        text-shadow: none;
        transition: background-color .2s ease, transform .2s ease;
    }

    .kvuc-slide-button:hover,
    .kvuc-slide-button:focus-visible {
        background: #8C3719;
        color: #ffffff;
        transform: translateY(-2px);
    }

    .kvuc-slide-button i {
        transition: transform .2s ease;
    }

    /* "Watch on YouTube / Facebook" beside the main button */
    .kvuc-slide-button.is-secondary {
        border-color: rgba(255, 255, 255, .7);
        background: rgba(19, 21, 15, .35);
    }

    .kvuc-slide-button.is-secondary:hover,
    .kvuc-slide-button.is-secondary:focus-visible {
        border-color: #ffffff;
        background: #ffffff;
        color: #2c3616;
    }

    .kvuc-slide-button:hover i {
        transform: translateX(4px);
    }

    .kvuc-slide-fallback {
        min-height: 380px;
    }

    .kvuc-slide-fallback .kvuc-slide-content {
        padding: 4.5rem 0;
    }

    /* ---------- Control bar (counter, slide titles, buttons) ---------- */

    .kvuc-slider-bar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        border-top: 1px solid rgba(255, 255, 255, .12);
        background: linear-gradient(0deg, rgba(19, 21, 15, .88), rgba(19, 21, 15, .6));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .kvuc-slider-bar-inner {
        display: flex;
        align-items: stretch;
        gap: 1rem;
        min-height: 78px;
    }

    .kvuc-slider-counter {
        display: flex;
        align-items: baseline;
        align-self: center;
        gap: .35rem;
        color: rgba(255, 255, 255, .75);
        font-family: 'Manrope', 'DM Sans', sans-serif;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .kvuc-slider-counter strong {
        color: #ffffff;
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1;
    }

    .kvuc-slider-tabs {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
    }

    .kvuc-slider-spacer {
        flex: 1 1 auto;
    }

    .kvuc-slider-tab {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: .6rem;
        padding: .9rem 1rem;
        border: 0;
        border-left: 1px solid rgba(255, 255, 255, .12);
        background: transparent;
        color: rgba(255, 255, 255, .78);
        font-size: .85rem;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
        cursor: pointer;
        transition: background-color .2s ease, color .2s ease;
    }

    .kvuc-slider-tab:last-child {
        border-right: 1px solid rgba(255, 255, 255, .12);
    }

    .kvuc-slider-tab:hover,
    .kvuc-slider-tab[aria-current="true"] {
        color: #ffffff;
        background: rgba(255, 255, 255, .07);
    }

    .kvuc-slider-tab-progress {
        position: absolute;
        top: -1px;
        left: 0;
        right: 0;
        height: 3px;
        background: rgba(255, 255, 255, .14);
    }

    .kvuc-slider-tab-progress span {
        display: block;
        height: 100%;
        background: var(--kvuc-gold);
        transform: scaleX(var(--kvuc-progress, 0));
        transform-origin: left center;
    }

    .kvuc-slider-tab-number {
        flex: 0 0 auto;
        color: var(--kvuc-gold);
        font-weight: 800;
        font-variant-numeric: tabular-nums;
    }

    .kvuc-slider-tab-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kvuc-slider-tab .bi-play-circle-fill {
        flex: 0 0 auto;
        color: var(--kvuc-gold);
    }

    .kvuc-slider-buttons {
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    .kvuc-slider-btn {
        flex: 0 0 auto;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
        padding: 0 1rem;
        border: 1px solid rgba(255, 255, 255, .32);
        border-radius: 999px;
        background: rgba(255, 255, 255, .06);
        color: #ffffff;
        font-size: .85rem;
        font-weight: 700;
        white-space: nowrap;
        transition: background-color .2s ease, border-color .2s ease;
    }

    .kvuc-slider-btn i {
        font-size: 1.05rem;
    }

    .kvuc-slider-btn[hidden] {
        display: none;
    }

    .kvuc-slider-btn:hover,
    .kvuc-slider-btn:focus-visible {
        border-color: #A84320;
        background: #A84320;
        color: #ffffff;
    }

    .kvuc-slider :focus-visible {
        outline: 3px solid var(--kvuc-gold);
        outline-offset: 2px;
    }

    @keyframes kvuc-slide-rise {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
    }

    @keyframes kvuc-slide-zoom {
        from {
            transform: scale(1.08);
        }
    }

    /* Large screens */
    @media (min-width: 1600px) {
        .kvuc-slide {
            min-height: clamp(600px, 70vh, 760px);
        }
    }

    /* Tablets and small laptops: numbers only in the control bar. */
    @media (max-width: 991.98px) {
        .kvuc-slider-tab {
            justify-content: center;
        }

        .kvuc-slider-tab-title {
            display: none;
        }

        .kvuc-slide-play {
            right: 8%;
            width: 72px;
            height: 72px;
            font-size: 2rem;
        }
    }

    /* Phones held sideways: keep the text and the controls on screen. */
    @media (min-width: 768px) and (max-height: 560px) {
        .kvuc-slide {
            min-height: 420px;
        }

        .kvuc-slide-content {
            padding: 2rem 0 6rem;
        }

        .kvuc-slide-description {
            -webkit-line-clamp: 2;
        }

        .kvuc-slider-tab-title {
            display: none;
        }
    }

    /* Phones: picture or video on top, text on a solid panel below. */
    @media (max-width: 767.98px) {
        .kvuc-slide {
            display: block;
            min-height: 0;
            background: var(--kvuc-deep-blue);
        }

        .kvuc-slide-media {
            position: relative;
            inset: auto;
            width: 100%;
            aspect-ratio: 16 / 9;
            min-height: 210px;
            max-height: 56vh;
        }

        .kvuc-slide-overlay {
            background: linear-gradient(0deg, rgba(19, 21, 15, .45) 0%, rgba(19, 21, 15, 0) 45%);
        }

        .kvuc-slide-play {
            top: 50%;
            right: 50%;
            width: 64px;
            height: 64px;
            font-size: 1.9rem;
            transform: translate(50%, -50%);
        }

        .kvuc-slide-play:hover {
            transform: translate(50%, -50%) scale(1.06);
        }

        .kvuc-slide-content {
            padding: 1.5rem 0 1.75rem;
            text-shadow: none;
        }

        .kvuc-slide-eyebrow {
            margin-bottom: .75rem;
            font-size: .68rem;
            letter-spacing: .14em;
        }

        .kvuc-slide-eyebrow::before {
            width: 22px;
        }

        .kvuc-slide-title {
            font-size: clamp(1.4rem, 1.05rem + 2.4vw, 1.9rem);
            line-height: 1.15;
        }

        .kvuc-slide-description {
            margin-top: .8rem;
            font-size: .98rem;
            line-height: 1.6;
            -webkit-line-clamp: 4;
        }

        .kvuc-slide-actions {
            margin-top: 1.2rem;
        }

        .kvuc-slide-button {
            width: 100%;
        }

        .kvuc-slide-fallback .kvuc-slide-content {
            padding: 3rem 0;
        }

        .kvuc-slider-bar {
            position: static;
            border-top-color: rgba(255, 255, 255, .08);
            background: #1f2610;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .kvuc-slider-bar-inner {
            min-height: 62px;
            gap: .5rem;
        }

        .kvuc-slider-counter strong {
            font-size: 1.25rem;
        }

        .kvuc-slider-counter span {
            font-size: .85rem;
        }

        /* Tabs become dots (a 44px-tall tap area around each bar). */
        .kvuc-slider-tabs {
            align-items: center;
            justify-content: center;
            gap: 2px;
        }

        .kvuc-slider-tab,
        .kvuc-slider-tab:last-child {
            flex: 0 0 auto;
            width: 30px;
            height: 44px;
            padding: 0;
            border: 0;
            background: none;
        }

        .kvuc-slider-tab:hover,
        .kvuc-slider-tab[aria-current="true"] {
            background: none;
        }

        .kvuc-slider-tab[aria-current="true"] {
            width: 46px;
        }

        .kvuc-slider-tab-number,
        .kvuc-slider-tab .bi-play-circle-fill {
            display: none;
        }

        .kvuc-slider-tab-progress {
            position: static;
            width: 100%;
            height: 5px;
            border-radius: 5px;
            overflow: hidden;
            background: rgba(255, 255, 255, .35);
        }

        /* Counter and dots on the first row, the labelled buttons on their own row. */
        .kvuc-slider-bar-inner {
            flex-wrap: wrap;
            row-gap: 0;
        }

        .kvuc-slider-buttons {
            flex: 1 1 100%;
            justify-content: center;
            gap: .4rem;
            padding-bottom: .7rem;
        }

        .kvuc-slider-btn {
            height: 38px;
            gap: .3rem;
            padding: 0 .65rem;
            font-size: .76rem;
        }

        .kvuc-slider-btn i {
            font-size: .95rem;
        }
    }

    @media (max-width: 380px) {
        .kvuc-slider-counter {
            display: none;
        }

        .kvuc-slider-btn {
            padding: 0 .5rem;
        }

        .kvuc-slider-tab,
        .kvuc-slider-tab:last-child {
            width: 22px;
        }

        .kvuc-slider-tab[aria-current="true"] {
            width: 34px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .kvuc-slide,
        .kvuc-slide.is-active,
        .kvuc-slide.is-active .kvuc-slide-image,
        .kvuc-slide.is-active .kvuc-slide-content > * {
            animation: none;
            transition: none;
        }
    }

    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        position: relative;
        min-height: 720px;
        display: flex;
        align-items: center;
        overflow: hidden;
        background: var(--kvuc-deep-blue);
        /* Room above and below the text when it is taller than the hero
           (small phones), so it never touches the next section. */
        padding: 4rem 0;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgba(44, 54, 22, .96) 0%,
            rgba(44, 54, 22, .88) 38%,
            rgba(44, 54, 22, .58) 68%,
            rgba(44, 54, 22, .28) 100%
        );
    }

    .hero-content {
        position: relative;
        z-index: 2;
    }

    .hero-line {
        width: 48px;
        height: 2px;
        background: var(--kvuc-gold);
    }

    .hero-kicker {
        color: var(--kvuc-gold);
        text-transform: uppercase;
        letter-spacing: .22em;
        font-size: .8rem;
        font-weight: 800;
    }

    .hero-title {
        font-size: clamp(3rem, 7vw, 5.3rem);
        line-height: 1.02;
        font-weight: 900;
        letter-spacing: -.04em;
    }

    .hero-title .highlight {
        color: var(--kvuc-gold);
    }

    .hero-description {
        max-width: 720px;
        color: #E7D8C4;
        font-size: 1.2rem;
        line-height: 1.75;
    }

    .hero-trust span {
        color: rgba(255, 255, 255, .8);
        font-size: .9rem;
    }

    .hero-trust i {
        color: var(--kvuc-gold);
        font-size: .6rem;
    }

    /* =====================================================
       QUICK ACTIONS
    ===================================================== */

    /* Below the hero, never over it, on every screen size. */
    .quick-actions {
        position: relative;
        z-index: 10;
        padding-top: 1.5rem;
    }

    .quick-action {
        padding: 1.6rem;
        background: #ffffff;
        border-right: 1px solid #E7D8C4;
        transition: background .25s ease;
        height: 100%;
    }

    .quick-action:hover {
        background: var(--kvuc-cream);
    }

    .quick-action:last-child {
        border-right: 0;
    }

    .quick-icon {
        color: #A84320;
        font-size: 1.8rem;
        margin-bottom: .75rem;
    }

    /* =====================================================
       SECTIONS
    ===================================================== */

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

    .section-label {
        color: #A84320;
        text-transform: uppercase;
        letter-spacing: .15em;
        font-size: .8rem;
        font-weight: 800;
    }

    .section-label::before {
        content: "";
        display: inline-block;
        width: 42px;
        height: 3px;
        margin-right: 12px;
        vertical-align: middle;
        background: var(--kvuc-gold);
    }

    .section-title {
        color: var(--kvuc-blue);
        font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem);
        line-height: 1.15;
        font-weight: 900;
    }

    /* Same heading scale as the other public pages (layouts/partials/head). */
    h2[class*="display-"] {
        font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    }

    h3[class*="display-"] {
        font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem);
    }

    /* =====================================================
       INSTITUTIONAL PILLARS
    ===================================================== */

    .pillar-card {
        border-radius: 1rem;
        padding: 2rem;
        height: 100%;
    }

    .pillar-card.crimson {
        background: #A84320;
        color: #ffffff;
    --kvuc-heading-color: currentColor;
}

    .pillar-card.blue {
        background: var(--kvuc-blue);
        color: #ffffff;
    --kvuc-heading-color: currentColor;
}

    .pillar-card.cream {
        background: var(--kvuc-cream);
    }

    .pillar-card.outline {
        border: 2px solid var(--kvuc-ochre);
    }

    .pillar-number {
        font-size: 2rem;
        font-weight: 900;
        color: var(--kvuc-gold);
    }

    /* =====================================================
       PROGRAMMES
    ===================================================== */

    .programme-section {
        background: var(--kvuc-cream);
    }

    .programme-finder {
        background: #ffffff;
        border: 1px solid #E7D8C4;
        border-radius: 1rem;
        padding: 2rem;
    }

    .programme-card {
        background: #ffffff;
        border: 1px solid #E7D8C4;
        border-radius: 1rem;
        overflow: hidden;
        height: 100%;
        transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    }

    .programme-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 45px rgba(28, 35, 14, .11);
        border-color: var(--kvuc-ochre);
    }

    .programme-card-top {
        height: 7px;
        background: var(--kvuc-crimson);
    }

    .programme-card-body {
        padding: 1.75rem;
    }

    .programme-badge {
        display: inline-block;
        padding: .35rem .7rem;
        border-radius: 50rem;
        background: #F6E5DF;
        color: #A84320;
        font-size: .72rem;
        font-weight: 800;
    }

    /* =====================================================
       SCHOOL CARDS
    ===================================================== */

    .school-card {
        position: relative;
        min-height: 400px;
        border-radius: 1rem;
        overflow: hidden;
        background: var(--kvuc-blue);
    }

    .school-card img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .7s ease;
    }

    .school-card:hover img {
        transform: scale(1.05);
    }

    .school-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            var(--kvuc-deep-blue),
            rgba(44, 54, 22, .6),
            transparent
        );
    }

    .school-content {
        position: relative;
        min-height: 400px;
        display: flex;
        align-items: end;
        padding: 2rem;
        color: #ffffff;
    }

    /* =====================================================
       WHY KVUC
    ===================================================== */

    .glass-card {
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: .9rem;
        padding: 1.5rem;
        height: 100%;
        backdrop-filter: blur(14px);
    }

    .glass-card:hover {
        border-color: rgba(210, 180, 140, .4);
    }

    /* =====================================================
       RESEARCH
    ===================================================== */

    .research-card {
        border-radius: 1rem;
        padding: 2rem;
        height: 100%;
        transition: transform .2s ease;
    }

    .research-card:hover {
        transform: translateY(-4px);
    }

    /* =====================================================
       CAMPUS
    ===================================================== */

    .campus-section {
        background: var(--kvuc-cream);
    }

    .campus-card {
        background: #ffffff;
        border: 1px solid #E7D8C4;
        border-radius: .8rem;
        padding: 1.5rem;
        height: 100%;
        transition: .25s ease;
    }

    .campus-card:hover {
        border-color: var(--kvuc-ochre);
        transform: translateY(-4px);
        box-shadow: 0 12px 35px rgba(28, 35, 14, .08);
    }

    /* =====================================================
       NEWS
    ===================================================== */

    .news-card {
        border: 1px solid #E7D8C4;
        border-radius: 1rem;
        overflow: hidden;
        height: 100%;
        transition: .25s ease;
        background: #ffffff;
    }

    .news-card:hover {
        box-shadow: 0 20px 50px rgba(28, 35, 14, .12);
    }

    .news-image {
        height: 210px;
        background: var(--kvuc-blue);
        overflow: hidden;
    }

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

    .news-card:hover .news-image img {
        transform: scale(1.05);
    }

    .news-video-badge {
        position: absolute;
        top: 12px;
        left: 12px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 4px 10px 4px 7px;
        border-radius: 999px;
        background: rgba(28, 35, 14, .85);
        color: #ffffff;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    /* =====================================================
       PORTALS
    ===================================================== */

    .portal-section {
        background: var(--kvuc-deep-blue);
        color: #ffffff;
    --kvuc-heading-color: currentColor;
}

    .portal-card {
        height: 100%;
        padding: 1.75rem;
        border-radius: .9rem;
        border: 1px solid rgba(255, 255, 255, .1);
        background: rgba(255, 255, 255, .07);
        backdrop-filter: blur(14px);
        transition: .25s ease;
    }

    .portal-card:hover {
        border-color: rgba(210, 180, 140, .4);
        background: rgba(255, 255, 255, .1);
        transform: translateY(-3px);
    }

    /* =====================================================
       ADMISSIONS
    ===================================================== */

    .admissions-cta {
        position: relative;
        overflow: hidden;
        background: #A84320;
        color: #ffffff;
        border-radius: 1.5rem;
        padding: 4rem;
    --kvuc-heading-color: currentColor;
}

    .cta-circle-one,
    .cta-circle-two {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }

    .cta-circle-one {
        width: 380px;
        height: 380px;
        right: -150px;
        top: -190px;
        background: rgba(255, 255, 255, .1);
    }

    .cta-circle-two {
        width: 260px;
        height: 260px;
        left: 45%;
        bottom: -130px;
        background: rgba(210, 180, 140, .1);
    }

    /* =====================================================
       RESOURCES
    ===================================================== */

    .resource-card {
        border: 1px solid #E7D8C4;
        border-radius: .8rem;
        padding: 1.5rem;
        height: 100%;
        transition: .25s ease;
    }

    .resource-card:hover {
        border-color: var(--kvuc-ochre);
        box-shadow: 0 12px 35px rgba(28, 35, 14, .08);
    }

    /* =====================================================
       FOOTER
    ===================================================== */

    .site-footer {
        background: var(--kvuc-deep-blue);
        color: #ffffff;
    --kvuc-heading-color: currentColor;
}

    .site-footer a {
        color: #E7D8C4;
        transition: .2s ease;
    }

    .site-footer a:hover {
        color: var(--kvuc-gold);
    }

    .social-link {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, .1);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
    }

    .social-link:hover {
        background: var(--kvuc-crimson);
        color: #ffffff !important;
    }

    /* =====================================================
       MOBILE BOTTOM NAVIGATION
    ===================================================== */

    .mobile-bottom-nav {
        display: none;
    }

    /* =====================================================
       BACK TO TOP
    ===================================================== */

    #backToTop {
        display: none;
        position: fixed;
        right: 20px;
        bottom: 30px;
        z-index: 1040;
        height: 44px;
        gap: 6px;
        padding: 0 16px 0 13px;
        border: 0;
        border-radius: 999px;
        background: #A84320;
        color: #ffffff;
        font-size: .88rem;
        font-weight: 800;
        box-shadow: 0 8px 25px rgba(28, 35, 14, .2);
    --kvuc-heading-color: currentColor;
}

    #backToTop:hover {
        background: var(--kvuc-blue);
    }

    /* =====================================================
       RESPONSIVE
    ===================================================== */

    @media (max-width: 991.98px) {
        .hero {
            min-height: 650px;
        }

        .quick-action {
            border-bottom: 1px solid #E7D8C4;
        }

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

        .admissions-cta {
            padding: 2.5rem;
        }

        .mobile-bottom-nav {
            display: block;
            position: fixed;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 1030;
            background: #ffffff;
            border-top: 1px solid #E7D8C4;
            box-shadow: 0 -10px 30px rgba(28, 35, 14, .08);
        }

        .mobile-bottom-nav a {
            color: #6e7069;
            font-size: .65rem;
            font-weight: 700;
            padding: .65rem .25rem;
            text-align: center;
            white-space: nowrap;
        }

        .mobile-bottom-nav a.active {
            color: var(--kvuc-blue);
        }

        .mobile-bottom-nav i {
            display: block;
            font-size: 1.1rem;
            margin-bottom: .15rem;
        }

        body {
            padding-bottom: 65px;
        }

        #backToTop {
            bottom: 85px;
        }
    }

    @media (max-width: 575.98px) {
        .hero-title {
            font-size: 2.9rem;
        }

        .hero-description {
            font-size: 1rem;
        }

        .hero {
            min-height: 620px;
            padding: 3rem 0;
        }

        .quick-action {
            padding: 1.1rem;
        }

        .section-label::before {
            width: 28px;
        }

        .admissions-cta {
            padding: 2rem 1.5rem;
        }

        .programme-finder {
            padding: 1.25rem;
        }
    }

    /* Our Partners (managed in Admin → Partners) */

    .partners-marquee {
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 12px 0 24px;
        background: #ffffff;
    }

    /* Fade the edges for a polished university website appearance */
    .partners-marquee::before,
    .partners-marquee::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 70px;
        z-index: 2;
        pointer-events: none;
    }

    .partners-marquee::before {
        left: 0;
        background: linear-gradient(to right, #ffffff, transparent);
    }

    .partners-marquee::after {
        right: 0;
        background: linear-gradient(to left, #ffffff, transparent);
    }

    .partners-track {
        display: flex;
        width: max-content;
        gap: 24px;
        animation: kvuc-partners-scroll 35s linear infinite;
        will-change: transform;
    }

    .partners-marquee:hover .partners-track,
    .partners-marquee:focus-within .partners-track {
        animation-play-state: paused;
    }

    .partner-card {
        flex: 0 0 210px;
        width: 210px;
        min-height: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 20px 16px;
        background: #ffffff;
        border: 1px solid rgba(61, 74, 31, 0.12);
        border-radius: 16px;
        text-align: center;
        text-decoration: none;
        transition: transform 0.25s ease,
                    box-shadow 0.25s ease,
                    border-color 0.25s ease;
    }

    .partner-card:hover,
    .partner-card:focus-visible {
        transform: translateY(-3px);
        border-color: var(--kvuc-ochre);
        box-shadow: 0 12px 28px rgba(44, 54, 22, 0.1);
    }

    .partner-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 76px;
    }

    .partner-logo img {
        display: block;
        max-width: 100%;
        max-height: 76px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .partner-initials {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        flex-shrink: 0;
        border-radius: 50%;
        background: var(--kvuc-cream);
        color: var(--kvuc-blue);
        font-weight: 800;
        font-size: 1.15rem;
    }

    .partner-name {
        color: var(--kvuc-deep-blue);
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    @keyframes kvuc-partners-scroll {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-50%);
        }
    }

    @media (max-width: 575.98px) {
        .partners-track {
            gap: 16px;
            animation-duration: 28s;
        }

        .partner-card {
            flex-basis: 165px;
            width: 165px;
            min-height: 135px;
            padding: 16px 12px;
        }

        .partners-marquee::before,
        .partners-marquee::after {
            width: 28px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .partners-track {
            animation: none;
            transform: none;
        }

        .partners-marquee::before,
        .partners-marquee::after {
            display: none;
        }
    }

