/* ============================= */
/* BEFORE AFTER SLIDER PRO STYLE */
/* ============================= */

.before-after {
    position: relative;
    width: 100%;
}

/* Slider Container */
.ba-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    cursor: ew-resize;
}

/* Images */
.ba-slider img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* Before Image Wrapper */
.ba-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid #4c98cf;
}

/* Handle */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #4c98cf;
    transform: translateX(-50%);
    z-index: 10;
    transition: background 0.3s ease;
}

.ba-slider:hover .ba-handle {
    background: #0E104B;
}

/* Handle Circle */
.ba-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    background: #0E104B;
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Arrows */
.ba-arrow {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border: solid #fff;
    border-width: 2px 2px 0 0;
    transform: translateY(-50%);
}

.ba-arrow.left {
    left: -8px;
    transform: translateY(-50%) rotate(-135deg);
}

.ba-arrow.right {
    right: -8px;
    transform: translateY(-50%) rotate(45deg);
}

/* Labels */
.ba-label {
    position: absolute;
    top: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: rgba(14, 16, 75, 0.85);
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.ba-before-label {
    left: 20px;
}

.ba-after-label {
    right: 20px;
    background: rgba(76, 152, 207, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .ba-handle::after {
        width: 36px;
        height: 36px;
    }
}