/* --- DOT INDICATORS --- */
.video-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: -20px; /* Adjusted to sit under the shadow breathing room */
    position: relative;
    z-index: 60;
}

.video-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: #d1d5db; /* Light gray for inactive */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-slider-dots .dot.active {
    background: hsl(196, 91%, 46%); /* Brand blue for active */
    width: 24px; /* Pill shape for active dot like the original */
    border-radius: 5px;
}

/* --- Container --- */
.video-slider {
    position: relative;
    display: flex;
    overflow: visible; /* Buttons are now visible again */
    width: 100%;
    max-width: 620px; 
    margin: -40px auto; 
    align-items: center;
    justify-content: center;
}

.video-viewport {
    overflow: hidden; /* Perfect clipping of adjacent slides */
    width: 100%;
    max-width: 620px;
    background: transparent;
    padding: 60px 0; 
}

.video-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* --- Individual slides --- */
.video-slider .video-slide {
    flex: 0 0 100%; /* Each slide is now 620px wide */
    display: block; 
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    position: relative;
}

/* --- Wrapper for video (square ratio) --- */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; /* The actual video card stays at 500px */
    margin: 0 auto; /* Centered inside the 620px slide container */
    aspect-ratio: 1 / 1; /* MODERN ASPECT RATIO: Ensures a perfect square */
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 4px solid #ffffff; 
    /* Bold, clean black shadow */
    box-shadow: 
        0 20px 50px -12px rgba(0, 0, 0, 0.3),
        0 10px 20px -10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    clip-path: inset(0 round 20px); /* Adjusted for 4px border (24-4=20) */
    background-color: transparent;
}

/* --- Thumbnail Overlay --- */
.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: #000;
    clip-path: inset(0 round 20px); /* Matches video clipping */
    transition: opacity 0.3s ease;
}

.video-thumbnail-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.video-slider .vs-prev,
.video-slider .vs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #0f172a; /* Slate 900 */
    border: 1px solid #e2e8f0; /* Slate 200 */
    cursor: pointer;
    z-index: 50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    touch-action: manipulation;
    /* Stronger black shadow to match the video container */
    box-shadow: 
        0 10px 20px -5px rgba(0, 0, 0, 0.2), 
        0 4px 10px -5px rgba(0, 0, 0, 0.15);
}

.video-slider .vs-prev:hover,
.video-slider .vs-next:hover {
    background: #f8fafc; /* Slate 50 */
    transform: translateY(-50%) scale(1.1);
    border-color: #cbd5e1; /* Slate 300 */
    /* Even deeper shadow on hover */
    box-shadow: 
        0 15px 30px -5px rgba(0, 0, 0, 0.25), 
        0 8px 15px -5px rgba(0, 0, 0, 0.2);
}

.video-slider .vs-prev {
    left: -60px; /* Positioned just outside the 500px video */
}

.video-slider .vs-next {
    right: -60px; /* Positioned just outside the 500px video */
}

@media (max-width: 768px) {
    .video-slider .vs-prev {
        left: 10px;
        width: 36px;
        height: 36px;
    }
    .video-slider .vs-next {
        right: 10px;
        width: 36px;
        height: 36px;
    }
}
