﻿/*==================================================
    KIANI HAIR CLINIC
    Version : 2.0
===================================================*/


/*=========================
    TOKENS
=========================*/

:root {
    /* color */
    --ink: #14322C; /* deep pine — dark anchor, headings, dark sections */
    --ink-soft: #1D453C; /* hover / gradient partner for ink */
    --parchment: #F6F8F7; /* cool paper background, pairs with the teal accent */
    --paper: #FFFFFF;
    --accent: #1C7C82; /* accent — clinical teal against the pine, precision over warmth */
    --accent-soft: #DCEFEF; /* tint of teal for badges / icon backgrounds */
    --text: #20241F;
    --text-muted: #5B6459;
    --line: #E1E9E7;
    --shadow: 20, 45, 39; /* rgb triplet for ink-tinted shadows */
    /* type scale */
    --fs-hero: clamp(2.1rem, 4.4vw, 3.6rem);
    --fs-h2: clamp(1.7rem, 2.6vw, 2.5rem);
    --fs-h3: 1.35rem;
    --fs-body: 1.05rem;
    --fs-small: 0.9rem;
    /* signature shape: a strand bending one direction — used everywhere something is "grown" rather than boxed */
    --flow: 44px 10px 44px 10px;
    --flow-tight: 22px 6px 22px 6px;
}


/*=========================
    RESET
=========================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background: var(--parchment);
    color: var(--text);
    font-size: var(--fs-body);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(92%, 1280px);
    margin: auto;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}


/*=========================
    STRAND MOTIF (signature background)
    a faint set of flowing lines, echoing the idea of hair
    combed in one direction — used sparingly, never as noise
=========================*/

.hero,
.consultation {
    position: relative;
}

    .hero::before,
    .consultation::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .5;
        background-image: repeating-linear-gradient(100deg, rgba(28, 124, 130, .14) 0px, rgba(28, 124, 130, .14) 1px, transparent 1px, transparent 46px);
    }

    .consultation::before {
        opacity: .12;
        background-image: repeating-linear-gradient(100deg, rgba(255, 255, 255, .5) 0px, rgba(255, 255, 255, .5) 1px, transparent 1px, transparent 40px);
    }

    .hero .container,
    .consultation .container {
        position: relative;
        z-index: 1;
    }


/*=========================
    HEADER
=========================*/

.header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(246, 248, 247, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 84px;
    }

.logo img {
    height: 56px;
}

nav {
    display: flex;
    gap: 34px;
}

    nav a {
        color: var(--ink);
        font-weight: 600;
        font-size: var(--fs-small);
        transition: color .3s;
        position: relative;
        padding-bottom: 4px;
    }

        nav a::after {
            content: "";
            position: absolute;
            right: 0;
            bottom: -6px;
            width: 0;
            height: 2px;
            border-radius: 2px;
            background: var(--accent);
            transition: width .3s;
        }

        nav a:hover,
        nav a:focus-visible {
            color: var(--accent);
        }

            nav a:hover::after,
            nav a:focus-visible::after {
                width: 100%;
            }


/*=========================
    MOBILE NAV: HAMBURGER TOGGLE + BOTTOM SHEET
=========================*/

.nav-toggle {
    display: none;
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
}

    .nav-toggle span {
        position: absolute;
        right: 11px;
        left: 11px;
        height: 2px;
        border-radius: 2px;
        background: var(--ink);
        transition: transform .3s, opacity .3s, top .3s;
    }

        .nav-toggle span:nth-child(1) {
            top: 15px;
        }

        .nav-toggle span:nth-child(2) {
            top: 20px;
        }

        .nav-toggle span:nth-child(3) {
            top: 25px;
        }

    .nav-toggle.is-open span:nth-child(1) {
        top: 20px;
        transform: rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        top: 20px;
        transform: rotate(-45deg);
    }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 50, 44, 0);
    pointer-events: none;
    transition: background .35s;
    z-index: 9996;
}

    .nav-overlay.is-open {
        background: rgba(20, 50, 44, .45);
        pointer-events: auto;
    }

.nav-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 82vh;
    overflow-y: auto;
    background: var(--paper);
    border-radius: 26px 26px 0 0;
    padding: 14px 22px max(24px, env(safe-area-inset-bottom));
    box-shadow: 0 -16px 44px rgba(var(--shadow), .28);
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    z-index: 9997;
}

    .nav-sheet.is-open {
        transform: translateY(0);
    }

.nav-sheet__handle {
    width: 42px;
    height: 4px;
    background: var(--line);
    border-radius: 99px;
    margin: 0 auto 20px;
}

