/* =============================================
   Dental Before After Widget for Elementor
   v1.0.0 — Mobil Uyumlu
============================================= */

/* ── LAYOUT ──────────────────────────────── */
.dba-section {
    background: #ffffff;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    padding: 0;
}
.dba-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* ── SLIDER WRAP ─────────────────────────── */
.dba-slider-wrap {
    position: relative;
    width: 100%;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    cursor: col-resize;
    user-select: none;
    box-shadow: 0 8px 40px rgba(10,61,143,.13);
    touch-action: pan-y;
}

/* ── GÖRSELLER ───────────────────────────── */
.dba-img-after,
.dba-img-before {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.dba-img-before {
    clip-path: inset(0 50% 0 0);   /* JS ile güncellenir */
    transition: clip-path .05s linear;
}

/* ── ETİKETLER ───────────────────────────── */
.dba-label {
    position: absolute;
    bottom: 16px;
    background: #1a73e8;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 6px;
    pointer-events: none;
}
.dba-label-before { left: 16px; }
.dba-label-after  { right: 16px; }

/* ── BÖLÜCİ çizgi ────────────────────────── */
.dba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: left .05s linear;
}
.dba-divider-line {
    width: 2.5px;
    flex: 1;
    background: #1a73e8;
    opacity: .9;
}

/* ── TUTMA DÜĞMESİ ───────────────────────── */
.dba-handle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2.5px solid #1a73e8;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    cursor: col-resize;
    box-shadow: 0 2px 12px rgba(26,115,232,.25);
    transition: box-shadow .2s, transform .15s;
    padding: 0;
}
.dba-handle-btn:hover {
    box-shadow: 0 4px 20px rgba(26,115,232,.4);
    transform: translate(-50%, -50%) scale(1.08);
}

/* ── SAĞ İÇERİK ──────────────────────────── */
.dba-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.dba-eyebrow {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: #1a73e8;
}
.dba-heading {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: clamp(22px, 2.8vw, 40px);
    font-weight: 700;
    color: #0a3d8f;
    line-height: 1.22;
    margin: 0 !important;
}
.dba-description {
    font-size: 15.5px;
    color: #6b7b99;
    line-height: 1.75;
    margin: 0;
}

/* ── ÖZELLİKLER ──────────────────────────── */
.dba-features {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dba-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dba-feature-icon {
    color: #1a73e8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.dba-feature-icon svg { display: block; }
.dba-feature-text {
    font-size: 15px;
    font-weight: 700;
    color: #0a3d8f;
    line-height: 1.4;
}

/* ── BUTON ───────────────────────────────── */
.dba-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0a3d8f;
    color: #fff !important;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid #0a3d8f;
    transition: background .25s, color .25s, transform .2s, border-color .25s;
    align-self: flex-start;
    margin-top: 4px;
}
.dba-btn:hover {
    background: transparent !important;
    color: #0a3d8f !important;
    transform: translateX(4px);
}
.dba-btn svg { transition: transform .25s; }
.dba-btn:hover svg { transform: translateX(5px); }

/* ── MOBİL ───────────────────────────────── */
@media (max-width: 900px) {
    .dba-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .dba-slider-wrap { height: 340px; }
}
@media (max-width: 560px) {
    .dba-slider-wrap { height: 260px; border-radius: 14px; }
    .dba-heading { font-size: clamp(20px, 6vw, 28px); }
    .dba-btn { align-self: stretch; justify-content: center; }
}
