.testimonials-carousel {
    clear: both;
    width: 100%;
    padding: 65px 0 75px;
    color: #666;
    font-family: 'Open Sans', sans-serif;
}

.testimonials-carousel * { box-sizing: border-box; }

.course_wrapper_left .testimonials-carousel { padding: 55px 0 20px; }
.course_wrapper_left .testimonials-carousel p { margin-left: 0; }

.testimonials-carousel__heading {
    margin: 0 auto 38px;
    text-align: center;
}

.testimonials-carousel__heading h2 {
    color: #0fb4bb;
    font-family: 'neu-sb', 'Open Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.testimonials-carousel__heading p {
    margin-top: 12px;
    margin-bottom: 0;
    float: none;
    clear: none;
    font-size: 1.15rem;
    line-height: 1.5;
}

.testimonials-carousel__stage {
    clear: both;
    display: grid;
    width: 100%;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 16px;
}

.testimonials-carousel__slides { min-width: 0; touch-action: pan-y; }

.testimonials-carousel__slide {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    gap: 32px;
    min-height: 390px;
    padding: 26px;
    border: 2px solid #e0f5f6;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .08);
}

.testimonials-carousel__slide[hidden] { display: none; }

.testimonials-carousel__slide--entering[data-enter-from="right"] {
    animation: testimonial-enter-from-right .38s ease-out both;
}

.testimonials-carousel__slide--entering[data-enter-from="left"] {
    animation: testimonial-enter-from-left .38s ease-out both;
}

@keyframes testimonial-enter-from-right {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes testimonial-enter-from-left {
    from { opacity: 0; transform: translateX(-18px); }
    to { opacity: 1; transform: translateX(0); }
}

.testimonials-carousel__image { min-height: 335px; }

.testimonials-carousel__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 335px;
    object-fit: cover;
    border-radius: 16px;
}

.testimonials-carousel__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.testimonials-carousel__badge {
    display: inline-block;
    max-width: 100%;
    padding: 9px 15px;
    border-radius: 30px;
    background: #e0f5f6;
    color: #0d949b;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
}

.testimonials-carousel__stars {
    margin: 18px 0 10px;
    color: #f5ae32;
    font-size: 1.8rem;
    letter-spacing: 2px;
    line-height: 1;
}

.testimonials-carousel__content h3 {
    color: #0d949b;
    font-family: 'neu-sb', 'Open Sans', sans-serif;
    font-size: clamp(1.55rem, 2.7vw, 2.2rem);
    line-height: 1.2;
}

.testimonials-carousel__content blockquote {
    margin: 18px 0 0;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.55;
}

.testimonials-carousel__attribution {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e0f5f6;
    line-height: 1.45;
}

.testimonials-carousel__attribution strong { color: #0d949b; font-size: 1.15rem; }

.testimonials-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e0f5f6;
    color: #0d949b;
    cursor: pointer;
    font-size: 1.5rem;
}

.testimonials-carousel__arrow:hover,
.testimonials-carousel__arrow:focus-visible,
.testimonials-carousel__dot:hover,
.testimonials-carousel__dot:focus-visible {
    box-shadow: inset 0 0 0 2px #0fb4bb;
    outline: none;
}

.testimonials-carousel__arrow:disabled { opacity: .35; cursor: default; }

.testimonials-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    min-height: 14px;
    margin-top: 20px;
}

.testimonials-carousel__dots[hidden] { display: none; }

.testimonials-carousel__dot {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c9d6d7;
    cursor: pointer;
}

.testimonials-carousel__dot[aria-current="true"] { background: #0fb4bb; }

@media (prefers-reduced-motion: reduce) {
    .testimonials-carousel__slide--entering[data-enter-from] { animation: none; }
}

@media (max-width: 1150px) {
    .course_wrapper_left .testimonials-carousel__slide { grid-template-columns: 1fr; }
    .course_wrapper_left .testimonials-carousel__image,
    .course_wrapper_left .testimonials-carousel__image img { min-height: 220px; max-height: 300px; }
}

@media (max-width: 760px) {
    .testimonials-carousel { padding: 45px 0 55px; }
    .testimonials-carousel__stage { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 8px; }
    .testimonials-carousel__arrow { width: 42px; height: 42px; }
    .testimonials-carousel__slide { grid-template-columns: 1fr; gap: 18px; padding: 15px; }
    .testimonials-carousel__image, .testimonials-carousel__image img { min-height: 220px; max-height: 300px; }
}

@media (max-width: 480px) {
    .testimonials-carousel__stage { grid-template-columns: 1fr 1fr; }
    .testimonials-carousel__slides { grid-column: 1 / -1; grid-row: 1; }
    .testimonials-carousel__arrow { grid-row: 2; justify-self: center; }
    .testimonials-carousel__arrow--previous { grid-column: 1; }
    .testimonials-carousel__arrow--next { grid-column: 2; }
}
