.comparison-container {
    position: relative;
    width: 60vw;
    height: 40vw;
    max-width: 400px;
    max-height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.comparison-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-container .after-img {
    clip-path: inset(0 0 0 50%);
}

/* Çizgiyi gizle */
.slider-line {
    background: transparent;
}

/* Çizgiyi butonun içinden geçiyormuş gibi göster */
.slider-button::after {
    content: "";
    position: absolute;
    top: -500px;
    bottom: -500px;
    width: 3px;
    background: white;
    z-index: -1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border: 4px solid #fff;
    z-index: 3;
    cursor: ew-resize;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.slider-button i {
    font-size: 24px;
    color: #fff;
    line-height: 1;
    vertical-align: middle;
}

/* Etiket kutucukları */
.label {
    position: absolute;
    top: 15px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    z-index: 4;
    user-select: none;
}

.label.before {
    left: 15px;
}

.label.after {
    right: 15px;
}

/* Overlay efekti */
.comparison-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

/* Masaüstü cihazlarda hover efekti */
@media (hover: hover) and (pointer: fine) {
    .comparison-container:hover::after {
        opacity: 1;
    }
}

.beforeafter-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.beforeafter-carousel .owl-nav button {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    pointer-events: all;
    transition: background 0.3s ease;
}

.beforeafter-carousel .owl-nav button:hover {
    background: rgba(0, 0, 0, 0.7) !important;
}