/* ============================================================
   MIRAR — Global Stylesheet v2
   Editorial layout inspired by arts.ac.uk
   Color theme: MIRAR logo — crimson red, deep black, off-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand palette — from MIRAR logo */
    --mirar-red: #C0221A;
    --mirar-red-dark: #901910;
    --mirar-red-light: #E8352C;
    --mirar-black: #0d0d0d;
    --mirar-navy: #0d0d0d; /* alias — existing code uses navy */
    --mirar-navy-mid: #1a1a1a;
    --mirar-navy-deep: #000000;
    --mirar-white: #FFFFFF;
    --mirar-off: #F5F3EF;
    --mirar-warm: #FAF8F5;
    /* Logo mosaic accent hues (colorful grid) */
    --accent-pink: #E8A0B4;
    --accent-peach: #F2B99A;
    --accent-lavender: #B8AADC;
    --accent-sage: #A8C8A4;
    --accent-sky: #9EC4DC;
    --accent-gold: #E8C870;
    --mirar-green: #1B6B45;
    --text-dark: #0d0d0d;
    --text-muted: #5A5A5A;
    --border: #E0DDD8;
    --border-light: #EEEBE6;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
}

html, body {
    height: 100%;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--mirar-white);
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

main.flex-grow {
    flex: 1;
}

/* ── Brand Colour Utilities ───────────────────────────────── */
.bg-blue, .bg-navy {
    background-color: var(--mirar-black);
}

.bg-navy-deep {
    background-color: #000;
}

.bg-off {
    background-color: var(--mirar-off);
}

.text-blue {
    color: var(--mirar-black);
}

.text-red {
    color: var(--mirar-red);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.08;
    letter-spacing: -0.3px;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 400;
}

h2 {
    font-size: 2.1rem;
    font-weight: 400;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
}

h4 {
    font-size: 1.1rem;
    font-weight: 400;
}

p {
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
}

    p:last-child {
        margin-bottom: 0;
    }

a {
    color: var(--mirar-black);
    text-decoration: none;
    transition: color .15s;
}

    a:hover {
        color: var(--mirar-red);
    }

.section-label {
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mirar-red);
    font-weight: 600;
    font-family: var(--font-sans);
    margin-bottom: 10px;
    display: block;
}

.section-divider {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 18px;
    border-bottom: 1.5px solid var(--text-dark);
    margin-bottom: 36px;
}

.section-divider-link {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mirar-black);
    text-decoration: none;
    transition: color .15s;
}

    .section-divider-link:hover {
        color: var(--mirar-red);
    }

/* ── Mosaic accent bar ────────────────────────────────────── */
.mosaic-bar {
    height: 4px;
    display: flex;
    width: 100%;
}

    .mosaic-bar span {
        flex: 1;
    }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-mirar-primary {
    background: var(--mirar-red);
    color: var(--mirar-white);
    padding: 12px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: background .15s, transform .15s;
    border-radius: 0;
    font-family: var(--font-sans);
}

    .btn-mirar-primary:hover {
        background: var(--mirar-red-dark);
        color: var(--mirar-white);
        transform: translateY(-1px);
    }

.btn-mirar-outline {
    background: transparent;
    color: var(--mirar-black);
    padding: 11px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1.5px solid var(--mirar-black);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
    font-family: var(--font-sans);
}

    .btn-mirar-outline:hover {
        background: var(--mirar-black);
        color: var(--mirar-white);
    }

.btn-mirar-outline-white {
    background: transparent;
    color: var(--mirar-white);
    padding: 11px 28px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1.5px solid rgba(255,255,255,.4);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: all .15s;
    border-radius: 0;
    font-family: var(--font-sans);
}

    .btn-mirar-outline-white:hover {
        border-color: rgba(255,255,255,.8);
        color: var(--mirar-white);
    }

/* Bootstrap button overrides */
.btn-primary {
    background-color: var(--mirar-black) !important;
    border-color: var(--mirar-black) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    font-family: var(--font-sans) !important;
    padding: 10px 24px !important;
}

.btn-danger {
    background-color: var(--mirar-red) !important;
    border-color: var(--mirar-red) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    font-family: var(--font-sans) !important;
    padding: 10px 24px !important;
}

