.cbc-carousel-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.cbc-swiper {
    position: relative;
    width: 100%;
    aspect-ratio: 1942 / 809;
    min-height: 150px;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f6f8;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
    isolation: isolate;
}

.cbc-swiper .swiper-wrapper,
.cbc-swiper .swiper-slide {
    height: 100%;
}

.cbc-swiper .swiper-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cbc-swiper .swiper-slide > a,
.cbc-swiper .cbc-banner-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.cbc-swiper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}

.cbc-swiper .swiper-slide-active img {
    transform: scale(1.018);
}

.cbc-swiper .swiper-slide > a:focus-visible {
    outline: 3px solid #2271b1;
    outline-offset: -3px;
}

/* Soft bottom gradient gives pagination a premium, readable finish. */
.cbc-swiper::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,.28), rgba(0,0,0,0));
}

/* Navigation */
.cbc-swiper .swiper-button-next,
.cbc-swiper .swiper-button-prev {
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
    z-index: 5;
}

.cbc-swiper .swiper-button-next::after,
.cbc-swiper .swiper-button-prev::after {
    font-size: 17px;
    font-weight: 800;
}

.cbc-swiper .swiper-button-next:hover,
.cbc-swiper .swiper-button-prev:hover {
    background: rgba(0,0,0,.68);
    transform: scale(1.06);
}

.cbc-swiper .swiper-button-prev { left: 14px; }
.cbc-swiper .swiper-button-next { right: 14px; }

/* Pagination */
.cbc-swiper .swiper-pagination {
    bottom: 12px !important;
    z-index: 6;
    line-height: 0;
}

.cbc-swiper .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 4px !important;
    opacity: .72;
    background: #fff;
    transition: width .25s ease, border-radius .25s ease, opacity .25s ease, transform .25s ease;
}

.cbc-swiper .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 8px;
    opacity: 1;
    transform: translateY(0);
}

/* Optional banner CTA retained for compatibility. */
.cbc-banner-button {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.78);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    z-index: 7;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
    transition: transform .2s ease, background .2s ease;
}

.cbc-banner-button:hover {
    background: #000;
    color: #fff;
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 1024px) {
    .cbc-swiper { aspect-ratio: 16 / 6.9; border-radius: 12px; }
}

@media (max-width: 768px) {
    .cbc-swiper {
        aspect-ratio: 750 / 296;
        min-height: 0;
        border-radius: 9px;
        box-shadow: 0 5px 18px rgba(0,0,0,.10);
    }

    .cbc-swiper::after { height: 52px; }

    .cbc-swiper .swiper-button-next,
    .cbc-swiper .swiper-button-prev {
        width: 34px;
        height: 34px;
        margin-top: -17px;
    }

    .cbc-swiper .swiper-button-next::after,
    .cbc-swiper .swiper-button-prev::after { font-size: 13px; }
    .cbc-swiper .swiper-button-prev { left: 8px; }
    .cbc-swiper .swiper-button-next { right: 8px; }

    .cbc-swiper .swiper-pagination { bottom: 8px !important; }
    .cbc-swiper .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 3px !important; }
    .cbc-swiper .swiper-pagination-bullet-active { width: 18px; }

    .cbc-banner-button {
        bottom: 30px;
        min-height: 34px;
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cbc-swiper .swiper-button-next,
    .cbc-swiper .swiper-button-prev { display: none; }

    .cbc-swiper .swiper-pagination { bottom: 6px !important; }
    .cbc-swiper .swiper-pagination-bullet { width: 5px; height: 5px; }
    .cbc-swiper .swiper-pagination-bullet-active { width: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .cbc-swiper img,
    .cbc-swiper .swiper-button-next,
    .cbc-swiper .swiper-button-prev,
    .cbc-swiper .swiper-pagination-bullet { transition: none; }
}
