/* Before/After Image Comparison Slider */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.2);
    margin-bottom: 20px;
    cursor: ew-resize;
    user-select: none;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease;
}

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

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #D4AF37, #FFD700);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.slider-handle:hover {
    width: 6px;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #D4AF37, #FFD700);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 5px 25px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    cursor: ew-resize;
}

.slider-button:hover {
    background: #FFD700;
    transform: translate(-50%, -50%) scale(1.1);
}

.slider-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 15;
    pointer-events: none;
}

.before-label,
.after-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.before-label {
    background: rgba(220, 53, 69, 0.8);
}

.after-label {
    background: rgba(40, 167, 69, 0.8);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .before-after-slider {
        height: 250px;
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .before-label,
    .after-label {
        font-size: 12px;
        padding: 6px 12px;
    }
}

