/* =========================
   Fonts (Vazirmatn)
   Place files in: resources/fonts/
========================= */
@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("../../fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================
   Base
========================= */
:root{
    --bg:#ffffff;
    --text:#0f172a;
    --muted:#64748b;
    --border:#e6edf6;

    --primary:#2f80ed;
    --accent:#35c7a8;

    --card:#ffffff;
    --shadow: 0 14px 40px rgba(15, 23, 42, .08);

    --radius:18px;
    --container: 1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family:"Vazirmatn", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.85;
    padding-bottom: 74px; /* space for bottom-nav on mobile */
}

a{color:inherit; text-decoration:none}
img{max-width:100%; height:auto}
button, input{font:inherit}

.container{
    width:100%;
    max-width:var(--container);
    margin:0 auto;
    padding:0 16px;
}

.skip-link{
    position:absolute;
    right:16px;
    top:8px;
    transform:translateY(-200%);
    background:#111827;
    color:#fff;
    padding:8px 12px;
    border-radius:10px;
    z-index:9999;
}
.skip-link:focus{transform:translateY(0)}

/* =========================
   Buttons / Links
========================= */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 14px;
    border-radius:14px;
    border:1px solid transparent;
    font-weight:700;
    cursor:pointer;
    transition: .2s ease;
    white-space:nowrap;
}
.btn--primary{
    background:var(--accent);
    color:#063b35;
}
.btn--ghost{
    background:#fff;
    border-color:var(--border);
    color:var(--text);
}
.btn--light{
    background:#fff;
    color:var(--text);
}
.btn--sm{padding:8px 12px; border-radius:12px}
.btn--block{width:100%}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}

.link{color:var(--primary)}
.link--muted{color:var(--muted)}

/* =========================
   Header (vakilmaher style)
========================= */
.site-header{
    position:sticky;
    top:0;
    z-index:50;
    background:#fff;
}

/* Top row */
.header-top{
    background:#f7fbff;
    border-bottom:1px solid var(--border);
}
.header-top__inner{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 0;
}

.header-top__left{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
}

.header-auth{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 12px;
    border-radius:14px;
    background:#eaf3ff;
    color:var(--primary);
    font-weight:700;
    font-size:13px;
    border:1px solid rgba(47,128,237,.10);
}
.header-auth__icon{font-size:14px; opacity:.9}

.header-date{
    display:inline-flex;
    align-items:center;
    padding:8px 12px;
    border-radius:14px;
    background:var(--accent);
    color:#063b35;
    font-weight:700;
    font-size:13px;
}

.header-search{
    flex:1 1 auto;
    max-width:640px;
    display:flex;
    align-items:center;
    gap:10px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:999px;
    padding:8px 10px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}
.header-search__input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    padding:0 6px;
    color:var(--text);
}
.header-search__input::placeholder{color:rgba(100,116,139,.9)}
.header-search__btn{
    width:38px;
    height:38px;
    border-radius:999px;
    border:0;
    color:#fff;
    cursor:pointer;
    display:grid;
    place-items:center;
}

.header-brand{
    display:flex;
    align-items:center;
    gap:10px;
    flex:0 0 auto;
    font-weight:700;
}
.header-brand__text{
    font-size:22px;
    letter-spacing:-0.2px;
}
.header-brand__logo{
    width:44px;
    height:28px;
    border-radius:12px;
    display:grid;
    place-items:center;
    color:var(--primary);
    font-weight:700;
    background:rgba(47,128,237,.10);
    border:1px solid rgba(47,128,237,.10);
}

