/* ==========================================================================
   Compliance Training hub landing (/compliance-training)
   Co-branded learndirect + ClickHSE.
   Palette: learndirect navy primary, ClickHSE red-orange accent.

   Scoped with the bh- prefix throughout (Business Hub mockup naming,
   carried over unchanged since every class is already unique on the live
   site). Only the rules actually used by
   resources/views/pages/compliance-training/hub.blade.php are included
   here - no fire-safety-only or fire-warden-only classes from the shared
   mockup stylesheet.
   ========================================================================== */

:root {
    --ld-navy: #001052;
    --ld-navy-2: #0a1f44;
    --ld-navy-3: #12306e;
    --ld-blue-link: #1763C6;
    --chse-accent: #E63946;
    --chse-accent-dark: #B82C39;
    --chse-accent-text: #A81E2A;
    --chse-accent-bg: #FDECEE;
    --success-fg: #00754A;
    --success-bg: #d6f0e2;
    --teal: #01FCC2;
    --gold: #FFB800;
    --ink: #0e1a34;
    --body: #3a4763;
    --muted: #6b7591;
    --line: #e6e9f2;
    --panel: #f5f7fb;
    --white: #ffffff;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(14, 26, 52, 0.06);
    --shadow: 0 4px 20px rgba(14, 26, 52, 0.08);
    --shadow-lg: 0 20px 60px rgba(14, 26, 52, 0.14);
}

/* ---------- Hero ---------- */
.bh-hero {
    background: linear-gradient(135deg, var(--ld-navy) 0%, var(--ld-navy-3) 100%);
    color: var(--white);
    padding: 72px 0 88px;
    position: relative;
    overflow: hidden;
}
.bh-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.18) 0%, transparent 65%);
    pointer-events: none;
}
.bh-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.bh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--white) !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.bh-hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--chse-accent);
}
.bh-hero h1 {
    font-size: 52px;
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -1.2px;
    color: var(--white) !important;
}
.bh-hero__sub {
    font-size: 19px;
    line-height: 1.5;
    color: var(--white) !important;
    opacity: 0.92;
    margin: 0 0 30px;
    max-width: 560px;
}
.bh-hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.bh-hero__trustlogos {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.bh-hero__trustlogos img.bh-hero__logo {
    height: 32px;
    width: auto;
    opacity: 0.95;
    filter: brightness(0) invert(1);
}
.bh-hero__trustlogos img.bh-hero__logo--cpd {
    height: 44px;
    background: #ffffff;
    border-radius: 6px;
    padding: 3px;
}
.bh-hero__trustlogos img.bh-hero__logo--fia {
    height: 40px;
    filter: brightness(0) invert(1);
}
.bh-hero__trustlogos .bh-hero__trust-copy {
    color: #ffffff !important;
    font-size: 13.5px;
    line-height: 1.4;
    opacity: 0.94;
    font-weight: 500;
}
.bh-hero__trustlogos .bh-hero__trust-copy strong {
    color: #ffffff !important;
    font-weight: 800;
    display: block;
}
.bh-hero__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.bh-hero__card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-navy);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bh-hero__card-badge {
    background: #ffe4e6;
    color: var(--chse-accent-text);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.bh-hero__stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}
.bh-hero__stat {
    text-align: center;
}
.bh-hero__stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--ld-navy);
    line-height: 1;
}
.bh-hero__stat-lbl {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}
.bh-hero__card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 14px;
}
.bh-hero__card-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
}
.bh-hero__card-list li:last-child { border-bottom: 0; }
.bh-hero__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00754A;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.bh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}
.bh-btn:hover { transform: translateY(-1px); }
.bh-btn--primary {
    background: var(--chse-accent);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.35);
}
.bh-btn--primary:hover { background: var(--chse-accent-dark); }
.bh-btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.bh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}
.bh-btn--solid-navy {
    background: var(--ld-navy);
    color: var(--white);
}
.bh-btn--solid-navy:hover { background: var(--ld-navy-3); }

/* ---------- Trustpilot compact widget (hero) ---------- */
.bh-tp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.bh-tp__mark {
    height: 18px;
    width: auto;
}
.bh-tp__stars {
    height: 18px;
    width: auto;
}
.bh-tp__mark--white {
    filter: none;
}

