/* IAR–CyberPeace Initiative — Premium stylesheet v13
   Brand palette: navy #0b1f3a, maroon #810245, gold #d4af37
   System fonts only. No external CDN. Responsive, accessible. */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
    /* Brand colours */
    --navy:         #0b1f3a;
    --navy-mid:     #143056;
    --navy-light:   #1e4278;
    --maroon:       #810245;
    --maroon-dark:  #630135;
    --maroon-soft:  #fbebee;
    --gold:         #d4af37;
    --gold-dark:    #a9891e;
    --gold-soft:    #fdf8e8;
    --pink:         #810245;
    --pink-dark:    #630135;
    --pink-soft:    #fbebee;

    /* Neutrals */
    --ink:          #0f172a;
    --muted:        #475569;
    --muted-light:  #64748b;
    --line:         #d8dee6;
    --line-soft:    #edf0f4;
    --paper:        #f5f7fa;
    --surface-soft: #f8fafc;
    --white:        #ffffff;

    /* Success / info */
    --success:      #059669;
    --success-bg:   #ecfdf5;
    --success-line: #a7f3d0;
    --success-text: #065f46;
    --error:        #dc2626;
    --error-bg:     #fef2f2;
    --error-line:   #fecaca;
    --error-text:   #991b1b;

    /* Shadows */
    --shadow-xs:    0 1px 4px rgba(11,31,58,0.06);
    --shadow-sm:    0 4px 16px rgba(11,31,58,0.07);
    --shadow:       0 8px 28px rgba(11,31,58,0.09);
    --shadow-lg:    0 14px 40px rgba(11,31,58,0.12);

    /* Layout */
    --radius:       10px;
    --radius-sm:    6px;
    --radius-lg:    16px;
    --max:          1140px;
    --max-text:     720px;
    --header-h:     76px;

    /* Typography */
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", "Noto Sans", "Ubuntu", "Cantarell",
            "Liberation Sans", Arial, sans-serif,
            "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco,
                 Consolas, "Liberation Mono", "Courier New", monospace;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 220ms;
}

/* =========================================================
   2. RESET & BASE
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(0.94rem, 0.88rem + 0.22vw, 1.05rem);
    line-height: 1.68;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

:focus-visible {
    outline: 2.5px solid var(--maroon);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-contrast: more) {
    :root { --line: #64748b; --muted: #1e293b; }
    a { text-decoration: underline; }
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--navy-mid);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: color var(--dur) var(--ease-out);
}
a:hover { color: var(--maroon); }

h1, h2, h3, h4 {
    line-height: 1.22;
    color: var(--navy);
    font-weight: 700;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 3.5vw, 2.65rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
h4 { font-size: 0.98rem; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* =========================================================
   3. LAYOUT UTILITIES
   ========================================================= */
.container {
    width: min(100% - 2.4rem, var(--max));
    margin-inline: auto;
}

.text-center { text-align: center; }

.lead {
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.65;
    color: var(--muted);
}

.prose-wide { max-width: 100%; }
.prose-wide h2 { margin-top: 1.8em; }

.text-link { font-weight: 700; }

/* =========================================================
   4. SKIP LINK
   ========================================================= */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--gold);
    color: var(--navy);
    padding: 0.5rem 1rem;
    z-index: 200;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}
.skip-link:focus { top: 0.75rem; }

