.testimonials {
    background: linear-gradient(180deg, #f7faff 0%, #eef5ff 100%);
}

.testimonials-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    text-align: center;
}

.testimonials .section-heading {
    max-width: 760px;
    margin: 0 auto;
}

.testimonial-viewport {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 18px;
    transition: transform .42s ease;
    will-change: transform;
}

.testimonial-carousel.is-static .testimonial-viewport {
    overflow: visible;
}

.testimonial-carousel.is-static .testimonial-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.testimonial-card {
    position: relative;
    display: flex;
    flex: 0 0 calc((100% - 54px) / 4);
    flex-direction: column;
    min-width: 0;
    min-height: 265px;
    padding: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce8f8;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(13, 65, 128, .08);
}

.testimonial-card::after {
    position: absolute;
    top: 18px;
    right: 20px;
    color: #e6effc;
    font-family: bootstrap-icons;
    font-size: 44px;
    line-height: 1;
    content: "\f6b0";
}

.testimonial-rating {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: #f2a900;
    font-size: 15px;
}

.testimonial-card blockquote {
    position: relative;
    z-index: 1;
    flex: 1;
    margin: 0 0 22px;
    color: #243b5a;
    font-size: 15px;
    line-height: 1.7;
}

.testimonial-card blockquote p { margin: 0; }

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: #0758d5;
    background: #eaf2ff;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
}

.testimonial-avatar .bi {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.testimonial-avatar .bi::before {
    display: block;
    line-height: 1;
}

.testimonial-person strong,
.testimonial-person span {
    display: block;
}

.testimonial-person strong {
    color: #0c294f;
    font-size: 15px;
}

.testimonial-person span {
    margin-top: 3px;
    color: #61738b;
    font-size: 12px;
    line-height: 1.4;
}

.testimonial-controls {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    gap: 9px;
}

.testimonial-controls button {
    display: grid;
    width: 43px;
    height: 43px;
    padding: 0;
    place-items: center;
    color: #0758d5;
    background: #fff;
    border: 1px solid #cdddf3;
    border-radius: 50%;
    cursor: pointer;
    font-size: 17px;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}

.testimonial-controls button:hover:not(:disabled),
.testimonial-controls button:focus-visible {
    color: #fff;
    background: #0758d5;
}

.testimonial-controls button:disabled {
    cursor: default;
    opacity: .4;
}

@media (max-width: 1020px) {
    .testimonial-card { flex-basis: calc((100% - 18px) / 2); }
    .testimonial-carousel.is-static .testimonial-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .testimonial-card { flex-basis: 100%; min-height: 0; padding: 21px; }
    .testimonial-carousel.is-static .testimonial-track { grid-template-columns: 1fr; }
    .testimonial-controls { gap: 7px; }
    .testimonial-controls button { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track { transition: none; }
}
