.testimonial-slider {
    position: relative;
    padding: 60px 20px;
}

/* Slick structural overrides */
.testimonial-slider .slick-list {
    margin: 0 80px;
    padding: 0;
}

/* Every slide stretches to the height of the tallest one, so short quotes and
   long quotes occupy the same box and the arrows never jump between slides. */
.testimonial-slider .slick-track {
    display: flex;
    align-items: stretch;
}

/* This runs with rows: 1, so slick does not wrap slides in an extra div —
   .testimonial receives the .slick-slide class directly. */
.testimonial-slider .slick-slide {
    float: none;
    height: auto;
    display: flex;
}

.testimonial-slider .testimonial {
    display: flex;
    flex: 1;
}

/* Card layout — single centered column.
   .testimonial-inner stretches to the full slide height as a flex item, so
   justify-content is what vertically centers the quote and attribution. */
.testimonial-slider .testimonial-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    min-width: 0;
}

.testimonial-slider .testimonial-quote {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.testimonial-slider .testimonial-attribution {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-slider .testimonial-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.testimonial-slider .testimonial-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

/* Arrows — positioned relative to the slides wrapper */
.testimonial-slider [class*="testimonial-slides-"] {
    position: relative;
}

.testimonial-slider .slick-prev,
.testimonial-slider .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 66px;
    height: 66px;
    z-index: 10;
}

.testimonial-slider .slick-prev {
    left: 0;
}

.testimonial-slider .slick-next {
    right: 0;
}

.testimonial-slider .slick-prev:focus,
.testimonial-slider .slick-next:focus,
.testimonial-slider .slick-prev:hover,
.testimonial-slider .slick-next:hover {
    outline: none;
    border: none;
    box-shadow: none;
}

.testimonial-slider .slick-prev:before,
.testimonial-slider .slick-next:before {
    content: "";
    display: block;
    width: 66px;
    height: 66px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
}

.testimonial-slider .slick-prev:before {
    background-image: url("prev-arrow.svg");
}

.testimonial-slider .slick-next:before {
    background-image: url("arrow.svg");
}

.testimonial-slider .slick-prev:hover:before,
.testimonial-slider .slick-next:hover:before {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 960px) {
    .testimonial-slider {
        padding: 40px 20px 91px;
    }

    .testimonial-slider .slick-list {
        margin: 0;
    }

    .testimonial-slider .testimonial-inner {
        min-height: unset;
    }

    .testimonial-slider .slick-prev,
    .testimonial-slider .slick-next {
        top: auto;
        transform: none;
        bottom: -81px;
    }
}

@media (max-width: 480px) {
    .testimonial-slider .testimonial-quote {
        font-size: 18px;
    }
}
