﻿/*Slider CSS Starts here*/
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 24 / 9;
    background: #000;
    margin-top: 5%;
}

    .video-container video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* or contain, if you prefer full letterboxed view */
    }

/* Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center; /* vertically center */
    justify-content: flex-start; /* left-align content */
    pointer-events: none; /* let clicks go through, except button */
}

.video-overlay-inner {
    max-width: 40rem;
    margin-left: 5%;
    padding: 1.5rem 2rem;
    /*  background: linear-gradient( to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent ); */
    /*  background: rgba(0, 0, 0, 0.6); */
    border-radius: 1rem;
    color: #fff;
    pointer-events: auto; /* enable clicking on the button */
}

.video-overlay-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.video-overlay-text {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.video-overlay-btn {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .video-overlay-btn:hover {
        border: 1px solid #b00000;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.25);
        color: #b00000;
    }

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 24 / 5;
    /*  height: 400px; */
    background: #000;
}


.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .slide.active {
        opacity: 1;
        z-index: 1;
    }

    /*         Old css kept in case new one doesn't work */

    /*  .slide img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                } */

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* Navigation buttons */
.slider-btn {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
}

    .slider-btn.left {
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
    }

    .slider-btn.right {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }

    /* Moved play/pause to top right */
    /* Moved play/pause to top right + modern style */
    .slider-btn.play-pause {
        top: 10px;
        right: 10px;
        left: auto;
        bottom: auto;
        transform: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 14px;
        background-color: rgba(0, 0, 0, 0.6);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

        /* Hover glow effect */
        .slider-btn.play-pause:hover {
            background-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
        }


/* Indicators */
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

    .slider-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: none;
        cursor: pointer;
    }

        .slider-indicators button.active {
            background-color: #fff;
        }

.video-overlay-content {
    min-height: 220px;
    padding: 5px 15px;
    border-radius: 22px;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 12px 40px rgba(20,35,70,.06);
    overflow: hidden;
    position: relative;
    clip-path: polygon( 0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px) );
}

    .video-overlay-content::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient( 135deg, rgba(255,255,255,.45), rgba(255,255,255,.08) );
        opacity: 0;
        transition: 1s ease;
        pointer-events: none;
        clip-path: inherit;
    }



.video-overlay-title,
.video-overlay-text {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}

    .video-overlay-title.show,
    .video-overlay-text.show {
        opacity: 1;
        transform: translateY(0);
    }


.video-bottom {
    margin-top: 45px;
}

.video-progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.15);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 22px;
}

#videoProgressBar {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,#ffffff,#c00000);
    transition: width .25s linear;
}
.video-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: .75;
    transition: .4s;
}

    .timeline-item span:last-child {
        font-size: .85rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight:bold;
    }

    .timeline-item .dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #fff;
        transition: .35s;
    }

    .timeline-item.active {
        opacity: 1;
    }

        .timeline-item.active .dot {
            background: #c00000;
            transform: scale(1.35);
            box-shadow: 0 0 18px rgba(192,0,0,.8);
        }


@media (max-width: 992px) {

    .video-overlay-inner {
        max-width: 32rem;
    }

    .video-overlay-title {
        font-size: 2.5rem;
    }

    .video-overlay-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {

    .video-container {
        aspect-ratio: 1.3 / 1.3;
    }

    .video-overlay-inner {
        max-width: 23rem;
        margin-left: 0%;
        padding: 1rem 1rem;
    }

    .video-overlay-title {
        font-size: 1.3rem;
    }

    .video-overlay-text {
        font-size: 1rem;
    }

    .video-overlay-btn {
        padding: 0.15rem 0.4rem;
        font-size: 0.5rem;
    }
}
