
:root {
    --ba-brown: #6f4a2f;
    --ba-brown-dark: #4f331f;
    --ba-brown-light: #9b7455;
    --ba-white: #ffffff;
    --ba-offwhite: #f8f4ef;
    --ba-border: rgba(111, 74, 47, 0.16);
    --ba-shadow: 0 18px 50px rgba(79, 51, 31, 0.12);
    --ba-shadow-hover: 0 22px 60px rgba(79, 51, 31, 0.18);
}

.before-after-section {
    padding: 25px 0;
    background:
        radial-gradient(circle at top left, rgba(111, 74, 47, 0.05), transparent 28%),
        radial-gradient(circle at bottom right, rgba(155, 116, 85, 0.06), transparent 22%),
        linear-gradient(180deg, #fffdfb 0%, #f8f4ef 100%);
    overflow: hidden;
}

.before-after-section .container {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 15px;
}

.before-after-card {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--ba-border);
    border-radius: 28px;
    padding: 38px;
    box-shadow: var(--ba-shadow);
    backdrop-filter: blur(10px);
    transition: 0.4s ease;
}

.before-after-card:hover {
    box-shadow: var(--ba-shadow-hover);
    transform: translateY(-4px);
}

.before-after-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 34px;
}

.before-after-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ba-brown);
    background: rgba(111, 74, 47, 0.08);
    border: 1px solid rgba(111, 74, 47, 0.14);
    padding: 10px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.before-after-header h2 {
    margin: 0 0 12px;
    color: var(--ba-brown-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 700;
}

.before-after-header p {
    margin: 0;
    color: #6b625b;
    font-size: 16px;
    line-height: 1.8;
}

.compare-slider {
    --position: 52%;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(111, 74, 47, 0.12);
    background: #e9e1d8;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 20px 40px rgba(79, 51, 31, 0.12);
    user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.compare-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent 16%, transparent 84%, rgba(0,0,0,0.1));
    z-index: 1;
    pointer-events: none;
}

.compare-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.compare-img-after {
    z-index: 0;
}

.compare-overlay {
    position: absolute;
    inset: 0;
    width: var(--position);
    overflow: hidden;
    z-index: 2;
    border-right: 1px solid rgba(255,255,255,0.4);
}

.compare-img-before {
    width: 100%;
    height: 100%;
}

.compare-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--position);
    width: 2px;
    transform: translateX(-50%);
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.75) 100%
        );
    box-shadow:
        0 0 0 1px rgba(111, 74, 47, 0.1),
        0 0 15px rgba(255,255,255,0.6);
    z-index: 4;
    pointer-events: none;
}

.compare-handle {
    position: absolute;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, var(--ba-white) 0%, #f5eee8 100%);
    color: var(--ba-brown);
    box-shadow:
        0 12px 25px rgba(79, 51, 31, 0.22),
        0 0 0 8px rgba(111, 74, 47, 0.10);
    z-index: 5;
    cursor: ew-resize;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    padding: 0;
}

.compare-handle:hover,
.compare-handle:focus-visible {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow:
        0 16px 32px rgba(79, 51, 31, 0.26),
        0 0 0 10px rgba(111, 74, 47, 0.14);
    outline: none;
}

.compare-handle-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.compare-handle .arrow {
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    color: var(--ba-brown);
    opacity: 0.95;
}

.handle-center {
    width: 2px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--ba-brown-light), var(--ba-brown-dark));
    display: inline-block;
}

.compare-label {
    position: absolute;
    top: 24px;
    z-index: 6;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(79, 51, 31, 0.12);
    pointer-events: none;
}

.compare-label-before {
    left: 24px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ba-brown-dark);
    border: 1px solid rgba(111, 74, 47, 0.12);
}

.compare-label-after {
    right: 24px;
    background: linear-gradient(135deg, rgba(111, 74, 47, 0.92), rgba(79, 51, 31, 0.95));
    color: var(--ba-white);
    border: 1px solid rgba(255,255,255,0.14);
}

.compare-slider.is-dragging .compare-handle {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow:
        0 18px 34px rgba(79, 51, 31, 0.28),
        0 0 0 12px rgba(111, 74, 47, 0.16);
}

@media (max-width: 991px) {
    .before-after-section {
        padding: 90px 0;
    }

    .before-after-card {
        padding: 24px;
        border-radius: 22px;
    }

    .compare-slider {
        border-radius: 20px;
    }

    .compare-handle {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 767px) {
    .before-after-section {
        padding: 70px 0;
    }

    .before-after-card {
        padding: 18px;
    }

    .before-after-header {
        margin-bottom: 22px;
    }

    .before-after-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    .compare-slider {
        aspect-ratio: 4 / 3;
        border-radius: 18px;
    }

    .compare-label {
        top: 14px;
        padding: 9px 14px;
        font-size: 11px;
    }

    .compare-label-before {
        left: 14px;
    }

    .compare-label-after {
        right: 14px;
    }

    .compare-handle {
        width: 58px;
        height: 58px;
    }

    .compare-handle .arrow {
        font-size: 14px;
    }

    .handle-center {
        height: 20px;
    }
}
/* ============================= */
/* Elegant Project Prev / Next */
/* ============================= */

.project-details-share {
    width: 100%;
    margin-top: 40px;
}

.project-details-share .project-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}

.project-details-share .project-nav-list li {
    width: 100%;
}

.project-nav-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 92px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(121, 78, 42, 0.22);
    box-shadow: 0 18px 45px rgba(72, 42, 18, 0.12);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-nav-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6f431f 0%, #9b6a3c 52%, #4d2e17 100%);
    opacity: 0;
    z-index: -2;
    transition: opacity 0.35s ease;
}

.project-nav-btn::after {
    content: "";
    position: absolute;
    top: -80%;
    left: -35%;
    width: 38%;
    height: 260%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.42),
        transparent
    );
    transform: rotate(22deg) translateX(-140%);
    z-index: -1;
    transition: transform 0.75s ease;
}

.project-nav-btn:hover {
    transform: translateY(-6px);
    border-color: rgba(111, 67, 31, 0.55);
    box-shadow: 0 24px 60px rgba(72, 42, 18, 0.22);
}

.project-nav-btn:hover::before {
    opacity: 1;
}

.project-nav-btn:hover::after {
    transform: rotate(22deg) translateX(430%);
}

.project-nav-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #6f431f;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.project-nav-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.project-nav-content small {
    margin-bottom: 6px;
    color: #9b6a3c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

.project-nav-content strong {
    color: #2b1a10;
    font-size: 18px;
    font-weight: 800;
    transition: color 0.35s ease;
}

.project-nav-btn:hover .project-nav-icon {
    background: #ffffff;
    color: #6f431f;
    transform: scale(1.08);
}

.project-nav-prev:hover .project-nav-icon {
    transform: translateX(-4px) scale(1.08);
}

.project-nav-next:hover .project-nav-icon {
    transform: translateX(4px) scale(1.08);
}

.project-nav-btn:hover .project-nav-content small,
.project-nav-btn:hover .project-nav-content strong {
    color: #ffffff;
}

.project-nav-next {
    justify-content: flex-end;
    text-align: right;
}

@media (max-width: 767px) {
    .project-details-share .project-nav-list {
        flex-direction: column;
    }

    .project-nav-btn {
        min-height: 84px;
        padding: 20px;
    }

    .project-nav-content strong {
        font-size: 16px;
    }
}

.auother-image{
    border-radius: 100%;
    width: 81px;
    height: 81px;
    padding: 0px !important;
    overflow: hidden;
}

.auother-image img{
    width: 100%;
    height: 100%;
}