.before-after-section {
    background: #f4f8fc;
}

.ba-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .09);
}

.ba-slider {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #eaf1fb;
}

.ba-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .35s ease, transform .45s ease;
}

.ba-slide.active {
    opacity: 1;
    transform: scale(1);
}

.ba-label {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    color: #fff;
    background: rgba(4, 20, 43, .78);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 800;
}

.ba-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(4, 20, 43, .58);
    color: #fff;
    font-weight: 900;
    line-height: 1;
}

.ba-prev {
    left: 10px;
}

.ba-next {
    right: 10px;
}

.ba-caption {
    padding: 1rem;
}

.ba-caption span {
    color: #0866d6;
    display: block;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ba-caption h3 {
    margin: .25rem 0 0;
    font-size: 1.08rem;
}