.nav-sheet__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.nav-sheet__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--flow-tight);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s, transform .35s, border-color .3s;
}

    .nav-sheet__item i {
        color: var(--accent);
        font-size: 18px;
        width: 20px;
        text-align: center;
    }

    .nav-sheet__item:hover,
    .nav-sheet__item:focus-visible {
        border-color: var(--accent);
    }

.nav-sheet.is-open .nav-sheet__item {
    opacity: 1;
    transform: translateY(0);
}

    .nav-sheet.is-open .nav-sheet__item:nth-child(1) {
        transition-delay: .05s;
    }

    .nav-sheet.is-open .nav-sheet__item:nth-child(2) {
        transition-delay: .09s;
    }

    .nav-sheet.is-open .nav-sheet__item:nth-child(3) {
        transition-delay: .13s;
    }

    .nav-sheet.is-open .nav-sheet__item:nth-child(4) {
        transition-delay: .17s;
    }

    .nav-sheet.is-open .nav-sheet__item:nth-child(5) {
        transition-delay: .21s;
    }

    .nav-sheet.is-open .nav-sheet__item:nth-child(6) {
        transition-delay: .25s;
    }

    .nav-sheet.is-open .nav-sheet__item:nth-child(7) {
        transition-delay: .29s;
    }

.nav-sheet__cta {
    display: block;
    width: 100%;
    text-align: center;
}

@media (min-width: 769px) {
    .nav-overlay,
    .nav-sheet,
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-desktop {
        display: none;
    }
}


.consult-btn {
    background: var(--ink);
    color: var(--paper);
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: var(--fs-small);
    transition: transform .3s, background .3s;
    display: inline-block;
}

    .consult-btn:hover {
        transform: translateY(-3px);
        background: var(--ink-soft);
    }


/*=========================
    HERO
=========================*/

.hero {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--parchment), #EDF4F3);
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-soft);
    color: #0F5A5E;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: var(--fs-small);
    margin-bottom: 26px;
}

.hero h1 {
    font-size: var(--fs-hero);
    font-weight: 800;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 22px;
    letter-spacing: -.01em;
}

    .hero h1 span {
        color: var(--accent);
    }

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.9;
    max-width: 46ch;
    margin-bottom: 38px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 46px;
    flex-wrap: wrap;
}

.primary-btn {
    background: var(--ink);
    color: var(--paper);
    padding: 17px 34px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform .3s, box-shadow .3s, background .3s;
    box-shadow: 0 14px 30px rgba(var(--shadow), .18);
}

    .primary-btn:hover {
        transform: translateY(-4px);
        background: var(--ink-soft);
        box-shadow: 0 18px 36px rgba(var(--shadow), .25);
    }

.secondary-btn {
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 15px 32px;
    border-radius: 999px;
    font-weight: 700;
    transition: background .3s, color .3s, transform .3s;
}

    .secondary-btn:hover {
        background: var(--ink);
        color: var(--paper);
        transform: translateY(-4px);
    }

.statistics {
    display: flex;
    gap: 48px;
}

    .statistics h2 {
        color: var(--ink);
        font-size: 2.1rem;
        font-weight: 800;
    }

    .statistics span {
        color: var(--text-muted);
        font-size: var(--fs-small);
    }

.doctor {
    text-align: center;
}

    .doctor img {
        border-radius: var(--flow);
        box-shadow: 0 30px 60px -10px rgba(var(--shadow), .3);
    }


/*=========================
    ABOUT INTRO (short trust summary under hero)
=========================*/

.about-intro {
    padding: 60px 0 80px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}


/*=========================
    SECTION TITLE
=========================*/

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

    .section-title span {
        display: inline-block;
        background: var(--accent-soft);
        color: #0F5A5E;
        padding: 9px 20px;
        border-radius: 999px;
        font-weight: 700;
        font-size: var(--fs-small);
        margin-bottom: 16px;
    }

    .section-title h2 {
        font-size: var(--fs-h2);
        font-weight: 800;
        color: var(--ink);
        margin-bottom: 14px;
    }

    .section-title p {
        color: var(--text-muted);
        max-width: 640px;
        margin: auto;
        line-height: 1.8;
    }


/*=========================
    SERVICES
=========================*/

.services {
    padding: 100px 0;
    background: var(--paper);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--paper);
    border-radius: var(--flow);
    padding: 42px 32px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(var(--shadow), .06);
    transition: transform .35s, box-shadow .35s;
    border: 1px solid var(--line);
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 26px 50px rgba(var(--shadow), .14);
    }