/* ── Navigation (new custom nav) ──────────────────────────── */
.mirar-nav {
    background: var(--mirar-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.mirar-nav-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
}

.mirar-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 48px;
}

    .mirar-nav-logo img {
        height: 36px;
        width: auto;
    }

/* Primary nav links */
.mirar-nav-links {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

    .mirar-nav-links > li {
        position: relative;
        display: flex;
        align-items: stretch;
    }

        .mirar-nav-links > li > a,
        .mirar-nav-links > li > .nav-btn {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 12px;
            font-weight: 500;
            letter-spacing: .04em;
            padding: 0 18px;
            display: flex;
            align-items: center;
            gap: 5px;
            border-bottom: 2px solid transparent;
            transition: color .15s, border-color .15s;
            background: none;
            border-left: none;
            border-right: none;
            border-top: none;
            cursor: pointer;
            font-family: var(--font-sans);
            white-space: nowrap;
        }

            .mirar-nav-links > li > a:hover,
            .mirar-nav-links > li > a.active,
            .mirar-nav-links > li > .nav-btn:hover,
            .mirar-nav-links > li.open > .nav-btn {
                color: var(--mirar-red);
                border-bottom-color: var(--mirar-red);
            }

/* Dropdown chevron */
.nav-btn .nav-chevron {
    display: inline-block;
    font-size: 10px;
    transition: transform .2s;
    opacity: .5;
}

.mirar-nav-links > li.open > .nav-btn .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── MEGA DROPDOWN ────────────────────────────────────────── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    min-width: 240px;
    background: var(--mirar-white);
    border: 1px solid var(--border);
    border-top: 3px solid var(--mirar-red);
    box-shadow: 0 12px 40px rgba(0,0,0,.10), 0 2px 8px rgba(0,0,0,.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 200;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mirar-nav-links > li.open > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Wide mega for courses */
.nav-dropdown.wide {
    min-width: 580px;
    left: 0;
}

/* Columns layout */
.nav-dropdown-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.nav-dropdown-inner {
    padding: 6px 0 10px;
}

/* Vertical divider between columns */
.nav-dropdown-cols > .nav-dropdown-inner + .nav-dropdown-inner {
    border-left: 1px solid var(--border);
}

/* Links */
.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    transition: background .1s, color .1s, padding-left .1s;
    line-height: 1.45;
    gap: 8px;
}

    .nav-dropdown a:hover {
        background: var(--mirar-off);
        color: var(--mirar-red);
        padding-left: 24px;
    }

    .nav-dropdown a.active {
        color: var(--mirar-red);
        font-weight: 600;
    }

/* Section groupings */
.nav-dropdown-section {
    padding: 4px 0;
}

    .nav-dropdown-section + .nav-dropdown-section {
        border-top: 1px solid var(--border);
        margin-top: 4px;
        padding-top: 6px;
    }

/* Category headings */
.nav-dropdown-heading {
    padding: 10px 20px 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mirar-red);
    font-family: var(--font-sans);
    opacity: .75;
}

/* Right-side CTA panel */
.nav-dropdown-cta {
    background: var(--mirar-navy, #1a2133);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border-left: 1px solid rgba(255,255,255,.08);
    height: 100%;
}

.nav-dropdown-cta-title {
    font-family: var(--font-serif);
    font-size: 15px;
    color: #fff;
    line-height: 1.3;
    font-weight: 600;
}

.nav-dropdown-cta p {
    font-size: 11.5px;
    color: rgba(255,255,255,.65);
    line-height: 1.55;
    margin: 0;
}

/* View all link row */
.nav-dropdown-viewall {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mirar-red) !important;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    gap: 6px;
}

    .nav-dropdown-viewall:hover {
        background: var(--mirar-off);
        padding-left: 24px !important;
    }

/* ── Nav right (CTA + login) ─────────────────────────────── */
.mirar-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 24px;
}

.mirar-nav-cta {
    background: var(--mirar-red);
    color: var(--mirar-white) !important;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background .15s;
    font-family: var(--font-sans);
    white-space: nowrap;
}

    .mirar-nav-cta:hover {
        background: var(--mirar-red-dark) !important;
    }

.mirar-nav-login {
    color: var(--text-muted);
    font-size: 18px;
    text-decoration: none;
    transition: color .15s;
    display: flex;
    align-items: center;
}

    .mirar-nav-login:hover {
        color: var(--mirar-red);
    }

