/* ============================================================
   Soofos homepage — per-page styles
   Enqueued only on the front page via soofos_enqueue_page_styles().

   Targets the native Gutenberg DOM produced by
   inc/public-page-migrations/home.php (v7, decisions H1 B "Best of both"
   + H2 B ".nl photo tiles") plus the server-rendered
   [soofos_home_category_tiles] shortcode (inc/marketing.php) and the
   soofos/course-tabs block. The course card itself is styled by the shared
   card stylesheet; this file only lays the grid out.

   IMPORTANT — this classic theme has no theme.json, so WordPress wraps the
   children of EVERY core group in `.wp-block-group__inner-container`. Every
   grid/flex/max-width container rule below therefore targets
   `> .wp-block-group__inner-container`, never the block element itself
   (same convention as plus.css / about.css).

   All colours, radii, shadows and fonts come from tokens.css. Darker tile
   and overlay shades are mixed from tokens with color-mix().
   Behaviour lives in assets/js/home.js.
   ============================================================ */

.sf-home-page,
.sf-home-page * { box-sizing: border-box; }

.sf-home-page {
    font-family: var(--font);
    color: var(--body);
    overflow-x: hidden;
}

/* Neutralise core default block margins; each section owns its own spacing.
   :where() keeps specificity at zero so the rules below always win. */
.sf-home-page :where(p, h1, h2, h3, ul, li, figure, summary, details) { margin: 0; }
.sf-home-page :where(.wp-block-image, .wp-block-buttons, .wp-block-list, .wp-block-search) { margin: 0; }
.sf-home-page :where(.wp-block-group__inner-container) > * { margin-block-start: 0; }

.sf-home-page a { text-decoration: none; }

/* ---------- Shared pieces ---------- */

.sf-home-kicker {
    align-self: flex-start;
    background: var(--blue-fill);
    color: var(--deep-blue);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--r-pill);
}

/* Buttons — core wraps every button as .wp-block-button > a.wp-block-button__link */
.sf-home-page .wp-block-button.sf-home-btn { margin: 0; }

.sf-home-page .sf-home-btn .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--r-pill);
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.sf-home-page .sf-home-btn--convert .wp-block-button__link {
    background: var(--red);
    color: var(--white);
    font-size: 16px;
    padding: 15px 32px;
    box-shadow: var(--soofos-shadow-red-cta);
}

.sf-home-page .sf-home-btn--convert .wp-block-button__link:hover,
.sf-home-page .sf-home-btn--convert .wp-block-button__link:focus-visible {
    background: var(--red-hover);
    color: var(--white);
}

.sf-home-page .sf-home-btn--outline .wp-block-button__link {
    background: var(--white);
    border: 2px solid var(--card-border);
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    padding: 13px 28px;
}

.sf-home-page .sf-home-btn--outline .wp-block-button__link:hover,
.sf-home-page .sf-home-btn--outline .wp-block-button__link:focus-visible {
    border-color: var(--blue);
    color: var(--ink);
}

.sf-home-page .sf-home-btn--blue .wp-block-button__link {
    background: var(--blue);
    color: var(--white);
    font-size: 14px;
    padding: 13px 28px;
}

.sf-home-page .sf-home-btn--blue .wp-block-button__link:hover,
.sf-home-page .sf-home-btn--blue .wp-block-button__link:focus-visible {
    background: var(--ink);
    color: var(--white);
}

.sf-home-page .sf-home-btn--light .wp-block-button__link {
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    padding: 13px 26px;
}

.sf-home-page .sf-home-btn--light .wp-block-button__link:hover,
.sf-home-page .sf-home-btn--light .wp-block-button__link:focus-visible {
    background: var(--blue-fill);
    color: var(--ink);
}

/* Visible keyboard focus (WCAG 2.4.7). --deep-blue holds >=5.9:1 on the white
   and --page surfaces; the dark --ink panels switch the ring to white. */
.sf-home-page :is(a, button, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--deep-blue);
    outline-offset: 2px;
}

.sf-home-page :is(.sf-home-usp__stage, .sf-home-tiles) :is(a, button, summary, [tabindex]):focus-visible {
    outline-color: var(--white);
}


/* Accent words in headings (.nl style). --blue-hover keeps 3:1+ on the pale
   section backgrounds for large text; --blue itself is ~2.8:1 there. */
.sf-home-accent { color: var(--blue-hover); }

/* .nl diagonal section edges: each marked section paints a skewed band of its
   own background over the bottom of the section above. Content sits above
   the band (z-index), so no text is ever clipped. */
.sf-home-diag { position: relative; }

.sf-home-diag::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 56px;
    background: inherit;
    transform: skewY(-1.6deg);
    pointer-events: none;
}

