/* Sectie rond elke categorie */
.blog-section {
    margin: 4rem 0;
}

/* Titel + "All articles" */
.blog-section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.blog-section__title {
    font-size: 2rem;
    margin: 0;
}

.blog-section__more {
    font-size: 0.95rem;
}

/* Slider container */
.blog-section__slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

/* Kaarten */
.blog-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    scroll-snap-align: start;
    background: #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Afbeeldingen – vaste hoogte, zelfde formaat */
.blog-card__image {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card__title {
    font-size: 1.25rem;
    margin-top: 0;
}

.blog-card__meta {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.blog-card__intro {
    margin-bottom: 0;
}

/* Slider controls */
.blog-section__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.blog-section__arrow {
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.blog-section__dots {
    display: flex;
    gap: 0.4rem;
}

.blog-section__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #cbd5e0;
    padding: 0;
    cursor: pointer;
}

.blog-section__dot.is-active {
    background: #2b6cb0;
}

/* Mobiel: kaarten breder maken en slider echt gebruiken */
@media (max-width: 900px) {
    .blog-card {
        flex: 0 0 80%;
    }
}

@media (max-width: 600px) {
    .blog-card {
        flex: 0 0 100%;
    }
}
