/* ATM Overflow Carousel Styles */
.atm-overflow-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow: visible !important;
}

.atm-overflow-carousel {
    width: 100%;
    height: 100%;
    overflow: visible !important;
}

.atm-overflow-carousel .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.atm-overflow-carousel .swiper-slide {
    width: auto !important;
    height: auto !important;
    flex-shrink: 0 !important;
}

.atm-carousel-slide {
    height: 400px;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.atm-carousel-slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atm-carousel-slide-image img {
    width: auto !important;
    height: 100% !important;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .atm-carousel-slide {
        height: 300px;
    }
    .atm-carousel-slide-image img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .atm-carousel-slide {
        height: 200px;
    }
    .atm-carousel-slide-image img {
        max-height: 200px;
    }
}

/* Swiper Navigation */
.atm-overflow-carousel .swiper-button-next,
.atm-overflow-carousel .swiper-button-prev {
    color: #333;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.atm-overflow-carousel .swiper-button-next:after,
.atm-overflow-carousel .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* Swiper Pagination */
.atm-overflow-carousel .swiper-pagination {
    bottom: -30px !important;
}

.atm-overflow-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
    transition: all 0.3s ease;
}

.atm-overflow-carousel .swiper-pagination-bullet-active {
    background: #333;
    width: 24px;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .atm-overflow-carousel .swiper-button-next,
    .atm-overflow-carousel .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .atm-overflow-carousel .swiper-button-next:after,
    .atm-overflow-carousel .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .atm-overflow-carousel-wrapper {
        padding: 15px 0;
    }
}
