
/* =========================================
   CUSTOMER VIDEO STORIES
========================================= */

.customer-videos-section {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 10% 10%, rgba(22,166,161,.12), transparent 35%),
        var(--primary-dark);
    color: #fff;
}

.customer-videos-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 38px;
}

.customer-heading-content {
    max-width: 680px;
}

.customer-videos-heading .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.customer-videos-heading h2 {
    margin: 0 0 14px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(29px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
}

.customer-videos-heading h2 span {
    color: var(--secondary);
}

.customer-videos-heading p {
    max-width: 570px;
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: 15px;
    line-height: 1.7;
}

.customer-heading-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 12px 17px;
    color: #fff;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.customer-heading-badge i {
    color: var(--secondary);
    font-size: 17px;
}

/* Slider */

.customer-videos-slider {
    padding: 5px 2px 20px;
    overflow: hidden;
}

.customer-videos-slider .swiper-slide {
    height: auto;
}

/* Video Card */

.customer-video-card {
    height: 100%;
    overflow: hidden;
    background: #14243a;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    transition: transform .3s ease, border-color .3s ease,
                box-shadow .3s ease;
}

.customer-video-card:hover {
    transform: translateY(-7px);
    border-color: var(--secondary);
    box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.customer-video-trigger {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.customer-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 14;
    overflow: hidden;
    background: #08111e;
}

.customer-video-thumb > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .6s ease;
}

.customer-video-card:hover .customer-video-thumb > img {
    transform: scale(1.06);
}

/* Image Overlay */

.customer-video-thumb::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,.18) 0%,
        transparent 35%,
        rgba(0,0,0,.12) 48%,
        rgba(0,0,0,.88) 100%
    );
}

.video-card-number {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    background: rgba(8,18,32,.65);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

/* Play Button */

.video-play-btn {
    position: absolute;
    top: 45%;
    left: 50%;
    z-index: 3;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    color: #fff;
    background: var(--secondary);
    border: 3px solid rgba(255,255,255,.9);
    border-radius: 50%;
    font-size: 30px;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 28px rgba(0,0,0,.3);
    transition: .3s ease;
}

.video-play-btn i {
    margin-left: 3px;
}

.customer-video-card:hover .video-play-btn {
    background: var(--secondary-dark);
    transform: translate(-50%, -50%) scale(1.12);
}

/* Duration */

.video-duration {
    position: absolute;
    top: 17px;
    right: 15px;
    z-index: 3;
    padding: 6px 9px;
    color: #fff;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

/* Card Text */

.customer-video-info {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 20px 17px;
    pointer-events: none;
}

.customer-video-info span {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.customer-video-info h3 {
    margin: 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

/* Slider Navigation */

.customer-videos-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.customer-video-prev,
.customer-video-next {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    color: #fff;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    font-size: 17px;
    cursor: pointer;
    transition: .25s ease;
}

.customer-video-prev:hover,
.customer-video-next:hover {
    color: #fff;
    background: var(--secondary);
    border-color: var(--secondary);
}

.customer-video-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.customer-video-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: rgba(255,255,255,.4);
    opacity: 1;
}

.customer-video-pagination .swiper-pagination-bullet-active {
    width: 23px;
    border-radius: 20px;
    background: var(--secondary);
}

/* =========================================
   VIDEO POPUP MODAL
========================================= */

.customer-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

.customer-video-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.customer-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,9,18,.88);
    backdrop-filter: blur(8px);
}

.customer-video-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 440px);
    max-height: calc(100dvh - 48px);
    padding: 12px;
    overflow: visible;
    background: #14243a;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0,0,0,.5);
    transform: translateY(18px) scale(.98);
    transition: transform .25s ease;
}

.customer-video-modal.is-open .customer-video-modal-dialog {
    transform: translateY(0) scale(1);
}

.customer-video-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 5;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--secondary);
    border: 3px solid #14243a;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    transition: .25s ease;
}

.customer-video-modal-close:hover {
    background: var(--secondary-dark);
    transform: rotate(90deg);
}

.customer-video-modal-content {
    width: 100%;
    max-height: calc(100dvh - 130px);
    overflow: hidden;
    background: #000;
    border-radius: 13px;
}

.customer-video-modal-content video {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 130px);
    aspect-ratio: 9 / 16;
    object-fit: contain;
    background: #000;
}

.customer-video-modal-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 5px 3px;
}

.customer-video-modal-caption span {
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.customer-video-modal-caption p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 11px;
}

/* Prevent page scrolling while modal open */

body.customer-video-modal-open {
    overflow: hidden;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991px) {
    .customer-videos-heading {
        align-items: flex-start;
    }

    .customer-heading-badge {
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .customer-videos-section {
        padding: 65px 0;
    }

    .customer-videos-heading {
        display: block;
        margin-bottom: 28px;
    }

    .customer-videos-heading h2 {
        font-size: clamp(27px, 7vw, 36px);
    }

    .customer-videos-heading p {
        font-size: 14px;
    }

    .customer-heading-badge {
        margin-top: 17px;
        padding: 9px 13px;
        font-size: 11px;
    }

    .customer-videos-slider {
        padding-right: 3px;
        padding-left: 3px;
    }

    .customer-video-card {
        border-radius: 16px;
    }

    .customer-video-thumb {
        aspect-ratio: 9 / 14;
    }

    .customer-video-info {
        padding: 16px 13px;
    }

    .customer-video-info h3 {
        font-size: 15px;
    }

    .video-play-btn {
        width: 54px;
        height: 54px;
        font-size: 26px;
    }

    .customer-videos-controls {
        margin-top: 20px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .customer-videos-section {
        padding: 55px 0;
    }

    .customer-videos-heading h2 {
        font-size: 27px;
    }

    .customer-video-modal {
        padding: 15px;
    }

    .customer-video-modal-dialog {
        width: min(100%, 360px);
        padding: 8px;
        border-radius: 15px;
    }

    .customer-video-modal-close {
        top: -12px;
        right: -10px;
        width: 38px;
        height: 38px;
    }

    .customer-video-modal-caption {
        flex-wrap: wrap;
        padding: 10px 4px 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .customer-video-card,
    .customer-video-thumb > img,
    .video-play-btn,
    .customer-video-modal,
    .customer-video-modal-dialog {
        transition: none;
    }
}
