/* SLIDER FIX - Complete Rewrite for Proper Carousel */

/* Slider Container - RESPONSIVE */
.slider-container {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 1rem !important;
    height: 500px !important;
    width: 100% !important;
}

/* Tablet */
@media only screen and (max-width: 768px) {

    .slider-container,
    #channelSlider {
        height: 250px !important;
    }
}

/* Mobile */
@media only screen and (max-width: 480px) {

    .slider-container,
    #channelSlider {
        height: 180px !important;
    }

    .slider-content {
        padding: 0.75rem !important;
    }

    .slider-content h1 {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .slider-content p {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .slider-content .btn-primary {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .slider-content .live-badge {
        font-size: 0.625rem !important;
        padding: 0.25rem 0.5rem !important;
        margin-bottom: 0.25rem !important;
    }

    .slider-arrow {
        width: 2rem !important;
        height: 2rem !important;
    }

    .slider-arrow i {
        font-size: 0.75rem !important;
    }
}

/* Small Mobile */
@media only screen and (max-width: 360px) {

    .slider-container,
    #channelSlider {
        height: 150px !important;
    }
}

/* Slider Slides - CRITICAL FIX */
.slider-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.7s ease-in-out !important;
    z-index: 1 !important;
}

.slider-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
}

.slider-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.slider-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%) !important;
    z-index: 2 !important;
}

.slider-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1.5rem !important;
    z-index: 3 !important;
}

@media (min-width: 768px) {
    .slider-content {
        padding: 2.5rem !important;
    }
}

.slider-dots {
    position: absolute !important;
    bottom: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 0.5rem !important;
    z-index: 10 !important;
}

.slider-dot {
    width: 0.5rem !important;
    height: 0.5rem !important;
    border-radius: 9999px !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
}

.slider-dot.active {
    width: 2rem !important;
    background-color: #10b981 !important;
}

.slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    z-index: 10 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7) !important;
    transform: translateY(-50%) scale(1.1) !important;
    border-color: #10b981 !important;
}

.slider-arrow-left {
    left: 0.5rem !important;
}

.slider-arrow-right {
    right: 0.5rem !important;
}

/* Animation for slide content */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}