/*
Slider Image Fix - Make images fit properly in slider
*/

/* Fix slider images for both Arabic and French versions */
.featured-slider-1 .slider-img {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.featured-slider-1 .slider-img .img-hover-scale {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.featured-slider-1 .slider-img .img-hover-scale a {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
}

/* Remove background8 overlay */
.featured-slider-1 .slider-img .background8,
.featured-slider-1 .slider-img span[class*="background"] {
    display: none !important;
}

.featured-slider-1 .slider-img img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 500px !important;
    max-height: 500px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure proper image display */
.featured-slider-1 .slider-single .row {
    align-items: stretch !important;
    min-height: 500px !important;
}

.featured-slider-1 .align-center-vertical {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-height: 500px !important;
    padding: 40px !important;
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .featured-slider-1 .slider-img {
        height: 350px !important;
    }
    
    .featured-slider-1 .slider-img img {
        min-height: 350px !important;
        max-height: 350px !important;
    }
    
    .featured-slider-1 .slider-single .row {
        min-height: 350px !important;
    }
    
    .featured-slider-1 .align-center-vertical {
        min-height: auto !important;
        padding: 30px 20px !important;
    }
}

@media (max-width: 768px) {
    .featured-slider-1 .slider-img {
        height: 280px !important;
    }
    
    .featured-slider-1 .slider-img img {
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .featured-slider-1 .slider-single .row {
        min-height: 280px !important;
    }
    
    .featured-slider-1 .align-center-vertical {
        padding: 20px 15px !important;
    }
}

