section.wp-block-amphibee-slider-testimony.slider-testimony-block {
    max-width: 100%;
    padding: 40px 0;
    background: #f8f9fa;
    margin: 0 !important;
}

body:not(.block-editor-page) section.wp-block-amphibee-slider-testimony .slider-testimony-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 32px;
    overflow: hidden;
}

section.wp-block-amphibee-slider-testimony .slider-testimony-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 24px;
}

.editor-styles-wrapper section.wp-block-amphibee-slider-testimony .slider-testimony-header {
    padding: 0 32px;
}

section.wp-block-amphibee-slider-testimony .slider-testimony-title {
    font-size: clamp(20px, 4vw, 24px) !important;
    line-height: 1.25 !important;
    font-weight: 500;
    color: var(--gbg-color-primary);
    margin: 0;
    text-wrap: balance;
}

section.wp-block-amphibee-slider-testimony .slider-testimony-title.font-size-large {
    font-size: clamp(24px, 4vw, 40px) !important;
}

section.wp-block-amphibee-slider-testimony .slider-testimony-container {
    position: relative;
    margin: 0 auto;
}

section.wp-block-amphibee-slider-testimony .slider-testimony-slides {
    overflow: visible;
    border-radius: var(--gbg-spacing-sm);
    padding: 0;
    position: relative;
}

/* Navigation Arrows */
section.wp-block-amphibee-slider-testimony .slider-nav-arrows {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

@media screen and (min-width: 998px) {
    section.wp-block-amphibee-slider-testimony .slider-testimony-slides {
        padding: 0 32px;
    }

    section.wp-block-amphibee-slider-testimony .slider-nav-arrows {
        gap: 16px;
    }
}

section.wp-block-amphibee-slider-testimony .slider-nav-arrows[data-visible="false"] {
    display: none;
}

section.wp-block-amphibee-slider-testimony .slider-arrow {
    display: block;
    padding: 0;
    border: none;
    cursor: pointer;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

section.wp-block-amphibee-slider-testimony .slider-arrow svg {
    display: inline-block;
    width: 40px;
    height: 40px;
}

section.wp-block-amphibee-slider-testimony .slider-arrow svg.hidden {
    display: none;
}

@media screen and (min-width: 998px) {
    section.wp-block-amphibee-slider-testimony .slider-arrow svg {
        width: 47px;
        height: 47px;
    }
}


section.wp-block-amphibee-slider-testimony .slider-arrow.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Cards Effect Styles */
section.wp-block-amphibee-slider-testimony .slider-testimony-slides.swiper-cards .swiper-slide {
    border-radius: 16px;
    background: #fff;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
}

@media screen and (min-width: 998px) {
    section.wp-block-amphibee-slider-testimony .slider-testimony-slides.swiper-cards .swiper-slide {
        height: auto;
    }
}

/* Améliorer l'espacement visuel des slides empilées */
section.wp-block-amphibee-slider-testimony .slider-testimony-slides.swiper-cards .swiper-slide:not(.swiper-slide-active) {
    transform-origin: center center;
}

/* Masquer les slides précédentes (à gauche) */
section.wp-block-amphibee-slider-testimony .slider-testimony-slide:has(~ .swiper-slide-prev),
section.wp-block-amphibee-slider-testimony .slider-testimony-slides.swiper-cards .swiper-slide.swiper-slide-prev {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Ajuster l'opacité des slides suivantes pour effet plus doux */
section.wp-block-amphibee-slider-testimony .slider-testimony-slides.swiper-cards .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.7;
}


/* Background Settings Support */
section.wp-block-amphibee-slider-testimony.slider-testimony-block.background-light {
    background-color: var(--gbg-color-light);
}

section.wp-block-amphibee-slider-testimony.slider-testimony-block.background-primary {
    background-color: var(--gbg-color-primary);
}

section.wp-block-amphibee-slider-testimony.slider-testimony-block.background-primary .slider-testimony-title {
    color: var(--gbg-color-light);
}

/* Block Editor Styles */
.editor-styles-wrapper section.slider-testimony-block .block-editor-block-list__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
