/* Before / After Slider */
.blog-img-holder {
    width: 100%;
    position: relative;
}

.before-after-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #303030;
    box-shadow: 0 22px 55px rgba(48, 48, 48, 0.22);
    aspect-ratio: 16 / 9;
    user-select: none;
    cursor: ew-resize;
}

.before-after-slider img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.before-after-slider .after-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: contrast(1.02) saturate(1.04);
}

.before-image-wrap {
    position: absolute;
    inset: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    overflow: hidden;
}

.before-image-wrap .before-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25) brightness(0.92) contrast(0.98);
}

/* Premium dark overlay on before side */
.before-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(48, 48, 48, 0.18);
    pointer-events: none;
}

/* Divider */
.ba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #ffffff;
    z-index: 4;
    transform: translateX(-50%);
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.ba-divider::before,
.ba-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 22px;
    height: 22px;
    border-left: 3px solid #ffffff;
    border-top: 3px solid #ffffff;
    transform: translateX(-50%) rotate(45deg);
    opacity: 0.85;
}

.ba-divider::before {
    top: 18px;
}

.ba-divider::after {
    bottom: 18px;
    transform: translateX(-50%) rotate(225deg);
}

/* Handle */
.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #575c31;
    color: #ffffff;
    border: 3px solid #ffffff;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    box-shadow: 0 12px 35px rgba(48, 48, 48, 0.35);
    transition: transform 0.25s ease, background 0.25s ease;
}

.before-after-slider:hover .ba-handle {
    transform: translate(-50%, -50%) scale(1.08);
    background: #303030;
}

/* Labels */
.ba-label {
    position: absolute;
    top: 18px;
    z-index: 5;
    padding: 8px 15px;
    border-radius: 100px;
    background: rgba(48, 48, 48, 0.78);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.ba-label-before {
    left: 18px;
}

.ba-label-after {
    right: 18px;
    background: rgba(87, 92, 49, 0.88);
}

/* Range Input */
.ba-range {
    position: absolute;
    inset: 0;
    z-index: 6;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    appearance: none;
    -webkit-appearance: none;
}

.ba-range::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 58px;
    height: 58px;
    cursor: ew-resize;
}

.ba-range::-moz-range-thumb {
    width: 58px;
    height: 58px;
    border: none;
    cursor: ew-resize;
}

/* Small shine animation */
.before-after-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
    z-index: 7;
    pointer-events: none;
    animation: baShine 5s ease-in-out infinite;
}

@keyframes baShine {
    0% {
        left: -120%;
    }
    35% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}

/* Responsive */
@media (max-width: 767px) {
    .before-after-slider {
        border-radius: 14px;
        aspect-ratio: 4 / 3;
    }

    .ba-handle {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }

    .ba-label {
        top: 12px;
        padding: 7px 12px;
        font-size: 10px;
    }

    .ba-label-before {
        left: 12px;
    }

    .ba-label-after {
        right: 12px;
    }
}
/* prev, next */
/* Prev / Next Project Navigation */
.project-nav-area {
    margin-top: 45px;
    margin-bottom: 20px;
}

.project-nav-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    background: #f8f8f5;
    border: 1px solid rgba(87, 92, 49, 0.18);
    border-radius: 18px;
}

.project-nav-btn,
.project-nav-center {
    text-decoration: none;
}

.project-nav-btn {
    width: 40%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid rgba(87, 92, 49, 0.22);
    border-radius: 16px;
    color: #303030;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.project-nav-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #575c31, #303030);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 0;
}

.project-nav-btn:hover::before {
    opacity: 1;
}

.project-nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(48, 48, 48, 0.16);
    border-color: transparent;
}

.project-nav-btn > * {
    position: relative;
    z-index: 1;
}

.project-nav-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: rgba(87, 92, 49, 0.12);
    color: #575c31;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.35s ease;
}

.project-nav-btn:hover .project-nav-icon {
    background: #ffffff;
    color: #575c31;
}

.project-nav-content {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.project-nav-content small {
    font-size: 12px;
    color: #575c31;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: all 0.35s ease;
}

.project-nav-content strong {
    font-size: 17px;
    color: #303030;
    font-weight: 800;
    transition: all 0.35s ease;
}

.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;
}

.project-nav-center {
    width: 20%;
    min-width: 145px;
    padding: 18px 16px;
    border-radius: 16px;
    background: #575c31;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.35s ease;
}

.project-nav-center i {
    font-size: 22px;
}

.project-nav-center span {
    font-size: 13px;
}

