/* =========================================================
   BEFORE AFTER TESTIMONIALS
========================================================= */

.bat-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
}


.bat-container {
    position: relative;
    max-width: 1450px;
    min-height: 650px;
    margin: 0 auto;
    padding: 0 5%;
}


/* =========================================================
   IMAGE
========================================================= */
/* =========================================
   IMAGE COMPARISON
========================================= */

.bat-image-area {
    position: absolute;

    top: 0;
    left: 5%;

    width: 58%;
    height: 565px;

    overflow: hidden;

    border-radius: 30px;

    background: #ddd;
}


/* Both images ALWAYS occupy the full image area */

.bat-after-image,
.bat-before-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover;

    display: block;

    margin: 0 !important;
}


/* AFTER IMAGE */

.bat-after-image {
    z-index: 1;
}


/* BEFORE IMAGE */

.bat-before-image {
    z-index: 2;

    /*
     * Initially show left 50%
     */
    clip-path: inset(
        0 50% 0 0
    );

    -webkit-clip-path: inset(
        0 50% 0 0
    );
}


/* =========================================
   DIVIDER
========================================= */

.bat-divider {
    position: absolute;

    top: 0;
    left: 50%;

    width: 4px;
    height: 100%;

    background: #fff;

    transform: translateX(-50%);

    z-index: 10;

    pointer-events: none;
}


/* =========================================
   DRAG BUTTON
========================================= */

.bat-drag-handle {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 74px;
    height: 74px;

    transform: translate(-50%, -50%);

    border: none;

    border-radius: 50%;

    background: #fff;

    color: #17243a;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    font-size: 36px;

    line-height: 1;

    cursor: ew-resize;

    pointer-events: auto;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
}


.bat-drag-handle span {
    line-height: 1;
}

/* =========================================================
   YELLOW CIRCLE
========================================================= */

.bat-time-circle {
    display:none !important;
    position: absolute;

    top: 120px;
    left: 57%;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: #ffca57;

    color: #17273f;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-family: Georgia, serif;

    font-size: 24px;

    line-height: 1.05;

    transform: rotate(-8deg);

    z-index: 15;
}


/* =========================================================
   NAVIGATION
========================================================= */

.bat-navigation {
    position: absolute;

    top: 175px;
    right: 5%;

    display: flex;

    gap: 10px;

    z-index: 20;
}


.bat-navigation button {
    width: 48px;
    height: 48px;

    border: none;

    border-radius: 50%;

    background: #3b5777;

    color: #fff;

    font-size: 24px;

    cursor: pointer;

    transition: all .2s ease;
}


.bat-navigation button:hover {
    background: #16b39f;

    transform: scale(1.05);
}


/* =========================================================
   TESTIMONIAL
========================================================= */

.bat-testimonial {
    position: absolute;

    right: 5%;
    bottom: 0;

    width: 38%;

    padding: 50px 55px;

    background: #16b39f;

    border-radius: 30px;

    color: #fff;

    z-index: 10;
}


.bat-quote {
    font-family: Georgia, serif;

    font-size: 70px;

    line-height: .5;

    margin-bottom: 15px;
}

.bat-title {
    margin: 0 !important;
    color: #fff !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}


.bat-line {
    width: 100%;

    height: 1px;

    margin: 15px 0;

    background: rgba(255,255,255,.35);
}


.bat-description {
    margin: 0 0 30px;

    color: #fff;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   AUTHOR
========================================================= */

.bat-author {
    display: flex;

    align-items: center;

    gap: 12px;
}


.bat-author-image {
    width: 50px !important;
    height: 50px !important;

    border-radius: 50%;

    object-fit: cover;
}


.bat-author-name {
    color: #fff;

    font-size: 16px;

    font-weight: 600;
}


/* =========================================================
   MOBILE
========================================================= */


@media (max-width: 991px) {

    .bat-container {
        min-height: auto;
        padding: 30px 20px;
    }


    .bat-image-area {

        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        height: 500px;
    }


    .bat-time-circle {

        top: 430px;

        left: auto;
        right: 30px;

        width: 100px;
        height: 100px;

        font-size: 20px;
    }


    .bat-navigation {

        top: 30px;
        right: 30px;
    }


    .bat-testimonial {

        position: relative;

        right: auto;
        bottom: auto;

        width: 100%;

        margin-top: -50px;

        padding: 40px 30px;
    }

}

@media (max-width: 991px) {

    .bat-container {
        min-height: auto;

        padding: 30px 20px;
    }


    .bat-image-area {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;

        height: 500px;
    }


    /*.bat-before-image {*/
    /*    width: 100vw;*/
    /*}*/


    .bat-time-circle {

        top: 430px;
        left: auto;
        right: 30px;

        width: 100px;
        height: 100px;

        font-size: 20px;
    }


    .bat-navigation {

        top: 30px;
        right: 30px;
    }


    .bat-testimonial {

        position: relative;

        right: auto;
        bottom: auto;

        width: 100%;

        margin-top: -50px;

        padding: 40px 30px;
    }

}


@media (max-width: 600px) {

    .bat-image-area {
        height: 400px;

        border-radius: 20px;
    }


    .bat-drag-handle {

        width: 65px;
        height: 65px;

        font-size: 30px;
    }


    .bat-title {
        font-size: 24px;
    }


    .bat-description {
        font-size: 16px;
    }


    .bat-testimonial {
        border-radius: 20px;

        padding: 35px 25px;
    }

}