/* ---------- Trust bar (white background) ---------- */
.bh-trustbar {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
.bh-trustbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.bh-trustbar__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--body);
    font-weight: 500;
}
.bh-trustbar__strong {
    color: var(--ink);
    font-weight: 700;
    display: block;
    font-size: 14px;
}
.bh-trustbar__logo {
    display: block;
    max-height: 46px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}
.bh-trustbar__logo--cpd { max-height: 56px; max-width: 56px; }
.bh-trustbar__logo--fia { max-height: 54px; max-width: 90px; }
.bh-trustbar__logo--stars { max-height: 22px; max-width: 118px; }
.bh-trustbar__logo--aat { max-height: 42px; max-width: 60px; }
.bh-trustbar__logo--tquk { max-height: 40px; max-width: 100px; }

/* ---------- Generic section shell ---------- */
.bh-section {
    padding: 80px 0;
}
.bh-section--panel { background: var(--panel); }
.bh-section--navy {
    background: linear-gradient(135deg, var(--ld-navy) 0%, var(--ld-navy-2) 100%);
    color: var(--white);
}
.bh-section__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.bh-section__head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}
.bh-section__eyebrow {
    color: var(--chse-accent-text);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.bh-section__title {
    font-size: 40px;
    font-weight: 800;
    color: var(--ld-navy);
    letter-spacing: -0.8px;
    margin: 0 0 16px;
    line-height: 1.1;
}
.bh-section--navy .bh-section__title {
    color: var(--white) !important;
}
.bh-section__sub {
    font-size: 17px;
    color: var(--body);
    margin: 0;
    line-height: 1.6;
}
.bh-section--navy .bh-section__sub {
    color: var(--white) !important;
    opacity: 0.9;
}

/* ---------- Self-routing banner (individual buyer nudge) ---------- */
.bh-selfroute {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--chse-accent-text);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.bh-selfroute__text {
    font-size: 15px;
    color: var(--ink);
    margin: 0;
    font-weight: 500;
}
.bh-selfroute__text strong {
    color: var(--ld-navy);
    font-weight: 700;
}
.bh-selfroute__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--chse-accent-text);
    text-decoration: none;
    white-space: nowrap;
}
.bh-selfroute__link:hover { text-decoration: underline; }

/* ---------- 3-column value props ---------- */
.bh-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.bh-value {
    text-align: center;
    padding: 8px 12px;
}
.bh-value__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--panel);
    color: var(--chse-accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}
.bh-section--navy .bh-value__icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}
.bh-value__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ld-navy);
    margin: 0 0 10px;
}
.bh-section--navy .bh-value__title {
    color: var(--white) !important;
}
.bh-value__body {
    font-size: 15px;
    color: var(--body);
    line-height: 1.6;
    margin: 0;
}
.bh-section--navy .bh-value__body {
    color: var(--white) !important;
    opacity: 0.9;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* ---------- Topic hub grid (6 cards) ---------- */
.bh-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bh-topic-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: all 0.2s ease;
    position: relative;
}
.bh-topic-card:hover {
    border-color: var(--chse-accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.bh-topic-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ld-navy) 0%, var(--ld-navy-3) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.bh-topic-card__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--ld-navy);
    margin: 0;
    letter-spacing: -0.3px;
}
.bh-topic-card__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--chse-accent-text);
    background: #ffe4e6;
    padding: 3px 10px;
    border-radius: 999px;
    align-self: flex-start;
}
.bh-topic-card__desc {
    font-size: 14.5px;
    color: var(--body);
    line-height: 1.55;
    margin: 0;
}
.bh-topic-card__link {
    font-size: 14px;
    font-weight: 700;
    color: var(--ld-navy);
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- How it works (4-step) ---------- */
.bh-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}
.bh-step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    position: relative;
}
.bh-step__num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--chse-accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 14px;
}
.bh-step__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ld-navy);
    margin: 0 0 8px;
}
.bh-step__body {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
    margin: 0;
}

/* ---------- FAQ ---------- */
.bh-faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}
.bh-faq__item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 22px;
}
.bh-faq__q {
    font-size: 15px;
    font-weight: 700;
    color: var(--ld-navy);
    margin: 0 0 8px;
}
.bh-faq__a {
    font-size: 14px;
    color: var(--body);
    line-height: 1.55;
    margin: 0;
}