/* Menu row */
.header-menu{
    background:#fff;
    border-bottom:1px solid var(--border);
}
.header-menu__inner{
    position:relative;
    padding:10px 0;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Mobile nav toggle */
.nav-toggle{
    width:44px;
    height:44px;
    border-radius:14px;
    border:1px solid var(--border);
    background:#fff;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-end;   /* خطوط از یک سمت شروع شوند */
    gap:6px;
    padding:10px 12px;
    z-index: 99999999;
}
.nav-toggle span{
    display:block;
    height:3px;
    border-radius:999px;
    background:var(--accent); /* سبز */
}
.nav-toggle span:nth-child(1){width:14px;}
.nav-toggle span:nth-child(2){width:22px;}
.nav-toggle span:nth-child(3){width:14px;}
/* Nav base */
.nav{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.nav__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:6px 4px 10px;
    border-bottom:1px solid var(--border);
    margin-bottom:6px;
}
.nav__title{font-weight:700}
.nav__close{
    width:40px;
    height:40px;
    border-radius:14px;
    border:1px solid var(--border);
    background:#fff;
    font-size:20px;
    cursor:pointer;
}

.nav__link{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:14px;
    color:var(--text);
    font-weight:700;
}
.nav__link:hover{background:#f3f7ff}
.nav__link.is-active{
    background:rgba(47,128,237,.10);
    color:var(--primary);
}
.nav__ic{opacity:.45; font-size:14px}

/* Dropdown */
.nav-dd{position:relative}
.nav__link--btn{
    width:100%;
    border:0;
    background:transparent;
    cursor:pointer;
    justify-content:start;
}
.nav__chev{opacity:.7; font-size:12px; transition:.2s ease}
.nav-dd.is-open .nav__chev{transform:rotate(180deg)}

.nav-dd__menu{
    display:none;
    margin-top:6px;
    border:1px solid var(--border);
    background:#fff;
    border-radius:14px;
    padding:8px;
}
.nav-dd.is-open .nav-dd__menu{display:grid; gap:6px}
.nav-dd__item{
    display:block;          /* مهم */
    padding:10px 12px;
    border-radius:12px;
    font-weight:700;
    color:var(--text);
}
.nav-dd__item:hover{background:#f3f7ff}

.nav-dd .nav__link[aria-expanded="true"] + .nav-dd__menu{
    display:grid;
    gap:6px;
}
.nav-dd__item.is-active{font-weight:900; color:var(--accent);}

.nav__mobile-cta{margin-top:auto; display:grid; gap:10px; padding-top:10px}

/* Overlay + drawer behavior (mobile) */
.nav--main{
    position:fixed;
    top:0;
    right:0;
    height:100vh;
    width:min(86vw, 360px);
    background:#fff;
    border-left:1px solid var(--border);
    transform:translateX(110%);
    transition:.25s ease;
    z-index:60;
    padding:14px;
}

.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.35);
    opacity:0;
    pointer-events:none;
    transition:.2s ease;
    z-index:55;
}

body.nav-open .nav--main{transform:translateX(0)}
body.nav-open .nav-overlay{opacity:1; pointer-events:auto}

/* Mobile header stack */
@media (max-width: 767.98px){
    .header-top__inner{
        flex-direction:column;
        align-items:stretch;
    }

    .header-top__left{
        width:100%;
        display:flex;
        align-items:center;
        justify-content:space-between;
    }

    /* اگر ترتیب در RTL درست نیست، با order قطعی می‌کنیم */
    .header-top__left .header-brand{order:1;}        /* سمت راست */
    .header-top__left .nav-toggle--top{order:2;}
    .header-brand{
        justify-content:space-between;
    }
    .header-menu__inner{
        justify-content:flex-start;
    }
}

/* Desktop nav */
@media (min-width: 768px){
    body{padding-bottom:0}
    .nav-toggle{display:none}
    .nav-overlay{display:none}

    .nav--main{
        position:static;
        height:auto;
        width:auto;
        transform:none;
        padding:0;
        border:0;
        background:transparent;
        flex-direction:row;
        align-items:center;
        gap:8px;
    }
    .nav__head,.nav__mobile-cta{display:none}

    .header-menu__inner{justify-content:center}
    .nav__link{padding:10px 12px}

    /* Desktop dropdown appears on hover too */
    .nav__link--btn{width:auto}
    .nav-dd__menu{
        position:absolute;
        top:100%;
        right:0;
        min-width:220px;
        margin-top:0;
        padding-top:10px;
        box-shadow: var(--shadow);
        z-index:70;
    }
    .nav-dd:hover .nav-dd__menu{display:grid; gap:6px}

    /* اگر aria-expanded در صفحه خدمات true شد، روی دسکتاپ بازش نکن */
    .nav-dd .nav__link[aria-expanded="true"] + .nav-dd__menu{
        display:none;
    }

    /* باز شدن واقعی روی دسکتاپ */
    .nav-dd.is-open .nav-dd__menu,
    .nav-dd:hover .nav-dd__menu{
        display:grid;
        gap:6px;
    }
}
/* =========================
   Sections / Cards
========================= */
.section{padding:26px 0}
.section--alt{background:#f7fbff}

.section__head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}
.section__head--center{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
}
.section__title{margin:0; font-size:18px; font-weight:700}
.section__sub{margin:6px 0 0; color:var(--muted); font-size:13px}

.card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow: var(--shadow);
}

/* =========================
   Hero
========================= */
.hero{
    background: linear-gradient(90deg, #5f90e6 0%, #6aa2ff 100%);
    color:#fff;
    position:relative;
    overflow:hidden;
    padding: 34px 0 92px;
}

/* wave bottom (simple svg) */
.hero::after{
    content:"";
    position:absolute;
    left:0; right:0;
    bottom:-1px;
    height:160px;
    background:
        url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 220'>\
<path fill='%23ffffff' fill-opacity='1' d='M0,160 C240,210 480,210 720,160 C960,110 1200,110 1440,160 L1440,220 L0,220 Z'/>\
<path fill='%23eaf3ff' fill-opacity='1' d='M0,175 C240,225 480,225 720,175 C960,125 1200,125 1440,175 L1440,220 L0,220 Z'/>\
</svg>") bottom center / cover no-repeat;
    pointer-events:none;
}

.hero__inner{
    display:grid;
    grid-template-columns: 1fr;
    gap:18px;
    align-items:center;
    padding: 8px 0 0;
}
.hero__content{
    text-align:center;
}
.hero__kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color: rgba(255,255,255,.92);
    font-weight:800;
    margin:0 0 6px;
}

.hero__title{
    margin:0;
    font-size:28px;
    line-height:1.5;
    font-weight:950;
}
.hero__desc{
    margin:10px auto 16px;
    max-width: 520px;
    color: rgba(255,255,255,.90);
    font-size:14px;
}

.hero__actions{
    display:flex;
    gap:10px;
    justify-content:center;
    flex-wrap:wrap;
}

.hero__media{
    display:block;
}
.hero__illustration{
    width:100%;
    height:160px;
    border-radius:22px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.22);
    box-shadow: 0 24px 60px rgba(0,0,0,.12);
    position:relative;
}
.hero__illus-badge{
    position:absolute;
    right:14px;
    top:14px;
    width:44px;
    height:44px;
    border-radius:16px;
    display:grid;
    place-items:center;
    background:#fff;
    color:#0f172a;
    font-weight:700;
}

/* Quick services row */
.quick{
    margin-top: -34px;   /* sit on wave */
    padding: 0 0 26px;
    position:relative;
    z-index: 6;
}

.quick__wrap{
    background:#eef6ff;
    border:1px solid #cfe3ff;
    border-radius:26px;
    box-shadow: 0 18px 55px rgba(15,23,42,.10);
    padding: 16px;
}

.quick__grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
}

.quick__card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:20px;
    padding:16px 12px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    text-align:center;
    min-height:110px;
    transition:.2s ease;

}

.quick__card:hover{
    transform: translateY(-2px);
}

.quick__icon{
    width:54px;
    height:54px;
    border-radius:18px;
    background:#f3f8ff;
    border:1px solid #e1eeff;
    display:grid;
    place-items:center;
}

.quick__icon img{
    width:28px;
    height:28px;
    display:block;
}

.quick__title{
    font-weight:950;
    font-size:13px;
    color:#0f172a;
}

