/* ================================================================
   Comeback Stories Slider — Section Layout
   ================================================================ */

.cbs-slider {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #F0F0F0;
}

.cbs-slider__container {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    width: 100%;
}

/* ================================================================
   Left Column — Content + Nav
   ================================================================ */

.cbs-slider__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    width: 473px;
    padding: 36px;
    align-self: stretch;
    background-color: #fff;
    z-index: 2;
}

.cbs-slider__editor-content p {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 19px;
    line-height: 1.45;
    margin: 0 0 30px;
    color: #000;
}

.cbs-slider__editor-content a:not(.btn) {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 19px;
    line-height: 1.45;
    color: #000005;
    text-decoration: none;
    border-bottom: 1px solid #000005;
    display: inline-block;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.cbs-slider__editor-content a:not(.btn):hover {
    opacity: 0.7;
}

/* ================================================================
   Navigation Buttons
   ================================================================ */

.cbs-slider__nav {
    display: flex;
    gap: 6px;
    margin-top: 40px;
}

.cbs-slider-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cbs-slider-prev {
    background: rgba(255, 255, 255, 0.36);
    color: #07121c;
}

.cbs-slider-prev:hover {
    background: rgba(255, 255, 255, 0.6);
}

.cbs-slider-next {
    background: #fdb835;
    color: #07121c;
    border: 1px solid #07121c;
    border-left-width: 3px;
    border-bottom-width: 3px;
    border-right-width: 1px;
    border-top-width: 1px;
}

.cbs-slider-next:hover {
    transform: translate(-1px, 1px);
}

/* Arrows via pseudo-elements */
.cbs-slider-prev:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: 2px;
}

.cbs-slider-next:before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: 2px;
}

.cbs-slider-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* ================================================================
   Right Column — Slider
   ================================================================ */

.cbs-slider__slider {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    overflow: hidden;
    z-index: 1;
}

.cbs-slider__swiper {
    width: 100%;
    overflow: visible;
}

/* ================================================================
   Slide Cards
   ================================================================ */

.cbs-slider__swiper .swiper-slide.cbs-slide {
    width: 400px;
    flex-shrink: 0;
}

a.cbs-slide__link {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-decoration: none;
    color: inherit;
}

/* Image Container */
.cbs-slide__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 362 / 389;
    border-radius: 9px;
    overflow: hidden;
    background-color: #eee;
}

.cbs-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.cbs-slide__link:hover .cbs-slide__image {
    transform: scale(1.05);
}

/* Gradient Overlay */
.cbs-slide__gradient {
    position: absolute;
    inset: 0;
    border-radius: 9px;
    background: linear-gradient(170.15deg, rgba(0, 0, 0, 0.5) 12.62%, rgba(0, 0, 0, 0) 40.77%);
    pointer-events: none;
}

/* Category Badge */
.cbs-slide__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 3px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 2;
}

.cbs-slide__badge span {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    color: #FFFEFC;
}

/* ================================================================
   Text Content (below image)
   ================================================================ */

.cbs-slide__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cbs-slide__title {
    margin: 0;
    color: #07121c;
}

.cbs-slide__meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font-family: "IBM Plex Sans", sans-serif;
    color: #07121c;
}

.cbs-slide__author {
    font-size: 17px;
    line-height: 1.45;
}

.cbs-slide__separator {
    font-size: 17px;
    line-height: 1.45;
}

.cbs-slide__date {
    font-size: 13px;
    line-height: 1.3;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 992px) {
    .cbs-slider {
        overflow: hidden;
    }

    .cbs-slider__container {
        flex-direction: column;
    }

    .cbs-slider__content {
        width: 100%;
        padding: 20px;
    }

    .cbs-slider__nav {
        margin-top: 24px;
    }

    .cbs-slider__slider {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }

    .cbs-slider__swiper .swiper-slide.cbs-slide {
        width: 85vw;
        max-width: 400px;
    }
}