/* ===== Section ===== */
.testimonials {
    padding: 40px 0;
}

.testimonials__container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Swiper ===== */
.testimonials-swiper {
    overflow: hidden;
}

/* ===== Card ===== */
.testimonial-card {
    border: 4px solid #1b4a7a;
    background: #1b4a7a;
}

.testimonial-card__video {
    position: relative;
    aspect-ratio: 9 / 16;
    /* transparent checkerboard placeholder */
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(-45deg, #e0e0e0 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e0e0e0 75%),
        linear-gradient(-45deg, transparent 75%, #e0e0e0 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

.testimonial-card__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    padding: 0;
}

.testimonial-card__play:hover {
    background: rgba(255, 255, 255, 0.9);
}

.testimonial-card.is-playing .testimonial-card__play {
    opacity: 0;
    pointer-events: none;
}

.testimonial-card__name {
    padding: 16px 12px;
    text-align: center;
    color: #fff;
    font-size: 18px;
}

/* ===== Navigation arrows ===== */
.testimonials-prev,
.testimonials-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196d6;
    cursor: pointer;
    transition: color 0.2s ease;
}

.testimonials-prev:hover,
.testimonials-next:hover {
    color: #1b4a7a;
}

.testimonials-prev {
    left: -75px;
}

.testimonials-next {
    right: -75px;
}

.testimonials-prev.swiper-button-disabled,
.testimonials-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

/* ===== Pagination ===== */
.testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c9d6e3;
    opacity: 1;
    transition: background 0.2s ease;
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: #2196d6;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .testimonials__container {
        padding: 0 50px;
    }

    .testimonials-prev {
        left: 5px;
    }

    .testimonials-next {
        right: 5px;
    }
}
