/* ===================================================================
   MOBILE & RESPONSIVE - HERO SLIDER FIXES - ALL DEVICES
   =================================================================== */

/* ============================================
   BASE MOBILE STYLES (All devices under 992px)
   ============================================ */
@media only screen and (max-width: 991px) {
    
    /* Remove ALL margins and paddings globally */
    body, html {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Slider area - WHITE BACKGROUND - no gaps */
    .slider-area.slider-four {
        height: auto !important;
        min-height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    /* Container - WHITE BACKGROUND - no gaps */
    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: #ffffff !important;
    }
    
    /* Carousel - WHITE BACKGROUND - no gaps */
    .banner_slider,
    .banner_slider.owl-carousel {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
    }
    
    .owl-stage-outer,
    .owl-stage {
        height: auto !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .owl-item {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    /* Single slide item - BASE - WHITE BACKGROUND - NO REPEAT */
    .single-slide-item {
        height: auto !important;
        min-height: auto !important;
        background-color: #ffffff !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
    }
    
    /* Remove ::before overlay */
    .single-slide-item::before {
        display: none !important;
    }
    
    /* Image backgrounds for odd/even slides - WHITE BACKGROUND - NO REPEAT */
    .owl-item:nth-child(odd) .single-slide-item {
        background-image: url('https://admin.sagarconsultants.co.uk/storage/banner_images/1769686009_banner.png') !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
        padding-top: 135px !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        background-image: url('https://admin.sagarconsultants.co.uk/storage/banner_images/1769688456_banner.png') !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
        padding-top: 135px !important;
    }
    
    /* Content container - WHITE BACKGROUND */
    .single-slide-item .container {
        padding: 20px 15px !important;
        margin: 0 !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    /* Row - WHITE BACKGROUND */
    .single-slide-item .row {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
    }
    
    .col-lg-8,
    .col-md-10 {
        padding: 0 15px !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        background: #ffffff !important;
    }
    
    /* Text content */
    .slider-content {
        text-align: center !important;
        padding: 0 !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        background: transparent !important;
    }
    
    .slider-content h1 {
        font-size: 24px !important;
        line-height: 1.4 !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        text-align: center !important;
        color: #000000 !important;
        font-weight: 700 !important;
    }
    
    .slider-content h1 span {
        color: #ff6a00 !important;
    }
    
    .slider-content br {
        display: none !important;
    }
    
    .text-right,
    .text-left {
        text-align: center !important;
    }
    
    .justify-content-end,
    .justify-content-start {
        justify-content: center !important;
    }
    
    /* Button styling */
    .slider-button {
        text-align: center !important;
        margin: 0 0 25px 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }
    
    .slider-button .dtbtn {
        padding: 14px 35px !important;
        font-size: 15px !important;
        border-radius: 30px !important;
        background: #ff6b35 !important;
        color: #ffffff !important;
        border: none !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3) !important;
        white-space: nowrap !important;
        min-width: fit-content !important;
        transition: all 0.3s ease !important;
    }
    
    .slider-button .dtbtn:hover {
        background: #e55a25 !important;
        box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4) !important;
        transform: translateY(-2px) !important;
    }
    
    .slider-button .dtbtn i {
        font-size: 14px !important;
        margin-left: 5px !important;
    }
    
    /* Navigation controls - WHITE BACKGROUND */
    #custom-controls {
        position: relative !important;
        padding: 18px 0 20px 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 30px !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        width: 100% !important;
    }
    
    #prev-slide,
    #next-slide {
        width: 42px !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #fff !important;
        border: 2px solid #ddd !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        font-size: 16px !important;
        color: #333 !important;
        transition: all 0.3s ease !important;
    }
    
    #prev-slide:hover,
    #next-slide:hover {
        border-color: #ff6b35 !important;
        color: #ff6b35 !important;
        background: #fff5f2 !important;
    }
    
    /* Dots styling */
    #custom-dots {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        background: transparent !important;
    }
    
    .custom-dot-item {
        width: 12px !important;
        height: 12px !important;
        background: #d0d0d0 !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .custom-dot-item.active {
        background: #ff6b35 !important;
        width: 32px !important;
        border-radius: 6px !important;
    }
    
    /* Remove gap between slider and next section */
    .process-area.why-choose-area,
    .process-area,
    section:not(.slider-area),
    #process {
        margin-top: 0 !important;
        padding-top: 50px !important;
    }
    
    .slider-area + * {
        margin-top: 0 !important;
        padding-top: 50px !important;
    }
}

/* ============================================
   LARGE TABLET - 768px to 991px
   ============================================ */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .owl-item:nth-child(odd) .single-slide-item {
        padding-top: 280px !important;
        background-color: #ffffff !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        padding-top: 280px !important;
        background-color: #ffffff !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
    }
    
    .slider-content h1 {
        font-size: 32px !important;
        margin-bottom: 25px !important;
    }
    
    .slider-button .dtbtn {
        padding: 16px 40px !important;
        font-size: 16px !important;
    }
    
    #custom-controls {
        padding: 22px 0 25px 0 !important;
        gap: 35px !important;
        background: #ffffff !important;
        position: relative !important;
    }
}