.sf-home-diag > .wp-block-group__inner-container {
    position: relative;
    z-index: 1;
}

/* Section headings shared by the centred sections. */
.sf-home-new__heading,
.sf-home-usp__heading {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.6px;
    color: var(--ink);
    text-align: center;
}

.sf-home-new__sub,
.sf-home-usp__sub {
    max-width: 760px;
    margin: 12px auto 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--muted);
    text-align: center;
}

/* ============================================================
   1. Hero — centred .nl hero with the big search (H1 B)
   ============================================================ */

.sf-home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--white) 0%, var(--blue-tint) 55%, var(--blue-fill) 100%);
}

.sf-home-hero__swoosh {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--blue);
    opacity: .85;
    pointer-events: none;
}

.sf-home-hero > .wp-block-group__inner-container {
    position: relative;
    padding: 96px 0 72px;
}

/* Copy, tiles and the trust/CTA block paint above the swoosh. */
.sf-home-hero__inner,
.sf-home-hero__tiles,
.sf-home-hero__after {
    position: relative;
    z-index: 1;
}

/* The search block sits above the tile carousel so its suggestion list
   (portal-quicksearch.js) is never painted under the tiles. */
.sf-home-hero__inner { z-index: 2; }

.sf-home-hero__inner > .wp-block-group__inner-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sf-home-hero__title {
    font-size: 50px;
    font-weight: 800;
    line-height: 55px;
    color: var(--ink);
}

.sf-home-hero__lead {
    max-width: 640px;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: var(--muted);
}

/* Search: one pill, field + button inside. The focus ring sits on the pill. */
.sf-home-search {
    position: relative; /* anchors the suggestion list (portal-quicksearch.js) */
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 680px;
    margin-top: 23px;
    padding: 6px 6px 6px 20px;
    background: var(--white);
    border: 1.5px solid var(--card-border);
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-card);
}

.sf-home-search:focus-within {
    border-color: var(--blue);
    box-shadow: var(--shadow-card), var(--soofos-shadow-focus);
}

.sf-home-search__icon {
    display: inline-flex;
    flex: none;
    color: var(--deep-blue);
}

.sf-home-search__icon svg { width: 22px; height: 22px; }

.sf-home-page .sf-home-search__input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font-family: var(--font);
    font-size: 16px; /* 16px stops iOS zooming on focus */
    font-weight: 600;
    color: var(--ink);
    text-overflow: ellipsis;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.sf-home-search__input::placeholder { color: var(--muted); opacity: 1; }
.sf-home-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.sf-home-page .sf-home-search__button {
    flex: none;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--blue);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease;
}

.sf-home-page .sf-home-search__button:hover,
.sf-home-page .sf-home-search__button:focus-visible { background: var(--blue-hover); }

.sf-home-search__hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--error);
}

.sf-home-search__hint:empty { display: none; }

/* With a hint the pill wraps: keep it inside the pill's rounded box. */
.sf-home-search:has(.sf-home-search__hint:not(:empty)) {
    flex-wrap: wrap;
    border-radius: var(--r-card);
    padding-bottom: 10px;
}

.sf-home-hero__popular {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
}

.sf-home-hero__popular-label {
    font-weight: 800;
    color: var(--muted);
}

.sf-home-hero__popular a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    background: var(--white);
    border: 1.5px solid var(--card-border);
    border-radius: var(--r-pill);
    font-weight: 700;
    color: var(--ink);
    transition: border-color .18s ease, color .18s ease;
}

.sf-home-hero__popular a:hover {
    border-color: var(--blue);
    color: var(--deep-blue);
}

/* Hero v9: search only above the rows; trust row + CTAs below them. */
.sf-home-hero__after > .wp-block-group__inner-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sf-home-hero__ctas > .wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 20px;
    margin-top: 28px;
}

.sf-home-page .sf-home-hero .sf-home-btn--convert .wp-block-button__link {
    min-height: 52px;
    font-size: 15px;
    font-weight: 800;
    padding: 0 40px;
}

.sf-home-hero__browse a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 800;
    color: var(--deep-blue);
}

.sf-home-hero__browse a:hover { color: var(--blue-hover); }

.sf-home-page .sf-home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.sf-home-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
}

.sf-home-hero__trust svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--deep-blue);
}

.sf-home-hero__trust li:nth-child(2) svg { color: var(--star); }

/* ============================================================
   2. Category photo tiles (H2 B) — [soofos_home_category_tiles]
   ============================================================ */

.sf-home-hero__tiles { margin-top: 64px; }