/* =========================================================
   5. HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 14px rgba(11,31,58,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: var(--navy);
    min-width: 0;
    flex-shrink: 0;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
}

.brand-logos img { height: 44px; width: auto; }
.brand-logos .brand-cp {
    height: 30px;
    border-left: 1px solid var(--line);
    padding-left: 0.65rem;
    margin-left: 0.1rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-weight: 800;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--maroon);
    letter-spacing: 0.03em;
    line-height: 1.4;
    margin-top: 2px;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color var(--dur);
}
.nav-toggle:hover { border-color: var(--maroon); }

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin-inline: auto;
    background: var(--navy);
    border-radius: 1px;
    transition: background var(--dur);
}
.nav-toggle:hover .nav-toggle-bar { background: var(--maroon); }

.site-nav ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.4rem 0.65rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: color var(--dur), background var(--dur);
}
.site-nav a:hover {
    color: var(--maroon);
    background: var(--maroon-soft);
}
.site-nav a[aria-current="page"] {
    background: var(--maroon-soft);
    color: var(--maroon);
    font-weight: 700;
}

.site-nav .nav-lms { margin-left: 0.4rem; }
.site-nav .nav-lms a {
    background: var(--maroon);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}
.site-nav .nav-lms a:hover {
    background: var(--maroon-dark);
    color: var(--white);
}

/* =========================================================
   6. BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    transition: background var(--dur) var(--ease-out),
                color var(--dur) var(--ease-out),
                border-color var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out),
                transform var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-sm   { padding: 0.4rem 0.9rem;  font-size: 0.84rem; }
.btn-lg   { padding: 0.8rem 1.5rem;  font-size: 1rem; }

.btn-navy   { background: var(--navy);         color: var(--white);  border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white);  border-color: var(--navy-mid); }

.btn-pink,
.btn-teal,
.btn-maroon { background: var(--maroon); color: var(--white); border-color: var(--maroon); }
.btn-pink:hover,
.btn-teal:hover,
.btn-maroon:hover { background: var(--maroon-dark); color: var(--white); border-color: var(--maroon-dark); }

.btn-gold   { background: var(--gold);         color: var(--navy);   border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark);color: var(--navy);   border-color: var(--gold-dark); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.9);
}

.btn-outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* =========================================================
   7. HERO (HOMEPAGE)
   ========================================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--maroon-dark) 100%);
    color: var(--white);
    overflow: hidden;
    padding: 4.5rem 0 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 25%, rgba(212,175,55,0.14), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(129,2,69,0.22), transparent 50%),
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: auto, auto, 32px 32px;
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
    color: var(--white);
    margin-bottom: 0.4em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-also,
.hero-lead {
    color: rgba(255,255,255,0.88);
    max-width: 640px;
}
.hero-lead { margin-bottom: 1.6rem; }

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

/* =========================================================
   8. EYEBROW / KICKER
   ========================================================= */
.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: block;
    color: var(--gold-dark);
}
.section-kicker { color: var(--maroon); }

.hero .eyebrow,
.hero .section-kicker,
.page-hero .section-kicker,
.page-hero .eyebrow { color: rgba(212,175,55,0.95) !important; }

/* =========================================================
   9. PAGE HERO (INNER PAGES)
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    padding: 2.8rem 0 2.6rem;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
.page-hero h1,
.page-hero .lead { color: var(--white); position: relative; }
.page-hero .lead {
    max-width: var(--max-text);
    color: rgba(255,255,255,0.88);
    margin-bottom: 0;
}

/* =========================================================
   10. SECTIONS
   ========================================================= */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--paper); }

.section-head {
    margin-bottom: 2rem;
    max-width: 100%;
}

.section-cta {
    margin: 2.2rem 0 0;
    text-align: center;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2.8rem;
    align-items: center;
}

.split-top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.8rem;
    align-items: start;
}

/* =========================================================
   11. BADGES
   ========================================================= */
.badge {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}
.badge-teal,
.badge-navy   { background: #e9eef6; color: var(--navy); }
.badge-gold   { background: var(--gold-soft); color: #7a5a0a; }
.badge-maroon { background: var(--maroon-soft); color: var(--maroon); }

/* =========================================================
   12. CARDS
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.3rem 1.2rem;
    box-shadow: var(--shadow-xs);
    border-top: 4px solid var(--navy);
    transition: transform var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card h2,
.card h3,
.card .card-title {
    font-size: 1.08rem;
    margin-bottom: 0.4em;
    color: var(--navy);
}
.card p:last-child { margin-bottom: 0; }
.card img { height: 52px; width: auto; margin-bottom: 0.75rem; }
.card .card-logo-wide { height: 34px; }

.partner-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.2rem 0 1.6rem;
}

.plain-list {
    margin: 0 0 1.2rem;
    padding-left: 1.2rem;
}
.plain-list li { margin-bottom: 0.5rem; }

.note-box,
.placeholder-box {
    margin-top: 2rem;
    padding: 1.4rem 1.6rem;
    background: var(--paper);
    border-radius: var(--radius);
    border-left: 4px solid var(--navy-mid);
}
.placeholder-box {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}
.placeholder-box p { margin: 0; }

/* =========================================================
   13. EVENTS — HORIZONTAL TIMELINE CARDS
   ========================================================= */
.events-horizontal-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin: 1.8rem 0 2.5rem;
    width: 100%;
}

.event-card-h {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out),
                box-shadow var(--dur) var(--ease-out);
    border-left: 5px solid var(--navy);
}
.event-card-h:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.event-card-h.accent-teal,
.event-card-h.accent-navy    { border-left-color: var(--navy); }
.event-card-h.accent-gold    { border-left-color: var(--gold-dark); }
.event-card-h.accent-maroon  { border-left-color: var(--maroon); }