/* ── Mobile hamburger ─────────────────────────────────────── */
.mirar-nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    align-items: center;
    justify-content: center;
}

    .mirar-nav-hamburger span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: var(--text-dark);
        transition: all .2s;
    }

/* ── Ticker ───────────────────────────────────────────────── */
.mirar-ticker {
    background: var(--mirar-black);
    padding: 8px 40px;
    font-size: 11.5px;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

/* ── Ticker Animation ───────────────────────────── */

.mirar-ticker-text {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    min-width: max-content;
    animation: mirarTickerMove 60s linear infinite;
    padding-left: 100%;
}

@keyframes mirarTickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.mirar-ticker-badge {
    background: var(--mirar-red);
    color: var(--mirar-white);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 2px 10px;
    margin-right: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-peach) 16.6%, var(--accent-lavender) 33.3%, var(--accent-sage) 50%, var(--accent-sky) 66.6%, var(--accent-gold) 83.3%, var(--accent-pink) 100%);
    }

    .page-hero .section-label {
        color: rgba(255,255,255,.4);
    }

    .page-hero h1,
    .page-hero h2 {
        color: var(--mirar-white);
        font-size: 3.4rem;
        margin-bottom: 20px;
        font-weight: 400;
    }

.page-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    line-height: 1.75;
    max-width: 580px;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── Home Hero ────────────────────────────────────────────── */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
    background: var(--mirar-black);
}

.home-hero-text {
    padding: 80px 64px 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.home-hero-eyebrow {
    font-size: 10px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 20px;
}

.home-hero h1 {
    font-size: 4rem;
    color: var(--mirar-white);
    line-height: 1.02;
    margin-bottom: 24px;
    font-weight: 400;
}

    .home-hero h1 em {
        font-style: italic;
        color: var(--mirar-red);
    }

.home-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    max-width: 400px;
    margin-bottom: 36px;
    font-weight: 300;
}

.home-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero-visual {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mosaic grid pattern for visual panel */
.home-hero-mosaic {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    opacity: .18;
}

    .home-hero-mosaic span {
        border: .5px solid rgba(255,255,255,.08);
    }

.home-hero-visual-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.home-hero-label {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--mirar-red);
    color: var(--mirar-white);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 6px 14px;
    font-family: var(--font-sans);
}

/* ── Quick-links strip ────────────────────────────────────── */
.quick-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border);
}

.quick-item {
    padding: 22px 32px;
    border-right: 1px solid var(--border);
    text-decoration: none;
    display: block;
    transition: background .15s;
    background: var(--mirar-white);
    position: relative;
}

    .quick-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--mirar-red);
        transform: scaleX(0);
        transition: transform .2s;
        transform-origin: left;
    }

    .quick-item:hover::after {
        transform: scaleX(1);
    }

    .quick-item:last-child {
        border-right: none;
    }

    .quick-item:hover {
        background: var(--mirar-off);
    }

.qi-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--mirar-red);
    margin-bottom: 5px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.qi-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.35;
}

.qi-arrow {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* ── Editorial card grid ──────────────────────────────────── */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.editorial-card {
    padding: 40px 36px;
    border-right: 1px solid var(--border);
    transition: background .15s;
}

    .editorial-card:last-child {
        border-right: none;
    }

    .editorial-card:hover {
        background: var(--mirar-warm);
    }

.ec-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--mirar-red);
    letter-spacing: .14em;
    font-family: var(--font-sans);
    margin-bottom: 18px;
}

.ec-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.ec-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.72;
    font-weight: 300;
}

.ec-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--mirar-black);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 22px;
    display: block;
    font-family: var(--font-sans);
    text-decoration: none;
    transition: color .15s;
}

    .ec-link:hover {
        color: var(--mirar-red);
    }

/* ── Feature split ────────────────────────────────────────── */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.feature-text {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .feature-text .section-label {
        color: rgba(255,255,255,.4);
    }

    .feature-text h2, .feature-text h3 {
        color: var(--mirar-white);
        margin-bottom: 18px;
    }

    .feature-text p {
        color: rgba(255,255,255,.65);
        margin-bottom: 28px;
        font-weight: 300;
    }

.feature-visual {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ── Stat row ─────────────────────────────────────────────── */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.stat-item {
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 18px;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--mirar-red);
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: var(--font-sans);
    font-weight: 500;
}

/* ── Course list (Courses.razor / CourseCategoryPage.razor) ── */
.course-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
}

