/*برای بخش عکس قبل و بعد*/
.as-compare-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    cursor: ew-resize;
    margin-bottom: 30px;
}

.as-compare-slider .as-before-img {
    width: 100%;
    line-height: 0;
}

.as-compare-slider .as-before-img img {
    width: 100%;
    display: block;
    pointer-events: none;
}

.as-compare-slider .as-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.as-compare-slider .as-after-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    display: block;
    pointer-events: none;
}

.as-compare-slider .as-slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    z-index: 10;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.as-compare-slider .as-slider-handle::before {
    content: "◀ ▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #CD8F52;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 40px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 4px;
}

.as-compare-slider .as-labels {
    position: absolute;
    bottom: 20px;
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    box-sizing: border-box;
}

.as-compare-slider .as-labels span {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 5px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: bold;
}

@media (max-width: 600px) {
    .as-compare-slider .as-slider-handle::before {
        font-size: 12px;
        padding: 4px 8px;
    }
    .as-compare-slider .as-labels span {
        font-size: 11px;
        padding: 4px 10px;
    }
}