
/* =========================================================
   PAYWAVEZ GOOGLE TESTIMONIALS SLIDER
   Typography inherits Montserrat from style.css.
   Heading size inherits the existing .heading h1 rules.
========================================================= */

.testimonial-section {
    position: relative;
    margin-top: 0 !important;
    padding: clamp(78px, 8vw, 125px) clamp(16px, 4vw, 54px) clamp(75px, 8vw, 115px) !important;
    overflow: hidden;
    color: #303238;
}

.testimonial-section *,
.testimonial-section *::before,
.testimonial-section *::after {
    box-sizing: border-box;
}

.testimonial-section__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
}

.testimonial-section__heading {
    margin: 0 auto clamp(42px, 5vw, 68px);
    text-align: center;
}

.testimonial-section__heading h1 {
    margin: 0 auto;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    padding: 0 10px 42px;
}

.testimonial-slider::before,
.testimonial-slider::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 42px;
    width: clamp(24px, 4vw, 72px);
    z-index: 5;
    pointer-events: none;
}

.testimonial-slider::before {
    left: 0;
    background: linear-gradient(90deg, #f6f6f6 0%, rgba(246, 246, 246, 0) 100%);
}

.testimonial-slider::after {
    right: 0;
    background: linear-gradient(270deg, #f6f6f6 0%, rgba(246, 246, 246, 0) 100%);
}

.testimonial-slider .swiper-wrapper {
    align-items: stretch;
}

.testimonial-slider .swiper-slide {
    height: auto;
}

.testimonial-card {
    min-width: 0;
    min-height: 285px;
    height: 100%;
    padding: clamp(22px, 2.1vw, 30px);
    display: flex;
    flex-direction: column;
    border: 1px solid #eceff4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(28, 36, 52, 0.07);
    will-change: transform, opacity;
}

.testimonial-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.testimonial-stars-img {
    display: block;
    width: 124px;
    max-width: 100%;
    height: auto;
}

.testimonial-google-img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 30px;
}

.testimonial-card__quote {
    margin: 0 0 28px;
    color: #3f434b;
    font-size: clamp(11px, .85vw, 13px);
    font-weight: 500;
    line-height: 1.75;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: auto;
}

.testimonial-avatar-img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.testimonial-card__author h3 {
    margin: 0 0 4px;
    color: #25282e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.testimonial-card__author span {
    display: block;
    color: #3f7df8;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
}

.testimonial-pagination {
    position: static;
    margin-top: 16px;
    text-align: center;
}

.testimonial-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #9fbfff;
    opacity: 1;
    margin: 0 5px !important;
}

.testimonial-pagination .swiper-pagination-bullet-active {
    background: #3978f8;
}

.testimonial-section__google-link {
    width: max-content;
    max-width: 100%;
    margin: clamp(12px, 2vw, 20px) auto 0;
    min-height: 48px;
    padding: 14px 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #7fa6ff;
    border-radius: 8px;
    background: #fff;
    color: #3978f8;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    transition: .25s ease;
}

.testimonial-section__google-link:hover {
    background: #3978f8;
    border-color: #3978f8;
    color: #fff;
}

@media (max-width: 980px) {
    .testimonial-section {
        padding-inline: 22px !important;
    }

    .testimonial-card {
        min-height: 275px;
        padding: 22px 18px;
    }

    .testimonial-card__quote {
        font-size: 10px;
    }
}

@media (max-width: 760px) {
    .testimonial-section {
        padding: 68px 16px 75px !important;
    }

    .testimonial-section__desktop-break {
        display: none;
    }

    .testimonial-section__heading {
        margin-bottom: 38px;
    }

    .testimonial-slider {
        padding: 0 6px 36px;
    }

    .testimonial-slider::before,
    .testimonial-slider::after {
        width: 26px;
        bottom: 36px;
    }

    .testimonial-card {
        min-height: 245px;
        padding: 24px 22px;
    }

    .testimonial-card__quote {
        font-size: 11px;
        line-height: 1.65;
    }

    .testimonial-section__google-link {
        margin-top: 10px;
        width: min(100%, 470px);
    }
}

@media (max-width: 420px) {
    .testimonial-card {
        padding: 21px 18px;
    }

    .testimonial-avatar-img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .testimonial-stars-img {
        width: 110px;
    }

    .testimonial-google-img {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        will-change: auto;
    }

    .testimonial-slider::before,
    .testimonial-slider::after {
        display: none;
    }
}