.course-list-item {
    background: var(--mirar-white);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .15s, border-color .15s;
}

    .course-list-item:hover {
        background: var(--mirar-off);
        border-left-color: var(--mirar-red);
    }

        .course-list-item:hover .cli-arrow {
            color: var(--mirar-red);
        }

.cli-cat {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mirar-red);
    margin-bottom: 4px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.cli-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.35;
}

.cli-arrow {
    color: var(--border);
    font-size: 18px;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
    transition: color .15s;
}

/* ── Course Detail page (CourseDetail.razor) ──────────────── */

/* Hero overrides */
.cd-hero {
    padding-bottom: 52px;
}

.cd-back {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.38);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: color .15s;
}

    .cd-back:hover {
        color: rgba(255,255,255,.7);
    }

.cd-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.cd-badge-sub {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.55);
}

.cd-trust {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 22px;
}

.cd-tc {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.45);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cd-tc-hrd {
    color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    padding: 3px 11px;
}

/* Outcomes strip */
.cd-outcomes {
    background: var(--mirar-off);
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
}

.cd-outcomes-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mirar-red);
    margin-bottom: 18px;
}

.cd-outcomes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cd-out-card {
    background: #fff;
    border: 1px solid var(--border);
    padding: 18px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
    transition: border-color .2s;
}

    .cd-out-card:hover {
        border-color: var(--mirar-red);
    }

.cd-out-em {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 1px;
}

.cd-out-txt {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-dark);
}

/* Body layout */
.cd-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 52px;
    align-items: start;
}

/* Left: content sections */
.cd-sec {
    margin-bottom: 40px;
}

.cd-sh {
    font-family: var(--font-sans);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--mirar-red);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.cd-p {
    font-size: 14.5px;
    line-height: 1.78;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 300;
}

.cd-subsection {
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.cd-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
}

    .cd-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.65;
        font-weight: 300;
    }

.cd-bull {
    color: var(--mirar-red);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    font-family: var(--font-sans);
}

.cd-kv {
    display: grid;
    grid-template-columns: 170px 1fr;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0,0,0,.045);
    align-items: baseline;
    gap: 14px;
}

    .cd-kv:last-child {
        border: none;
    }

.cd-kl {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-dark);
}

.cd-kv-val {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 300;
}

.cd-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Sidebar */
.cd-sidebar {
    position: sticky;
    top: 72px;
}

.cd-sb-brand {
    background: var(--mirar-black);
    color: rgba(255,255,255,.65);
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    line-height: 1.55;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .cd-sb-brand strong {
        color: #fff;
    }

.cd-sb-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
}

.cd-sb-enrol {
    border: 1px solid var(--border);
    border-top: none;
    padding: 24px 20px;
}

    .cd-sb-enrol h3 {
        font-size: 1rem;
        margin-bottom: 18px;
        color: var(--text-dark);
        font-family: var(--font-serif);
    }

.cd-slabel {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .13em;
    color: var(--mirar-red);
    display: block;
    margin-bottom: 4px;
}

/* Register form fields */
.cd-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cd-fi {
    font-family: var(--font-sans);
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color .15s;
}

    .cd-fi:focus {
        border-color: var(--mirar-red);
    }

    .cd-fi::placeholder {
        color: #bbb;
    }

textarea.cd-fi {
    resize: none;
}

.cd-form-success {
    background: var(--mirar-off);
    border-left: 3px solid var(--mirar-green);
    padding: 16px 20px;
}

.cd-form-success-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--mirar-green);
    margin-bottom: 4px;
}

.cd-form-success-msg {
    font-size: 13px;
    color: var(--text-muted);
}

.cd-form-error {
    background: #fef2f2;
    border-left: 3px solid var(--mirar-red);
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    color: var(--mirar-red);
    font-family: var(--font-sans);
}

/* Sidebar quick facts */
.cd-sb-facts {
    background: var(--mirar-off);
    padding: 16px 20px;
    margin-top: 1px;
}

