.testimonial-slider {
    position: relative;
    min-height: clamp(360px, 34vw, 560px);
    padding: clamp(2rem, 5vw, 4rem) 0;
    overflow: hidden;
}

.testimonial-slider__background {
    position: absolute;
    inset: -12% 0;
    background-image: var(--testimonial-slider-bg);
    background-image: var(--testimonial-slider-bg-set, var(--testimonial-slider-bg));
    background-position: center;
    background-size: cover;
    will-change: transform;
}

.testimonial-slider__container {
    position: relative;
    z-index: 2;
    display: flex;
}

.testimonial-slider--position-left .testimonial-slider__container {
    justify-content: flex-start;
}

.testimonial-slider--position-center .testimonial-slider__container {
    justify-content: center;
}

.testimonial-slider--position-right .testimonial-slider__container {
    justify-content: flex-end;
}

.testimonial-slider__card {
    position: relative;
    width: min(100%, 900px);
    min-height: clamp(360px, 28vw, 460px);
    padding: clamp(3rem, 5vw, 4.5rem) clamp(3rem, 5vw, 7.5rem);
    background: #62cbc9;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
    color: #ffffff;
    text-align: center;
}

.testimonial-slider__card::before {
    content: "";
    position: absolute;
    inset: 30px;
    border: 3px solid #FFFFFF47;
    pointer-events: none;
}

.testimonial-slider__title {
    margin: 0;
    color: #ffffff;
    font-family: var(--font-family-heading);
}

.testimonial-slider__intro {
    margin: 0.75rem 0 0;
    color: #ffffff;
}

.testimonial-slider__separator {
    display: block;
    width: min(100%, 520px);
    height: 2px;
    margin: 1rem auto 1.75rem;
    background: #FFFFFF47;
}

.testimonial-slider__swiper {
    position: relative;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.testimonial-slider__swiper:active {
    cursor: grabbing;
}

.testimonial-slider__slide {
    height: auto;
}

.testimonial-slider__quote {
    color: #ffffff;
    font-style: italic;
    font-size: 1.2rem;
}

.testimonial-slider__quote > *:first-child {
    margin-top: 0;
}

.testimonial-slider__quote > *:last-child {
    margin-bottom: 0;
}

.testimonial-slider__author {
    display: grid;
    gap: 0.25rem;
    margin-top: clamp(1.5rem, 3vw, 2rem);
    color: #ffffff;
    text-transform: uppercase;
}

.testimonial-slider__name {
    color: #ffffff;
    letter-spacing: 0.12em;
}

.testimonial-slider__meta {
    color: #ffffff;
    text-transform: none;
}

.testimonial-slider__arrow {
    position: absolute;
    top: 58%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.testimonial-slider__arrow:hover,
.testimonial-slider__arrow:focus-visible {
    opacity: 0.7;
    transform: translateY(-50%) scale(1.08);
}

.testimonial-slider__arrow--prev {
    left: 3rem;
}

.testimonial-slider__arrow--next {
    right: 3rem;
}

.testimonial-slider__arrow span {
    font-size: 3rem;
    line-height: 1;
    opacity: .6;
}

.testimonial-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-slider__dots .swiper-pagination-bullet {
    width: 0.35rem;
    height: 0.35rem;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-slider__dots .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 767px) {
    .testimonial-slider {
        min-height: auto;
        padding: 3rem 0;
    }

    .testimonial-slider__container {
        justify-content: center;
    }

    .testimonial-slider__card {
        min-height: 340px;
        padding: 3rem 3.5rem;
    }

    .testimonial-slider__card::before {
        inset: 12px;
    }

    .testimonial-slider__arrow--prev {
        left: 1rem;
    }

    .testimonial-slider__arrow--next {
        right: 1rem;
    }
}