.card-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    border-radius: var(--flow-tight);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    transition: background .35s;
}

    .card-icon i {
        font-size: 32px;
        color: var(--accent);
        transition: color .35s;
    }

.card:hover .card-icon {
    background: var(--ink);
}

    .card:hover .card-icon i {
        color: var(--accent);
    }

.card h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

.card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 22px;
}

.card a {
    color: var(--ink);
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    transition: gap .25s, color .25s;
}

    .card a:hover {
        color: var(--accent);
        gap: 12px;
    }


/*=========================
    WHY US
=========================*/

.why-us {
    padding: 100px 0;
    background: var(--parchment);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-card {
    background: var(--paper);
    border-radius: var(--flow-tight);
    padding: 38px 28px;
    text-align: center;
    transition: transform .35s, box-shadow .35s;
    box-shadow: 0 8px 24px rgba(var(--shadow), .05);
}

    .why-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(var(--shadow), .1);
    }

    .why-card i {
        font-size: 38px;
        color: var(--accent);
        margin-bottom: 22px;
    }

    .why-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--ink);
        margin-bottom: 14px;
    }

    .why-card p {
        color: var(--text-muted);
        line-height: 1.75;
    }


/*=========================
    BEFORE / AFTER
=========================*/

.before-after {
    padding: 100px 0;
    background: var(--paper);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--flow);
    box-shadow: 0 14px 32px rgba(var(--shadow), .08);
    cursor: pointer;
}

    .gallery-item img {
        width: 100%;
        display: block;
        transition: transform .5s;
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

.gallery-button {
    text-align: center;
    margin-top: 48px;
}


/*=========================
    CONSULTATION
=========================*/

.consultation {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--ink), var(--ink-soft));
}

.consult-box {
    background: var(--paper);
    border-radius: var(--flow);
    padding: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.consult-content span {
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 14px;
}

.consult-content h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 18px;
    line-height: 1.4;
}

.consult-content p {
    color: var(--text-muted);
    line-height: 1.8;
}

.consult-action {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    flex-shrink: 0;
}


/*=========================
    FOOTER
=========================*/

.footer {
    background: var(--ink);
    color: #EFEEE8;
    padding: 76px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    margin-bottom: 46px;
}

.footer h3 {
    margin-bottom: 22px;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer p {
    color: #C7CFC9;
    line-height: 1.85;
}

.footer li {
    margin-bottom: 13px;
}

.footer a {
    color: #C7CFC9;
    transition: color .3s, padding-right .3s;
}

    .footer a:hover,
    .footer a:focus-visible {
        color: var(--accent);
        padding-right: 6px;
    }

.footer hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, .1);
    margin: 32px 0;
}

.copyright {
    text-align: center;
    color: #8E988F;
    font-size: var(--fs-small);
}


/*=========================
    FLOATING CONSULTATION WIDGET (desktop / tablet)
    mobile already has the bottom bar, so this stays hidden there
=========================*/

.float-actions {
    position: fixed;
    left: 26px;
    bottom: 28px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.float-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paper);
    font-size: 22px;
    box-shadow: 0 12px 28px rgba(var(--shadow), .28);
    transition: transform .3s, box-shadow .3s;
}

    .float-btn:hover,
    .float-btn:focus-visible {
        transform: translateY(-4px);
    }

.float-btn--call {
    background: var(--ink);
}

.float-btn--whatsapp {
    background: #25D366;
}

    .float-btn--whatsapp::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: #25D366;
        opacity: .55;
        animation: float-pulse 2.4s ease-out infinite;
        z-index: -1;
    }

.float-btn__label {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--ink);
    color: var(--paper);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: var(--fs-small);
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.float-btn:hover .float-btn__label,
.float-btn:focus-visible .float-btn__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes float-pulse {
    0% {
        transform: scale(1);
        opacity: .5;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-btn--whatsapp::before {
        animation: none;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .float-actions {
        display: none;
    }
}


/*=========================
    MOBILE BOTTOM BAR
=========================*/

.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 68px;
    background: var(--paper);
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -6px 20px rgba(var(--shadow), .15);
    z-index: 99999;
    border-top: 1px solid var(--line);
}

    .mobile-bottom-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--ink);
        font-size: 12px;
        font-weight: 700;
    }

    .mobile-bottom-bar i {
        font-size: 20px;
        color: var(--accent);
    }


/*==================================================
    RESPONSIVE
===================================================*/

