/* ========================================
   Modern Slider Styles - BuildBajar
   ======================================== */

/* Banner Section - Clean & Modern - Full Width Edge-to-Edge - MAXIMUM OVERRIDE */
section.banner-section.p_relative {
    position: relative !important;
    width: 100vw !important;
    max-width: none !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f8f9fa;
}

.banner-section .banner-carousel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Override default slide padding */
.banner-carousel .slide-item {
    padding: 0px 0 !important;
}


/* Slider Image Wrapper */
.slider-image-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    margin: 0;
    overflow: hidden;
    background: #f0f0f0;
}

/* Slider Image - Full Width, Object Fit */
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

/* Hover Effect - Subtle Zoom */
.slide-item:hover .slider-image {
    transform: scale(1.02);
}

/* Owl Carousel Dots - Modern Style - Higher Specificity to Override banner.css */
.banner-section .banner-carousel.owl-carousel.owl-theme.dots-style-one .owl-dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 10;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
}


.banner-section .banner-carousel.owl-carousel.owl-theme.dots-style-one .owl-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border: 2px solid #004684 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.banner-section .banner-carousel.owl-carousel.owl-theme.dots-style-one .owl-dot.active {
    /* width: 30px !important; */
    border-radius: 5px !important;
    background: #004684 !important;
    border: 2px solid #004684 !important;
}

.banner-section .banner-carousel.owl-carousel.owl-theme.dots-style-one .owl-dot:hover {
    background: #004684 !important;
    border-color: #004684 !important;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .slider-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 991px) {
    .slider-image-wrapper {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .slider-image-wrapper {
        height: 300px;
    }

    .banner-carousel.owl-carousel .owl-dots {
        bottom: 15px;
    }

    .banner-carousel.owl-carousel .owl-dot {
        width: 8px;
        height: 8px;
    }

    .banner-carousel.owl-carousel .owl-dot.active {
        width: 24px;
    }
}

@media (max-width: 575px) {
    .slider-image-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .slider-image-wrapper {
        height: 200px;
    }
}

/* Loading State */
.slider-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
}

.slider-image-wrapper img {
    position: relative;
    z-index: 2;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Remove loading animation once image is loaded */
.slider-image-wrapper img[src]~ ::before {
    display: none;
}