.sf-home-tiles {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--soofos-marquee-fade-color) var(--soofos-marquee-fade-start), var(--soofos-marquee-fade-color) var(--soofos-marquee-fade-end), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--soofos-marquee-fade-color) var(--soofos-marquee-fade-start), var(--soofos-marquee-fade-color) var(--soofos-marquee-fade-end), transparent);
}

.sf-marquee__lane { overflow: hidden; }
.sf-marquee__lane + .sf-marquee__lane { margin-top: 14px; }

.sf-marquee__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: sf-marquee-left var(--sf-marquee-duration, 110s) linear infinite;
}

.sf-marquee__track--right { animation-name: sf-marquee-right; }

.sf-marquee:hover .sf-marquee__track,
.sf-marquee:focus-within .sf-marquee__track,
.sf-marquee.is-paused .sf-marquee__track { animation-play-state: paused; }

/* Pause / play control (home.js unhides it; WCAG 2.2.2). */
.sf-home-tiles-wrap { position: relative; }

.sf-marquee__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 10px 20px 0 auto;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.sf-marquee__toggle[hidden] { display: none; }
.sf-marquee__toggle:hover { color: var(--deep-blue); }
.sf-marquee__toggle svg { width: 18px; height: 18px; }
.sf-marquee__toggle-icon { display: inline-flex; }
.sf-marquee__toggle-icon--play,
.sf-marquee__toggle[aria-pressed="true"] .sf-marquee__toggle-icon--pause { display: none; }
.sf-marquee__toggle[aria-pressed="true"] .sf-marquee__toggle-icon--play { display: inline-flex; }

/* Half the duplicated track plus half of the seam gap keeps the loop seamless. */
@keyframes sf-marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 7px)); }
}

@keyframes sf-marquee-right {
    from { transform: translateX(calc(-50% - 7px)); }
    to   { transform: translateX(0); }
}

.sf-marquee__tile {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 280px;
    height: 150px;
    flex: none;
    border-radius: var(--r-card);
    padding: 14px 14px 14px 22px;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease;
}

.sf-marquee__tile:hover { transform: translateY(-2px); }

/* Rotating brand tones for tiles without an editor colour (no red or green:
   those mean purchase and completion). Each keeps >= 4.5:1 with white text. */
.sf-home-tile--c1 { background-color: var(--deep-blue); }
.sf-home-tile--c2 { background-color: var(--purple-ink); }
.sf-home-tile--c3 { background-color: color-mix(in srgb, var(--orange-ink) 82%, var(--ink)); }
.sf-home-tile--c4 { background-color: color-mix(in srgb, var(--lightblue-ink) 80%, var(--ink)); }
.sf-home-tile--c5 { background-color: var(--ink-2); }
.sf-home-tile--c6 { background-color: var(--yellow-ink); }

.sf-marquee__tile-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: left;
}

.sf-marquee__tile-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--white);
}

.sf-home-tile__photo {
    display: block;
    width: 118px;
    height: 122px;
    flex: none;
    border-radius: var(--r-card-sm);
    object-fit: cover;
    background-color: var(--soofos-overlay-white-15);
}

/* The rows keep looping on every screen (Klaas: "an always continuing line");
   hover, focus or the pause button stop them. Reduced motion gets a still,
   swipeable row instead. The loop copies only exist for the animation. */
@media (prefers-reduced-motion: reduce) {
    .sf-marquee__track { animation: none; }
    .sf-marquee__toggle { display: none; }

    .sf-marquee__lane {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding: 2px 20px 6px;
        scroll-padding-inline: 20px;
    }

    .sf-marquee__tile { scroll-snap-align: start; }
    .sf-marquee__tile:hover { transform: none; }
    .sf-marquee__tile[aria-hidden="true"] { display: none; }

    .sf-home-tiles {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Touch-only: swipe is the affordance, so drop the scrollbar. */
@media (hover: none) {
    .sf-marquee__lane { scrollbar-width: none; }
    .sf-marquee__lane::-webkit-scrollbar { display: none; }
}

/* The header search hides while the hero search is on screen (home.js sets
   the class), so one screen never shows two search fields. Desktop only:
   on small screens the header search is the compact icon. */
@media (min-width: 900px) {
    #sf-nav .nv-search { transition: opacity .2s ease, visibility .2s ease; }

    .sf-home-hero-search-visible #sf-nav .nv-search {
        visibility: hidden;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sf-nav .nv-search { transition: none; }
}

/* ============================================================
   3. "Explore our online courses" (soofos/course-tabs as chips)
   ============================================================ */

.sf-home-new { background: var(--blue-fill); }

.sf-home-new > .wp-block-group__inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 32px 72px;
}

/* "View all courses" sits centred under the grid. It lives inside the tab
   bar in the markup, so it is positioned against the block root. */
.sf-home-new .sf-course-tabs {
    position: relative;
    margin-top: 26px;
    padding-bottom: 68px;
}

.sf-home-new .sf-course-tabs__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.sf-home-new .sf-course-tabs__tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    scrollbar-width: none;
}

