/* === Video Slider Container === */
.vsc-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
}

/* Cycling video background layers */
.vsc-videos {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vsc-video-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vsc-video-layer.active {
    opacity: 1;
    visibility: visible;
}

.vsc-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.vsc-video-layer.vsc-poster-revealed .vsc-poster-fallback {
    opacity: 0;
    visibility: hidden;
}

.vsc-video-layer.vsc-use-poster .vsc-video {
    display: none;
}

.vsc-poster-fallback {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.vsc-video::-webkit-media-controls,
.vsc-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.vsc-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.vsc-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

/* Single shared content area on top of videos */
.vsc-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
}

.vsc-content > .e-con {
    width: 100%;
    flex: 1;
}

/* === Navigation Arrows === */
.vsc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.vsc-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
}

.vsc-arrow svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.vsc-arrow-prev { left: 20px; }
.vsc-arrow-next { right: 20px; }

/* === Dots Navigation === */
.vsc-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.vsc-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.vsc-dot:hover { background: rgba(255, 255, 255, 0.8); }

.vsc-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* === Responsive === */
@media (max-width: 768px) {
    .vsc-arrow {
        width: 40px;
        height: 40px;
    }
    .vsc-arrow svg {
        width: 20px;
        height: 20px;
    }
    .vsc-arrow-prev { left: 10px; }
    .vsc-arrow-next { right: 10px; }
}

/* === Elementor Editor Mode === */
.elementor-editor-active .vsc-container {
    height: auto !important;
    min-height: var(--vsc-min-height, 400px);
}

.elementor-editor-active .vsc-videos {
    display: none;
}
