/* Homepage: shared brand palette, quiet surfaces and consistent spacing. */
.cl-home {
    --cl-home-blue: #174ea6;
    --cl-home-navy: #102746;
    --cl-home-canvas: #f5f7fb;
    --cl-section-blue: #174ea6;
    --cl-section-orange: #fe8115;
    --cl-section-ink: #132c50;
    --cl-section-muted: #526780;
    --cl-section-card: #fff;
    --cl-section-border: #dfe6ef;
}
.cl-home .cl-shell { width: min(1360px, calc(100% - 32px)); }
.cl-home .cl-section { padding-block: 64px; }
.cl-home .cl-heading,
.cl-home .cl-cta__headline {
    font-family: var(--cl-font-body);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: var(--cl-heading-weight, 800);
    letter-spacing: -.035em;
    line-height: 1.25;
    color: var(--cl-section-ink);
}
.cl-home .cl-eyebrow { color: var(--cl-section-blue); font-weight: 700; letter-spacing: .1em; }
.cl-home .cl-section__head { margin-bottom: 28px; }
.cl-home .cl-section__head .cl-heading::after,
.cl-home .cl-testimonials-section .cl-heading::after { background: var(--cl-section-orange); }
.cl-home .cl-subhead { color: var(--cl-section-muted); line-height: 1.7; }
.cl-home .cl-btn { border-radius: 12px; font-weight: 600; box-shadow: none; }
.cl-home .cl-btn--primary { background: #174ea6; border-color: #174ea6; color: #fff; box-shadow: none; }
.cl-home .cl-btn--primary:hover { background: #123e84; border-color: #123e84; box-shadow: none; transform: translateY(-1px); }
.cl-home .cl-btn:focus-visible,
.cl-home .cl-cert-card:focus-visible { outline: 3px solid #fe8115; outline-offset: 4px; }

/* A compact, stable product preview instead of floating decoration. */
.cl-home .cl-hero { padding: 54px 0; background: linear-gradient(115deg, #102746, #183b64); }
.cl-home .cl-hero::before { opacity: .16; }
.cl-home .cl-hero::after { display: none; }
.cl-home .cl-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 56px; }
.cl-home .cl-hero__copy { gap: 22px; }
.cl-home .cl-hero__headline {
    font-family: var(--cl-font-body);
    font-size: clamp(2.1rem, 4.2vw, 3.5rem);
    font-weight: var(--cl-heading-weight, 800);
    line-height: 1.14;
    letter-spacing: -.045em;
}
.cl-home .cl-hero .cl-gradient-text {
    background: none;
    color: #ffad67;
    -webkit-text-fill-color: #ffad67;
}
.cl-home .cl-hero .cl-kicker {
    background: #ffffff0a;
    border-color: #ffffff26;
    color: #ffd1aa;
    font-weight: 600;
    font-size: .7rem;
}
.cl-home .cl-hero__lead { color: #c4d2e4; font-size: .96rem; line-height: 1.8; }
.cl-home .cl-hero__actions .cl-btn { background: #fe8115; border-color: #fe8115; color: #102746; }
.cl-home .cl-hero__actions .cl-btn:hover { background: #ff9b43; border-color: #ff9b43; }
.cl-home .cl-hero__card { animation: cl-home-preview-float 6s ease-in-out infinite; border-radius: 20px; padding: 24px; background: #ffffff08; box-shadow: 0 12px 32px #04142626; backdrop-filter: none; }
.cl-home .cl-hero__card-header .cl-kicker { background: #ffffff0a !important; color: #ffd1aa !important; border-color: #ffffff26 !important; }
.cl-home .cl-hero__card-question { line-height: 1.7; }
.cl-home .cl-hero__card-opt { font-size: .8rem; }
.cl-home .cl-hero__card-votes i { color: #ffad67; }
.cl-home .cl-hero__floater { display: none; }
.cl-home .cl-stats-bar { background: #102746; }
.cl-home .cl-stats-bar::after { display: none; }
.cl-home .cl-stats-bar__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 20px; }
.cl-home .cl-stats-bar__divider { display: none; }
.cl-home .cl-stats-bar__item { padding: 8px 16px; gap: 12px; }
.cl-home .cl-stats-bar__item i { color: #ffad67; box-shadow: none; }
.cl-home .cl-stats-bar__item strong { font-size: 1.5rem; text-shadow: none; }
.cl-home .cl-stats-bar__item span { font-size: .63rem; letter-spacing: .06em; }

/* Providers connect the hero to the catalog without another large dark block. */
.cl-home .cl-providers-section { padding-block: 32px; background: var(--cl-section-card); border-bottom: 1px solid var(--cl-section-border); }
.cl-home .cl-providers-section::before,
.cl-home .cl-providers-section::after,
.cl-home .cl-providers-section .cl-section__head::after { display: none; }
.cl-home .cl-providers-section .cl-section__head { margin-bottom: 20px; gap: 8px; }
.cl-home .cl-providers-section .cl-heading { color: var(--cl-section-ink); font-size: 1.25rem; font-weight: var(--cl-heading-weight, 800); }
.cl-home .cl-providers-section .cl-heading::after,
.cl-home .cl-providers-section .cl-eyebrow { display: none; }
.cl-home .cl-providers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cl-home .cl-provider-card { padding: 12px; gap: 10px; border-radius: 12px; background: var(--cl-section-card); border-color: var(--cl-section-border); box-shadow: none; }
.cl-home .cl-provider-card:hover { border-color: var(--cl-section-blue); background: var(--cl-home-canvas); box-shadow: none; }
.cl-home .cl-provider-card__logo { flex-basis: 34px; width: 34px; height: 34px; border-radius: 8px; background: #fff; color: #174ea6; }
.cl-home .cl-provider-card__logo img { width: 24px; height: 24px; }
.cl-home .cl-provider-card__name { font-size: .8rem; font-weight: 600; color: var(--cl-section-ink); }
.cl-home .cl-provider-card__count { font-size: .7rem; color: var(--cl-section-muted); }

.cl-home .cl-exams-section { background: var(--cl-home-canvas); }
.cl-home .cl-exams-section .cl-filter-bar { border-color: var(--cl-section-border); box-shadow: none; border-radius: 14px; }
.cl-home .cl-filter-pill { font-weight: 500; }
.cl-home .cl-filter-pill.is-active { background: #174ea6; border-color: #174ea6; box-shadow: none; }
.cl-home .cl-cert-card { border: 1px solid var(--cl-section-border); border-top-color: var(--cl-section-border) !important; border-radius: 16px; background: var(--cl-section-card); box-shadow: 0 3px 12px #132c5005; }
.cl-home .cl-cert-card:hover { transform: translateY(-3px); border-color: #8aadd9 !important; box-shadow: 0 8px 24px #132c5010; }
.cl-home #cl-home-exams-grid .cl-cert-card__thumb {
    height: auto;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    border-radius: 0;
    background: #edf2f8;
}
.cl-home #cl-home-exams-grid .cl-cert-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.cl-home #cl-home-exams-grid .cl-cert-card__body { padding: 18px; min-height: 206px; gap: 10px; }
.cl-home #cl-home-exams-grid .cl-cert-card__title { font-family: var(--cl-font-body); font-weight: 600; font-size: .9rem; line-height: 1.55; min-height: 4.65em; -webkit-line-clamp: 3; color: var(--cl-section-ink); }
.cl-home .cl-cert-card__price-current { color: #174ea6; font-weight: 700; font-size: .95rem; }
.cl-home .cl-cert-card__sale-badge { background: #fff0e2; color: #934200; border: 1px solid #ffd5b1; box-shadow: none; font-weight: 600; }
.cl-home .cl-cert-card__meta { color: var(--cl-section-muted); font-weight: 400; }
.cl-home .cl-cert-card__meta i { color: var(--cl-section-blue); }
.cl-home .cl-cert-card__badge { background: #174ea6; box-shadow: none; }

/* Consistent card surfaces; orange is reserved for small accents. */
.cl-home .cl-features-section { background: var(--cl-section-card); border-block: 1px solid var(--cl-section-border); }
.cl-home .cl-testimonials-section { background: var(--cl-home-canvas); }
.cl-home .cl-features-section .cl-feature-card,
.cl-home .cl-testimonials-section .cl-testi-card { background: var(--cl-section-card); border: 1px solid var(--cl-section-border); border-radius: 16px; box-shadow: none; }
.cl-home .cl-features-section .cl-feature-card { padding: 24px; }
.cl-home .cl-features-section .cl-feature-card:hover,
.cl-home .cl-testimonials-section .cl-testi-card:hover { transform: translateY(-2px); border-color: #8aadd9; box-shadow: 0 6px 20px #132c5008; }
.cl-home .cl-features-section .cl-feature-card__title,
.cl-home .cl-testimonials-section .cl-testi-card__title,
.cl-home .cl-testimonials-section .cl-testi-card__name { font-family: var(--cl-font-body); font-weight: 600; color: var(--cl-section-ink); }
.cl-home .cl-features-section .cl-feature-card__desc,
.cl-home .cl-testimonials-section .cl-testi-card__quote,
.cl-home .cl-testimonials-section .cl-testi-card__role,
.cl-home .cl-testimonials-section .cl-testi-layout__left p { color: var(--cl-section-muted); }
.cl-home .cl-features-section .cl-feature-card .cl-feature-card__icon { background: #edf3fc; color: #174ea6; border-radius: 12px; }
.cl-home .cl-testimonials-section .cl-testi-card__quote-icon { color: #d87520; }
.cl-home .cl-testimonials-section .cl-testi-card__avatar { background: #edf3fc; color: #174ea6; border-color: #dfe6ef; }
.cl-home .cl-cta { background: #102746; padding-block: 56px; }
.cl-home .cl-cta__headline { color: #fff; }
.cl-home .cl-cta .cl-eyebrow { color: #ffad67; }
.cl-home .cl-cta__lead { color: #c4d2e4; }
.cl-home .cl-cta__glow { display: none; }

html[data-theme="dark"] .cl-home {
    --cl-home-canvas: #0d1b2d;
    --cl-section-blue: #9dc4ff;
    --cl-section-ink: #edf4ff;
    --cl-section-muted: #b1c1d8;
    --cl-section-card: #13243c;
    --cl-section-border: #2c4261;
}
html[data-theme="dark"] .cl-home .cl-exams-section .cl-filter-bar { background: var(--cl-section-card); }
html[data-theme="dark"] .cl-home .cl-cert-card__price-current { color: #9dc4ff; }
html[data-theme="dark"] .cl-home .cl-features-section .cl-feature-card .cl-feature-card__icon,
html[data-theme="dark"] .cl-home .cl-testimonials-section .cl-testi-card__avatar { background: #203e66; color: #adceff; }
html[data-theme="dark"] .cl-home .cl-cert-card__sale-badge { background: #453026; border-color: #745034; color: #ffbc83; }

@media (max-width: 1050px) {
    .cl-home .cl-providers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cl-home .cl-hero__grid { gap: 28px; }
    .cl-home .cl-stats-bar__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .cl-home .cl-hero__grid { grid-template-columns: 1fr; }
    .cl-home .cl-hero__copy { max-width: 620px; }
}
@media (max-width: 620px) {
    .cl-home .cl-shell { width: calc(100% - 32px); }
    .cl-home .cl-section { padding-block: 40px; }
    .cl-home .cl-hero { padding-block: 38px; }
    .cl-home .cl-hero__headline { font-size: clamp(2rem, 8.5vw, 3rem); }
    .cl-home .cl-hero__copy { gap: 18px; }
    .cl-home .cl-hero__lead { font-size: .9rem; }
    .cl-home .cl-providers-section { padding-block: 24px; }
    .cl-home .cl-providers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cl-home .cl-stats-bar__item { padding: 10px 4px; gap: 8px; }
    .cl-home .cl-stats-bar__item i { width: 32px; height: 32px; flex-basis: 32px; font-size: 1rem; }
    .cl-home .cl-stats-bar__item strong { font-size: 1.2rem; }
    .cl-home .cl-stats-bar__item span { font-size: .55rem; }
    .cl-home #cl-home-exams-grid .cl-cert-card__body { padding: 12px; min-height: 206px; }
    .cl-home #cl-home-exams-grid .cl-cert-card__title { font-size: .8rem; line-height: 1.5; min-height: 4.5em; }
    .cl-home .cl-cert-card__price-current { font-size: .82rem; }
    .cl-home .cl-cert-card__sale-badge { top: 7px; right: 7px; font-size: .65rem; padding: 4px 7px; }
    .cl-home .cl-cert-card__price-original { font-size: .65rem; }
    .cl-home .cl-cta { padding-block: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .cl-home .cl-cert-card,
    .cl-home .cl-feature-card,
    .cl-home .cl-testi-card,
    .cl-home .cl-provider-card { transition: none; }
}
/* Keep statistics compact at narrow widths, including legacy mobile rules. */
.cl-home .cl-stats-bar__item { flex-direction: row; justify-content: flex-start; text-align: left; border: 0; }
.cl-home .cl-stats-bar__item strong { font-family: var(--cl-font-body); font-weight: 700; }
.cl-home .cl-exam-request-fab { box-shadow: none; background: #174ea6; color: #fff; }
@media (max-width: 620px) {
    .cl-home .cl-stats-bar__inner { gap: 8px; }
    .cl-home .cl-stats-bar__item__text { min-width: 0; }
    .cl-home .cl-stats-bar__item span { line-height: 1.5; }
}

/* Course facts use the same labels and grouping as the catalog. */
.cl-home .cl-cert-card__meta { gap: 8px 12px; align-items: center; }
.cl-home .cl-cert-card__meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Gentle vertical motion for the hero's exam preview. */
@keyframes cl-home-preview-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.cl-home .cl-hero__card:hover,
.cl-home .cl-hero__card:focus-within { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .cl-home .cl-hero__card { animation: none; }
}

/* Static, decorative technology line art behind the hero content. */
.cl-home .cl-hero__tech-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url('../images/hero-tech-pattern.svg') center / cover no-repeat;
}
@media (max-width: 900px) {
    .cl-home .cl-hero__tech-pattern { background-size: auto 100%; background-position: left center; opacity: .55; }
}
@media (max-width: 620px) {
    .cl-home .cl-hero__tech-pattern { display: none; }
}

/* Keep all four platform statistics on one row on phones. */
@media (max-width: 620px) {
    .cl-home .cl-stats-bar__inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding-block: 18px;
    }
    .cl-home .cl-stats-bar__item {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding: 0;
        gap: 8px;
    }
    .cl-home .cl-stats-bar__item i {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 9px;
        font-size: .95rem;
    }
    .cl-home .cl-stats-bar__item strong {
        font-size: clamp(.95rem, 4vw, 1.2rem);
        white-space: nowrap;
        letter-spacing: -.035em;
    }
    .cl-home .cl-stats-bar__item span {
        font-size: .5rem;
        letter-spacing: .02em;
        line-height: 1.5;
        overflow-wrap: normal;
    }
}
