/* ============================================
   SECTION: ABA Therapy — Activities
   Header (heading left, lede right) + a row of 5 small
   activity cards. The cards fit 1240 exactly on desktop
   and scroll horizontally on narrower screens.
   ============================================ */

.aba-activities {
    padding: 80px var(--section-side-padding);
    background: var(--color-white);
    overflow: hidden;
}

.aba-activities__inner {
    max-width: var(--container-max);
    margin-inline: auto;
}

/* ----- Header (heading left, lede right) ----- */
.aba-activities__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 56px;
}

.aba-activities__heading-group {
    flex: 0 1 610px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aba-activities__heading {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: var(--font-weight-normal);
    line-height: 50px;
    letter-spacing: -1.26px;
    color: var(--color-text-heading);
    margin: 0;
}

.aba-activities__heading .accent-script {
    color: var(--color-primary);
}

.aba-activities__lede {
    flex: 0 1 400px;
    margin-top: 30px;             /* aligns the lede top near the heading top */
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text-body);
}

/* ----- Cards row ----- */
.aba-activities__cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 4px;                 /* room for the card outline */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Snap points align to the border edge, which would cancel the padding
       above and clip the first card's outline — keep it in the snap port. */
    scroll-padding-inline: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.aba-activities__cards::-webkit-scrollbar {
    display: none;
}

.aba-activity-card {
    flex: 0 0 232px;
    min-height: 312px;
    padding: 24px;
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.aba-activity-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    margin-bottom: 40px;
}

/* Circle background colors (icons are just the glyph) */
.aba-activity-card__icon--yellow { background: #ffda8c; }
.aba-activity-card__icon--pink   { background: #ff98c6; }
.aba-activity-card__icon--blue   { background: #8cdcff; }
.aba-activity-card__icon--coral  { background: #ff6485; }
.aba-activity-card__icon--green  { background: #76f6ab; }

.aba-activity-card__text {
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: var(--font-weight-medium);
    line-height: 32px;
    color: var(--color-text-heading);
    margin: 0;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .aba-activities__header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }
    /* Stacked, the desktop flex-basis would set the *height* of each block
       (610px / 400px) instead of its width — sizing them to their content. */
    .aba-activities__heading-group,
    .aba-activities__lede {
        flex: 0 1 auto;
    }
    .aba-activities__lede {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .aba-activities {
        padding: 56px var(--section-side-padding);
    }
    .aba-activities__heading {
        font-size: 32px;
        line-height: 38px;
    }
}