/* ============================================
   TABLET LANDSCAPE - 640px to 767px
   ============================================ */
@media only screen and (min-width: 640px) and (max-width: 767px) {
    .owl-item:nth-child(odd) .single-slide-item {
        padding-top: 220px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        padding-top: 220px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .slider-content h1 {
        font-size: 28px !important;
        margin-bottom: 22px !important;
    }
    
    .slider-button .dtbtn {
        padding: 15px 38px !important;
        font-size: 16px !important;
    }
    
    #custom-controls {
        padding: 20px 0 22px 0 !important;
        gap: 35px !important;
        background: #ffffff !important;
    }
}

/* ============================================
   MOBILE LANDSCAPE - 480px to 639px
   ============================================ */
@media only screen and (min-width: 480px) and (max-width: 639px) {
    .owl-item:nth-child(odd) .single-slide-item {
        padding-top: 180px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        padding-top: 180px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .slider-content h1 {
        font-size: 22px !important;
        margin-bottom: 18px !important;
        line-height: 1.3 !important;
    }
    
    .slider-button {
        margin: 0 0 22px 0 !important;
    }
    
    .slider-button .dtbtn {
        padding: 13px 32px !important;
        font-size: 14px !important;
    }
    
    #custom-controls {
        padding: 18px 0 20px 0 !important;
        gap: 28px !important;
        background: #ffffff !important;
    }
}

/* ============================================
   MOBILE PORTRAIT - 376px to 479px
   ============================================ */
@media only screen and (min-width: 376px) and (max-width: 479px) {
    .owl-item:nth-child(odd) .single-slide-item {
        padding-top: 145px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        padding-top: 145px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .slider-content h1 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .slider-button {
        margin: 0 0 20px 0 !important;
    }
    
    .slider-button .dtbtn {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }
    
    #custom-controls {
        padding: 16px 0 18px 0 !important;
        gap: 25px !important;
        background: #ffffff !important;
    }
    
    #prev-slide,
    #next-slide {
        width: 40px !important;
        height: 40px !important;
        font-size: 15px !important;
    }
}

/* ============================================
   SMALL MOBILE - 320px to 375px
   ============================================ */
@media only screen and (min-width: 320px) and (max-width: 375px) {
    .owl-item:nth-child(odd) .single-slide-item {
        padding-top: 120px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        padding-top: 120px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .single-slide-item .container {
        padding: 15px 12px !important;
        background: #ffffff !important;
    }
    
    .slider-content h1 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
        line-height: 1.3 !important;
    }
    
    .slider-button {
        margin: 0 0 18px 0 !important;
    }
    
    .slider-button .dtbtn {
        padding: 11px 26px !important;
        font-size: 13px !important;
    }
    
    #custom-controls {
        padding: 15px 0 18px 0 !important;
        gap: 20px !important;
        background: #ffffff !important;
    }
    
    #prev-slide,
    #next-slide {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
    
    .custom-dot-item {
        width: 10px !important;
        height: 10px !important;
    }
    
    .custom-dot-item.active {
        width: 28px !important;
    }
}

/* ============================================
   EXTRA SMALL MOBILE - Below 320px
   ============================================ */
@media only screen and (max-width: 319px) {
    .owl-item:nth-child(odd) .single-slide-item {
        padding-top: 110px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .owl-item:nth-child(even) .single-slide-item {
        padding-top: 110px !important;
        background-color: #ffffff !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .single-slide-item .container {
        padding: 12px 10px !important;
        background: #ffffff !important;
    }
    
    .slider-content h1 {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        line-height: 1.3 !important;
    }
    
    .slider-button {
        margin: 0 0 15px 0 !important;
    }
    
    .slider-button .dtbtn {
        padding: 10px 22px !important;
        font-size: 12px !important;
    }
    
    #custom-controls {
        padding: 12px 0 15px 0 !important;
        gap: 18px !important;
        background: #ffffff !important;
    }
    
    #prev-slide,
    #next-slide {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }
    
    .custom-dot-item {
        width: 8px !important;
        height: 8px !important;
    }
    
    .custom-dot-item.active {
        width: 24px !important;
    }
}

/* ============================================
   DESKTOP - 992px and above (ORIGINAL DESIGN)
   ============================================ */
@media only screen and (min-width: 992px) {
    /* Reset to original full-screen slider - DON'T override background images */
    .single-slide-item {
        height: 90vh !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: flex !important;
        align-items: center !important;
    }
    
    #custom-controls {
        position: absolute !important;
        bottom: 30px !important;
        left: 0 !important;
        right: 0 !important;
        background: transparent !important;
    }
    
    .slider-content h1 {
        font-size: 50px !important;
        line-height: 1.2 !important;
    }
    
    .text-right .slider-content {
        text-align: right !important;
    }
    
    .text-left .slider-content {
        text-align: left !important;
    }
}

/* ============================================
   LARGE DESKTOP - 1200px and above
   ============================================ */
@media only screen and (min-width: 1200px) {
    .slider-content h1 {
        font-size: 55px !important;
    }
}

/* ============================================
   EXTRA LARGE DESKTOP - 1600px and above
   ============================================ */
@media only screen and (min-width: 1600px) {
    .slider-content h1 {
        font-size: 60px !important;
    }
}