/* Video Testimonial Slider - place in assets/css/vslider.css */

.vslider-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    /* mask edges so items fade in/out at the container boundary instead of a hard cut */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.vslider {
    display: flex;
    width: max-content;
    animation: vslide-loop 40s linear infinite;
}

.vslider:hover {
    animation-play-state: paused;
}

@keyframes vslide-loop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.vslide-item {
    flex: 0 0 auto;
    width: 320px;
    margin: 0 15px;
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: rgba(242, 101, 34, 0.9); /* orange accent to match brand */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: 0.3s;
}

.video-thumb:hover .play-btn {
    background: #fff;
    color: #F26522;
}

.video-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.v-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1B2A4A;
}

@media (max-width: 767px) {
    .vslide-item { width: 240px; }
    .video-thumb { height: 135px; }
}