@media (min-width: 768px){
    .quick__grid{
        grid-template-columns: repeat(5, 1fr);
    }
    .quick__card{
        min-height:130px;
        padding:18px 12px;
    }
}
.quick__grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
}
.quick__card{
    position: relative;
    z-index: 6;
    background:#fff;
    color:#0f172a;
    border:1px solid rgba(255,255,255,.40);
    border-radius:16px;
    padding:12px;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.quick__icon{
    width:34px;
    height:34px;
    border-radius:14px;
    background:rgba(47,128,237,.12);
    display:grid;
    place-items:center;
}
.quick__title{font-weight:700; font-size:13px}

@media (min-width: 768px){
    .hero{
        padding: 46px 0 160px;
    }
    .hero__inner{
        grid-template-columns: 1.05fr .95fr;
        grid-template-areas: "media content";
        padding: 0;
    }
    .hero__media{grid-area:media;}
    .hero__title{font-size:28px}
    .hero__illustration{height:220px}

    .quick__grid{grid-template-columns: repeat(5, 1fr)}
    .section__title{font-size:20px}
    .hero__content{
        grid-area:content;
        text-align:right;
    }

    .hero__desc{
        margin:10px 0 18px;
        max-width: 620px;
    }

    .hero__actions{
        justify-content:flex-start;
    }

    .hero__title{font-size:40px;}
}

/* =========================
   Slider / Lawyers
========================= */
.slider{
    display:flex;
    gap:12px;
    overflow:auto;
    padding:6px 2px 12px;
    scroll-snap-type:x mandatory;
}
.slider::-webkit-scrollbar{height:8px}
.slider::-webkit-scrollbar-thumb{background:#dbeafe; border-radius:999px}

.lawyer{
    min-width:220px;
    padding:14px;
    scroll-snap-align:start;
}
.lawyer__avatar{
    width:56px;
    height:56px;
    border-radius:18px;
    background:linear-gradient(135deg, rgba(47,128,237,.18), rgba(53,199,168,.18));
    margin-bottom:10px;
}
.lawyer__name{margin:0; font-weight:700; font-size:14px}
.lawyer__role{margin:4px 0 0; color:var(--muted); font-size:12px}
.lawyer__meta{margin:2px 0 10px; color:var(--muted); font-size:12px}

/* =========================
  About / Stats (clean + stable)
========================= */

/* Mobile first */
.about{
    display:grid;
    grid-template-columns: 1fr;
    grid-template-areas:
    "content"
    "media";
    gap:18px;
    align-items:start;
}

.about__content{ grid-area:content; }
.about__media{
    grid-area:media;

    display:grid;
    grid-template-columns: 1fr; /* موبایل: زیر هم (عریض‌تر) */
    gap:16px;

    width:100%;
    justify-self:stretch;   /* مهم: وسط نیفتد */
    align-self:start;
}

.about__img{
    width:100%;
    aspect-ratio: 16 / 10;  /* عریض‌تر (دیگه مداد نوکی نمی‌شود) */
    height:auto;

    border-radius:28px;
    object-fit:cover;
    display:block;
    border:0;
    background:#f3f8ff;
    box-shadow: 0 18px 55px rgba(15,23,42,.12);
}

.about__img--2{ transform:none; }

/* Stats */
.stats{
    margin-top:14px;
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
}

.stats__item{
    padding:12px;
    border-radius:16px;
    border:1px dashed rgba(47,128,237,.25);
    background:#fff;
}

.stats__value{ font-weight:700; color:var(--accent); }
.stats__label{ color:var(--muted); font-size:12px; }

/* Tablet+ */
@media (min-width: 768px){
    .about{
        /* مدیا چپ، متن راست (مثل نمونه) */
        grid-template-columns: 1.15fr 0.85fr; /* مدیا کمی بزرگ‌تر، متن هم هنوز پهن */
        grid-template-areas: "media content";
        gap:28px;
        align-items:center;
    }

    .about__media{
        grid-template-columns: 1fr 1fr; /* دو عکس کنار هم */
        gap:18px;
    }

    .about__img{
        aspect-ratio: 4 / 5;  /* دسکتاپ: کارت‌های عمودی خوش‌فرم */
    }

    .about__img--2{
        transform: translateY(28px); /* فقط یکی پایین‌تر */
    }

    .stats{
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktop */
@media (min-width: 992px){
    .about{
        grid-template-columns: 1.2fr 0.8fr; /* مدیا بزرگ‌تر */
        gap:32px;
    }

    .about__img--2{
        transform: translateY(34px);
    }
}


/* =========================
   Testimonials
========================= */
.testi{position:relative}
.testi__card{
    max-width:560px;
    margin:0 auto;
    padding:14px;
    border-radius:18px;
    border:1px solid var(--border);
    background:#fff;
    box-shadow: var(--shadow);
}
.testi__user{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.testi__avatar{
    width:46px;
    height:46px;
    border-radius:16px;
    background:rgba(47,128,237,.12);
}
.testi__name{font-weight:700}
.testi__meta{color:var(--muted); font-size:12px}
.testi__text{margin:0; color:var(--muted); font-size:14px}
.testi__rate{margin-top:10px; color:#f59e0b; font-weight:700}
.text{color:var(--muted);font-size:14px;margin:10px 0 14px ; text-align: justify}
.testi__bubbles{display:none}
.bubble{
    position:absolute;
    background:#fff;
    border:1px solid var(--border);
    border-radius:999px;
    padding:8px 10px;
    font-size:12px;
    color:var(--muted);
    box-shadow: var(--shadow);
}

.pill-nav{
    margin-top:16px;
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:10px;
}
.pill-nav__item{
    border:1px solid #cfe3ff;
    background:#fff;
    color:var(--primary);
    border-radius:999px;
    padding:10px 12px;
    text-align:center;
    font-weight:700;
    font-size:12px;
}
.pill-nav__item.is-active{background:rgba(47,128,237,.12)}

@media (min-width: 768px){
    .testi__bubbles{display:block}
    .bubble--a{right:6%; top:20%}
    .bubble--b{left:8%; top:18%}
    .bubble--c{right:2%; top:55%}
    .bubble--d{left:2%; top:60%}
    .bubble--e{right:18%; top:78%}
    .bubble--f{left:18%; top:78%}
    .pill-nav{grid-template-columns: repeat(4, 1fr)}
}

/* Container */
.articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .articles { grid-template-columns: repeat(3, 1fr); }
}

/* Card Wrapper */
.article {
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%; /* این باعث می‌شود همه کارت‌ها هم‌ارتفاع شوند */
}

/* Content Body (این بخش فضای خالی را پر می‌کند) */
.article__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Thumbnail */
.article__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    margin-bottom: 14px;
}
.article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}
.article:hover .article__thumb img {
    transform: scale(1.05);
    filter: saturate(1.05);
}
.article__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.16), transparent 55%);
    pointer-events: none;
}
.article__thumb-placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    color: #94a3b8; font-size: 13px; font-weight: 600;
}

