/**
 * Section: Before / After
 * Interactive slider + text content + tabs
 */

.bc-before-after {
    padding: 120px 0;
}

.bc-before-after__wrapper {
    display: flex;
    align-items: center;
    gap: 120px;
}

/* Left column: slider + tabs */
.bc-before-after__left {
    flex: 1;
    min-width: 0;
}

/* Slider container */
.bc-before-after__slider {
    position: relative;
}

.bc-before-after__slide {
    display: none;
}

.bc-before-after__slide--active {
    display: block;
}

.bc-before-after__image-wrap {
    position: relative;
    overflow: hidden;
    height: 500px;
    user-select: none;
    -webkit-user-select: none;
}

/* After image: full size, sits behind */
.bc-before-after__after {
    position: absolute;
    inset: 0;
}

.bc-before-after__after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Before image: full size, clipped via clip-path so image doesn't rescale */
.bc-before-after__before {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.bc-before-after__before img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Divider line + handle */
.bc-before-after__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    background: var(--bc-soft-grey);
    z-index: 3;
    cursor: ew-resize;
}

.bc-before-after__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 4;
    cursor: ew-resize;
}

.bc-before-after__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--bc-soft-grey);
    border-radius: 100px;
    flex-shrink: 0;
}

.bc-before-after__arrow svg {
    width: 24px;
    height: 24px;
}

/* Before/After labels */
.bc-before-after__label {
    position: absolute;
    top: 16px;
    z-index: 5;
    background: var(--bc-black);
    color: #fff;
    font-family: var(--bc-font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 2px 10px;
    border-radius: 100px;
}

.bc-before-after__label--before {
    left: 16px;
}

.bc-before-after__label--after {
    right: 16px;
}

/* Category tabs */
.bc-before-after__tabs {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.bc-before-after__tab {
    padding: 10px 24px;
    border: 1px solid var(--bc-black);
    border-radius: 100px;
    background: #fff !important;
    font-family: var(--bc-font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--bc-black) !important;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.bc-before-after__tab--active {
    background: var(--bc-black) !important;
    color: #fff !important;
}

/* Right column: text content */
.bc-before-after__right {
    flex-shrink: 0;
    width: 800px;
    max-width: 45%;
}

.bc-before-after .bc-section__title {
    font-family: var(--bc-font-heading);
    font-weight: 400;
    line-height: 72px;
    margin: 0 0 24px 0;
    color: var(--bc-black);
    font-feature-settings: 'liga' 0;
}

.bc-before-after__desc {
    font-family: var(--bc-font-body);
    font-size: 20px;
    font-weight: 400;
    color: #3B3336;
    margin: 0 0 48px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .bc-before-after {
        padding: 80px 0;
    }

    .bc-before-after__wrapper {
        flex-direction: column;
        gap: 48px;
    }

    .bc-before-after__right,
    .bc-before-after__left {
        width: 100%;
        max-width: 100%;
    }

    .bc-before-after__desc {
        font-size: 18px;
        line-height: 30px;
        margin-bottom: 32px;
    }
}

@media (max-width: 767px) {
    .bc-before-after {
        padding: 60px 0;
    }

    .bc-before-after__image-wrap {
        height: 350px;
    }
}
