/*
 * WIJ x Soofos page (soofos.nl only). Layout only; colours, spacing, surfaces and
 * controls use the established Soofos tokens. Loaded by page slug.
 */

.sf-wij {
    background: var(--page);
    color: var(--body);
    font-family: var(--font);
}

.sf-wij .sf-wij__inner {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 var(--soofos-space-xl);
    box-sizing: border-box;
}

.sf-wij .sf-wij__hero {
    padding: var(--soofos-space-3xl) 0;
    background: var(--blue-tint);
    text-align: center;
}

.sf-wij .sf-wij__eyebrow {
    margin: 0 0 var(--soofos-space-md);
    color: var(--deep-blue);
    font-size: .875rem;
    font-weight: var(--soofos-font-weight-black);
}

.sf-wij .sf-wij__title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.25rem, 7vw, 3.75rem);
    font-weight: var(--soofos-font-weight-black);
    letter-spacing: -.03em;
    line-height: 1.08;
}

.sf-wij .sf-wij__lead {
    max-width: 42rem;
    margin: var(--soofos-space-xl) auto 0;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.sf-wij .sf-wij__section-title {
    margin: 0 0 var(--soofos-space-xl);
    color: var(--ink);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: var(--soofos-font-weight-black);
    line-height: 1.2;
}

.sf-wij .sf-wij__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--soofos-space-md);
    margin: var(--soofos-space-2xl) 0 0;
}

.sf-wij .sf-wij__button .wp-block-button__link {
    display: inline-flex;
    min-height: var(--soofos-control-min-height);
    align-items: center;
    justify-content: center;
    padding: var(--soofos-space-md) var(--soofos-space-xl);
    border: var(--soofos-space-2xs) solid var(--blue);
    border-radius: var(--r-btn);
    background: var(--blue);
    color: var(--on-navy);
    font-size: .9375rem;
    font-weight: var(--soofos-font-weight-extrabold);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: background-color .15s ease, border-color .15s ease;
}

.sf-wij .sf-wij__button .wp-block-button__link:hover {
    border-color: var(--blue-hover);
    background: var(--blue-hover);
}

.sf-wij .sf-wij__button .wp-block-button__link:focus-visible {
    outline: var(--soofos-space-2xs) solid var(--deep-blue);
    outline-offset: var(--soofos-space-2xs);
}

.sf-wij .sf-wij__button-secondary .wp-block-button__link {
    border-color: var(--blue-border);
    background: var(--white);
    color: var(--deep-blue);
    box-shadow: none;
}

.sf-wij .sf-wij__button-secondary .wp-block-button__link:hover {
    background: var(--blue-tint);
    border-color: var(--blue);
}

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

@media (prefers-reduced-motion: reduce) {
    .sf-wij .sf-wij__button .wp-block-button__link {
        transition: none;
    }
}

.sf-wij .sf-wij__hero {
    background: var(--blue-tint);
}

.sf-wij .sf-wij__logo {
    max-width: 16rem;
    margin: 0 auto var(--soofos-space-2xl);
}

.sf-wij .sf-wij__hero-card {
    max-width: 32rem;
    margin: 0 auto;
    padding: var(--soofos-space-2xl) var(--soofos-space-xl);
    border-radius: var(--r-card-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.sf-wij .sf-wij__hero-card .sf-wij__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.sf-wij .sf-wij__accent {
    color: var(--blue);
}

.sf-wij .sf-wij__section {
    padding: var(--soofos-space-3xl) 0 0;
}

.sf-wij .sf-wij__topics {
    padding-bottom: var(--soofos-space-3xl);
}

.sf-wij .sf-wij__section-title {
    text-align: center;
}

.sf-wij .sf-wij__course-grid,
.sf-wij .sf-wij__topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: var(--soofos-space-xl);
}

.sf-wij .sf-wij__course,
.sf-wij .sf-wij__topic {
    overflow: hidden;
    border: thin solid var(--card-border);
    border-radius: var(--r-card-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.sf-wij .sf-wij__course-image,
.sf-wij .sf-wij__topic-image {
    margin: 0;
}

.sf-wij .sf-wij__course-image img,
.sf-wij .sf-wij__topic-image img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.sf-wij .sf-wij__course-title,
.sf-wij .sf-wij__topic-title {
    margin: 0;
    padding: var(--soofos-space-lg) var(--soofos-space-xl);
    font-size: 1.0625rem;
    font-weight: var(--soofos-font-weight-black);
    line-height: 1.4;
}

.sf-wij .sf-wij__course-title a,
.sf-wij .sf-wij__topic-title a {
    color: var(--ink);
    text-decoration: none;
}

.sf-wij .sf-wij__course-title a:hover,
.sf-wij .sf-wij__topic-title a:hover {
    color: var(--deep-blue);
}

/* Core groups render a .wp-block-group__inner-container wrapper; without
   this the course and topic grids see a single child and never form columns. */
.sf-wij .sf-wij__course-grid > .wp-block-group__inner-container,
.sf-wij .sf-wij__topic-grid > .wp-block-group__inner-container {
    display: contents;
}