.cd-facts-hd {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.cd-fr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

    .cd-fr:last-child {
        border: none;
    }

.cd-fl {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    padding-top: 1px;
}

.cd-fv {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

/* Sidebar contact CTA */
.cd-sb-q {
    background: var(--mirar-off);
    padding: 16px 20px;
    margin-top: 1px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
}

.cd-q-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cd-q-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.cd-q-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.cd-q-link {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mirar-black);
    text-decoration: none;
    margin-top: 6px;
    display: inline-block;
    transition: color .15s;
}

    .cd-q-link:hover {
        color: var(--mirar-red);
    }

/* Learning Pathway */
.cd-path {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

    /* Vertical connector line between dots */
    .cd-path::before {
        content: '';
        position: absolute;
        left: 7px;
        top: 16px;
        bottom: 16px;
        width: 2px;
        background: var(--border);
    }

.cd-pstep {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    position: relative;
}

.cd-pdot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    flex-shrink: 0;
    margin-left: -24px;
    z-index: 1;
    position: relative;
    margin-top: 2px;
}

.cd-pdot-on {
    border-color: var(--mirar-red);
    background: var(--mirar-red);
    box-shadow: 0 0 0 3px rgba(192,34,26,.12);
}

.cd-plabel {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cd-pname {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
}

    .cd-pname a {
        color: var(--mirar-black);
        text-decoration: none;
        transition: color .15s;
    }

        .cd-pname a:hover {
            color: var(--mirar-red);
        }

.cd-pnote {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
    margin-top: 5px;
    font-weight: 300;
}

/* ── Pull quote ───────────────────────────────────────────── */
.pull-quote-section {
    padding: 96px 32px;
    text-align: center;
    background: var(--mirar-off);
    position: relative;
}

.pull-quote-mark {
    font-size: 80px;
    color: var(--mirar-red);
    line-height: .4;
    font-family: var(--font-serif);
    margin-bottom: 20px;
    display: block;
}

.pull-quote-text {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-dark);
    max-width: 760px;
    margin: 0 auto;
    font-style: italic;
}

.pull-quote-src {
    margin-top: 28px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 600;
}

/* ── Values grid ──────────────────────────────────────────── */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.value-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 44px 40px;
    transition: background .15s;
}

    .value-card:hover {
        background: var(--mirar-warm);
    }

.value-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--mirar-red);
    letter-spacing: .14em;
    font-family: var(--font-sans);
    margin-bottom: 14px;
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.value-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.72;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── Team card ────────────────────────────────────────────── */
.team-card {
    padding: 32px;
    display: flex;
    gap: 22px;
    background: var(--mirar-white);
    transition: background .15s;
    height: 100%;
}

    .team-card:hover {
        background: var(--mirar-warm);
    }

.team-avatar {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    object-fit: cover;
    transition: filter .3s;
}

.team-card:hover .team-avatar {
    filter: grayscale(0%);
}

.team-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.team-role {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mirar-red);
    font-weight: 600;
    font-family: var(--font-sans);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.68;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── Service icon card ────────────────────────────────────── */
.service-icon-card {
    text-align: center;
    padding: 40px 24px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    transition: background .15s;
}

    .service-icon-card:hover {
        background: var(--mirar-warm);
    }

    .service-icon-card img {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
        object-fit: contain;
    }

.service-icon-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.service-icon-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── RMS grid ─────────────────────────────────────────────── */
.rms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.rms-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 32px;
    text-align: center;
    transition: background .15s;
}

    .rms-card:hover {
        background: var(--mirar-warm);
    }

.rms-card-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.rms-card-text {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
    font-weight: 300;
}

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 72px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-band::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-pink) 0%, var(--accent-peach) 16.6%, var(--accent-lavender) 33.3%, var(--accent-sage) 50%, var(--accent-sky) 66.6%, var(--accent-gold) 83.3%, var(--accent-pink) 100%);
    }

    .cta-band h2, .cta-band h3 {
        color: var(--mirar-white);
        margin-bottom: 16px;
    }

    .cta-band p {
        color: rgba(255,255,255,.65);
        max-width: 540px;
        margin: 0 auto 36px;
        font-size: 15px;
        font-weight: 300;
    }

.cta-band-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dark) !important;
    font-family: var(--font-sans);
    margin-bottom: 7px !important;
}

