.wp-block-saae-posts-slider.saae-posts-slider {
    --saae-slider-per-view: 3;
    --saae-slider-gap: 32px;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-left: 0px!important;
}

.saae-posts-slider__viewport {
    overflow: hidden;
    width: 100%;
}

.saae-posts-slider__track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.4s ease;
    will-change: transform;
}

.saae-posts-slider__slide {
    flex: 0 0 calc(100% / var(--saae-slider-per-view));
    width: calc(100% / var(--saae-slider-per-view));
    box-sizing: border-box;
    padding: 0 calc(var(--saae-slider-gap) / 2);
}

.saae-posts-slider__slide:first-child {
    padding-left: 0;
}

.saae-posts-slider__slide:last-child {
    padding-right: 0;
}

.saae-posts-slider__card {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.saae-posts-slider__card--static {
    cursor: default;
}

.saae-posts-slider__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.saae-posts-slider__image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.saae-posts-slider__image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.saae-posts-slider__image--placeholder {
    background: #e9ecef;
    width: 100%;
    height: 100%;
    min-height: 320px;
    aspect-ratio: 1 / 1;
}

.saae-posts-slider__term {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #006898;
}

.saae-posts-slider__term--saae-news {
    background: #006898;
    color: #fff;
}

.saae-posts-slider__content {
    display: block;
}

.saae-posts-slider__date {
    margin-bottom: 8px;

    font-family: "Manrope", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #BCBDBF;
}

.saae-posts-slider__title {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.09;
    letter-spacing: -0.05em;
    color: #6774FF;
}

a.saae-posts-slider__card:hover .saae-posts-slider__title {
    text-decoration: underline;
}

/* Nav buttons — stacked on the left, matching .nelios-slider .cb-button-* */
.saae-posts-slider__nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
}

.saae-posts-slider__btn {
    position: absolute;
    left: -60px !important;
    z-index: 10;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;
    background: #6C7BFF;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s ease;
}

.saae-posts-slider__btn--prev {
    top: 50% !important;
    transform: translateY(10%);
}

.saae-posts-slider__btn--next {
    top: 50% !important;
    transform: translateY(-100%);
}

.saae-posts-slider__btn.is-disabled,
.saae-posts-slider__btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .saae-posts-slider__btn--prev,
    .saae-posts-slider__btn--next {
        left: 0 !important;
    }
}

@media (max-width: 640px) {
    .saae-posts-slider__btn {
        width: 40px;
        height: 40px;
    }
}

/* Pagination dots */
.saae-posts-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.saae-posts-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #BCBDBF;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.saae-posts-slider__dot.is-active {
    background: #6774FF;
    transform: scale(1.2);
}

.saae-posts-slider--empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-family: "Manrope", sans-serif;
}

@media (max-width: 640px) {
    .wp-block-saae-posts-slider.saae-posts-slider {
        --saae-slider-gap: 16px;
    }

    .saae-posts-slider__title {
        font-size: 22px;
    }

    .saae-posts-slider__date {
        font-size: 14px;
    }
}
