/**
 * Full-Width Background Video Slider Styles
 */

/* ---------------------------------------------------- */
/* Core Slider & Video Layout */
/* ---------------------------------------------------- */

.video-slider-widget {
    position: relative;
    /* Ensure the widget spans full width and height of its section/container */
    width: 100%;
    min-height: 100vh; /* Example: full viewport height */
    overflow: hidden;
}

.video-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1; /* Below content, above other videos */
    transition: opacity 800ms ease-in-out; /* Fade transition from PHP control */
}

.video-slider-slide.active-slide {
    opacity: 1;
    z-index: 2;
}

/* ---------------------------------------------------- */
/* Video Styling */
/* ---------------------------------------------------- */

.video-slider-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Ensure video covers the entire container and is centered (responsive) */
.video-slider-video,
.video-slider-video-container > iframe,
.video-slider-video-container > video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover; /* CSS standard for background video */
}

/* ---------------------------------------------------- */
/* Overlay and Content */
/* ---------------------------------------------------- */

.video-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5); /* Default overlay color (editable via Elementor control) */
}

.video-slider-content-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    align-items: center; /* Vertical Center */
    /* Content Alignment is set via repeater control in PHP (left/center) */
}

.video-slider-content {
    /* Limit max width of content to keep it readable */
    max-width: 1100px;
    padding: 20px 238px;
}

.video-slider-heading {
    margin: 0 0 20px;
    color: #fff; /* Default color (editable via Elementor control) */
    font-size: 4em; /* Inherits Elementor Typography */
}

.video-slider-button {
    /* Inherits Elementor native button styles */
	display:flex !important;
}


/* 1. Hide heading and button by default */
.video-slider-heading,
.video-slider-button {
    opacity: 0;
}

/* 2. Define the fade-up animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Apply the animation to the active slide's content */
.video-slider-slide.active-slide .video-slider-heading {
    animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.video-slider-slide.active-slide .video-slider-button {
    animation: fadeUp 0.8s ease-out 0.8s forwards;
}

/* Add space between button text and icon on the right */
.video-slider-button .elementor-button-text {
    margin-right: 8px;
}

/* ---------------------------------------------------- */
/* 3. Slide Navigation (Left Bottom Corner) */
/* ---------------------------------------------------- */

.video-slider-nav-bottom {
    position: absolute;
    left: 20px;
    bottom: 20px;
    z-index: 5;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
}

.video-slider-nav-number {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.video-slider-down-arrow {
    font-size: 2em;
    line-height: 1;
}

/* ---------------------------------------------------- */
/* 4. Vertical Navigation (Right Center) */
/* ---------------------------------------------------- */

.video-slider-nav-vertical {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Spacing between lines */
}

.video-slider-nav-item {
    cursor: pointer;
    width: 2px;
    height: 30px; /* Base line dimensions */
}

.video-slider-nav-line {
    width: 2px;
    height: 100%;
    background-color: #333; /* Line background color (editable) */
    position: relative;
    overflow: hidden;
}

.video-slider-progress-line {
    width: 100%;
    height: 0%; /* Fills vertically from bottom */
    background-color: #ffffff; /* Progress color (editable) */
    position: absolute;
    bottom: 0;
    /* Transition is set by JS based on autoplay duration */
}

.video-slider-nav-item.active .video-slider-progress-line {
    /* This line is now controlled by JS for dynamic duration */
}

/* ---------------------------------------------------- */
/* 5. Responsiveness (Critical for full-width) */
/* ---------------------------------------------------- */

@media (max-width: 767px) {
    .video-slider-nav-vertical {
    right: 20px;
    top: 90%;
}

    /* Move Bottom Nav to Center Bottom on Mobile */
    .video-slider-nav-bottom {
        left: 30px;
        transform: translateX(-50%);
    }

    .video-slider-heading {
        font-size: 2.5em; /* Smaller font on mobile */
    }

    .video-slider-content {
        padding: 15px;
    }

    .video-slider-content {
    /* Limit max width of content to keep it readable */
    max-width: 1100px;
    padding: 20px 20px;
}
}