.form-control {
    border-radius: 0 !important;
    border: 1px solid var(--border) !important;
    font-family: var(--font-sans) !important;
    font-size: 14px !important;
    padding: 10px 14px !important;
    transition: border-color .15s !important;
}

    .form-control:focus {
        border-color: var(--mirar-black) !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* ── Badges ───────────────────────────────────────────────── */
.badge-cert {
    background: var(--mirar-black);
    color: var(--mirar-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 0;
    font-family: var(--font-sans);
    display: inline-block;
}

.badge-public {
    background: var(--mirar-green);
    color: var(--mirar-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 0;
    font-family: var(--font-sans);
    display: inline-block;
}

/* ── Bootstrap card overrides ─────────────────────────────── */
.card {
    border-radius: 0 !important;
    border: 1px solid var(--border) !important;
}

.card-header {
    background: var(--mirar-off) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: 0 !important;
    font-family: var(--font-sans) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--text-dark) !important;
}

    .card-header.bg-dark {
        background: var(--mirar-black) !important;
        color: var(--mirar-white) !important;
    }

    .card-header.bg-primary {
        background: var(--mirar-black) !important;
        color: var(--mirar-white) !important;
    }

.list-group-item {
    border-radius: 0 !important;
    font-family: var(--font-sans) !important;
}

.list-group-item-action {
    font-size: 13.5px !important;
    color: var(--text-dark) !important;
}

    .list-group-item-action:hover {
        background: var(--mirar-off) !important;
        color: var(--mirar-black) !important;
    }

/* ── Footer ───────────────────────────────────────────────── */
.mirar-footer-top {
    background: var(--mirar-black);
    color: var(--mirar-white);
    padding: 64px 40px 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 52px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    color: var(--mirar-white);
    margin-bottom: 14px;
}

    .footer-logo span {
        color: var(--mirar-red);
    }

.footer-desc {
    font-size: 12.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-address {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    line-height: 1.7;
    font-weight: 300;
}

.footer-col-heading {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        color: rgba(255,255,255,.65);
        text-decoration: none;
        font-size: 13px;
        font-family: var(--font-sans);
        transition: color .15s;
        font-weight: 300;
    }

        .footer-links a:hover {
            color: var(--mirar-white);
        }

.mirar-footer-bottom {
    background: #000;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,.3);
    font-family: var(--font-sans);
}

    .mirar-footer-bottom a {
        color: rgba(255,255,255,.3);
        text-decoration: none;
        transition: color .15s;
    }

        .mirar-footer-bottom a:hover {
            color: rgba(255,255,255,.65);
        }

/* ── Utility ──────────────────────────────────────────────── */
.section-pad {
    padding: 80px 0;
}

.section-pad-sm {
    padding: 52px 0;
}

.bg-off {
    background: var(--mirar-off);
}

hr.mirar {
    border: none;
    border-top: 1px solid var(--border);
    margin: 52px 0;
}

/* ── Blazor ───────────────────────────────────────────────── */
#blazor-error-ui {
    display: none;
}

/* ── Navbar toggler (Bootstrap fallback) ──────────────────── */
.navbar-toggler {
    background: rgba(0,0,0,.06) !important;
    border: 1px solid var(--border) !important;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mirar-nav-inner {
        padding: 0 24px;
    }

    .mirar-nav-links > li > a,
    .mirar-nav-links > li > .nav-btn {
        padding: 0 12px;
    }
}

@media (max-width: 900px) {
    .mirar-nav-links {
        display: none;
    }

    .mirar-nav-hamburger {
        display: flex;
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-visual {
        display: none;
    }

    .home-hero h1 {
        font-size: 2.8rem;
    }

    .home-hero-text {
        padding: 60px 32px;
    }

    .quick-strip {
        grid-template-columns: 1fr 1fr;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .editorial-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        min-height: 260px;
    }

    .course-list-grid {
        grid-template-columns: 1fr;
    }

    .cd-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cd-sidebar {
        position: static;
        margin-top: 40px;
    }

    .cd-outcomes-grid {
        grid-template-columns: 1fr 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }

    .rms-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-dropdown.wide {
        min-width: 320px;
    }

    .nav-dropdown-cols {
        grid-template-columns: 1fr;
    }

    .nav-dropdown-cta {
        border-left: none;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 600px) {
    .quick-strip {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-hero-text {
        padding: 48px 24px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .rms-grid {
        grid-template-columns: 1fr;
    }

    .cd-outcomes-grid {
        grid-template-columns: 1fr;
    }

    .cd-trust {
        gap: 10px;
    }

    .mirar-ticker {
        padding: 8px 20px;
    }

    .page-hero h1, .page-hero h2 {
        font-size: 2.4rem;
    }

    .mirar-footer-top {
        padding: 48px 24px 40px;
    }

    .mirar-footer-bottom {
        padding: 12px 24px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

ol, ul {
    padding: 0;
}

/* ── WhatsApp buttons (MIRAR style) ── */
.btn-mirar-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    text-decoration: none;
}

    .btn-mirar-wa:hover {
        background: #1ebe5d;
        color: #fff;
        transform: translateY(-1px);
    }


/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */

.login-page-wrap {
    min-height: 100vh;
    background: var(--mirar-off, #f5f5f3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--mirar-off, #f5f5f3);
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--mirar-white, #fff);
    border: 1px solid var(--border, #e5e5e5);
    padding: 48px 40px 40px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px 28px;
    }
}

/* Brand */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 30px;
    font-weight: 900;
    color: var(--mirar-navy, #1a2340);
    letter-spacing: -1px;
    text-decoration: none;
    margin-bottom: 36px;
    line-height: 1;
}

    .login-brand span:first-of-type {
        color: var(--mirar-red, #c0392b);
    }

.login-brand-sub {
    display: block;
    font-family: var(--font-sans, sans-serif);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--text-muted, #888);
    margin-top: 8px;
    font-weight: 600;
}

/* Heading */
.login-heading {
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-family: var(--font-serif, Georgia, serif);
    color: var(--mirar-navy, #1a2340);
    font-weight: 700;
}

.login-sub {
    font-size: 13px;
    color: var(--text-muted, #888);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Banners */
.login-banner {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 0 2px 2px 0;
}

.login-banner--error {
    background: #fef2f2;
    border-left: 3px solid var(--mirar-red, #c0392b);
    color: var(--mirar-red, #c0392b);
    animation: login-shake .35s ease;
}

.login-banner--warn {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    color: #92400e;
}

@keyframes login-shake {
    0%,100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

/* Fields */
.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--text-dark, #222);
    margin-bottom: 7px;
    font-family: var(--font-sans, sans-serif);
}

.login-pass-wrap {
    position: relative;
}

.login-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border, #e5e5e5);
    background: var(--mirar-white, #fff);
    font-size: 14px;
    font-family: var(--font-sans, sans-serif);
    color: var(--text-dark, #222);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
    border-radius: 0;
    -webkit-appearance: none;
}

    .login-input:focus {
        border-color: var(--mirar-navy, #1a2340);
    }

    .login-input.login-input--error {
        border-color: var(--mirar-red, #c0392b);
    }

    .login-input:disabled {
        background: var(--mirar-off, #f5f5f3);
        opacity: .6;
        cursor: not-allowed;
    }

/* Password field needs room for eye button */
.login-pass-wrap .login-input {
    padding-right: 44px;
}

/* Eye toggle */
.login-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #888);
    cursor: pointer;
    padding: 4px;
    font-size: 15px;
    line-height: 1;
    transition: color .15s;
}

    .login-eye:hover {
        color: var(--mirar-navy, #1a2340);
    }

/* Submit button */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    background: var(--mirar-navy, #1a2340);
    color: #fff;
    border: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-family: var(--font-sans, sans-serif);
    cursor: pointer;
    transition: background .18s;
    margin-top: 8px;
}

    .login-btn:hover:not(:disabled) {
        background: var(--mirar-red, #c0392b);
    }

    .login-btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

/* Spinner inside button */
.login-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Attempts hint */
.login-attempts-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 11px;
    color: #d97706;
    margin-top: 10px;
    font-family: var(--font-sans, sans-serif);
}

/* Back link */
.login-back {
    text-align: center;
    margin-top: 28px;
}

    .login-back a {
        font-size: 12px;
        color: var(--text-muted, #888);
        text-decoration: none;
        transition: color .15s;
    }

        .login-back a:hover {
            color: var(--mirar-navy, #1a2340);
        }
/* ═══════════════════════════════════════════════════════════
   TRAINING CALENDAR  (TrainingCalendar.razor)
   Follows the same editorial design system as the rest of MIRAR.
   ═══════════════════════════════════════════════════════════ */

/* ── Filter bar ─────────────────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   TRAINING CALENDAR
   ═══════════════════════════════════════════════════════════ */

/* Prevent horizontal scroll site-wide */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* ── Filter bar ──────────────────────────────────────────────────────────── */
.tc-filter-bar {
    background: var(--mirar-off);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.tc-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.tc-select {
    padding: 9px 14px;
    padding-right: 32px;
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--mirar-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235A5A5A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    border-radius: 0;
    transition: border-color .15s;
    -webkit-appearance: none;
    appearance: none;
    /* prevent selects from overflowing on narrow screens */
    max-width: 100%;
}

    .tc-select:focus {
        border-color: var(--mirar-red);
        outline: none;
    }

/* ── Month group ─────────────────────────────────────────────────────────── */
.tc-month-group {
    margin-bottom: 48px;
    /* contain children — prevents bleed */
    min-width: 0;
    overflow: hidden;
}

.tc-month-hd {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--mirar-red);
    border-bottom: 1.5px solid var(--text-dark);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ── Card list ───────────────────────────────────────────────────────────── */
.tc-cards {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    /* contain — the key fix for horizontal overflow */
    overflow: hidden;
    width: 100%;
}

.tc-card {
    display: grid;
    /* date | body | cta — body has min-width:0 so it can shrink */
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: var(--mirar-white);
    padding: 22px 24px;
    border-left: 2px solid transparent;
    transition: border-color .15s, background .15s;
    /* prevent card itself from overflowing */
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

    .tc-card:hover {
        background: var(--mirar-warm);
        border-left-color: var(--mirar-red);
    }

.tc-card-soldout {
    opacity: .55;
}

/* ── Date block ──────────────────────────────────────────────────────────── */
.tc-card-date {
    text-align: center;
    background: var(--mirar-red);
    color: var(--mirar-white);
    padding: 10px 4px;
    flex-shrink: 0;
    align-self: start;
    margin-top: 2px;
    /* fixed width so it never grows */
    width: 68px;
    box-sizing: border-box;
}

.tc-date-day {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1;
}

.tc-date-mon {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 3px;
    opacity: .85;
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.tc-card-body {
    /* CRITICAL — allows text to shrink instead of pushing layout */
    min-width: 0;
    overflow: hidden;
}

.tc-card-meta {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 7px;
    align-items: center;
}

/* ── Badges ──────────────────────────────────────────────────────────────── */
.tc-badge-fmt,
.tc-badge-hrd,
.tc-badge-cat {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 8px;
    display: inline-block;
    /* truncate if still too long */
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-fmt-0 {
    background: #fff3e0;
    color: #b45309;
}
/* In-person */
.tc-fmt-1 {
    background: #eff6ff;
    color: #1d4ed8;
}
/* Virtual   */
.tc-fmt-2 {
    background: #f5f3ff;
    color: #6d28d9;
}
/* Hybrid    */

.tc-badge-hrd {
    background: #ecfdf5;
    color: var(--mirar-green);
}

/* Category badge — can be long, so allow wrapping and cap width */
.tc-badge-cat {
    background: var(--mirar-off);
    color: var(--text-muted);
    max-width: 220px;
    white-space: normal;
    line-height: 1.3;
}

/* ── Card title ──────────────────────────────────────────────────────────── */
.tc-card-title {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
    line-height: 1.35;
    /* prevent long titles from breaking layout */
    overflow-wrap: break-word;
    word-break: break-word;
}

    .tc-card-title a {
        color: var(--text-dark);
        text-decoration: none;
        transition: color .15s;
    }

        .tc-card-title a:hover {
            color: var(--mirar-red);
        }

/* ── Detail chips ────────────────────────────────────────────────────────── */
.tc-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 16px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    /* don't let chips overflow */
    overflow: hidden;
}

    .tc-card-details span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

.tc-seats-low {
    color: var(--mirar-red);
    font-weight: 600;
}

.tc-card-note {
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 300;
    line-height: 1.55;
    overflow-wrap: break-word;
}

/* ── CTA column ──────────────────────────────────────────────────────────── */
.tc-card-cta {
    flex-shrink: 0;
    white-space: nowrap;
}

.tc-btn-soldout {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.tc-empty {
    text-align: center;
    padding: 64px 0;
    color: var(--text-muted);
    font-size: 14px;
}