.sf-home-new .sf-course-tabs__tabs::-webkit-scrollbar { display: none; }

/* Edge fades say "this row scrolls" (phones; set by home.js). */
.sf-course-tabs__tabs.has-more-end {
    -webkit-mask-image: linear-gradient(90deg, var(--soofos-marquee-fade-color) calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, var(--soofos-marquee-fade-color) calc(100% - 28px), transparent);
}

.sf-course-tabs__tabs.has-more-start {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--soofos-marquee-fade-color) 28px);
    mask-image: linear-gradient(90deg, transparent, var(--soofos-marquee-fade-color) 28px);
}

.sf-course-tabs__tabs.has-more-start.has-more-end {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--soofos-marquee-fade-color) 28px, var(--soofos-marquee-fade-color) calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, transparent, var(--soofos-marquee-fade-color) 28px, var(--soofos-marquee-fade-color) calc(100% - 28px), transparent);
}

.sf-home-new .sf-course-tabs__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-height: 40px;
    padding: 0 18px;
    white-space: nowrap;
    background: var(--white);
    border: 1.5px solid var(--card-border);
    border-radius: var(--r-pill);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.sf-home-new .sf-course-tabs__tab:hover { border-color: var(--blue); }

.sf-home-new .sf-course-tabs__tab.is-active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    font-weight: 800;
}

.sf-home-new .sf-course-tabs__all {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 800;
    color: var(--deep-blue);
    white-space: nowrap;
}

.sf-home-new .sf-course-tabs__all:hover { color: var(--blue-hover); }

/* Placeholder for a not-yet-fetched panel: a card-height shimmer row so the
   tab swap lands on something with the same footprint as the real grid. */
.sf-course-tabs__loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    min-height: 600px;
}

.sf-course-tabs__loading::before,
.sf-course-tabs__loading::after {
    content: "";
    display: block;
    min-height: 290px;
    border: 1px solid var(--card-border);
    border-radius: var(--r-card);
    background: linear-gradient(90deg, var(--blue-fill) 25%, var(--blue-tint) 50%, var(--blue-fill) 75%);
    background-size: 400% 100%;
    animation: sf-course-tabs-shimmer 1.4s ease-in-out infinite;
}

@keyframes sf-course-tabs-shimmer {
    from { background-position: 100% 0; }
    to   { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sf-course-tabs__loading::before,
    .sf-course-tabs__loading::after {
        animation: none;
        background: var(--white);
    }
}

.sf-course-tabs__error {
    margin: 0;
    padding: 24px 0;
    color: var(--muted);
    text-align: center;
}

/* Grid layout only; the card itself is the shared course-card partial. */
.sf-home-new .soofos-course-grid {
    gap: 20px !important;
    align-items: stretch;
}

/* min-width: 0 lets the 1fr tracks shrink below a card's min-content width. */
.sf-home-new .course-card-wrap { height: 100%; min-width: 0; }
.sf-home-new .course-card { height: 100%; }

/* ============================================================
   4. "Learning that fits real life" — .nl photo carousel
   ============================================================ */

.sf-home-usp { background: var(--white); }

.sf-home-usp > .wp-block-group__inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 32px;
}

.sf-home-usp__sub { margin-bottom: 32px; }

.sf-home-usp__stage {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: var(--r-card-lg);
    background: var(--ink);
    box-shadow: var(--soofos-shadow-navy-stage);
    overflow: hidden;
}

/* The scrolling element is the group's inner container (see file header).
   Scroll-snap keeps the carousel usable with JavaScript disabled. */
.sf-home-usp__track > .wp-block-group__inner-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sf-home-usp__track > .wp-block-group__inner-container::-webkit-scrollbar { display: none; }

.sf-home-usp__slide {
    /* Exactly one track-width per slide. */
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex: none;
    scroll-snap-align: start;
}

.sf-home-usp__slide > .wp-block-group__inner-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 56px 64px 76px;
}

/* Photo fills the slide; an ink wash on the copy side keeps white text AA. */
.sf-home-page .sf-home-usp__img {
    position: absolute;
    inset: 0;
    margin: 0;
}

.sf-home-usp__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-home-usp__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        color-mix(in srgb, var(--ink) 94%, transparent) 0%,
        color-mix(in srgb, var(--ink) 80%, transparent) 42%,
        color-mix(in srgb, var(--ink) 8%, transparent) 78%);
}

.sf-home-usp__copy {
    position: relative;
    z-index: 1;
    max-width: 470px;
}

