/* Section Container */
.cba-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cba-section-title {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
    padding-left: 5px;
}

/* Grid Layout */
.cba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

/* Slider Container */
.cba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: ew-resize;
    border-radius: 4px;
    background: #f0f0f0;
    user-select: none;
}

/* Base Image (After) */
.cba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.cba-img.cba-after {
    z-index: 1;
}

/* Before Image with Clip */
.cba-img.cba-before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* Vertical Divider Line */
.cba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    z-index: 3;
    pointer-events: none;
    transform: translateX(-50%);
}

/* Circular Handle with Arrows */
.cba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Arrow Icons inside Handle */
.cba-handle-arrow {
    width: 0;
    height: 0;
    border-style: solid;
}

.cba-handle-arrow.left {
    border-width: 7px 9px 7px 0;
    border-color: transparent #666 transparent transparent;
}

.cba-handle-arrow.right {
    border-width: 7px 0 7px 9px;
    border-color: transparent transparent transparent #666;
}

/* Hidden Range Input for Interaction */
.cba-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cba-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 44px;
    height: 44px;
    cursor: ew-resize;
}

/* Responsive */
@media (max-width: 768px) {
    .cba-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .cba-section-title {
        font-size: 22px;
    }
}