/* ---------- Final CTA band ---------- */
.bh-cta-band {
    background: linear-gradient(135deg, var(--ld-navy) 0%, var(--ld-navy-2) 100%);
    color: var(--white);
    padding: 64px 0;
}
.bh-cta-band__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}
.bh-cta-band__title {
    font-size: 34px;
    font-weight: 800;
    color: var(--white) !important;
    margin: 0 0 10px;
    letter-spacing: -0.6px;
    line-height: 1.15;
}
.bh-cta-band__body {
    font-size: 16px;
    color: var(--white) !important;
    opacity: 0.9;
    margin: 0;
    line-height: 1.55;
}
.bh-cta-band__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bh-hero__inner {
        grid-template-columns: 1fr;
    }
    .bh-values,
    .bh-topic-grid,
    .bh-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .bh-faq {
        grid-template-columns: 1fr;
    }
    .bh-cta-band__inner {
        grid-template-columns: 1fr;
    }
    .bh-cta-band__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .bh-hero h1 {
        font-size: 34px;
    }
    .bh-hero__sub {
        font-size: 16px;
    }
    .bh-values,
    .bh-topic-grid,
    .bh-steps {
        grid-template-columns: 1fr;
    }
    .bh-section__title {
        font-size: 28px;
    }
    .bh-hero__stat-row {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   SUB-NAV (dropdown)
   Static (non-sticky) row that sits above the hero. Single toggle
   button opens a menu containing the 8 topic links.
   ============================================================ */
.bh-subnav {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    padding: 14px 32px;
    position: relative;
}
.bh-subnav__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}
.bh-subnav__crumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    margin-right: auto;
    flex-wrap: wrap;
}
.bh-subnav__crumb a {
    color: var(--muted);
    text-decoration: none;
}
.bh-subnav__crumb a:hover {
    color: var(--chse-accent-text);
    text-decoration: underline;
}
.bh-subnav__crumb-sep {
    opacity: 0.5;
}
.bh-subnav__current {
    color: var(--ld-navy);
    font-weight: 700;
}

.bh-subnav__dd {
    position: static;
}
.bh-subnav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--ld-navy);
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(14, 26, 52, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bh-subnav__toggle:hover,
.bh-subnav__dd.is-open .bh-subnav__toggle {
    border-color: var(--chse-accent-text);
    box-shadow: 0 0 0 3px rgba(168, 30, 42, 0.10);
}
.bh-subnav__toggle-label {
    color: var(--muted);
    font-weight: 600;
    font-size: 12.5px;
    margin-right: 4px;
}
.bh-subnav__toggle-current {
    color: var(--ld-navy);
}
.bh-subnav__caret {
    transition: transform 0.15s ease;
    color: var(--ld-navy);
}
.bh-subnav__dd.is-open .bh-subnav__caret {
    transform: rotate(180deg);
}

.bh-subnav__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 32px;
    right: 32px;
    max-width: 1080px;
    margin-left: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 16, 82, 0.12);
    padding: 22px 26px;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.bh-subnav__dd.is-open .bh-subnav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bh-subnav__panel__title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px 0;
}
.bh-subnav__panel__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2px 24px;
}
@media (max-width: 1100px) and (min-width: 769px) {
    .bh-subnav__panel__grid {
        grid-template-columns: 1fr 1fr;
    }
}
.bh-subnav__panel__item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ld-navy);
    transition: background-color 0.12s ease;
    position: relative;
}
.bh-subnav__panel__item:hover {
    background: var(--panel);
    text-decoration: none;
}
.bh-subnav__panel__item--active {
    background: var(--chse-accent-bg);
}
.bh-subnav__panel__item--active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--chse-accent-text);
    border-radius: 2px;
}
.bh-subnav__panel__item-name {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ld-navy);
    line-height: 1.2;
    margin-bottom: 3px;
}
.bh-subnav__panel__item:hover .bh-subnav__panel__item-name {
    color: var(--chse-accent-text);
}
.bh-subnav__panel__item--active .bh-subnav__panel__item-name {
    color: var(--chse-accent-text);
}
.bh-subnav__panel__item-desc {
    display: block;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .bh-subnav {
        padding: 12px 16px;
    }
    .bh-subnav__crumb {
        font-size: 11.5px;
    }
    .bh-subnav__panel {
        left: 16px;
        right: 16px;
        padding: 16px;
    }
    .bh-subnav__panel__grid {
        grid-template-columns: 1fr;
    }
    .bh-subnav__toggle {
        font-size: 13.5px;
        padding: 8px 14px;
    }
}
