/* Before-After Slider - Premium Design */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ba-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ba-card:hover {
    box-shadow: 0 12px 40px rgba(11,14,51,0.15);
    transform: translateY(-4px);
}

.ba-card .ba-label {
    display: none;
}

.ba-card .ba-label::after {
    content: '';
    display: none;
}

.ba-card:hover .ba-label::after {
    opacity: 0;
}

/* Slider Container */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.ba-slider img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-slider .ba-after {
    clip-path: inset(0 0 0 50%);
}

/* Clean slider - small before/after labels at bottom */
.ba-slider::before {
    content: 'BEFORE';
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9);
    font-family: "Sora", sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.5px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 2;
    pointer-events: none;
}

.ba-slider::after {
    content: 'AFTER';
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.9);
    font-family: "Sora", sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.5px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: 2;
    pointer-events: none;
}

/* Handle Line */
.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s;
}

/* Handle Circle */
.ba-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #0b0e33;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(11,14,51,0.15), 0 4px 16px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.ba-slider:active .ba-handle::after {
    box-shadow: 0 0 0 8px rgba(132,176,221,0.3), 0 4px 20px rgba(0,0,0,0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Handle Arrows */
.ba-handle::before {
    content: '\2039\00a0\00a0\203a';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    z-index: 6;
    pointer-events: none;
    line-height: 1;
    letter-spacing: -2px;
}

/* Responsive */
@media (max-width: 991px) {
    .ba-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

@media (max-width: 575px) {
    .ba-grid { grid-template-columns: 1fr; gap: 16px; }
    .ba-handle::after { width: 38px; height: 38px; }
    .ba-card .ba-label { padding: 12px 16px; font-size: 14px; }
}

/* Hide old tag spans - using pseudo-elements now */
.ba-slider .ba-tag { display: none; }
