/* ─── Hoe Het Werkt Section ──────────────────────────────────────────────────
   Horizontal scroll strip that starts at the Divi row's left content edge and
   bleeds to the right viewport edge. The body already has overflow-x: hidden so
   the page itself never gains a horizontal scrollbar — only this track scrolls.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Outer wrapper ───────────────────────────────────────────────────────── */

.hhw-section {
    overflow: visible;
    position: relative;
}

/* ── Scrollable track ────────────────────────────────────────────────────── */

.hhw-track {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    /* Width is calculated by JS: window.innerWidth - element.getBoundingClientRect().left
       This makes the track fill from its left edge all the way to the viewport right.
       A fallback 100% is set here; JS overrides it on load and resize. */
    width: 100%;
    /* Hide the native scrollbar; interaction via drag (JS) */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* padding-right is set dynamically by JS to stop the last card at the row boundary */
}

.hhw-track::-webkit-scrollbar {
    display: none;
}

.hhw-track.is-dragging {
    cursor: grabbing;
}

/* ── Individual card ─────────────────────────────────────────────────────── */

.hhw-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    /* Right spacing between consecutive cards */
    padding-right: 120px;
    flex-shrink: 0;
}

/* ── Card image ──────────────────────────────────────────────────────────── */

.hhw-item-image {
    width: 250px;
    height: 346px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.hhw-item-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Card text body ──────────────────────────────────────────────────────── */

.hhw-item-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 318px;
    flex-shrink: 0;
}

/* ── Heading ─────────────────────────────────────────────────────────────── */

.hhw-item-titel {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #504d49;
    margin: 0;
    padding: 0;
}

/* ── Description ─────────────────────────────────────────────────────────── */

.hhw-item-beschrijving {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: #504d49;
    margin: 0;
    padding: 0;
}

/* ── Navigation arrows ───────────────────────────────────────────────────── */

.hhw-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.hhw-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid #364940;
    border-radius: 50%;
    background: transparent;
    color: #364940;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s;
}

.hhw-nav-btn:hover {
    background: rgba(54, 73, 64, 0.07);
}

.hhw-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hhw-item {
        gap: 24px;
        padding-right: 40px;
    }

    .hhw-item-image {
        width: 180px;
        height: 250px;
    }

    .hhw-item-body {
        width: 240px;
        gap: 16px;
    }

    .hhw-item-titel {
        font-size: 22px;
    }

    .hhw-item-beschrijving {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hhw-item {
        gap: 16px;
        padding-right: 24px;
    }

    .hhw-item-image {
        width: 140px;
        height: 194px;
    }

    .hhw-item-body {
        width: 200px;
        gap: 12px;
    }

    .hhw-item-titel {
        font-size: 18px;
    }

    .hhw-item-beschrijving {
        font-size: 15px;
    }
}