.project-nav-center:hover {
    background: #303030;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(48, 48, 48, 0.18);
}

/* Responsive */
@media (max-width: 767px) {
    .project-nav-wrapper {
        flex-direction: column;
        padding: 18px;
    }

    .project-nav-btn,
    .project-nav-center {
        width: 100%;
    }

    .project-nav-next {
        text-align: left;
        justify-content: space-between;
    }

    .project-nav-next .project-nav-content {
        order: 2;
        text-align: right;
    }

    .project-nav-next .project-nav-icon {
        order: 3;
    }
}

#blog-post article .expert_quote_area .col-lg-12 .expert_quote p{
    color: #f8f8f5;
}

#blog-post .sidebar-widget .popular-post li img{
    width: 120px;
    height: 92px;
}

.sidebar-view-all-services {
    margin-top: 26px;
}

.view-all-services-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 22px;
    background: #575c31;
    color: #ffffff;
    border: 2px solid #575c31;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(87, 92, 49, 0.25);
    transition: all 0.35s ease;
    z-index: 1;
}

.view-all-services-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #303030;
    transition: all 0.35s ease;
    z-index: -1;
}

.view-all-services-btn i {
    font-size: 17px;
    transition: all 0.35s ease;
}

.view-all-services-btn:hover {
    color: #ffffff;
    border-color: #303030;
    box-shadow: 0 18px 38px rgba(48, 48, 48, 0.28);
    transform: translateY(-3px);
}

.view-all-services-btn:hover::before {
    left: 0;
}

.view-all-services-btn:hover i {
    transform: translateX(5px);
}

.view-all-services-btn:focus {
    color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(87, 92, 49, 0.22);
}

.content-wrap a{
    color: #575c31;
    transition: all 330ms ease-in-out;
}

.content-wrap a:hover{
    color: #303030;
}

/* Project CTA Actions */
.project-cta-actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-cta-actions a {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.4px;
    transition: all 0.35s ease;
    z-index: 1;
}

.project-cta-actions a i {
    font-size: 16px;
    transition: all 0.35s ease;
}

/* Main Estimate Button */
.project-cta-btn {
    background: #575c31;
    color: #ffffff;
    border: 2px solid #575c31;
    text-transform: uppercase;
    box-shadow: 0 14px 30px rgba(87, 92, 49, 0.24);
}

.project-cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #303030;
    transform: translateX(-100%);
    transition: all 0.35s ease;
    z-index: -1;
}

.project-cta-btn:hover::before {
    transform: translateX(0);
}

.project-cta-btn:hover {
    color: #ffffff;
    border-color: #303030;
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(48, 48, 48, 0.28);
}

.project-cta-btn:hover i {
    transform: translateX(5px);
}

/* Phone Button */
.project-cta-phone {
    background: #303030;
    color: #ffffff;
    border: 2px solid #303030;
    box-shadow: 0 12px 26px rgba(48, 48, 48, 0.18);
}

.project-cta-phone::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #575c31;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.35s ease;
    z-index: -1;
}

.project-cta-phone:hover::before {
    transform: scaleX(1);
}

.project-cta-phone:hover {
    color: #ffffff;
    border-color: #575c31;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(87, 92, 49, 0.25);
}

/* Email Button */
.project-cta-email {
    background: #ffffff;
    color: #303030;
    border: 2px solid rgba(87, 92, 49, 0.25);
    box-shadow: 0 10px 24px rgba(48, 48, 48, 0.08);
}

.project-cta-email::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #575c31;
    transform: translateY(100%);
    transition: all 0.35s ease;
    z-index: -1;
}

.project-cta-email:hover::before {
    transform: translateY(0);
}

.project-cta-email:hover {
    color: #ffffff;
    border-color: #575c31;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(87, 92, 49, 0.22);
}

/* Icon Styling */
.project-cta-phone i,
.project-cta-email i {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-cta-phone i {
    background: #ffffff;
    color: #303030;
}

.project-cta-email i {
    background: rgba(87, 92, 49, 0.12);
    color: #575c31;
}

.project-cta-email:hover i {
    background: #ffffff;
    color: #575c31;
}

/* Focus State */
.project-cta-actions a:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(87, 92, 49, 0.22);
}

/* Mobile */
@media (max-width: 575px) {
    .project-cta-actions a {
        padding: 13px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .project-cta-phone i,
    .project-cta-email i {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }
}

#project-version-one .two-col-gallery .content h4 a{
    color: #303030;
}