/* The outer wrapper is the full-width background + positioning context for arrows */
.wp-block-maxon-testimonial-slider {
    position: relative;
    overflow: visible;
}

/* Swiper container clips slides horizontally, auto-height handles vertical */
.wp-block-maxon-testimonial-slider .swiper {
    overflow: hidden;
}

.wp-block-maxon-testimonial-slider .swiper-wrapper {
    transition-property: transform, height;
}

/* All slides stretch to the tallest one */
.wp-block-maxon-testimonial-slider .swiper-wrapper {
    align-items: stretch;
}

.wp-block-maxon-testimonial-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-slide {
    text-align: center;
    padding: 2rem 4rem;
    margin: 0 auto;
    box-sizing: border-box;
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-meta {
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-quote {
    font-size: var(--wp--preset--font-size--xl, 1.375rem);
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* Nav arrows sit on the outer block wrapper — they break out past the text area */
.wp-block-maxon-testimonial-slider .maxon-testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0;
    padding: 0.75rem;
    z-index: 10;
    background-color: var(--wp--preset--color--white);
    border-radius: 100%;
    color: var(--wp--preset--color--mid-grey, #9ca3af);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-nav:hover {
    color: var(--wp--preset--color--dark-grey, #6b7280);
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-prev {
    left: 2rem;
}

.wp-block-maxon-testimonial-slider .maxon-testimonial-next {
    right: 2rem;
}

@media (max-width: 768px) {
    .wp-block-maxon-testimonial-slider .maxon-testimonial-slide {
        padding: 2rem 3rem;
    }

    .wp-block-maxon-testimonial-slider .maxon-testimonial-prev {
        left: 0.5rem;
    }

    .wp-block-maxon-testimonial-slider .maxon-testimonial-next {
        right: 0.5rem;
    }
}
