/* COMPLETE RESPONSIVE PATCH: balsanavimalnath.org
   Fixes: Slider Alignment, Black Gaps, and Stacking Layouts
*/

/* --- GLOBAL MOBILE RESET --- */
@media screen and (max-width: 1024px) {
    
    html, body {
        overflow-x: hidden !important; /* Prevent horizontal scrolling */
        width: 100% !important;
    }

    .container, .wrapper, #main-content {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* --- ROYAL SLIDER RESPONSIVE FIX --- */
    #sliderContainer, 
    #mainSlider, 
    .royalSlider {
        width: 100% !important;
        max-width: 100vw !important;
        height: 380px !important; /* Fixed height for iPad/Mobile to remove black void */
        margin: 0 !important;
        left: 0 !important;
        background: #000 !important;
    }

    /* Ensure images inside slider fill the area without drifting */
    .rsImg {
        width: 100% !important;
        height: 100% !important;
        margin-left: 0 !important;
    }

    /* --- IMAGE & CONTENT FIX (HISTORY SECTION) --- */
    /* Force columns to stack vertically instead of side-by-side */
    .row, .flex-container {
        display: block !important;
    }

    .col-sm-8, .col-md-8, .col-sm-4, .col-md-4, .col-xs-12 {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        display: block !important;
        padding: 10px 15px !important;
    }

    /* Fix the broken image placeholders from your screenshot */
    .img-container, .lazyload {
        width: 100% !important;
        height: auto !important;
        min-height: 250px !important; /* Ensures space for the forced image */
        background-position: center !important;
        background-size: cover !important;
        margin-bottom: 15px !important