/* ═══════════════════════════════════════════════════
   Category Banner Swiper Slider  –  Frontend Styles
   v3.0  |  Layout: Image LEFT · Content RIGHT
═══════════════════════════════════════════════════ */

/* ── Wrapper ── */
.cbs-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 0 36px;
    --cbs-h: 500px;
    --cbs-accent: #0073aa;
    --cbs-radius: 12px;
}

/* ── Swiper container ── */
.cbs-swiper {
    width: 100%;
    border-radius: var(--cbs-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

/* ════════════════════════════
   SLIDE INNER  (flex row)
════════════════════════════ */
.cbs-slide-inner {
    display: flex;
    align-items: stretch;
    height: var(--cbs-h);
    background: #fff;
}

/* ── LEFT: Image panel (60%) ── */
.cbs-img-panel {
    flex: 0 0 60%;
    position: relative;
    overflow: hidden;
}

.cbs-img-panel a {
    display: block;
    width: 100%;
    height: 100%;
}

.cbs-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s ease;
}

.swiper-slide-active .cbs-banner-img {
    transform: scale(1.04);
}

/* ── RIGHT: Content panel (40%) ── */
.cbs-content-panel {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
    position: relative;
}

/* subtle left-border accent */
.cbs-content-panel::before {
    content: '';
    position: absolute;
    left: 0; top: 15%; bottom: 15%;
    width: 4px;
    background: var(--cbs-accent);
    border-radius: 0 4px 4px 0;
    opacity: .6;
}

.cbs-content-inner {
    width: 100%;
    max-width: 340px;
}

/* ── Category label ── */
.cbs-cat-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cbs-accent);
    background: rgba(0,115,170,.08);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
}

/* ── Title ── */
.cbs-title {
    font-size: clamp(1.3rem, 2.5vw, 15px);
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a2e;
    margin: 0 0 16px;
}

/* ── Description ── */
.cbs-desc {
    font-size: 0.97rem;
    line-height: 1.7;
    color: #555;
    margin: 0 0 28px;
}

/* ── Button ── */
.cbs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cbs-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 8px;
    transition: background .25s, transform .2s, box-shadow .25s;
    box-shadow: 0 4px 14px rgba(0,115,170,.30);
}

.cbs-btn:hover {
    background: #005d8e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,115,170,.40);
}

.cbs-btn svg {
    transition: transform .2s;
}
.cbs-btn:hover svg {
    transform: translateX(4px);
}

/* ════════════════════════════
   NAVIGATION
════════════════════════════ */
.cbs-btn-prev,
.cbs-btn-next {
    color: #fff !important;
    background: rgba(0,0,0,.35) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    backdrop-filter: blur(4px);
    transition: background .2s !important;
}
.cbs-btn-prev:hover,
.cbs-btn-next:hover {
    background: rgba(0,0,0,.6) !important;
}
.cbs-btn-prev::after,
.cbs-btn-next::after {
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* ── Pagination dots ── */
.cbs-dots {
    bottom: 14px !important;
}
.cbs-dots .swiper-pagination-bullet {
    background: #bbb;
    opacity: 1;
    width: 8px; height: 8px;
    transition: background .2s, transform .2s;
}
.cbs-dots .swiper-pagination-bullet-active {
    background: var(--cbs-accent);
    transform: scale(1.4);
}

/* ════════════════════════════
   NOTICE (no slides)
════════════════════════════ */
.cbs-notice {
    padding: 16px 20px;
    background: #f0f4f8;
    border-left: 4px solid var(--cbs-accent, #0073aa);
    border-radius: 4px;
    color: #555;
    font-size: .95rem;
}

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */

/* Tablet: stack vertically */
@media (max-width: 900px) {
    .cbs-slide-inner {
        flex-direction: column;
        height: auto;
    }
    .cbs-img-panel,
    .cbs-content-panel {
        flex: unset;
        width: 100%;
    }
    .cbs-img-panel {
        height: 260px;
    }
    .cbs-content-panel {
        padding: 32px 28px;
    }
    .cbs-content-panel::before { display: none; }
}

@media (max-width: 560px) {
    .cbs-img-panel { height: 200px; }
    .cbs-content-panel { padding: 24px 20px; }
    .cbs-title { font-size: 1.2rem; }
    .cbs-btn-prev, .cbs-btn-next { display: none !important; }
}
