/* ============================================
   Essential Swiper Structural Styles for Home Slider ONLY
   (Scoped to .image-slider-3 to avoid conflicts with other sliders)
   ============================================ */
.image-slider-3 .swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}

.image-slider-3 .swiper-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: ease-out;
    box-sizing: content-box;
}

.image-slider-3 .swiper-slide {
    flex-shrink: 0;
    width: 100% !important;
    position: relative;
    transition-property: transform;
    display: block;
    box-sizing: border-box;
}

.image-slider-3 .swiper-slide-invisible-blank {
    visibility: hidden;
}

/* Swiper Pagination - Scoped to Home Slider */
.image-slider-3 .swiper-pagination {
    position: absolute;
    text-align: center;
    transition: 300ms opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.image-slider-3 .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #000;
    opacity: 0.2;
    cursor: pointer;
}

.image-slider-3 .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--swiper-pagination-color, var(--swiper-theme-color, #007aff));
}

.image-slider-3 .swiper-horizontal > .swiper-pagination-bullets,
.image-slider-3 .swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 10px;
    left: 0;
    width: 100%;
}

.image-slider-3 .swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,
.image-slider-3 .swiper-pagination-bullets.swiper-pagination-horizontal .swiper-pagination-bullet {
    margin: 0 4px;
}

/* ============================================
   Home Slider Custom Styles
   (Fixed container with image cropping/masking)
   ============================================ */
.image-slider-3 {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop - acts as a mask/frame */
    overflow: hidden;
}

.image-slider-3 .image-slider-3-slides {
    width: 100%;
    height: 100%;
}

.image-slider-3 .swiper-wrapper {
    height: 100%;
    align-items: center;
}

.image-slider-3 .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100% !important;
    height: 100%;
    overflow: hidden;
}

/* Hide non-active slides to prevent bleeding */
.image-slider-3 .swiper-slide:not(.swiper-slide-active) {
    visibility: hidden;
}

.image-slider-3 .swiper-slide.swiper-slide-active {
    visibility: visible;
}

.image-slider-3 .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop/mask image to fill container while maintaining aspect ratio */
    object-position: center; /* Center the image within the container */
    display: block;
}

.image-slider-3 .swiper-slide a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.image-slider-3 .swiper-slide a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Pagination Styles */
.image-slider-3 .swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.image-slider-3 .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.image-slider-3 .swiper-pagination-bullet-active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Navigation Buttons */
.image-slider-3 .swiper-navigation-btns {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.image-slider-3 .swiper-nav-button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: all;
}

.image-slider-3 .swiper-nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-slider-3 .swiper-btn-prev {
    right: 20px;
}

.image-slider-3 .swiper-btn-next {
    left: 20px;
}

.image-slider-3 .swiper-nav-button i {
    font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .image-slider-3 {
        height: 400px; /* Fixed height for tablet - acts as a mask/frame */
    }

    .image-slider-3 .swiper-nav-button {
        width: 40px;
        height: 40px;
    }

    .image-slider-3 .swiper-btn-prev {
        right: 10px;
    }

    .image-slider-3 .swiper-btn-next {
        left: 10px;
    }

    .image-slider-3 .swiper-nav-button i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .image-slider-3 {
        height: 300px; /* Fixed height for mobile - acts as a mask/frame */
    }

    .image-slider-3 .swiper-nav-button {
        width: 35px;
        height: 35px;
    }

    .image-slider-3 .swiper-nav-button i {
        font-size: 14px;
    }
}

/* Mobile Banner Button */
.mobile-banner-button {
    display: none;
}

@media (max-width: 768px) {
    .mobile-banner-button {
        display: inline-block;
    }
}