.event-h-side {
    flex: 0 0 180px;
    background: var(--paper);
    border-right: 1px solid var(--line);
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.8rem;
}

.event-h-datebox {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    width: 100%;
    max-width: 130px;
    box-shadow: var(--shadow-xs);
}

.event-h-day {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--navy);
    letter-spacing: -0.025em;
}

.event-h-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--maroon);
    margin-top: 0.2rem;
}

.event-h-side .badge { margin-bottom: 0; font-size: 0.72rem; }

.event-h-main {
    flex: 1 1 auto;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-h-header { margin-bottom: 0.65rem; }

.event-h-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 0.3rem;
    line-height: 1.3;
}

.event-h-subtitle {
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--maroon);
    margin: 0;
    line-height: 1.4;
}

.event-h-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.6rem;
    margin: 0.65rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.event-h-meta-item {
    font-size: 0.91rem;
    color: var(--muted);
    line-height: 1.5;
}
.event-h-meta-item.meta-span-2 { grid-column: 1 / -1; }
.event-h-meta-item .meta-label {
    font-weight: 700;
    color: var(--navy);
}

.event-h-desc {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.65;
}

.event-subtitle {
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--maroon);
    margin-top: -0.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.event-meta {
    color: var(--muted);
    margin-bottom: 0.4em;
    font-size: 0.93rem;
    line-height: 1.5;
}
.event-meta span { font-weight: 700; color: var(--navy); }

/* =========================================================
   14. RESOURCES — TIPS & REPORT PANEL
   ========================================================= */
.tip-list {
    margin: 0;
    padding-left: 1.2rem;
}
.tip-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.report-panel {
    background: linear-gradient(160deg, var(--navy) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}
.report-panel h2 { color: var(--white); font-size: 1.3rem; }
.report-panel a { color: var(--gold); }
.report-panel a:hover { color: var(--white); }

.helpline-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.helpline-number {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none !important;
    color: var(--white) !important;
    margin: 0.1rem 0 0.9rem;
    line-height: 1.1;
}

/* =========================================================
   15. CTA BAND
   ========================================================= */
.cta-band {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    color: var(--white);
    padding: 2.8rem 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p  { margin-bottom: 0; color: rgba(255,255,255,0.88); }

/* =========================================================
   16. FEATURED COURSE BOX & INITIATIVE GRAPHIC
   ========================================================= */
.initiative-graphic-wrap img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.featured-course-box {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--white);
    padding: 2rem 2.2rem;
    border-radius: var(--radius);
    margin: 2.5rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}
.featured-course-box--maroon {
    background: linear-gradient(135deg, var(--maroon) 0%, var(--navy) 100%);
    border-top: 4px solid var(--gold);
}
.featured-course-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 260px;
    flex-shrink: 0;
}
.featured-course-box h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}
.featured-course-box p {
    color: rgba(220,230,245,0.92);
    margin: 0;
}

/* =========================================================
   17. CFR SHOWCASE (FIRST RESPONDER PROGRAM)
   ========================================================= */
.cfr-showcase {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 4px solid var(--maroon);
    border-radius: var(--radius);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
    margin: 2.5rem 0;
}

.cfr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.cfr-title-block h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin: 0.3rem 0;
}

.cfr-tagline {
    font-weight: 700;
    color: var(--maroon);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
}

.cfr-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cfr-meta-pill,
.cfr-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--paper);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    line-height: 1.4;
}

.cfr-meta-pill.gold,
.cfr-pill.gold {
    background: var(--gold-soft);
    color: #7a5a0a;
    border-color: #e8d08a;
}

.cfr-meta-pill.maroon,
.cfr-pill.maroon {
    background: var(--maroon-soft);
    color: var(--maroon);
    border-color: #f1b8cc;
}

.cfr-pill-icon,
.cfr-meta-pill .pill-icon {
    font-style: normal;
    font-size: 0.85em;
    color: var(--maroon);
    font-weight: 700;
}

.cfr-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.7rem;
    margin: 1.2rem 0 1.8rem;
}

.cfr-skill-item,
.cfr-skill-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    transition: border-color var(--dur), box-shadow var(--dur);
}
.cfr-skill-item:hover,
.cfr-skill-chip:hover {
    border-color: var(--maroon);
    box-shadow: var(--shadow-xs);
}

