/* ===== Article Carousel ===== */
.article-carousel {
    margin-bottom: 4rem;
}

.article-carousel__content-area {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.article-carousel__section-inner {
    margin-bottom: 4rem;
}

.article-carousel__overflow {
    overflow: hidden;
}

/* Header */
.article-carousel__header {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-carousel__header-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: auto !important;
}

.article-carousel__title {
    order: 1;
    margin: 0;
    line-height: 1.2;
}

/* More button */
.article-carousel__more-btn {
    z-index: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    appearance: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    min-width: 5rem;
    gap: 0.5rem;
    transition: background-color 0.3s, transform 0.2s, opacity 0.2s;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 0.75rem 0.75rem 0.75rem 2rem;
    height: 3.75rem;
    font-size: 1rem;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    width: auto !important;
}

.article-carousel__more-btn:active {
    transform: scale(0.97);
}

.article-carousel__more-btn:focus-visible {
    z-index: 10;
    outline: 1px dashed var(--color-blue-100);
    outline-offset: 4px;
}

.article-carousel__more-btn-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-carousel__more-btn-icon {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: background-color 0.3s, transform 0.3s;
    background-color: var(--color-blue-100);
}

.article-carousel__more-btn:hover .article-carousel__more-btn-icon {
    transform: translateX(0.25rem);
    background-color: var(--color-blue-200);
}

.article-carousel__more-btn-icon svg {
    height: 1rem;
    width: 1rem;
    fill: var(--white);
}

/* Cards container */
.article-carousel__cards-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.article-carousel__cards {
    position: relative;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.article-carousel__cards::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .article-carousel__cards {
        display: grid;
        grid-auto-flow: column;
        overflow-x: auto;
    }
}

/* Card */
.article-carousel__card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: auto;
    box-sizing: border-box;
    background-color: var(--white);
    outline: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-width: 360px;
    border-radius: 1.25rem;
    padding: 0;
    box-shadow: none;
    scroll-snap-align: center;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 640px) {
    .article-carousel__card {
        min-width: 400px;
    }
}

@media (min-width: 768px) {
    .article-carousel__card {
        min-width: 360px;
    }
}

.article-carousel__card:active {
    transform: scale(0.97);
}

.article-carousel__card:focus-visible {
    z-index: 10;
    outline: 2px solid var(--color-blue-100);
    outline-offset: 2px;
}

/* Card image */
.article-carousel__card-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    height: auto;
    cursor: pointer;
    border-bottom-right-radius: 1.25rem;
}

.article-carousel__card-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Card body */
.article-carousel__card-body {
    display: flex;
    width: 100%;
    flex: auto;
    flex-direction: column;
    place-content: inherit;
    align-items: inherit;
    height: auto;
    word-break: break-word;
    text-align: left;
    overflow-y: auto;
    -webkit-font-smoothing: subpixel-antialiased;
    position: relative;
    padding: 2rem;
}

.article-carousel__card-title {
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 0;
    line-height: 1.3;
}

/* Meta */
.article-carousel__card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .article-carousel__card-meta {
        flex-direction: row;
        gap: 2rem;
    }
}

.article-carousel__card-date-wrap {
    display: inline-flex;
    align-items: center;
}

.article-carousel__card-date-icon {
    margin-right: 0.5rem;
    height: 1rem;
    width: 1rem;
    fill: var(--dark-pink);
}

.article-carousel__card-date {
    font-size: 0.875rem;
    font-weight: 300;
}

/* Arrow button in card */
.article-carousel__card-arrow {
    z-index: 0;
    display: inline-flex;
    box-sizing: border-box;
    appearance: none;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    gap: 0;
    transition: background-color 0.3s, transform 0.2s, opacity 0.2s;
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    -webkit-font-smoothing: antialiased;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border-bottom-right-radius: 1.25rem;
    border-top-left-radius: 1.25rem;
    background-color: var(--color-blue-100);
    padding: 1rem;
    position: absolute;
    bottom: 0;
    right: 0;
}

.article-carousel__card-arrow-inner {
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: transform 0.3s;
}

.article-carousel__card:hover .article-carousel__card-arrow-inner {
    transform: translateX(0.25rem);
}

.article-carousel__card-arrow svg {
    height: 1rem;
    width: 1rem;
    fill: var(--white);
}

/* ===== Afbeelding placeholder (geen featured image) ===== */
.article-carousel__card-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-blue-100, #d0e4f0);
    opacity: 0.18;
}

/* ===== Lege toestand ===== */
.article-carousel__empty {
    padding: 1rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* ===== Label badge op de kaart ===== */
.article-carousel__card-label {
    display: inline-block;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    background-color: var(--color-blue-100);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
}
