/* General Carousel Styling */
.carousel {
    height: 100vh;
    margin-top: -50px;
    position: relative;
}

/* Slide Settings */
.carousel .carousel-items .slide {
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.carousel .carousel-items .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide Details Styling */
.carousel .carousel-items .slide .details {
    position: absolute;
    left: 5%;
    top: 60%;
    width: 500px;
    max-width: 80%;
    text-align: left;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

/* Heading and Paragraph Styling */
.carousel .carousel-items .slide .details h2 {
    font-size: 30px;
    margin: 0;
}

.carousel .carousel-items .slide .details p {
    margin: 10px 0;
}

/* Active Slide Animation */
.carousel .carousel-items .slide.active {
    opacity: 1;
    z-index: 10;
}

/* Play Button Styling */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(219, 56, 50, 0.8);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.play-button::before {
    content: '\25B6';
    font-size: 36px;
    color: white;
    margin-left: 5px;
}

/* Glow Effect for Play Button */
.play-button:hover {
    box-shadow: 0 0 15px rgba(219, 56, 50, 1);
}

/* Move Thumbnails to Right Side */
.preview {
    position: absolute;
    bottom: 20px;
    /*right: 0;*/
    left: 1100px;
    z-index: 11;
    display: flex;
    gap: 10px;
    width: auto;
    height: 200px;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: flex-end;
}

/* Thumbnail Styling */
.preview .thumb {
    width: 120px;
    height: 180px;
    filter: brightness(0.8);
    transition: 0.5s;
    flex-shrink: 0;
}

.preview .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Active Thumbnail */
.preview .thumb.active {
    filter: brightness(1.2);
}

/* Control Buttons Styling */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.controls button {
    background-color: transparent;
    border: 2px solid #DB3832;
    font-family: 'Poppins', sans-serif;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    color: #DB3832;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.controls button:hover {
    background-color: white;
    color: #DB3832;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(219, 56, 50, 0.7);
}

/* Responsive Styling */

/* Laptops and Large Screens */
@media screen and (max-width: 1366px) {
    .carousel {
        height: 108vh;
    }

    .carousel .carousel-items .slide .details {
        left: 5%;
        top: 65%;
        padding: 15px;
        font-size: 14px;
        width: 450px;
    }

    .play-button {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .controls button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .preview {
        height: 180px;
        padding: 0 10px;
    }

    .preview .thumb {
        width: 100px;
        height: 150px;
    }
}

/* Tablets */
@media screen and (max-width: 1024px) {
    .carousel {
        height: 85vh;
    }

    .carousel .carousel-items .slide .details {
        top: 55%;
        padding: 10px;
        width: 400px;
    }

    .carousel .carousel-items .slide .details h2 {
        font-size: 30px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .preview {
        height: 150px;
        padding: 0 10px;
    }

    .preview .thumb {
        width: 90px;
        height: 130px;
    }

    .controls button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Prevent Horizontal Scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}



/* Fix Slide Details for Mobile */
@media screen and (max-width: 768px) {
    .carousel .carousel-items .slide .details {
        display: none !important; /* Hides details section only on mobile */
    }

    .carousel .carousel-items .slide .details h2 {
        font-size: 20px;
    }
}

/* Move Thumbnails to the Bottom on Mobile */
@media screen and (max-width: 768px) {
    .preview {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        display: flex;
        justify-content: center;
        gap: 5px;
        height: auto;
        overflow-x: auto;
        padding: 10px;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .preview::-webkit-scrollbar {
        display: none; /* Hide scrollbar */
    }

    .preview .thumb {
        width: 80px;
        height: 100px;
        flex-shrink: 0;
    }

    .preview .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
}

/* Fix Play Button for Mobile */
@media screen and (max-width: 768px) {
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Fix Controls for Mobile */
@media screen and (max-width: 768px) {
    .controls {
        top: 45%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 15px;
    }

    .controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-top: 40px;
    }
}





/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .carousel {
        height: 75vh;
    }

    .carousel .carousel-items .slide .details {
        top: 50%;
        padding: 8px;
        width: 100%;
    }

    .carousel .carousel-items .slide .details h2 {
        font-size: 20px;
    }

    .play-button {
        /*width: 35px;*/
        /*height: 35px;*/
        /*font-size: 18px;*/
        width:45px;
        height: 45px;
        font-size: 18px;
        margin-top: 30px;
    }

    .preview {
        height: 100px;
        padding: 0 5px;
    }

    .preview .thumb {
        width: 70px;
        height: 100px;
    }

    .controls button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}



@media (max-width: 600px) {
    .slider-thumbnail {
        top: 60px;
        right: 10px;
        width: 80px;
        height: 80px;
    }

    .thumbnail-play-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}
