/* Ad Carousel Manager - Public Styles */

.acm-carousel-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.acm-carousel-wrapper .swiper-wrapper {
    align-items: center;
}

.acm-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.acm-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.acm-banner-link:hover {
    opacity: 0.9;
}

.acm-slide img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Pagination styling */
.acm-carousel-wrapper .swiper-pagination {
    position: relative;
    margin-top: 10px;
}

.acm-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 1;
}

.acm-carousel-wrapper .swiper-pagination-bullet-active {
    background: #333;
}

/* Navigation arrows */
.acm-carousel-wrapper .swiper-button-prev,
.acm-carousel-wrapper .swiper-button-next {
    color: #333;
}

.acm-carousel-wrapper .swiper-button-prev:after,
.acm-carousel-wrapper .swiper-button-next:after {
    font-size: 24px;
}

/* Responsive styles for common banner sizes */

/* Leaderboard 970x250 */
.acm-carousel-wrapper[data-size="970x250"] {
    max-width: 970px;
}

/* Medium Rectangle 300x250 */
.acm-carousel-wrapper[data-size="300x250"] {
    max-width: 300px;
}

/* Half Page 300x600 */
.acm-carousel-wrapper[data-size="300x600"] {
    max-width: 300px;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .acm-carousel-wrapper[data-size="970x250"] {
        max-width: 100%;
    }

    .acm-carousel-wrapper[data-size="970x250"] .acm-slide img {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .acm-carousel-wrapper .swiper-button-prev,
    .acm-carousel-wrapper .swiper-button-next {
        display: none;
    }

    .acm-carousel-wrapper .swiper-pagination {
        margin-top: 5px;
    }

    .acm-carousel-wrapper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Fade effect fix */
.acm-carousel-wrapper .swiper-slide-duplicate {
    visibility: visible;
}

/* Loading state */
.acm-carousel-wrapper.acm-loading {
    min-height: 100px;
    background: #f5f5f5;
}

.acm-carousel-wrapper.acm-loading .swiper-wrapper {
    opacity: 0;
}