/* Typography */
.article__title { margin: 0 0 4px; font-weight: 700; font-size: 16px; line-height: 1.4; }
.article__meta { margin: 0 0 10px; color: var(--muted, #64748b); font-size: 12px; }
.article__excerpt { margin: 0 0 16px; color: var(--muted, #475569); font-size: 13px; line-height: 1.6; }

/* Read More Button */
.article__readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start; /* دکمه به سمت راست می‌چسبد */
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    transition: all 0.3s ease;
}
.article__readmore::after { content: "←"; font-size: 15px; transition: transform 0.2s ease; }
.article__readmore:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
    background: linear-gradient(135deg, #111827 0%, #334155 100%);
}
.article__readmore:hover::after { transform: translateX(-3px); }

/* =========================
  FAQ Modern Refined
========================= */
.faq {
    display: grid;
    gap: 16px;
    max-width: 850px; /* برای خوانایی بهتر در دسکتاپ */
    margin: 0 auto;
}

.faq__item {
    border: 1px solid #eef2f6;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* افکت برجسته شدن آیتم وقتی باز است یا موس روی آن قرار دارد */
.faq__item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 24px; /* فضای بیشتر برای دکمه */
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
    color: #1a202c;
    transition: color 0.3s ease;
}

/* استایل سوال وقتی باز است */
.faq__q[aria-expanded="true"] {
    color: #c6a359; /* طلایی برند */
}

.faq__a {
    padding: 0 24px 20px;
    color: #4a5568;
    font-size: 14.5px;
    line-height: 1.8;
    transition: all 0.3s ease;
}

/* جداکننده ظریف بین سوال و جواب */
.faq__a-inner {
    padding-top: 15px;
    border-top: 1px dashed #edf2f7;
}

.faq__chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f8fafc;
    border-radius: 50%;
    font-size: 18px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

/* چرخش آیکون وقتی باز است */
.faq__q[aria-expanded="true"] .faq__chev {
    transform: rotate(180deg);
    background: #c6a359;
    color: #fff;
}

/* بهینه سازی برای موبایل */
@media (max-width: 768px) {
    .faq__q {
        padding: 16px;
        font-size: 15px;
    }
    .faq__a {
        padding: 0 16px 16px;
    }
}


/* =========================
   Footer
========================= */
.footer{
    background:linear-gradient(135deg, #2f80ed 0%, #2f80ed 55%, #35c7a8 55%, #35c7a8 100%);
    color:#fff;
    padding-top:22px;
}
.footer__grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:16px;
    padding-bottom:18px;
}
.footer__col{
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    border-radius:18px;
    padding:14px;
}
.footer__col--brand{background:rgba(255,255,255,.08)}
.footer__brand{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.footer__title{font-weight:700}
.footer__desc{opacity:.9; font-size:12px}
.footer__text{margin:0 0 10px; opacity:.92; font-size:13px}
.footer__h{margin:0 0 10px; font-size:14px; font-weight:700}
.footer__links{margin:0; padding:0 18px 0 0; display:grid; gap:8px}
.footer__links a{opacity:.95}
.footer__links a:hover{opacity:1; text-decoration:underline}

.footer__badges{display:flex; gap:10px; flex-wrap:wrap}
.badge{
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.22);
    padding:8px 10px;
    border-radius:14px;
    font-size:12px;
}

.footer__bottom{
    border-top:1px solid rgba(255,255,255,.18);
    padding:10px 0;
}
.footer__bottom-inner{
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
    opacity:.95;
}

@media (min-width: 768px){
    .footer__grid{grid-template-columns: 1.3fr 1fr 1fr}
}

/* =========================
   Side CTA + Bottom Nav
========================= */
.side-cta{
    position:fixed;
    left:10px;
    top:55%;
    transform:translateY(-50%);
    z-index:40;
    width:44px;
    padding:10px 0;
    border-radius:14px;
    background:rgba(47,128,237,.92);
    color:#fff;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:6px;
    font-weight:700;
    font-size:12px;
    box-shadow: 0 12px 30px rgba(15,23,42,.18);
}

.bottom-nav{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:45;
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow: var(--shadow);
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:6px;
    padding:8px;
}
.bottom-nav__item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    padding:8px 6px;
    border-radius:16px;
    font-size:11px;
    font-weight:700;
    color:var(--primary);
}
.bottom-nav__item .i{font-size:16px}
.bottom-nav__item.is-active{background:rgba(47,128,237,.10)}

@media (min-width: 768px){
    .bottom-nav{display:none}
}
@media (min-width: 768px){
    .nav-toggle--top{display:none;}
}

@media (max-width: 767.98px){
    /* ثبت نام + تاریخ مخفی */
    .header-top__right{display:none;}

    /* ردیف بالا: لوگو و همبرگری در یک خط */
    .header-top__inner{
        align-items:stretch !important;
    }

    /* ردیف لوگو/همبرگری کل عرض را بگیرد */
    .header-top__left{
        width:100% !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
    }

    /* در RTL: لوگو سمت راست، همبرگری سمت چپ */
    .header-top__left .header-brand{order:1;}
    .header-top__left .nav-toggle--top{order:2;}

    .header-brand{
        grid-area:brand;
        justify-content:flex-start;
    }

    .nav-toggle--top{
        grid-area:toggle;
        justify-self:end;
        align-self:center;
    }

    .header-search{
        grid-area:search;
        max-width:100%;
    }

    /* ردیف منو (header-menu) در موبایل فقط حاوی nav است */
    .header-menu__inner{padding:0;}
}
.hero__media{
    display:block;
    margin-top:14px;
}

.hero__img{
    width:100%;
    height:auto;
    display:block;
    margin: 10px auto 0;
    max-width: 560px;
    filter: drop-shadow(0 18px 40px rgba(0,0,0,.18));
}

@media (max-width: 767.98px){
    .hero__inner{
        text-align:center;
    }
    .hero__actions{
        justify-content:center;
    }
    .hero__img{
        max-width: 460px;     /* کوچیک‌تر از قبل */
        max-height: 360px;    /* قد کنترل شود */
        width: 100%;
        height: auto;
        object-fit: contain;  /* داخل کادر بماند */
        margin: 0 auto;       /* وسط‌چین در ستون تصویر */
    }

    .hero__media{
        display:flex;
        justify-content:center;
        align-items:center;
    }
    .quick__grid{
        display:flex;
        gap:12px;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 6px 4px 14px;
    }

    .quick__grid::-webkit-scrollbar{height:8px}
    .quick__grid::-webkit-scrollbar-thumb{background:#dbeafe; border-radius:999px}

    /* 2 cards per view */
    .quick__card{
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        scroll-snap-align:start;
        min-height: 120px;
    }
}
.slider{
    display:flex;
    gap:14px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 14px;
}
.slider > *{ scroll-snap-align:start; }

.slider::-webkit-scrollbar{height:8px}
.slider::-webkit-scrollbar-thumb{background:#dbeafe; border-radius:999px}

/* lawyer card */
.lawyer{
    min-width: 240px;
    padding: 16px;
    text-align:center;
}

.lawyer__avatar{
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: cover;
    display:block;
    margin: 0 auto 10px;
    border:1px solid var(--border);
    background:#f3f8ff;
}

.lawyer__name{margin:0; font-weight:950; font-size:14px}
.lawyer__role{margin:6px 0 0; color:var(--muted); font-size:12px}
.lawyer__meta{margin:2px 0 12px; color:var(--muted); font-size:12px}

/* mobile: 2 cards per view */
@media (max-width: 767.98px){
    .lawyer{
        min-width: calc(50% - 10px);
    }
}

/* desktop: card size */
@media (min-width: 768px){
    .lawyer{
        min-width: 260px;
    }
    .lawyer__avatar{
        width: 84px;
        height: 84px;
    }
}
/******************************************
Pages Service
******************************************/
.page-head{margin:10px 0 18px}
.page-title{margin:0; font-weight:950; font-size:24px}
.page-intro{margin:10px 0 0; color:var(--muted); max-width:720px}
.page-card{padding:18px}

/***************************************
Pages Lawyer
 **************************************/

.lawyers-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:14px;
}

.lawyer-card{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px;
    border-radius:20px;
    border:1px solid var(--border);
    background:#fff;
    text-decoration:none;
    color:inherit;
}

.lawyer-card__img{
    width:64px;height:64px;border-radius:18px;object-fit:cover;
    background:#f3f8ff;border:1px solid #e1eeff;
    flex:0 0 auto;
}

.lawyer-card__body{flex:1 1 auto; min-width:0;}
.lawyer-card__name{margin:0; font-weight:950; font-size:14px}
.lawyer-card__title{margin:4px 0 0; color:var(--muted); font-size:12px}
.lawyer-card__meta{margin:2px 0 0; color:var(--muted); font-size:12px}
.lawyer-card__cta{font-size:12px; color:var(--accent); font-weight:800}

.lawyer-profile{padding:18px}
.lawyer-profile__head{display:flex; gap:14px; align-items:center}
.lawyer-profile__img{width:96px;height:96px;border-radius:26px;object-fit:cover;border:1px solid var(--border);background:#f3f8ff}
.lawyer-profile__name{margin:0; font-weight:950; font-size:18px}
.lawyer-profile__title{margin:6px 0 0; color:var(--muted); font-size:13px}

.chips{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 16px}
.chip{padding:8px 10px; border-radius:999px; background:#f3f8ff; border:1px solid #e1eeff; font-size:12px}

@media (min-width: 768px){
    .lawyers-grid{grid-template-columns: repeat(3, 1fr);}
    .lawyer-card{flex-direction:column; align-items:stretch; text-align:center}
    .lawyer-card__img{width:84px;height:84px;margin:0 auto}
    .lawyer-card__cta{margin-top:10px}
}

/************************************
Pages Blog
***************************************/
.blog-cats{display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 18px}
.blog-grid{display:grid; grid-template-columns:1fr; gap:14px}

.blog-card{
    display:grid;
    grid-template-columns: 120px 1fr;
    gap:12px;
    padding:12px;
    border-radius:22px;
    border:1px solid var(--border);
    background:#fff;
    color:inherit;
    text-decoration:none;
}
.blog-card__img{width:100%; height:92px; border-radius:18px; object-fit:cover; display:block; background:#f3f8ff}
.blog-card__title{margin:0; font-weight:950; font-size:14px}
.blog-card__excerpt{margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.9}
.blog-card__meta{margin-top:10px; color:var(--muted); font-size:12px; display:flex; gap:10px}

.post-head{margin:10px 0 14px}
.post-title{margin:0; font-weight:950; font-size:22px; line-height:1.6}
.post-meta{margin-top:8px; color:var(--muted); font-size:12px; display:flex; gap:8px; flex-wrap:wrap}

.post-cover{
    width:100%;
    height:auto;
    border-radius:26px;
    object-fit:cover;
    display:block;
    border:1px solid var(--border);
    background:#f3f8ff;
    margin: 14px 0 18px;
}

.post-body{line-height:2.05}
.post-body h2{margin:18px 0 8px; font-size:18px}

@media (min-width: 768px){
    .blog-grid{grid-template-columns: repeat(3, 1fr);}
    .blog-card{grid-template-columns: 1fr; padding:14px}
    .blog-card__img{height:160px}
}
/****************************
pages About And Contact
*****************************/

.contact-grid{display:grid; grid-template-columns:1fr; gap:14px}
.form__row{display:flex; flex-direction:column; gap:8px; margin:10px 0}
.form__label{font-size:12px; color:var(--muted)}
.form__input{border:1px solid var(--border); border-radius:16px; padding:12px; font:inherit; outline:none; background:#fff}
.form__input:focus{border-color: rgba(47,128,237,.5)}
.list{margin:10px 0 0; padding:0 18px; color:var(--muted); line-height:2}

@media (min-width: 768px){
    .contact-grid{grid-template-columns: 1fr 1fr;}
}
/**************************
Pages FAQ
 */

.faq{display:grid; gap:12px}
.faq__item{
    border:1px solid var(--border);
    border-radius:18px;
    background:#fff;
    padding: 6px 10px;
}
.faq__q{
    cursor:pointer;
    list-style:none;
    font-weight:900;
    padding: 12px 8px;
}
.faq__q::-webkit-details-marker{display:none}
.faq__a{padding: 0 8px 12px}
.faq__item[open] .faq__q{color: var(--accent)}

.brand__logo{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#2f80ed1f;color:var(--primary);font-weight:900}

/* =========================
  Reviews / Testimonials (Orbit)
========================= */

.reviews{
    background:transparent;
}

.reviews__head{
    display:grid;
    place-items:center;
    gap:10px;
    padding:10px 0 0;
    text-align:center;
}

.reviews__badge{
    width:34px;height:34px;
    border-radius:12px;
    display:grid;
    place-items:center;
    background:rgba(45,212,191,.18);
    color:#0f766e;
    font-weight:900;
}

.reviews__title{
    margin:0;
    font-weight:950;
    color:var(--text);
    font-size:28px;
}

.reviews__cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 16px;
    border-radius:14px;
    border:1px solid rgba(15,23,42,.06);
    background:#f7fbff;
    color:var(--muted);
    font-weight:850;
    font-size:12px;
    text-decoration:none;
}

.reviews__stage{
    position:relative;
    margin-top:26px;
    min-height:520px;
    display:grid;
    place-items:center;
}

/* ===== Orbit wrapper ===== */
.reviews__orbit{
    position:absolute;
    inset:0;
    pointer-events:auto;
}

/* ===== Chips ===== */
.review-chip{
    position:absolute;
    display:flex;
    flex-direction:row-reverse; /* RTL */
    align-items:center;
    gap:12px;
    padding:12px 16px;
    border-radius:999px;
    border:1px solid rgba(15,23,42,.06);
    background:rgba(255,255,255,.92);
    box-shadow: 0 22px 70px rgba(15,23,42,.10);
    backdrop-filter: blur(6px);
    cursor:pointer;
    max-width:290px;
}

.review-chip__avatar{
    width:48px;height:48px;
    border-radius:50%;
    background:rgba(47,128,237,.14);
    position:relative;
    flex:0 0 auto;
    overflow:hidden;
}

.review-chip__icon{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-size:18px;
    color:rgba(47,128,237,.95);
}

.review-chip__ok{
    position:absolute;
    right:5px;
    bottom:2px;
    width:18px;height:18px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:rgba(45,212,191,.25);
    color:#0f766e;
    font-weight:900;
    font-size:12px;
    border:2px solid #fff;
}

.review-chip__txt{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    line-height:1.15;
}

.review-chip__name{
    font-weight:950;
    color:var(--text);
    font-size:14px;
}

.review-chip__city{
    color:var(--muted);
    font-size:12px;
    margin-top:5px;
}

.review-chip.is-active{
    border-color:rgba(47,128,237,.28);
    background:#fff;
}

/* ===== Positions (بیشتر فاصله‌دار) ===== */
.review-chip--a{ right:  2%; top: 44%; }
.review-chip--b{ left:   2%; top: 44%; }

.review-chip--c{ right: 10%; top: 74%; }
.review-chip--d{ left:  10%; top: 74%; }

.review-chip--e{ right: 30%; bottom: 6%; }
.review-chip--f{ left:  30%; bottom: 6%; }

/* ===== Main card ===== */
.review-card{
    position:relative;
    width:min(600px, 100%);
    background:rgba(47,128,237,.07);
    border:1px solid rgba(47,128,237,.16);
    border-radius:24px;
    box-shadow: 0 30px 90px rgba(15,23,42,.12);
    padding:22px 88px 18px; /* جا برای فلش‌ها */
}

.review-card__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:12px;
}

.review-card__right{
    display:flex;
    flex-direction:row-reverse;
    align-items:center;
    gap:12px;
}

.review-card__avatar{
    width:52px;height:52px;
    border-radius:50%;
    background:rgba(47,128,237,.18);
    position:relative;
    flex:0 0 auto;
    overflow:hidden;
}

.review-card__icon{
    position:absolute;
    inset:0;
    display:grid;
    place-items:center;
    font-size:18px;
    color:rgba(47,128,237,.95);
}

.review-card__ok{
    position:absolute;
    right:5px;
    bottom:2px;
    width:18px;height:18px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:rgba(45,212,191,.25);
    color:#0f766e;
    font-weight:900;
    font-size:12px;
    border:2px solid #fff;
}

.review-card__who{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:4px;
}

.review-card__name{
    font-weight:950;
    color:var(--text);
    font-size:18px;
}

.review-card__city{
    color:var(--muted);
    font-weight:800;
    font-size:12px;
}

.review-card__left{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    color:var(--muted);
    font-weight:800;
    font-size:12px;
    padding-top:8px;
}

.review-card__fromText{
    opacity:.9;
}

.review-card__ago{
    opacity:.9;
}

.review-card__text{
    margin:0;
    color:var(--muted);
    font-size:15px;
    line-height:2.1;
    text-align:right;
    padding:0 6px;
}

.review-card__foot{
    margin-top:12px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.review-card__stars{
    color:#f59e0b;
    font-weight:950;
    letter-spacing:2px;
    font-size:16px;
}

/* ===== Arrows (بیرون کارت تا روی متن نیفتد) ===== */
.review-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:40px;height:40px;
    border-radius:999px;
    border:0;
    background:rgba(47,128,237,1);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    box-shadow: 0 18px 45px rgba(47,128,237,.25);
    z-index:3;
}

.review-arrow--prev{ left:-20px; }
.review-arrow--next{ right:-20px; }

/* ===== Responsive tuning ===== */
@media (max-width: 1200px){
    .reviews__stage{min-height:480px}
    .review-card{width:min(800px, 100%)}
}

@media (max-width: 992px){
    .reviews__stage{min-height:430px}
    .review-card{padding:20px 70px 16px}
    .review-chip{max-width:250px}
}

@media (max-width: 767.98px){
    /* موبایل: حباب‌ها مخفی، فقط کارت + فلش */
    .reviews__stage{min-height:auto}
    .reviews__orbit{display:none}

    .review-card{
        padding:16px 16px 14px;
        border-radius:20px;
    }
    .review-arrow--prev{ left:10px; }
    .review-arrow--next{ right:10px; }
    .review-card__top{gap:10px}
    .review-card__name{font-size:16px}
    .review-card__text{font-size:14px}
}
/* ===== Bottom Nav (Prev/Next) - show on ALL sizes ===== */
.review-nav{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin-top:16px;
}

.review-nav__btn{
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(47,128,237,.20);
    background:rgba(47,128,237,1);
    color:#fff;
    font-weight:900;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    box-shadow: 0 18px 45px rgba(47,128,237,.25);
    display:grid;
    place-items:center;
}

.review-nav__btn:active{
    transform:translateY(1px);
}

/* اگر هنوز CSS فلش‌های کناری را داری، خاموششان کن */
.review-arrow{
    display:none !important;
}

/* موبایل: دکمه‌ها کمی کوچکتر */
@media (max-width: 767.98px){
    .review-nav{ margin-top:14px; }
    .review-nav__btn{ width:42px; height:42px; font-size:22px; }
}
/* =========================
   Home Pills (4 links)
========================= */
.home-links{ padding: 0 18px  10px; }

.home-links__grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:14px;
}

.home-pill{
    display:flex;
    align-items:center;
    /*justify-content:space-between;*/
    gap:14px;

    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:999px;

    padding:16px 18px;
    color:var(--text);
    text-decoration:none;

    box-shadow: 0 18px 55px rgba(15,23,42,.10);
    position:relative;
    overflow:hidden;
}

/* خط آبی زیر مثل نمونه */
.home-pill::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:4px;
    background: var(--primary);
    opacity:.95;
}

.home-pill__text{
    font-weight:900;
    font-size:14px;
    line-height:1.6;
}

.home-pill__icon{
    width:44px;
    height:44px;
    border-radius:16px;
    display:grid;
    place-items:center;

    background: rgba(47,128,237,.10);
    color: var(--primary);
    font-size:22px;
    flex:0 0 auto;
}

/* دسکتاپ: 4 تا کنار هم مثل تصویر */
@media (min-width: 992px){
    .home-links__grid{
        grid-template-columns: repeat(4, 1fr);
        gap:18px;
    }
    .home-pill{
        padding:18px 18px;
    }
    .home-pill__text{ font-size:15px; }
}

/* =========================================================
   Services Split (Content + Sticky Aside)
   Scope: .section.service-split
========================================================= */

.section.service-split,
.section.service-split .container,
.section.service-split .svc-layout{
    overflow: visible !important;   /* برای اینکه sticky خراب نشود */
    transform: none !important;
}

/* Mobile/Tablet: main سپس aside */
.section.service-split .svc-layout{
    display: grid;
    gap: 18px;
    grid-template-areas:
    "main"
    "aside";
    grid-template-columns: 1fr;
    align-items: start;
}

.section.service-split .svc-main{
    grid-area: main;
    min-width: 0;
}

.section.service-split .svc-aside{
    grid-area: aside;
    min-width: 0;
}

.section.service-split .svc-sticky{
    display: grid;
    gap: 14px;
}

/* Desktop: main راست، aside چپ + sticky */
@media (min-width: 992px){
    /* نکته RTL: ستون اول سمت راست است، ستون دوم سمت چپ
       پس main را ستون اول و aside را ستون دوم می‌گذاریم */
    .section.service-split .svc-layout{
        grid-template-columns: minmax(0, 1fr) 340px; /* main | aside */
        grid-template-areas: "main aside";
        gap: 22px;
    }

    .section.service-split .svc-aside{
        position: sticky;
        top: 140px;          /* اگر زیر هدر رفت: 160px */
        align-self: start;
    }
}

/* =========================================================
   Call Card (SVG on one side, text on the other)
========================================================= */

.section.service-split .svc-callCard{
    display: grid;
    grid-template-columns: 1fr 96px; /* متن | باکس عکس */
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 22px;
    text-decoration: none;
    color: inherit;
}

/* باکس عکس (سمت چپِ کارت از دید کاربر) */
.section.service-split .svc-callMedia{
    width: 96px;
    height: 96px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.03);
    border: 1px solid rgba(0,0,0,.10);
}

/* اگر img مستقیم داخل کارت است (بدون wrapper) */
.section.service-split .svc-callCard > img.svc-callImg{
    grid-column: 2;
    justify-self: center;
}

/* اگر img داخل wrapper است */
.section.service-split .svc-callMedia .svc-callImg{
    width: 72px;
    height: 72px;
    display: block;
}

.section.service-split .svc-callMeta{
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.section.service-split .svc-callTitle{
    font-weight: 950;
    font-size: 16px;
    color: var(--text);
}

.section.service-split .svc-callNumber{
    font-weight: 950;
    font-size: 18px;
    color: var(--primary);
    letter-spacing: .3px;
}

/* =========================================================
   Aside Form
========================================================= */

.section.service-split .svc-form{
    padding: 14px 16px;
    border-radius: 22px;
}

.section.service-split .svc-formTitle{
    font-weight: 950;
    margin: 0 0 10px;
    font-size: 14px;
}

.section.service-split .svc-field{
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.section.service-split .svc-label{
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
}
.ff-label{
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: start!important;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}
.section.service-split .svc-input{
    width: 100%;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 14px;
    padding: 12px 12px;
    outline: none;
    background: #fff;
}

.section.service-split .svc-input:focus{
    border-color: rgba(47,128,237,.60);
    box-shadow: 0 0 0 3px rgba(47,128,237,.10);
}

.section.service-split .svc-input--ta{
    resize: vertical;
}

.section.service-split .svc-terms{
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 12px;
    font-size: 12px;
    color: var(--muted);
}

.section.service-split .svc-link{
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
}
.section.service-split .svc-link:hover{ text-decoration: underline; }

.section.service-split .svc-btn{
    width: fit-content;
    padding: 10px 18px;
    border-radius: 14px;
    border: 0;
    background: var(--accent);
    color: #063b35;
    font-weight: 950;
    cursor: pointer;
}
.section.service-split .svc-btn:hover{ filter: brightness(.95); }

/* Mobile tuning */
@media (max-width: 480px){
    .section.service-split .svc-callCard{
        grid-template-columns: 1fr 84px;
    }
    .section.service-split .svc-callMedia{
        width: 84px;
        height: 84px;
    }
    .section.service-split .svc-callMedia .svc-callImg{
        width: 62px;
        height: 62px;
    }
}
/* =========================
   Service Main Article Typography
========================= */
.section.service-split .page-head{
    margin-bottom: 14px;
}

.section.service-split .page-title{
    margin: 0 0 8px;
    font-weight: 950;
    font-size: 34px;
    line-height: 1.6;
}

.section.service-split .page-intro{
    margin: 0;
    color: var(--muted);
    line-height: 2.1;
    font-size: 14px;
}

.section.service-split .svc-article{
    margin-top: 14px;
    line-height: 2.2;
    font-size: 15px;
    color: #111827;
}

.section.service-split .svc-article p{
    margin: 0 0 14px;
    color: #334155;
}

.section.service-split .svc-article h2{
    margin: 22px 0 10px;
    font-size: 22px;
    font-weight: 950;
    color: #0f172a;
}

.section.service-split .svc-article h3{
    margin: 18px 0 10px;
    font-size: 18px;
    font-weight: 950;
    color: #0f172a;
}

.section.service-split .svc-article h4{
    margin: 14px 0 8px;
    font-size: 15px;
    font-weight: 950;
    color: #0f172a;
}

.section.service-split .svc-article ul{
    margin: 10px 0 16px;
    padding-right: 18px;
}

.section.service-split .svc-article li{
    margin: 8px 0;
    color: #334155;
}

.section.service-split .svc-article a{
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}
.section.service-split .svc-article a:hover{
    text-decoration: underline;
}

/* تصاویر داخل متن */
.section.service-split .svc-article img{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 14px auto;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
}

/* اگر از وردپرس کلاس alignleft داری */
.section.service-split .svc-article img.alignleft{
    float: left;
    margin: 10px 0 12px 16px;
    max-width: 260px;
}
@media (max-width: 768px){
    .section.service-split .page-title{font-size: 26px;}
    .section.service-split .svc-article{font-size: 14px;}
    .section.service-split .svc-article img.alignleft{
        float: none;
        max-width: 100%;
        margin: 14px auto;
    }
}


/* Modal Overlay */
.review-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

/* Content Box */
.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-modal:hover { color: #333; }

.modal-header h3 { font-size: 1.5rem; margin-bottom: 10px; color: #1e293b; }
.modal-header p { font-size: 0.9rem; color: #64748b; margin-bottom: 25px; }

/* Form Elements */
.review-form { display: flex; flex-direction: column; gap: 15px; }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.review-form input, .review-form textarea {
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    transition: all 0.3s;
}

.review-form input:focus, .review-form textarea:focus {
    border-color: #3b82f6;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Star Rating */
.rating-box { display: flex; align-items: center; gap: 15px; margin: 10px 0; }
.stars { display: flex; flex-direction: row-reverse; }
.stars input { display: none; }
.stars label {
    font-size: 30px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0 2px;
}
.stars label:before { content: '★'; }
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: #facc15; }

/* Button */
.submit-review {
    background-color: #3b82f6;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-review:hover { background-color: #2563eb; }


/* Custom Toast Notification Container */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
    box-sizing: border-box;
    pointer-events: none;
}

/* Base Toast Style */
.custom-toast {
    background: #ffffff;
    color: #1f2937;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    direction: rtl;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Success State */
.custom-toast.success {
    border-right: 4px solid #10b981;
}

/* Error State */
.custom-toast.error {
    border-right: 4px solid #ef4444;
}

/* Animation trigger */
.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Close Button */
.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}
.toast-close:hover {
    color: #4b5563;
}
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999; backdrop-filter: blur(4px);
    justify-content: center; align-items: center;
}
.modal-content {
    background: #fff; padding: 20px; border-radius: 15px; width: 90%; max-width: 400px;
    position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-close { position: absolute; top: 10px; right: 15px; cursor: pointer; font-size: 24px; }
.modal-title { font-weight: bold; margin-bottom: 15px; font-size: 1.2rem; }
.lawyerField { margin-bottom: 15px; }
.lawyerField input, .lawyerField textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.checkbox-container { display: flex; align-items: center; gap: 5px; margin-bottom: 15px; font-size: 0.9rem; }
#submitBtn { width: 100%; padding: 12px; background: #007bff; color: white; border: none; border-radius: 8px; cursor: pointer; }
.status-msg { text-align: center; padding: 20px; }
