/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* ===== BASE WRAPPER ===== */
.ba-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    user-select: none;
    border-radius: 16px;
    margin: 0 auto;
    display: block;
    transition: height 0.3s ease;
}

.ba-before,
.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.ba-before {
    z-index: 1;
}

.ba-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.4s ease;
}

.ba-before img,
.ba-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LABELS ===== */
.ba-label {
    position: absolute;
    top: 20px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    z-index: 10;
    pointer-events: none;
}

.ba-label-before {
    left: 40px;
}

.ba-label-after {
    right: 40px;
}

/* ===== SLIDER ===== */
.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
}

/* ===== HANDLE ===== */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 30px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    user-select: none;
    pointer-events: none;
    transition: left 0.4s ease;
}

.ba-handle .fa-arrow-left,
.ba-handle .fa-arrow-right {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    color: #333;
}

.ba-handle svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* ===== MODERN TAB GROUP ===== */
.ba-tab-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    background: #f3f3f4;
    border-radius: 50px;
    padding: 6px;
    width: fit-content;
    z-index: 15;
}
.e-tab-container{
    display: flex;;
}


.ba-tab {
    padding: 14px 26px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1em;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #333;
    border: none;
    background: transparent;
}

.ba-tab:hover {
    background: rgba(255, 255, 255, 0.6);
}

.ba-tab.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ba-wrapper {
        min-height: 480px;
    }

    .ba-tab-container {
        padding: 4px;
        margin-bottom: 30px;
    }

    .ba-tab {
        padding: 10px 18px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .ba-wrapper {
        min-height: 420px;
    }

    .ba-tab-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ba-tab {
        padding: 10px 20px;
        font-size: 15px;
    }

    .ba-label {
        font-size: 16px;
        top: 15px;
    }
}

@media (max-width: 480px) {
    .ba-wrapper {
        min-height: 360px;
    }

    .ba-tab-container {
        margin-bottom: 24px;
    }

    .ba-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
}