/* ==========================================================================
   News Slider Block
   ========================================================================== */

.acf-news-slider {
    position: relative;
    margin-bottom: var(--space-3xl);
}

/* Swiper wrapper */
.news-swiper {
    overflow: hidden;
    padding: 12px 4px;
    margin: -12px -4px;
}

.news-swiper .swiper-wrapper {
    align-items: stretch;
}

.news-swiper .swiper-slide {
    height: auto;
}

/* Card */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--color-text);
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card-img {
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.news-card-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--color-primary);
}

.news-card-excerpt {
    font-size: 15px;
    color: var(--color-secondary);
    line-height: var(--line-height);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navigation — Swiper natif repositionné en dehors du slider */
.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    transition: var(--transition);
}

.swiper-button-prev { left: -50px; }
.swiper-button-next { right: -50px; }

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--color-secondary);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 24px;
    font-weight: 700;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media screen and (max-width: 768px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    .news-card-img {
        height: 180px;
    }

    .news-card-body {
        padding: var(--space-lg);
    }
}
