/* Modern Advanced Lab - Landing theme */

:root {
    --bg: #0b1220;
    --paper: #ffffff;
    --soft: #f4f7ff;
    --muted: #6b7280;
    --text: #0f172a;
    --brand: #2563eb;
    --brand2: #22c55e;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 14px 40px rgba(2, 6, 23, 0.10);
    --shadow2: 0 10px 24px rgba(2, 6, 23, 0.08);
    --r: 18px;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: #fff;
}

main {
    flex: 1 0 auto;
}

a {
    color: var(--brand);
}

    a:hover {
        color: #1d4ed8;
    }

/* Top bar */
.topbar {
    background: linear-gradient(90deg, #0b1220, #0f1b33);
    color: rgba(255,255,255,.9);
    padding: 8px 0;
}

    .topbar .small {
        font-size: 0.88rem;
    }

.topbar-link {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255,255,255,.35);
}

    .topbar-link:hover {
        color: #fff;
    }

/* Header */
.site-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .nav-link {
    color: rgba(15,23,42,.75);
    font-weight: 600;
}

    .navbar .nav-link:hover {
        color: rgba(15,23,42,1);
    }

    .navbar .nav-link.active {
        color: rgba(15,23,42,1);
        position: relative;
    }

        .navbar .nav-link.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -10px;
            height: 2px;
            background: rgba(37,99,235,.55);
            border-radius: 2px;
        }

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand), #60a5fa);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.brand-text {
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* Buttons */
.btn-primary {
    color: #fff;
    background-color: var(--brand);
    border-color: #1d4ed8;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1e40af;
    }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: rgba(15,23,42,.85);
}

    .btn-ghost:hover {
        background: rgba(37,99,235,.06);
        border-color: rgba(37,99,235,.25);
    }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 52px 0;
    background: radial-gradient(1000px 500px at 15% 25%, rgba(37,99,235,.18), transparent 60%), radial-gradient(1000px 500px at 85% 15%, rgba(34,197,94,.14), transparent 60%), linear-gradient(180deg, #ffffff, var(--soft));
    border-bottom: 1px solid var(--border);
}

    .hero h1 {
        letter-spacing: -0.8px;
    }

.hero-sub {
    color: rgba(15,23,42,.70);
    font-size: 1.08rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    border: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(2,6,23,.04);
    font-size: .92rem;
    color: rgba(15,23,42,.85);
}

/* Hero card
   IMPORTANT: prevents “huge” appearance on very wide screens */
.hero-card {
    border-radius: var(--r);
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 18px;
    /* hard cap width to avoid huge video/card on large monitors */
    max-width: 560px;
    margin-left: auto;
}

/* Video container: HARD LOCK size */
.hero-media {
    height: 260px !important;
    max-height: 260px !important;
    min-height: 260px !important;
    border-radius: var(--r);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #000;
    position: relative;
}

    .hero-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.20));
        pointer-events: none;
    }

/* Video: always fill container */
.hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* KPI */
.kpi {
    border-radius: var(--r);
    background: rgba(255,255,255,.85);
    border: 1px solid var(--border);
    padding: 16px;
}

    .kpi .v {
        font-weight: 800;
        font-size: 1.1rem;
    }

    .kpi .l {
        color: rgba(15,23,42,.65);
        font-size: .92rem;
    }

/* Sections */
.section {
    padding: 56px 0;
}

.section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-note {
    color: rgba(15,23,42,.65);
}

/* Cards */
.cardx {
    border-radius: var(--r);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow2);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .cardx:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: rgba(37,99,235,.22);
    }

    .cardx .icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(37,99,235,.10);
        color: var(--brand);
        font-size: 1.25rem;
    }

/* CTA band */
.cta {
    background: radial-gradient(800px 320px at 30% 35%, rgba(37,99,235,.22), transparent 60%), radial-gradient(800px 320px at 80% 35%, rgba(34,197,94,.18), transparent 60%), #0b1220;
    color: rgba(255,255,255,.92);
    border-top: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
}

    .cta .muted {
        color: rgba(255,255,255,.75);
    }

.cta-note {
    color: rgba(255,255,255,.70);
    font-size: .9rem;
}

/* Footer */
.footer {
    background: #0b1220;
    color: rgba(255,255,255,.85);
}

    .footer .text-muted {
        color: rgba(255,255,255,.65) !important;
    }

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

    .footer-links a {
        color: rgba(255,255,255,.78);
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #fff;
        }

.brand-footer {
    display: flex;
    align-items: center;
    gap: .8rem;
}

hr {
    border-color: rgba(255,255,255,.12);
}

.small-muted {
    color: rgba(15,23,42,.60);
    font-size: .9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero {
        padding: 56px 0 40px 0;
    }

    /* remove width cap on small screens */
    .hero-card {
        max-width: none;
        margin-left: 0;
    }

    /* match old frame on mobile */
    .hero-media {
        height: 220px !important;
        max-height: 220px !important;
        min-height: 220px !important;
    }
}
/* Hero KPI strip (Chemistry / Hematology / Microbiology) */
.kpi-strip {
    margin-top: 10px;
}

.kpi.kpi-mini {
    padding: 12px 12px;
    height: 74px; /* force equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

    .kpi.kpi-mini .v {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 800;
        font-size: 0.98rem;
        line-height: 1.1;
        white-space: nowrap; /* prevents “Chemistry” wrapping */
    }

        .kpi.kpi-mini .v i {
            font-size: 1.05rem;
            opacity: 0.9;
        }

    .kpi.kpi-mini .l {
        font-size: 0.82rem;
        color: rgba(15,23,42,.62);
        line-height: 1.1;
    }

/* Responsive: allow wrapping only on very small screens */
@media (max-width: 420px) {
    .kpi.kpi-mini {
        height: 78px;
    }

        .kpi.kpi-mini .v {
            white-space: normal;
            font-size: 0.92rem;
        }
}
