/* The two programmes. They are a genuine progression — beginners feed into
   the advanced class — so the blocks alternate sides and the second sits on
   a raised panel rather than carrying a decorative number. */

.section-head {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
    padding-block: var(--step) clamp(1.75rem, 4vw, 2.75rem);
}

.section-head h2 {
    font-size: var(--size-section);
    font-weight: 800;
}

.program {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.75rem, 4vw, 4rem);
    padding-block: clamp(2.5rem, 5vw, 4rem);
    border-top: var(--hairline) solid var(--seam);
}

.program:last-of-type {
    border-bottom: var(--hairline) solid var(--seam);
}

.program__body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.program__title {
    font-size: var(--size-title);
    font-weight: 700;
    color: var(--bone);
}

.program__body p {
    color: var(--bone-dim);
    line-height: 1.75;
}

.program__media {
    align-self: stretch;
    min-height: 18rem;
}

.program__media img {
    width: 100%;
    height: 100%;
    max-height: 30rem;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

/* Alternate the reading rhythm without reordering the source. */
.program--flip .program__body {
    order: 2;
}

@media (max-width: 900px) {
    .program {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .program--flip .program__body {
        order: 0;
    }

    .program__media {
        min-height: 0;
        order: 1;
    }

    .program__media img {
        aspect-ratio: 4 / 3;
        max-height: none;
    }
}
