.testimonial-stories {
    padding: 100px 0;
    background: #fff;
}

.testimonial-stories .section-title {
    margin-bottom: 45px;
}

.testimonial-stories .section-title p {
    max-width: 720px;
    margin: 18px auto 0;
}

.testimonial-story-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: var(--color-secondary);
    box-shadow: 0 14px 35px rgba(14, 56, 76, 0.14);
    cursor: pointer;
    isolation: isolate;
}

.testimonial-story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.testimonial-story-card:hover img,
.testimonial-story-card:focus-visible img {
    transform: scale(1.055);
}

.testimonial-story-card:focus-visible {
    outline: 4px solid rgba(14, 56, 76, 0.35);
    outline-offset: 4px;
}

.testimonial-story-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 25, 35, 0.12) 25%, rgba(4, 25, 35, 0.9) 100%);
    z-index: 1;
}

.testimonial-story-number {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.52);
    font-size: clamp(38px, 4.3vw, 68px);
    line-height: 1;
    font-weight: 800;
}

.testimonial-story-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: rgba(14, 56, 76, 0.66);
    color: #fff;
    font-size: 19px;
    transform: translate(-50%, -50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.testimonial-story-play i {
    margin-left: 4px;
}

.testimonial-story-card:hover .testimonial-story-play,
.testimonial-story-card:focus-visible .testimonial-story-play {
    background: var(--color-secondary);
    transform: translate(-50%, -50%) scale(1.08);
}

.testimonial-story-title {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
    z-index: 2;
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
}

.testimonial-stories-cta {
    margin-top: 55px;
    padding: 34px 24px;
    border-radius: 20px;
    background: #f5f8f9;
}

.testimonial-stories-cta p {
    margin-bottom: 18px;
    color: var(--color-secondary);
    font-size: 22px;
    font-weight: 700;
}

.testimonial-media-modal .modal-dialog {
    max-width: 520px;
}

.testimonial-media-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #fff;
}

.testimonial-media-modal .modal-header {
    border-bottom: 0;
    padding: 18px 20px;
}

.testimonial-media-modal .modal-title {
    margin: 0;
    color: var(--color-secondary);
    font-size: 19px;
}

.testimonial-media-modal .modal-body {
    padding: 0;
    background: #000;
}

.testimonial-media-modal .testimonial-media[hidden] {
    display: none !important;
}

.testimonial-media-modal iframe,
.testimonial-media-modal video {
    display: block;
    width: 100%;
    height: min(78vh, 760px);
    border: 0;
    background: #000;
    object-fit: contain;
}

@media screen and (max-width: 767px) {
    .testimonial-stories {
        padding: 65px 0;
    }

    .testimonial-stories-grid {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .testimonial-story-card {
        border-radius: 14px;
    }

    .testimonial-story-number {
        top: 12px;
        left: 13px;
        font-size: 36px;
    }

    .testimonial-story-play {
        width: 48px;
        height: 48px;
        font-size: 15px;
    }

    .testimonial-story-title {
        right: 12px;
        bottom: 14px;
        left: 12px;
        font-size: 14px;
    }

    .testimonial-stories-cta {
        margin-top: 38px;
    }

    .testimonial-stories-cta p {
        font-size: 19px;
    }

    .testimonial-media-modal .modal-dialog {
        margin: 12px;
    }
}
