/* ========================================
   HOME SLIDER & BANNER SECTIONS - MOBILE RESPONSIVE
   Slider: Recommended 1161 × 280px
   Banner: Recommended 1650 × 490px
   ======================================== */

/* ========================================
   1. HOME SLIDER SECTION
   ======================================== */

.home-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.home-slider-carousel {
    width: 100%;
}

.slider-item {
    position: relative;
    width: 100%;
}

.slider-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slider-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

.slider-link {
    display: block;
    width: 100%;
    cursor: pointer;
}

/* Owl Carousel Dots for Slider */
.home-slider-carousel.owl-theme .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin: 0;
}

.home-slider-carousel.owl-theme .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.home-slider-carousel.owl-theme .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.home-slider-carousel.owl-theme .owl-dots .owl-dot.active span,
.home-slider-carousel.owl-theme .owl-dots .owl-dot:hover span {
    background: #fff;
    transform: scale(1.2);
}

/* ========================================
   2. HOME BANNER SECTION
   ======================================== */

.home-banner-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.banner-link-wrapper {
    display: block;
    width: 100%;
    cursor: pointer;
}

.banner-link-wrapper:hover .banner-img {
    transform: scale(1.02);
}

/* ========================================
   3. RESPONSIVE DESIGN
   ======================================== */

/* Desktop - Large Screens (1200px and above) */
@media (min-width: 1200px) {
    .home-slider-section {
        margin-bottom: 30px;
    }

    .slider-image-container {
        /* For 1161 × 280px images */
        max-height: 400px;
    }

    .banner-image-container {
        /* For 1650 × 490px images */
        max-height: 490px;
    }
}

/* Tablet - Medium Screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .home-slider-section {
        margin-bottom: 25px;
    }

    .slider-image-container {
        max-height: 400px;
        /* Increased by 50px */
    }

    .banner-image-container {
        max-height: 400px;
    }

    .home-slider-carousel.owl-theme .owl-dots {
        bottom: 15px;
    }

    .home-slider-carousel.owl-theme .owl-dots .owl-dot span {
        width: 10px;
        height: 10px;
    }
}

/* Mobile - Small Screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .home-slider-section {
        margin-bottom: 20px;
    }

    .slider-image-container {
        max-height: 330px;
        /* Increased by 50px */
    }

    .banner-image-container {
        max-height: 300px;
        border-radius: 6px;
    }

    .banner-img {
        border-radius: 6px;
    }

    .home-slider-carousel.owl-theme .owl-dots {
        bottom: 12px;
    }

    .home-slider-carousel.owl-theme .owl-dots .owl-dot {
        margin: 0 4px;
    }

    .home-slider-carousel.owl-theme .owl-dots .owl-dot span {
        width: 9px;
        height: 9px;
    }

    .home-banner-section {
        margin: 20px 0 !important;
    }
}

/* Mobile - Extra Small Screens (below 576px) */
@media (max-width: 575px) {
    .home-slider-section {
        margin-bottom: 15px;
    }

    .slider-image-container {
        max-height: 280px;
        /* Increased by 50px */
        border-radius: 4px;
    }

    .slider-img {
        border-radius: 4px;
    }

    .banner-image-container {
        max-height: 250px;
        border-radius: 4px;
    }

    .banner-img {
        border-radius: 4px;
    }

    .home-slider-carousel.owl-theme .owl-dots {
        bottom: 10px;
    }

    .home-slider-carousel.owl-theme .owl-dots .owl-dot {
        margin: 0 3px;
    }

    .home-slider-carousel.owl-theme .owl-dots .owl-dot span {
        width: 8px;
        height: 8px;
        border-width: 1px;
    }

    .home-banner-section {
        margin: 15px 0 !important;
    }
}

/* ========================================
   4. LOADING STATE & ANIMATIONS
   ======================================== */

.slider-image-container::before,
.banner-image-container::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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-image-container.loading::before,
.banner-image-container.loading::before {
    opacity: 1;
}

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

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

/* Fade in animation for images */
.slider-img,
.banner-img {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   5. ACCESSIBILITY & PERFORMANCE
   ======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .slider-img,
    .banner-img,
    .home-slider-carousel.owl-theme .owl-dots .owl-dot span {
        animation: none;
        transition: none;
    }

    .banner-link-wrapper:hover .banner-img {
        transform: none;
    }
}

/* Focus states for accessibility */
.slider-link:focus,
.banner-link-wrapper:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .home-slider-carousel.owl-theme .owl-dots {
        display: none;
    }
}