/* --- TESTIMONIALS PAGE CSS --- */

.inline-video-swiper {
    width: 100%;
    overflow: hidden;
    min-height: 560px;
}

.inline-video-swiper .swiper-wrapper {
    align-items: center;
    will-change: transform;
}

/* Soft placeholder while a missing admin thumb is filled in the background */
.video-card-thumb.is-pending-poster {
    background:
        linear-gradient(145deg, #1c2333 0%, #0f141f 55%, #182033 100%);
}

.testi-video-slide {
    width: 360px !important;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Scale the whole card — video/image move as one unit */
.testi-video-slide .video-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #1a1a1a;
    cursor: pointer;
    transform: translateZ(0) scale(0.88);
    -webkit-transform: translateZ(0) scale(0.88);
    transform-origin: center center;
    will-change: transform, box-shadow;
    transition:
        transform 0.55s cubic-bezier(0.33, 1, 0.68, 1),
        box-shadow 0.55s ease;
    backface-visibility: hidden;
}

.inline-video-swiper .swiper-slide-active .video-card {
    transform: translateZ(0) scale(1);
    -webkit-transform: translateZ(0) scale(1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    z-index: 5;
}

.testi-video-slide .video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 27, 0.28);
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.55s ease;
}

.inline-video-swiper .swiper-slide-active .video-card::after {
    opacity: 0;
}

/* Image preview is always the base layer */
.video-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
    background: #1a1a1a;
}

.testi-inline-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    background: transparent;
}

.inline-video-swiper .swiper-slide-active .video-card-thumb {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testi-empty-slide {
    width: 100% !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-video-swiper:has(.testi-empty-slide) {
    min-height: 120px;
}

.inline-video-swiper:has(.testi-empty-slide) .swiper-wrapper {
    justify-content: center;
}

.testi-video-slide:not(.swiper-slide-active) .unmute-btn {
    display: none !important;
}

.video-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 14, 27, 0.9) 0%, rgba(12, 14, 27, 0) 40%);
    pointer-events: none;
    z-index: 2;
}

.unmute-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: auto;
}

.unmute-btn:hover {
    background: #20b038;
    border-color: #20b038;
    transform: scale(1.1);
}

.video-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    z-index: 4;
    color: #ffffff;
}

.video-card-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 2px;
}

.video-card-loc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

.custom-nav-btn {
    width: 56px;
    height: 56px;
    background-color: #ffffff;
    color: #0c0e1b;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.custom-nav-btn::after {
    font-size: 20px;
    font-weight: 800;
}

.custom-nav-btn:hover {
    background-color: #0c0e1b;
    color: #ffffff;
}

.swiper-button-prev.custom-nav-btn { left: 20%; }
.swiper-button-next.custom-nav-btn { right: 20%; }

@media (max-width: 991.98px) {
    .swiper-button-prev.custom-nav-btn { left: 5%; }
    .swiper-button-next.custom-nav-btn { right: 5%; }
}

@media (max-width: 767.98px) {
    .inline-video-swiper {
        min-height: 480px;
    }

    .testi-video-slide {
        width: 280px !important;
        height: 480px;
    }

    .testi-video-slide .video-card {
        transform: translateZ(0) scale(0.9);
        -webkit-transform: translateZ(0) scale(0.9);
    }

    .inline-video-swiper .swiper-slide-active .video-card {
        transform: translateZ(0) scale(1);
        -webkit-transform: translateZ(0) scale(1);
    }

    .custom-nav-btn {
        width: 44px;
        height: 44px;
    }

    .custom-nav-btn::after { font-size: 16px; }

    .swiper-button-prev.custom-nav-btn { left: 2%; }
    .swiper-button-next.custom-nav-btn { right: 2%; }
}








.testimonials-heading{
    font-size: 42px !important;
}





@media (max-width: 767.98px) {
    .testimonials-heading{
        font-size: 28px !important;
    }
    mobile-only{
        margin-bottom: 32px !important;
    }
}