.testimonials__wrapper {
    padding: 0 16px;
}

.testimonials__heading {
    text-align: center;
    margin: 0 0 8px;
}

.testimonials__heading h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.testimonials__heading h2 span {
    color: #d4af37;
}

/* "View All Testimonials" link */
.testimonials__heading .btn-tertiary {
    transition: all ease-in-out 0.2s;
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 16px;
}

/* Additional CTA buttons container */
.testimonials__heading .additional-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

/* Restyle the review buttons to be subtle text links, not big pills */
.testimonials__heading .additional-cta-buttons .btn {
    background: none;
    border: none;
    border-radius: 0;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 86, 150, 0.3);
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
}

.testimonials__heading .additional-cta-buttons .btn:hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
    background: none;
}

/* Remove the stacked margin from .btn + .btn inside this container */
.testimonials__heading .additional-cta-buttons .btn + .btn {
    margin-top: 0;
}

.testimonial-slide-item {
    background: #fff;
    border-radius: 14px;
    padding: 20px 20px 24px;
    box-shadow: 0 4px 16px rgba(51, 51, 51, 0.15);
}

.testimonial-slider .slick-list {
    margin: 0 -12px;
    padding: 16px 0;
}

.testimonial-slider .slick-slide {
    margin: 0 12px;
}

.testimonial-slide-item__title {
    position: relative;
    padding-right: 20px;
    font-size: 15px;
    color: var(--paragraph-color);
    font-weight: 400;
    font-style: italic;
}

.testimonial-google-icon {
    position: absolute;
    right: 0;
    top: 0;
    transform: none;
}

.testimonial-slide-review {
    margin: 0 0 12px;
}

.testimonial-slide-item__description p {
    line-height: 1.4em;
    font-size: 15px;
}

.testimonial-slide-item__description {
    max-height: 120px;
    overflow: auto;
    padding-right: 18px;
    margin: 0 0 14px;
}

.testimonial-slider {
    padding: 0 0 50px;
}

.testimonial-slide-item__description::-webkit-scrollbar {
    width: 7px;
}

.testimonial-slide-item__description::-webkit-scrollbar-track {
    background-color: #D8D8D8;
    -webkit-border-radius: 20px;
    border-radius: 20px;
}

.testimonial-slide-item__description::-webkit-scrollbar-thumb {
    -webkit-border-radius: 20px;
    border-radius: 20px;
    background: #818181;
}

.fx-accordion.bg-light-blue + .bg-light-blue {
    padding-top: 0;
}

@media(min-width: 768px) {
    .testimonials__heading {
        text-align: left;
        margin: 0 0 5px;
        padding-right: 32%;
    }

    .testimonials__heading h2 {
        font-size: 32px;
    }

    .testimonials__wrapper {
        padding: 0 42px;
    }

    .testimonial-slider .slick-arrow {
        bottom: unset;
        right: 0;
        left: unset;
        transform: unset;
        top: -32px;
    }

    .testimonial-slider .slick-prev {
        margin-left: 0;
        margin-right: 68px;
    }

    .testimonial-slider .slick-slide {
        margin: 0 14px;
    }

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

    .testimonial-slide-item {
        box-shadow: 0 4px 16px rgba(51, 51, 51, 0.18);
        padding: 22px 22px 28px;
    }

    .testimonial-slide-item__description p {
        font-size: 16px;
    }

    .testimonial-slider {
        padding: 0;
        margin-bottom: -20px;
    }
}

@media(min-width: 1200px) {
    .testimonial-slider.fx-slider .fx-slide {
        display: block;
    }

    .testimonials__heading {
        position: absolute;
        width: 645px;
        left: 50%;
        top: 163px;
        transform: translate(-50%, 0);
        padding: 0 0 0 190px;
        z-index: 1;
    }

    .testimonials__wrapper {
        position: relative;
        height: 547px;
        max-width: 1677px;
        margin: 0 auto;
        width: 95%;
        padding: 0;
    }

    .testimonial-slide {
        width: 350px;
        position: absolute;
        z-index: 1;
    }

    .testimonial-slide:first-child {
        left: 20px;
        top: 0;
    }

    .testimonial-slide:nth-child(2) {
        left: 0;
        bottom: 39px;
    }

    .testimonial-slide:nth-child(3) {
        top: 39px;
        right: 27px;
    }

    .testimonial-slide:nth-child(4) {
        bottom: 0;
        right: 0;
    }

    .testimonial-man-image {
        position: absolute;
        left: -107px;
        top: -58px;
        z-index: -1;
        width: 420px;
    }

    .testimonials__heading h2 span {
        font-size: 120px;
        display: block;
        letter-spacing: -0.02em;
    }

    .testimonials__heading h2 {
        font-size: 35px;
        line-height: 1.9em;
        margin: 0;
    }

    .testimonial-slide-item__description {
        max-height: 112px;
        padding-right: 17px;
    }

    /* "View All" becomes a clean inline link on desktop */
    .testimonials__heading .btn-tertiary {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .testimonials__heading .btn-tertiary:hover {
        color: #d4af37;
    }

    .testimonials__heading .btn-tertiary:hover:after {
        background-color: #d4af37;
    }

    /* Review links: compact, left-aligned in the centered heading */
    .testimonials__heading .additional-cta-buttons {
        align-items: flex-start;
        gap: 4px;
        margin-top: 8px;
    }

    .testimonials__heading .additional-cta-buttons .btn {
        font-size: 12px;
        padding: 2px 0;
    }
}

@media(min-width: 1600px) {
    .testimonial-slide:first-child {
        left: 120px;
    }

    .testimonial-slide:nth-child(3) {
        right: 127px;
    }

    .testimonials__heading h2 {
        font-size: 44px;
        line-height: 1.9em;
        margin: 0;
    }

    .testimonials__heading h2 span {
        font-size: 125px;
        display: block;
        letter-spacing: -0.02em;
    }

    .testimonial-slide {
        width: 385px;
    }

    .testimonials__heading {
        width: 740px;
        padding: 0 0 0 220px;
    }

    .testimonial-man-image {
        left: -150px;
        top: -69px;
        width: auto;
    }
}