/* ==========================================================================
   VELA DENTAL — INTERACTIVE BEFORE/AFTER SMILE TRANSFORMATION LAB
   ========================================================================== */

.vd-ba-section {
    padding: 88px 0;
    background-color: var(--bg-deep);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.vd-ba-section .vd-pill-tag {
    background-color: rgba(32, 194, 183, 0.16);
    color: #7eece5;
}

.vd-ba-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
}

.vd-ba-title {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    color: #ffffff;
    margin: 16px 0 16px;
}

.vd-ba-title span {
    color: var(--mint);
}

.vd-ba-desc {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.74;
    margin-bottom: 28px;
}

/* 3 Clinical Case Switcher Cards */
.vd-case-switcher {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.vd-case-btn {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-light);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.3s var(--ease-swiss);
}

.vd-case-btn:hover {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(32, 194, 183, 0.45);
}

.vd-case-btn.is-active {
    background-color: rgba(11, 132, 142, 0.28);
    border-color: var(--mint);
}

.vd-case-btn strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    color: #ffffff;
}

.vd-case-btn small {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3px;
}

.vd-case-duration {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.1);
    color: #9bf3ec;
    white-space: nowrap;
}

/* Interactive Drag Comparison Stage */
.vd-ba-stage-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vd-ba-slider {
    --ba-pos: 52%;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow-deep);
    user-select: none;
    touch-action: pan-y;
    background-color: #06131c;
}

.vd-ba-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vd-ba-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.vd-ba-after {
    z-index: 1;
}

.vd-ba-before {
    clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
    z-index: 2;
}

.vd-ba-before img {
    filter: sepia(0.28) saturate(0.75) brightness(0.86) contrast(0.95);
}

.vd-ba-badge {
    position: absolute;
    top: 18px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
}

.vd-ba-badge-before {
    left: 18px;
    background-color: rgba(9, 30, 44, 0.8);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vd-ba-badge-after {
    right: 18px;
    background-color: var(--primary);
    color: #ffffff;
}

/* Divider Handle */
.vd-ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--ba-pos);
    width: 2px;
    background-color: #ffffff;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.vd-ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--bg-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
    border: 3px solid var(--mint);
}

.vd-ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 6;
    margin: 0;
}

/* Case Clinical Readout Footer */
.vd-ba-readout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-light);
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.84);
}

.vd-ba-readout strong {
    color: #ffffff;
}

.vd-ba-readout i {
    color: var(--mint);
    margin-right: 6px;
}

@media (max-width: 991px) {
    .vd-ba-section {
        padding: 64px 0;
    }

    .vd-ba-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 600px) {
    .vd-ba-slider {
        aspect-ratio: 4 / 3;
    }

    .vd-case-btn {
        flex-direction: column;
        align-items: flex-start;
    }
}
