/* 
 * File: mobile-fullscreen-slider.css
 * Makes the slider image fill the entire mobile viewport and centers content
 */

/* Make slider take full height of viewport on mobile */
@media (max-width: 768px) {
    /* Ensure the slider section fills more of the screen */
    .hero-slider-section {
        margin-bottom: 0;
        padding: 0;
        width: 100%;
        overflow: hidden;
    }
    
    /* Remove any border radius that might be restricting the image */
    .hero-slider {
        border-radius: 0;
        box-shadow: none;
        height: 100vh !important; /* Force full viewport height */
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    /* Ensure slides take full height */
    .slide {
        height: 100vh !important;
        max-height: 100vh !important;
        padding-bottom: 0 !important;
        overflow: hidden;
    }
    
    /* Make the slide inner (with the image) take full height/width and position it properly */
    .slide-inner {
        height: 100vh !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding-bottom: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    /* Add a stronger gradient overlay so text is readable */
    .slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, 
                    rgba(0,0,0,0.5) 0%, 
                    rgba(0,0,0,0.2) 40%, 
                    rgba(0,0,0,0.2) 60%, 
                    rgba(0,0,0,0.7) 100%) !important;
        z-index: 5;
    }
    
    /* Center all content perfectly */
    .slide-content {
        position: absolute;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center !important;
        width: 85% !important;
        padding: 20px !important;
        z-index: 10 !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(5px) !important;
        border-radius: 15px !important;
        max-width: 500px !important;
    }
    
    /* Ensure text elements are centered */
    .slide-title, 
    .slide-description {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    /* Make nav dots show at bottom of screen */
    .slider-dots {
        bottom: 30px !important;
        z-index: 100 !important;
    }
    
    /* Position slider navigation buttons appropriately */
    .slider-nav {
        bottom: 50% !important;
        transform: translateY(50%) !important;
        top: auto !important;
        z-index: 100 !important;
    }
    
    /* Remove any padding that might be causing spacing */
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix any possible overflow issues */
    body, html {
        overflow-x: hidden !important;
    }
}

/* Special handling for very small devices */
@media (max-width: 480px) {
    .slide-content {
        width: 90% !important;
        padding: 15px !important;
    }
}