@media (max-width: 992px) {

    .container {
        width: 94%;
    }

    .header .container {
        height: auto;
        padding: 18px 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

    .hero {
        padding: 64px 0;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 46px;
    }

    .hero-content {
        order: 2;
    }

    .doctor {
        order: 1;
    }

        .doctor img {
            max-width: 400px;
            margin: auto;
        }

    .hero p {
        margin-inline: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .statistics {
        justify-content: center;
        flex-wrap: wrap;
    }

    .service-grid,
    .why-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consult-box {
        flex-direction: column;
        text-align: center;
    }

    .consult-action {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .container {
        width: 95%;
    }

    .header {
        position: relative;
    }

        .header .container {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            padding: 14px 0;
            gap: 12px;
        }

    .logo img {
        height: 46px;
    }

    .consult-btn {
        width: 100%;
        text-align: center;
        order: 3;
    }

    .hero {
        padding: 46px 0;
    }

        .hero p {
            font-size: 1rem;
        }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .statistics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        text-align: center;
    }

        .statistics h2 {
            font-size: 1.6rem;
        }

    .service-grid,
    .why-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .consult-box {
        padding: 32px 22px;
    }

    .footer {
        padding-bottom: 96px;
    }

    .mobile-bottom-bar {
        display: flex;
    }
}

@media (max-width: 480px) {

    .statistics {
        grid-template-columns: 1fr;
    }

    .card,
    .why-card {
        padding: 28px 20px;
    }
}
/*==================================================
    INTERACTIVE BEFORE/AFTER SLIDER (SINGLE IMAGE)
===================================================*/

.comparison-slider {
    position: relative;
    width: 100%;
    height: 450px; /* ارتفاع ایده‌آل برای نمایش تصویر سفارشی */
    overflow: hidden;
    border-radius: var(--flow);
    box-shadow: 0 14px 32px rgba(var(--shadow), .12);
    user-select: none;
    margin: 0 auto;
    max-width: 600px; /* محدود کردن عرض برای حفظ کیفیت تصویر */
}

    .comparison-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
    }

    /* لایه متحرک رویی (بخش قبل) */
    .comparison-slider .resize-image {
        position: absolute;
        top: 0;
        right: 0; /* شروع برش تصویر از سمت راست در حالت RTL */
        bottom: 0;
        width: 50%; /* وضعیت شروع اسلایدر دقیقاً از وسط */
        overflow: hidden;
        z-index: 2;
    }

    /* تصویر داخل لایه رویی که باید پهنای ثابتش حفظ شود */
    .comparison-slider .image-before {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        max-width: none;
    }

/* برچسب‌های شیک قبل و بعد */
.badge-label {
    position: absolute;
    top: 16px;
    z-index: 3;
    padding: 6px 16px;
    background: rgba(20, 50, 44, 0.75);
    color: var(--paper);
    font-size: var(--fs-small);
    font-weight: 700;
    border-radius: var(--flow-tight);
    backdrop-filter: blur(4px);
}

.badge-before {
    right: 16px;
}

.badge-after {
    left: 16px;
}

/* خط جداکننده وسط */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 4px;
    background: var(--paper);
    z-index: 3;
    transform: translateX(50%);
    pointer-events: none;
}

/* دایره دستگیره وسط خط */
.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--paper);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 16px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

/* کنترل‌کننده نامرئی سرتاسری برای ماوس و لمس موبایل */
.slider-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 4;
    cursor: ew-resize;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* افکت جذاب هنگام بردن ماوس روی اسلایدر */
.comparison-slider:hover .handle-circle {
    background: var(--accent);
    color: var(--paper);
    transform: translate(-50%, -50%) scale(1.05);
}

/* هماهنگی با موبایل */
@media (max-width: 768px) {
    .comparison-slider {
        height: 360px;
    }
}

.lang-switch {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    padding: 2px 10px;
    border-radius: var(--flow-tight);
    font-size: var(--fs-small);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

    .lang-switch:hover {
        background: var(--accent);
        color: var(--paper) !important;
    }

    .lang-switch i {
        font-size: 12px;
    }
/* اصلاح نهایی برای قرارگیری دقیق المان‌های اسلایدر قبل و بعد */
.comparison-slider[dir="ltr"] .resize-image {
    left: 0;
    right: auto;
}

.comparison-slider[dir="ltr"] .image-before {
    left: 0;
    right: auto;
}

.comparison-slider[dir="ltr"] .badge-before {
    left: 16px;
    right: auto;
}

.comparison-slider[dir="ltr"] .badge-after {
    right: 16px;
    left: auto;
}

.comparison-slider[dir="ltr"] .slider-handle {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
