/**
 * Customer Testimonials - Card Style only.
 * Scoped to .testimonials--cards so the default Slider layout stays unchanged.
 */

 .testimonials--cards {
    overflow: visible;
}

/* Wave path fills follow the section Background Color (SVG paths default to yellow). */
.testimonials--cards.bg-light-yellow .testimonials__top-wave path,
.testimonials--cards.bg-light-yellow .testimonials__bottom-wave path {
    fill: var(--light-yellow);
}

.testimonials--cards.bg-light-green .testimonials__top-wave path,
.testimonials--cards.bg-light-green .testimonials__bottom-wave path {
    fill: var(--light-green);
}

.testimonials--cards.bg-light-pink .testimonials__top-wave path,
.testimonials--cards.bg-light-pink .testimonials__bottom-wave path {
    fill: var(--light-pink);
}

.testimonials--cards.bg-light-blue .testimonials__top-wave path,
.testimonials--cards.bg-light-blue .testimonials__bottom-wave path {
    fill: var(--light-blue);
}

.testimonials--cards.bg-white .testimonials__top-wave path,
.testimonials--cards.bg-white .testimonials__bottom-wave path {
    fill: #ffffff;
}

.testimonials--cards .testimonials__container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.testimonials--cards .testimonials__flex {
    position: relative;
}

.testimonials--cards .testimonials__content {
    text-align: left;
    position: relative;
}

.testimonials--cards .testimonials__cta {
    margin-top: 1.25rem;
}