.cfr-skill-item .icon,
.cfr-skill-item span.icon,
.cfr-chip-check {
    color: var(--maroon);
    font-size: 0.95em;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.05em;
}

.cfr-syllabus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cfr-chapter-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--dur), box-shadow var(--dur);
}
.cfr-chapter-card:hover {
    border-color: var(--maroon);
    box-shadow: 0 4px 14px rgba(129,2,69,0.07);
}

.cfr-chapter-num {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--maroon);
    letter-spacing: 0.06em;
}

.cfr-chapter-name {
    font-size: 0.91rem;
    font-weight: 600;
    color: var(--navy);
    margin-top: 0.18rem;
}

.cfr-chapter-badge {
    font-size: 0.73rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--muted);
    white-space: nowrap;
}
.cfr-chapter-badge.available {
    background: #d4f4d9;
    color: #165c24;
}

.cfr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    align-items: center;
}
.cfr-actions-end {
    margin-left: auto;
}

/* =========================================================
   18. CONTACT FORM
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 2.4rem;
}

.contact-form p { margin-bottom: 1rem; }

.contact-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--navy);
    font-size: 0.93rem;
}

.req {
    font-weight: 600;
    font-size: 0.74rem;
    color: var(--maroon);
    text-transform: lowercase;
    margin-left: 0.3em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--dur), box-shadow var(--dur);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(20,48,86,0.12);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.alert {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}
.alert p, .alert ul { margin-bottom: 0.4rem; }
.alert ul { margin-top: 0.3rem; padding-left: 1.2rem; }

.alert-error {
    background: var(--error-bg);
    border: 1px solid var(--error-line);
    color: var(--error-text);
}
.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-line);
    color: var(--success-text);
}

/* =========================================================
   19. FOOTER
   ========================================================= */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.86);
    padding-top: 3rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.2rem;
    padding-bottom: 2.2rem;
}

.footer-kicker {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.footer-heading {
    color: var(--white);
    font-size: 0.97rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.footer-base {
    background: #071527;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.1rem 0;
    font-size: 0.86rem;
    text-align: center;
}
.footer-base p { margin: 0; color: rgba(255,255,255,0.72); }

/* =========================================================
   20. STATS STRIP
   ========================================================= */
.stats-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 2rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.4rem;
    text-align: center;
}
.stat-card {
    background: var(--white);
    padding: 1.4rem 1.1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    border-top: 4px solid var(--navy);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-card.stat-gold   { border-top-color: var(--gold); }
.stat-card.stat-maroon { border-top-color: var(--maroon); }

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.84rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

/* =========================================================
   21. SCROLL REVEAL
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   22. RESPONSIVE
   ========================================================= */
@media (max-width: 1060px) {
    .brand-tag { display: none; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }

    .nav-toggle { display: flex; }
    .header-inner { position: relative; }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--white);
        border-bottom: 2px solid var(--line);
        box-shadow: var(--shadow);
        padding: 0.5rem 1.2rem 1.2rem;
        z-index: 100;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.1rem;
    }
    .site-nav .nav-lms { margin-left: 0; margin-top: 0.5rem; }
    .site-nav .nav-lms a { text-align: center; }

    .brand-logos img { height: 38px; }
    .brand-logos .brand-cp { height: 26px; }

    .hero { padding: 3.2rem 0 3.5rem; }
    .page-hero { padding: 2.2rem 0 2rem; }

    .split,
    .split-top,
    .partner-blocks,
    .contact-grid,
    .footer-grid { grid-template-columns: 1fr; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .report-panel { position: static; }
}

@media (max-width: 560px) {
    .brand-text { display: none; }
    .card-grid { grid-template-columns: 1fr; }

    .featured-course-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.2rem;
    }
    .featured-course-actions {
        min-width: 0;
        width: 100%;
    }
    .cfr-actions-end {
        margin-left: 0;
    }

    .event-card-h {
        flex-direction: column;
        border-left-width: 4px;
    }
    .event-h-side {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--line);
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
        padding: 0.85rem 1.1rem;
    }
    .event-h-datebox { max-width: 110px; padding: 0.4rem 0.7rem; }
    .event-h-meta-grid { grid-template-columns: 1fr; gap: 0.4rem; }
    .event-h-main { padding: 1.1rem; }

    .cfr-syllabus-grid,
    .cfr-skills-grid { grid-template-columns: 1fr; }
    .cfr-showcase { padding: 1.4rem; }

    .hero-actions,
    .cta-actions { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   23. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
