﻿
:root {
    /* SISV: deep navy */
    --navy: #003A70;
    --navy-mid: #004F9F;
    --navy-light: #E8EFF8;
    /* SLA: Singapore red */
    --red: #C8102E;
    --red-mid: #E8314A;
    --red-light: #FDF0F2;
    /* LSB: warm gold/amber */
    --gold: #C9922A;
    --gold-mid: #E6A830;
    --gold-light: #FDF6E9;
    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F6F8FC;
    --smoke: #EEF1F7;
    --slate: #445573;
    --muted: #718096;
    --dark: #0D1B2E;
    /* UI */
    --border: rgba(0,58,112,0.12);
    --shadow-sm: 0 2px 12px rgba(0,58,112,0.08);
    --shadow-md: 0 8px 32px rgba(0,58,112,0.12);
    --shadow-lg: 0 20px 60px rgba(0,58,112,0.16);
    --radius: 4px;
}

/* ===== HERO BANNER CAROUSEL (replaces legacy Bootstrap 3 carousel) ===== */
.hbanner {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: var(--navy-mid);
    box-shadow: 0 20px 60px rgba(13,31,60,.35);
    box-shadow: -1px -1px 11px rgba(13, 31, 60, .35);
}

.hbanner-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
}

@media (max-width: 767px) {
    .hbanner-track {
        /*aspect-ratio: 4 / 3;*/
        min-height: 260px;
    }
}

.hbanner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
    background-color: #2c343b;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: flex-end;
}

    .hbanner-slide.is-active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    .hbanner-slide::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(13,31,60,0) 40%, rgba(13,31,60,.55) 100%);
        pointer-events: none;
    }

.hbanner-caption {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    width: 100%;
}

    .hbanner-caption h2 { 
        font-weight: 800;
        color: var(--white);
        font-size: clamp(1.5rem, 2.6vw, 1.8rem);
        text-shadow: 0 2px 10px rgba(0,0,0,.5);
        margin-bottom: 6px;
        line-height:1.8rem;
    }

    .hbanner-caption p {
        color: rgba(255,255,255,.85);
        /*font-size: 1.3rem !important;*/
        max-width: 480px;
        text-shadow: 0 1px 6px rgba(0,0,0,.5);
    }

.hbanner-cta {
    position: absolute;
    z-index: 3;
    right: 20px;
    bottom: 20px;
    background: var(--gold);
    color: black;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 10px 20px;
    border-radius: 7px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .25s;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

    .hbanner-cta:hover {
        background: var(--gold-light);
        color: var(--navy);
        transform: translateY(-2px);
    }

.hbanner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13,31,60,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: all .2s;
}

    .hbanner-arrow:hover {
        /*background: var(--gold);
        color: var(--navy);
        border-color: var(--gold);*/
        opacity:.8;
    }

    .hbanner-arrow.prev {
        left: 14px;
    }

    .hbanner-arrow.next {
        right: 14px;
    }

.hbanner-dots {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hbanner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .25s;
}

    .hbanner-dot.is-active {
        background: var(--gold);
        width: 22px;
        border-radius: 4px;
    }

.hbanner-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--navy) 25%, var(--navy-light) 50%, var(--navy) 75%);
    background-size: 200% 100%;
    animation: hbannerShimmer 1.6s ease infinite;
    color: rgba(255,255,255,.5);
    font-size: .85rem;
    z-index: 1;
}

@keyframes hbannerShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hbanner-wrap {
    padding: 24px 0 8px;
}

@media (max-width: 767px) {
    .hbanner-arrow {
        width: 34px;
        height: 34px;
    }

    .hbanner-caption {
        padding: 18px 18px 50px;
    }

    .hbanner-cta {
        right: 14px;
        bottom: 14px;
        padding: 8px 16px;
        font-size: .76rem;
    }
}

.stat-number {
    font-family: 'system-ui';
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    margin-top: 4px;
    letter-spacing: .3px;
}