.testimonials--cards .testimonials__cta .btn {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.testimonials--cards .testimonial-slider-controls {
    justify-content: flex-start;
    margin: 1.25rem 0 0;
}

.testimonials--cards .testimonials__listing {
    position: relative;
    overflow: visible;
}

.testimonials--cards .testimonial {
    background: var(--white);
    border-radius: 1.875rem;
    box-shadow: 0 0.25rem 1.875rem 0 rgba(48, 70, 20, 0.1);
    padding: 2.1875rem 1.875rem;
    color: var(--text-color);
    width: 100%;
    max-width: 35.3125rem;
    margin: 0 auto;
}

.testimonials--cards .testimonial__logo {
    width: 100%;
    max-width: 12.5rem;
    height: 7.5rem;
    margin: 0 auto 1.5625rem;
    border-radius: 0.9375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials--cards .testimonial__logo-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.testimonials--cards .testimonial__stars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonials--cards .testimonial__star {
    width: 1.375rem;
    height: 1.375rem;
    display: inline-block;
    background-color: var(--heading-color);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.testimonials--cards .testimonial__description {
    margin-bottom: 1.5rem;
}

.testimonials--cards .testimonial__description p {
    font-family: var(--secondary-font);
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--text-color);
    margin: 0;
}

.testimonials--cards .testimonial__info h4 {
    font-size: 1.5rem;
    padding-bottom: 0.625rem;
}

.testimonials--cards .testimonial__info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--dark-teal, #1ba69c);
}

/* Annotation: "Good things are being said!" pointing at the card stack */
.testimonials--cards .testimonials__annotation {
    display: none;
}

.testimonials--cards .testimonials__annotation .btn-action {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    width: 12rem;
    transform: rotate(-12deg);
    color: var(--heading-color);
    text-align: left;
}

.testimonials--cards .testimonials__annotation .btn-action svg {
    position: absolute;
    left: auto;
    right: -6.5rem;
    top: 2.25rem;
    width: 7.5rem;
    height: auto;
    transform: scaleX(-1) rotate(28deg);
    transform-origin: center;
}

.testimonials--cards .testimonials__annotation .btn-action path {
    fill: var(--dark-teal, #1ba69c);
}

.testimonials--cards.bg-light-yellow .testimonials__annotation .btn-action path {
    fill: #f8dd9f;
}

.testimonials--cards.bg-light-pink .testimonials__annotation .btn-action path {
    fill: var(--dark-teal, #1ba69c);
}

.testimonials--cards.bg-light-blue .testimonials__annotation .btn-action path {
    fill: #f9b0ac;
}

/* Stacked peek: current + next two cards offset down-right like Figma */
.testimonials--cards .testimonial-slider-wrap {
    position: relative;
    padding-right: 5rem;
    padding-bottom: 6.5rem;
    overflow: visible;
}

.testimonials--cards .testimonial-slider-wrap .slick-list {
    overflow: visible !important;
    padding: 0 !important;
}

.testimonials--cards .testimonial-slider-wrap .slick-track {
    display: flex;
    align-items: stretch;
}

.testimonials--cards .testimonial-slider-wrap .slick-slide {
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    transform: none;
}

.testimonials--cards .testimonial-slider-wrap .slick-slide.slick-current {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    z-index: 3;
}

.testimonials--cards .testimonial-slider-wrap .slick-slide.slick-current + .slick-slide {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    pointer-events: none;
    transform: translateX(calc(-100% + 4.75rem)) translateY(3.25rem) rotate(2deg);
}

.testimonials--cards .testimonial-slider-wrap .slick-slide.slick-current + .slick-slide + .slick-slide {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: none;
    transform: translateX(calc(-200% + 9.5rem)) translateY(6.5rem) rotate(3.5deg);
}

@media (min-width: 768px) {
    .testimonials--cards .testimonials__content {
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .testimonials--cards .testimonials__listing {
        width: 100%;
        margin-left: 0;
    }

    .testimonials--cards .testimonial {
        width: 35.3125rem;
        max-width: 100%;
    }

    .testimonials--cards .testimonial__description p {
        font-size: 1.25rem;
    }

    .testimonials--cards .testimonial__info h4 {
        font-size: 1.75rem;
    }

    .testimonials--cards .testimonials__annotation {
        display: block;
        position: absolute;
        left: 42%;
        bottom: 1.5rem;
        z-index: 5;
        width: 12rem;
        pointer-events: none;
    }
}

@media (min-width: 1200px) {
    .testimonials--cards .testimonials__container {
        padding-left: 4rem;
        padding-right: 4rem;
    }

    .testimonials--cards .testimonials__flex {
        flex-direction: row;
        align-items: center;
        gap: 3.125rem;
    }

    .testimonials--cards .testimonials__content {
        flex: 0 1 42rem;
        width: auto;
        max-width: 42rem;
        text-align: left;
    }

    .testimonials--cards .testimonials__listing {
        flex: 1 1 38rem;
        width: auto;
        min-width: 0;
        position: relative;
    }

    .testimonials--cards .testimonial-slider-controls {
        margin-top: 1.25rem;
    }

    .testimonials--cards .testimonial__description p {
        font-size: 1.5rem;
        min-height: 12.5rem;
    }

    .testimonials--cards .testimonials__annotation {
        left: 38%;
        bottom: 18%;
        transform: translateX(-50%);
    }

    .testimonials--cards .testimonial-slider-wrap {
        padding-right: 6.5rem;
        padding-bottom: 7.5rem;
    }

    .testimonials--cards .testimonial-slider-wrap .slick-slide.slick-current + .slick-slide {
        transform: translateX(calc(-100% + 5.25rem)) translateY(3.75rem) rotate(2deg);
    }

    .testimonials--cards .testimonial-slider-wrap .slick-slide.slick-current + .slick-slide + .slick-slide {
        transform: translateX(calc(-200% + 10.5rem)) translateY(7.5rem) rotate(3.5deg);
    }
}

@media (min-width: 1600px) {
    .testimonials--cards .testimonials__flex {
        gap: 3.125rem;
    }

    .testimonials--cards .testimonials__content {
        max-width: 46rem;
        flex-basis: 46rem;
    }

    .testimonials--cards .testimonials__annotation {
        left: 40%;
        bottom: 16%;
    }
}
