.testimonial-slider-wrap {
    position: relative;
}

.testimonial-slider-shell {
    position: relative;
    margin: -1.25rem -1.25rem -2rem;
    padding: 1.25rem 1.25rem 2rem;
    overflow: hidden;
}

.testimonial-slider-shell .tns-outer,
.testimonial-slider-shell .tns-ovh,
.testimonial-slider-shell .tns-inner {
    overflow: visible;
}

.testimonial-slider-shell .tns-ovh {
    margin: -1.25rem -1.25rem -2rem;
    padding: 1.25rem 1.25rem 2rem;
}

.testimonial-slider {
    display: flex;
}

.testimonial-slider.is-no-carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.testimonial-slide,
.google-review-card {
    height: 100%;
}

.testimonial-slide {
    position: relative;
    display: flex;
    padding: 0.15rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, z-index 180ms ease;
}

.testimonial-slide.tns-slide-active {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-slider.is-no-carousel .testimonial-slide {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-card {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 360px;
    height: 100%;
    flex-direction: column;
    padding: 2.15rem 2.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20, 45, 72, 0.14);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(8, 28, 52, 0.055);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.testimonial-slide:hover {
    z-index: 5;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 115, 201, 0.36);
    box-shadow: 0 18px 42px rgba(8, 28, 52, 0.14);
}

.testimonial-card::after {
    content: "";
    position: absolute;
    right: -5rem;
    bottom: -5rem;
    width: 13rem;
    height: 13rem;
    background: radial-gradient(circle, rgba(31, 115, 201, 0.07), transparent 68%);
    pointer-events: none;
}

.testimonial-card .quote-mark {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--pab-blue);
    font-family: Georgia, serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 0.72;
}

.testimonial-review-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #263548;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.72;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.testimonial-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: auto;
    padding-top: 1.75rem;
}

.testimonial-author {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.25;
}

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

.testimonial-author strong {
    display: block;
    color: var(--pab-ink);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.25;
}

.testimonial-stars {
    flex: 0 0 auto;
    color: #f5b301;
    font-size: 0.98rem;
    letter-spacing: 0.05em;
    line-height: 1;
    white-space: nowrap;
}

.testimonial-stars .star-empty {
    color: #c9ced6;
}

.testimonial-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-slider-shell .tns-controls {
    display: flex;
    order: 2;
    gap: 0.6rem;
    margin: 0;
}

.testimonial-slider-shell .tns-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--pab-blue);
    background: #fff;
    border: 1px solid rgba(20, 45, 72, 0.15);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(8, 28, 52, 0.08);
    font-size: 0;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.testimonial-slider-shell .tns-controls button:hover {
    color: var(--pab-orange);
    border-color: rgba(255, 113, 66, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(8, 28, 52, 0.11);
}

.testimonial-slider-shell .tns-controls button:focus-visible {
    outline: 2px solid var(--pab-orange);
    outline-offset: 3px;
}

.testimonial-slider-shell .tns-controls button::before {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.65rem;
    line-height: 1;
}

.testimonial-slider-shell .tns-controls button[data-controls="prev"]::before {
    content: "‹";
}

.testimonial-slider-shell .tns-controls button[data-controls="next"]::before {
    content: "›";
}

@media (min-width: 992px) {
    .testimonial-slide.tns-slide-active + .testimonial-slide.tns-slide-active {
        z-index: 5;
    }

    .testimonial-slide.tns-slide-active + .testimonial-slide.tns-slide-active .testimonial-card {
        transform: translateY(-4px);
        border-color: rgba(31, 115, 201, 0.36);
        box-shadow: 0 18px 42px rgba(8, 28, 52, 0.14);
    }

    .testimonial-slide.tns-slide-active + .testimonial-slide.tns-slide-active + .testimonial-slide.tns-slide-active:not(:hover) {
        z-index: 1;
    }

    .testimonial-slide.tns-slide-active + .testimonial-slide.tns-slide-active + .testimonial-slide.tns-slide-active:not(:hover) .testimonial-card:not(:hover) {
        transform: none;
        border-color: rgba(20, 45, 72, 0.14);
        box-shadow: 0 10px 26px rgba(8, 28, 52, 0.055);
    }
}

@media (max-width: 991.98px) {
    .testimonial-slider.is-no-carousel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .testimonial-card {
        min-height: 340px;
    }
}

@media (max-width: 767.98px) {
    .testimonial-slider-shell {
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .testimonial-slider.is-no-carousel {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial-card {
        min-height: auto;
        padding: 1.65rem;
    }

    .testimonial-card .quote-mark {
        font-size: 2.8rem;
    }

    .testimonial-review-text {
        -webkit-line-clamp: 7;
    }

    .testimonial-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .testimonial-stars {
        align-self: flex-end;
    }

    .testimonial-slider-controls {
        margin-top: 1.35rem;
    }

    .testimonial-slider-shell .tns-controls {
        display: none;
    }
}