.sf-home-usp__copy > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.sf-home-usp__kicker {
    font-size: 15px;
    font-weight: 800;
    color: var(--on-navy-strong);
}

.sf-home-usp__title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--white);
}

.sf-home-usp__body {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--on-navy-strong);
}

.sf-home-usp__copy .wp-block-buttons { margin-top: 8px; }

/* Controls are injected by home.js — hidden entirely without it.
   Each dot is a 44px button; the visible pip is drawn by ::before. */
.sf-home-usp__dots {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    transform: translateX(-50%);
}

.sf-home-usp__dot {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.sf-home-usp__dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--soofos-overlay-white-85);
    transform: translate(-50%, -50%);
    transition: width .3s ease, background-color .3s ease, border-radius .3s ease;
}

.sf-home-usp__dot.is-active::before {
    width: 24px;
    border-radius: var(--r-pill);
    background: var(--blue);
}

@media (prefers-reduced-motion: reduce) {
    .sf-home-usp__dot::before { transition: none; }
}

.sf-home-usp__nav {
    position: absolute;
    right: 20px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.sf-home-usp__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--glass-white);
    color: var(--deep-blue);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease;
}

.sf-home-usp__arrow:hover { background: var(--white); }

/* ============================================================
   6. Instructors
   ============================================================ */

.sf-home-teachers { background: var(--page); }

.sf-home-teachers > .wp-block-group__inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 32px;
}

.sf-home-teachers__inner > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 1fr .9fr;
    gap: 40px;
    align-items: center;
}

.sf-home-teachers__copy > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.sf-home-teachers__heading {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.6px;
    color: var(--ink);
}

.sf-home-teachers__body {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--muted);
    max-width: 460px;
}

.sf-home-teachers__copy .wp-block-buttons {
    display: flex;
    gap: 14px;
    margin-top: 6px;
}

.sf-home-teachers__fan > .wp-block-group__inner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.sf-home-teacher {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--r-card);
    box-shadow: var(--soofos-shadow-navy-soft);
}

.sf-home-teacher > .wp-block-group__inner-container { padding: 8px 8px 12px; }

.sf-home-teacher:nth-child(1) { transform: rotate(-5deg); }

.sf-home-teacher:nth-child(2) {
    transform: rotate(2deg);
    margin-left: -26px;
    position: relative;
    z-index: 2;
}

.sf-home-teacher:nth-child(3) {
    transform: rotate(-2deg);
    margin-left: -26px;
}

/* The middle card overlaps the third; start the third card's text clear of it. */
.sf-home-teacher:nth-child(3) .sf-home-teacher__name,
.sf-home-teacher:nth-child(3) .sf-home-teacher__field { padding-left: 34px; }

.sf-home-teacher__photo img {
    display: block;
    width: 158px;
    height: 170px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--blue-fill);
}

.sf-home-teacher__name {
    padding: 8px 6px 0;
    font-size: 14px;
    font-weight: 900;
    color: var(--ink);
}

.sf-home-teacher__field {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}

/* ============================================================
   7. Testimonials
   ============================================================ */

.sf-home-quotes { background: var(--page); }

.sf-home-quotes > .wp-block-group__inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 32px;
}

.sf-home-quotes__header > .wp-block-group__inner-container {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.sf-home-quotes__heading {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.4px;
    color: var(--ink);
}

.sf-home-quotes__link { font-size: 14px; font-weight: 800; }
.sf-home-quotes__link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--deep-blue);
}
.sf-home-quotes__link a:hover { color: var(--blue-hover); }

.sf-home-quotes__grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sf-home-quote {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--r-card);
}

.sf-home-quote > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    padding: 22px 24px;
}

.sf-home-quote__stars {
    font-size: 14px;
    font-weight: 800;
    color: var(--amber-ink);
    letter-spacing: 1px;
}

.sf-home-quote__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--ink);
}

.sf-home-quote__author { margin-top: auto; }

.sf-home-quote__author > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-home-quote__avatar img {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--blue-fill);
}

.sf-home-quote__name { font-size: 13px; font-weight: 800; color: var(--ink); }
.sf-home-quote__role { font-size: 13px; font-weight: 700; color: var(--muted); }


/* ============================================================
   7. Three ways to get access + programs / business / teach
   ============================================================ */

.sf-home-access,
.sf-home-product--programs,
.sf-home-product--teach { background: var(--white); }

.sf-home-product--business { background: var(--page); }

.sf-home-access > .wp-block-group__inner-container,
.sf-home-product > .wp-block-group__inner-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 72px 32px;
}

.sf-home-product__inner > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 1.05fr .8fr;
    gap: 56px;
    align-items: center;
}

/* Business and access lead with the image, so the columns flip. */
.sf-home-product--business .sf-home-product__inner > .wp-block-group__inner-container,
.sf-home-access .sf-home-product__inner > .wp-block-group__inner-container {
    grid-template-columns: .8fr 1.05fr;
}

.sf-home-product__copy > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.sf-home-product__heading {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.5px;
    color: var(--ink);
}

.sf-home-product__intro {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--muted);
}

.sf-home-product__copy .wp-block-buttons { margin-top: 4px; }

/* The business photo has a white backdrop; multiply drops it on the tint. */
.sf-home-product--business .sf-home-product__img img { mix-blend-mode: multiply; }

/* aspect-ratio + max-height give the lazy image a fixed box before it loads,
   so nothing below it jumps when it arrives. */
.sf-home-product__img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 440px;
    object-fit: contain;
}

/* .nl +/- accordion (core/details), one open at a time via home.js. */
.sf-home-acc-list { width: 100%; }

.sf-home-acc { border-bottom: 1px solid var(--card-border); }

.sf-home-page .sf-home-acc summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.sf-home-acc summary::-webkit-details-marker { display: none; }
.sf-home-acc summary::marker { content: ""; }

.sf-home-acc summary::before {
    content: "+";
    flex: none;
    width: 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    color: var(--deep-blue);
}

.sf-home-acc[open] summary::before { content: "\2013"; }

.sf-home-acc__body {
    padding: 0 0 16px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--muted);
}

/* Price cards */
.sf-home-prices > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.sf-home-price {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-soft);
}

.sf-home-price--featured {
    border: 2px solid var(--blue);
    box-shadow: var(--shadow-card);
}

.sf-home-price > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 24px 26px;
}

.sf-home-price__name {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.sf-home-price__amount {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.5px;
    color: var(--ink);
}

.sf-home-price__unit {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--muted);
}

.sf-home-price__note {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--muted);
}

.sf-home-price__link { margin-top: auto; padding-top: 8px; }

.sf-home-price__link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 15px;
    font-weight: 800;
    color: var(--deep-blue);
}

.sf-home-price__link a:hover { color: var(--blue-hover); }

.sf-home-prices__note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.sf-home-prices__note svg,
.sf-home-ticks svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--green);
}

/* Teach tick list */
.sf-home-page .sf-home-ticks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.sf-home-ticks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
}

.sf-home-ticks li svg { margin-top: 2px; }

/* Testimonials: Feedback Company score line */
.sf-home-review {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}

.sf-home-review:empty { display: none; }

.sf-home-review__score {
    padding: 3px 10px;
    border-radius: var(--r-btn);
    background: var(--deep-blue);
    color: var(--white);
    font-weight: 900;
}

.sf-home-review strong { color: var(--ink); }

/* ============================================================
   11. FAQ (core/details, single-open via home.js)
   ============================================================ */

.sf-home-faq { background: var(--page); }

.sf-home-faq > .wp-block-group__inner-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 64px 32px;
}

.sf-home-faq__heading {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.4px;
    color: var(--ink);
    text-align: center;
    margin-bottom: 24px;
}

.sf-home-faq__list > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-home-faq__item {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
}

.sf-home-page .sf-home-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 22px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}

.sf-home-faq__item summary::-webkit-details-marker { display: none; }
.sf-home-faq__item summary::marker { content: ""; }

.sf-home-faq__item summary::after {
    content: "+";
    flex: none;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: var(--deep-blue);
    transition: transform .25s ease;
}

.sf-home-faq__item[open] summary::after { transform: rotate(45deg); }

.sf-home-faq__answer {
    padding: 0 22px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    color: var(--muted);
}

.sf-home-faq__answer a {
    color: var(--deep-blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sf-home-faq__answer a:hover { color: var(--ink); }


/* ============================================================
   Responsive
   ============================================================ */

/* ---------- soofos.nl type scale for the home sections (v10) ----------
   Section H2 32/41.6 800, section copy 18/27 400. Placed before the media
   queries so the small-screen sizes below still apply. */
.sf-home-new__heading,
.sf-home-usp__heading,
.sf-home-teachers__heading,
.sf-home-quotes__heading,
.sf-home-product__heading,
.sf-home-faq__heading {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: normal;
}

.sf-home-new__sub,
.sf-home-usp__sub,
.sf-home-teachers__body,
.sf-home-product__intro {
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
}

/* ============================================================
   Intro header (logged-out front page only: body.sf-home-intro)
   ------------------------------------------------------------
   First view: only the centred logo + a quiet "Log in" / "Start"
   ([soofos_home_intro_bar] at the top of the hero). The full header
   (#sf-nav) is taken out of the flow (fixed, so nothing jumps) and waits
   above the viewport; home.js adds html.sf-home-intro-past once the hero
   search has scrolled away and it slides in as a sticky header. Keyboard
   users always see it while focus is inside it (skip link first, then the
   header links, as on every page).
   ============================================================ */

.sf-home-intro-bar { display: none; }

.sf-home-intro .sf-home-intro-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.sf-home-intro-bar__logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.sf-home-intro-bar__logo img {
    display: block;
    width: auto;
    height: 60px;
}

.sf-home-intro-bar__actions {
    position: absolute;
    top: 50%;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
}

.sf-home-page .sf-home-intro-bar__actions a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--r-btn);
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    transition: background-color .18s ease, color .18s ease;
}

.sf-home-page .sf-home-intro-bar__actions a:hover { background: var(--blue-fill); color: var(--deep-blue); }

.sf-home-page .sf-home-intro-bar__actions .sf-home-intro-bar__start {
    background: var(--red);
    color: var(--white);
}

.sf-home-page .sf-home-intro-bar__actions .sf-home-intro-bar__start:hover { background: var(--red-hover); color: var(--white); }

/* The bar replaces the top of the hero padding. */
.sf-home-intro .sf-home-hero > .wp-block-group__inner-container { padding-top: 28px; }
.sf-home-intro .sf-home-hero__inner { margin-top: 48px; }

body.sf-home-intro:has(.sf-home-intro-bar) #sf-frame #sf-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(calc(-100% - 16px)); /* clear of the CTA shadow */
    box-shadow: none;
    transition: transform .28s ease, box-shadow .28s ease;
}

.sf-home-intro-past body.sf-home-intro:has(.sf-home-intro-bar) #sf-frame #sf-nav,
body.sf-home-intro:has(.sf-home-intro-bar) #sf-frame #sf-nav:focus-within {
    transform: none;
    box-shadow: var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) {
    body.sf-home-intro:has(.sf-home-intro-bar) #sf-frame #sf-nav { transition: none; }
}

@media (max-width: 640px) {
    .sf-home-intro .sf-home-intro-bar { min-height: 52px; padding: 0 16px; }
    .sf-home-intro-bar__logo img { height: 40px; }
    .sf-home-intro-bar__actions { right: 12px; gap: 4px; }
    .sf-home-page .sf-home-intro-bar__actions a { padding: 0 10px; font-size: 14px; }
    /* On a phone the bar is centred logo + Log in; Start sits in the hero. */
    .sf-home-page .sf-home-intro-bar__actions .sf-home-intro-bar__start { display: none; }
    .sf-home-intro .sf-home-hero > .wp-block-group__inner-container { padding-top: 16px; }
    .sf-home-intro .sf-home-hero__inner { margin-top: 32px; }
}

@media (max-width: 1024px) {
    .sf-home-hero__title { font-size: 44px; line-height: 1.12; }
    .sf-home-hero__swoosh { opacity: .55; }
    .sf-home-teachers__heading { font-size: 30px; }
}

@media (max-width: 899px) {
    .sf-home-teachers__inner > .wp-block-group__inner-container,
    .sf-home-product__inner > .wp-block-group__inner-container,
    .sf-home-product--business .sf-home-product__inner > .wp-block-group__inner-container,
    .sf-home-access .sf-home-product__inner > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Image after the copy when stacked. */
    .sf-home-product__inner > .wp-block-group__inner-container > .sf-home-product__img { order: 2; }

    .sf-home-product__img img { max-height: 300px; }

    .sf-home-quotes__grid > .wp-block-group__inner-container { grid-template-columns: repeat(2, 1fr); }
    .sf-home-quote:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .sf-home-new .soofos-course-grid { grid-template-columns: repeat(2, 1fr) !important; }

    .sf-home-usp__slide > .wp-block-group__inner-container { padding: 48px 40px 76px; }
}

@media (max-width: 640px) {
    .sf-home-new > .wp-block-group__inner-container,
    .sf-home-usp > .wp-block-group__inner-container,
    .sf-home-teachers > .wp-block-group__inner-container,
    .sf-home-quotes > .wp-block-group__inner-container,
    .sf-home-access > .wp-block-group__inner-container,
    .sf-home-product > .wp-block-group__inner-container,
    .sf-home-faq > .wp-block-group__inner-container {
        padding: 48px 20px;
    }

    .sf-home-new > .wp-block-group__inner-container { padding-top: 16px; }

    .sf-home-hero > .wp-block-group__inner-container { padding: 56px 0 48px; }
    .sf-home-hero__after > .wp-block-group__inner-container { padding: 28px 20px 0; }
    .sf-home-hero__swoosh { opacity: .35; }
    .sf-home-hero__inner > .wp-block-group__inner-container { padding: 0 20px; }
    .sf-home-hero__title { font-size: 34px; line-height: 1.15; }
    .sf-home-hero__lead { font-size: 17px; line-height: 1.55; }

    .sf-home-search { padding-left: 14px; }
    .sf-home-search__icon { display: none; }
    .sf-home-page .sf-home-search__input { padding: 0 6px; }
    .sf-home-page .sf-home-search__button { padding: 0 18px; }

    /* Four popular topics keep the chips to two rows. */
    .sf-home-hero__popular a:nth-of-type(n+5) { display: none; }

    .sf-home-page .sf-home-hero__trust { gap: 8px 18px; }
    .sf-home-hero__trust li { font-size: 14px; }
    .sf-home-hero__tiles { margin-top: 40px; }

    /* Smaller tiles so the next one peeks in. */
    .sf-marquee__tile {
        width: 240px;
        height: 128px;
        padding-left: 16px;
    }

    .sf-home-tile__photo { width: 96px; height: 100px; }

    .sf-home-new__heading,
    .sf-home-usp__heading { font-size: 28px; }

    /* One swipeable row of chips and one swipeable row of cards. */
    .sf-home-new .sf-course-tabs__bar,
    .sf-home-new .sf-course-tabs__tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .sf-home-new .sf-course-tabs__tabs { overflow-x: auto; }

    .sf-home-new .soofos-course-grid {
        grid-template-columns: none !important;
        grid-auto-flow: column;
        grid-auto-columns: 74%;
        gap: 14px !important;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .sf-home-new .soofos-course-grid::-webkit-scrollbar { display: none; }
    .sf-home-new .course-card-wrap { scroll-snap-align: start; }

    .sf-course-tabs__loading {
        grid-template-columns: 74% 74%;
        overflow: hidden;
        min-height: 300px;
    }

    .sf-home-usp__slide > .wp-block-group__inner-container {
        align-items: flex-end;
        min-height: 460px;
        padding: 28px 20px 72px;
    }

    .sf-home-usp__img::after {
        background: linear-gradient(0deg,
            color-mix(in srgb, var(--ink) 95%, transparent) 0%,
            color-mix(in srgb, var(--ink) 85%, transparent) 50%,
            color-mix(in srgb, var(--ink) 15%, transparent) 100%);
    }

    .sf-home-usp__title { font-size: 26px; }
    .sf-home-usp__body { font-size: 15px; }
    .sf-home-usp__nav { display: none; }

    /* Instructor fan: real sizes instead of transform: scale(). */
    .sf-home-teacher__photo img {
        width: 96px;
        height: 108px;
    }

    .sf-home-teacher:nth-child(2),
    .sf-home-teacher:nth-child(3) { margin-left: -16px; }

    .sf-home-teacher:nth-child(3) .sf-home-teacher__name,
    .sf-home-teacher:nth-child(3) .sf-home-teacher__field { padding-left: 24px; }

    .sf-home-quotes__grid > .wp-block-group__inner-container { grid-template-columns: 1fr; }
    .sf-home-quotes__header > .wp-block-group__inner-container { flex-direction: column; gap: 4px; }

    .sf-home-product__heading { font-size: 27px; }
    .sf-home-product__img img { max-height: 220px; }

    .sf-home-prices > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
    .sf-home-price > .wp-block-group__inner-container { padding: 18px 20px; }
    .sf-home-price__amount { font-size: 26px; }

    .sf-home-diag::before { top: -14px; height: 28px; }
}


/* ============================================================
   7b. Programs block ([soofos_home_programs], inc/marketing.php)
   ============================================================ */

.sf-home-programs { background: var(--white); }

.sf-home-programs__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px 72px;
}

.sf-home-programs__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0 0 18px;
}

.sf-home-programs__title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
}

.sf-home-programs__all {
    font-size: 14px;
    font-weight: 800;
    color: var(--deep-blue);
}

.sf-home-programs__continue {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    margin: 0 0 28px;
    padding: 16px 20px;
    text-decoration: none;
    background: var(--blue-fill);
    border: 1px solid var(--blue-border);
    border-radius: var(--r-card);
}

.sf-home-programs__continue-icon,
.sf-home-programs__continue-go { display: inline-flex; color: var(--deep-blue); }

.sf-home-programs__continue-icon svg { width: 28px; height: 28px; }
.sf-home-programs__continue-go { margin-left: auto; }
.sf-home-programs__continue-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sf-home-programs__continue-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.sf-home-programs__continue-title { font-size: 17px; font-weight: 900; color: var(--ink); }

@media (max-width: 600px) {
    .sf-home-programs__inner { padding: 0 16px 48px; }
}
