/*
 * بند ۴-۹ فهرست ۶۴ — استایل بخش‌های تکمیلی لندینگ مشاوره و برنامه‌ریزی تحصیلی.
 *
 * صفحات مصرف‌کننده: page-templates/template-counseling.php (enqueue مشروط داخل خود قالب).
 * همهٔ کلاس‌ها با پیشوند ar-cl- عایق شده‌اند تا با Tailwind/استایل‌های قالب تداخل نکنند.
 * جهت صفحه RTL است؛ اجزای عددی (تایمر) با dir="ltr" داخلی محافظت شده‌اند.
 *
 * @package academyrooyesh
 */

/* ---------- بند ۸ — نوار تایمر فروش ویژه ---------- */

/* فال‌بک اسکرول لنگرها (کلاس scroll-mt-20 در CSS کامپایل‌شدهٔ Tailwind موجود نیست). */
#faqs,
#reviews,
#intro-video,
#free-session {
        scroll-margin-top: 80px;
}

.ar-cl-sale {
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
}

.ar-cl-timer {
        direction: ltr;
}

.ar-cl-cd-box {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 58px;
        padding: 8px 10px;
        background: #ffffff;
        border: 1px solid #fde68a;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.ar-cl-cd-box b {
        font-size: 1.25rem;
        font-weight: 900;
        line-height: 1.1;
        color: #92400e;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.02em;
}

.ar-cl-cd-box i {
        font-style: normal;
        font-size: 10px;
        font-weight: 700;
        color: #b45309;
        margin-top: 2px;
}

.ar-cl-cd-box--sec {
        background: #92400e;
        border-color: #92400e;
}

.ar-cl-cd-box--sec b {
        color: #fef3c7;
}

.ar-cl-cd-box--sec i {
        color: #fcd34d;
}

.ar-cl-cd-sep {
        font-weight: 900;
        color: #b45309;
        font-size: 1.1rem;
}

/* ---------- بند ۴ — لنگر قیمت ماهانه + برچسب‌ها ---------- */

.ar-cl-monthly {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
        font-size: 12.5px;
        font-weight: 700;
        color: #64748b;
        background: rgba(255, 255, 255, 0.55);
        border: 1px solid #e2e8f0;
        border-radius: 999px;
        padding: 5px 14px;
        font-variant-numeric: tabular-nums;
}

.ar-cl-monthly--ondark {
        color: #e2e8f0;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.25);
}

.ar-cl-badge-save,
.ar-cl-badge-best {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 11px;
        font-weight: 900;
        border-radius: 999px;
        padding: 4px 12px;
        line-height: 1.4;
}

/* برچسب «٪ صرفه‌جویی» طرح سه‌ماهه */
.ar-cl-badge-save {
        color: #065f46;
        background: #d1fae5;
        border: 1px solid #6ee7b7;
}

/* برچسب «بهترین ارزش» — گوشهٔ کارت طرح یک‌ساله/برترین از نظر قیمت ماهانه */
.ar-cl-badge-best {
        position: absolute;
        top: -14px;
        right: 28px;
        z-index: 20;
        color: #78350f;
        background: linear-gradient(135deg, #fbbf24, #f59e0b);
        border: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 8px 20px rgba(245, 158, 11, 0.45);
        padding: 6px 14px;
        letter-spacing: 0.02em;
}

.ar-cl-badge-best i {
        font-size: 10px;
}

/* ---------- بند ۵ — آکاردئون پرسش‌های متداول ---------- */

.ar-cl-faq summary {
        list-style: none;
        position: relative;
        transition: color 0.15s ease;
}

.ar-cl-faq summary::-webkit-details-marker {
        display: none;
}

.ar-cl-faq summary:hover {
        color: #059669;
}

.ar-cl-faq summary .fa-chevron-down {
        transition: transform 0.25s ease;
}

.ar-cl-faq[open] summary .fa-chevron-down {
        transform: rotate(180deg);
}

.ar-cl-faq[open] {
        background: #ffffff;
        border-color: #a7f3d0;
        box-shadow: 0 10px 25px rgba(16, 185, 129, 0.08);
}

.ar-cl-faq-a {
        animation: ar-cl-faq-in 0.25s ease;
}

@keyframes ar-cl-faq-in {
        from {
                opacity: 0;
                transform: translateY(-4px);
        }
        to {
                opacity: 1;
                transform: translateY(0);
        }
}

/* ---------- بند ۶ — کارت بازخورد ستاره‌دار ---------- */

.ar-cl-avatar {
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.ar-cl-stars .ar-cl-star {
        font-size: 15px;
        line-height: 1;
        color: #e2e8f0;
}

.ar-cl-stars .ar-cl-star.is-filled {
        color: #f59e0b;
}

/* ---------- بند ۷ — قاب ویدیوی معرفی ---------- */

.ar-cl-video {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #0f172a;
}

.ar-cl-video iframe,
.ar-cl-video video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
}

@supports not (aspect-ratio: 16 / 9) {
        .ar-cl-video::before {
                content: "";
                display: block;
                padding-top: 56.25%;
        }
}

/* ---------- بند ۹ — فرم لید «جلسهٔ مشاورهٔ اول رایگان» ---------- */

/* فال‌بک رنگ حاشیهٔ جعبه‌های اطلاع (border-rooyesh-200 / border-red-200 در CSS کامپایل‌شدهٔ Tailwind نیستند). */
.ar-cl-notice--success {
        border-color: #a7f3d0;
}

.ar-cl-notice--error {
        border-color: #fecaca;
}

.ar-cl-lead-form input[type="text"],
.ar-cl-lead-form input[type="tel"],
.ar-cl-lead-form select,
.ar-cl-lead-form textarea {
        width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #f8fafc;
        padding: 12px 14px;
        font-size: 14px;
        color: #1e293b;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ar-cl-lead-form input:focus,
.ar-cl-lead-form select:focus,
.ar-cl-lead-form textarea:focus {
        outline: none;
        border-color: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
        background: #ffffff;
}

.ar-cl-lead-form label {
        display: block;
        font-size: 12.5px;
        font-weight: 800;
        color: #334155;
        margin-bottom: 6px;
}

/* ---------- بند ۸ — نوار خرید چسبان موبایل ---------- */

.ar-cl-stickybar {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 60;
        pointer-events: none;
}

.ar-cl-stickybar[hidden] {
        display: none;
}

.ar-cl-stickybar__inner {
        pointer-events: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 12px 12px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.97);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}

.ar-cl-stickybar__info {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
}

.ar-cl-stickybar__info strong {
        font-size: 12.5px;
        font-weight: 900;
        color: #059669;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.ar-cl-stickybar__info span {
        font-size: 10.5px;
        font-weight: 700;
        color: #64748b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
}

.ar-cl-stickybar__cta {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(270deg, #059669, #14b8a6);
        color: #ffffff;
        font-size: 12px;
        font-weight: 900;
        padding: 12px 18px;
        border-radius: 14px;
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(16, 185, 129, 0.4);
        white-space: nowrap;
}

.ar-cl-stickybar__cta:active {
        transform: scale(0.97);
}

/* نوار چسبان فقط در موبایل/تبلت (هم‌تراز الگوی AIP: lg:hidden) */
@media (min-width: 1024px) {
        .ar-cl-stickybar {
                display: none;
        }
}

/* احترام به تنظیم «کاهش حرکت» کاربران */
@media (prefers-reduced-motion: reduce) {
        .ar-cl-faq-a {
                animation: none;
        }

        .ar-cl-faq summary .fa-chevron-down {
                transition: none;
        }
}
/* ================================================================
   بخش ۵ پرامپت جامع (v1.27.0) — بازطراحی لندینگ مشاوره
   هویت زمردی (#059669)، سرمه‌ای (#0f172a)، طلایی (#f59e0b)
   موبایل‌فرست | تبلت 641-1024 | دسکتاپ >=1025 | دارک‌مود کامل
   ================================================================ */

.ar-landing {
        --ar-emerald: #059669;
        --ar-emerald-soft: rgba(5, 150, 105, .09);
        --ar-navy: #0f172a;
        --ar-gold: #f59e0b;
        --ar-surface: #ffffff;
        --ar-surface-2: #f8fafc;
        --ar-border: #e2e8f0;
        --ar-text: #0f172a;
        --ar-muted: #64748b;
        background: #f8fafc;
        color: var(--ar-text);
}
html[data-theme="dark"] .ar-landing {
        --ar-surface: #111a2c;
        --ar-surface-2: #16203a;
        --ar-border: #273652;
        --ar-text: #f1f5f9;
        --ar-muted: #94a3b8;
        background: #0b1220;
}

/* ---------- دکمهٔ طلایی گرادیانی ---------- */
.ar-btn-gold {
        background: linear-gradient(120deg, #fbbf24, #f59e0b 55%, #fbbf24);
        color: #1f1300;
        box-shadow: 0 14px 30px -12px rgba(245, 158, 11, .55);
        transition: filter .15s ease, transform .15s ease, box-shadow .2s ease;
}
.ar-btn-gold:hover { filter: brightness(1.06); transform: translateY(-2px); }
.ar-btn-gold:focus-visible { outline: 3px solid rgba(245, 158, 11, .45); outline-offset: 2px; }

/* ---------- هیرو ---------- */
.ar-hero {
        background:
                radial-gradient(900px 420px at 85% -10%, rgba(5, 150, 105, .28), transparent 65%),
                radial-gradient(700px 380px at 10% 110%, rgba(245, 158, 11, .16), transparent 60%),
                linear-gradient(160deg, #0f172a 0%, #06281f 55%, #0f172a 100%);
}
html[data-theme="dark"] .ar-hero {
        background:
                radial-gradient(900px 420px at 85% -10%, rgba(5, 150, 105, .22), transparent 65%),
                linear-gradient(160deg, #0b1220 0%, #06281f 55%, #0b1220 100%);
}
.ar-hero-badge {
        background: rgba(251, 191, 36, .14);
        border: 1px solid rgba(251, 191, 36, .4);
        color: #fcd34d;
}
.ar-hero-stat {
        background: rgba(255, 255, 255, .07);
        border: 1px solid rgba(255, 255, 255, .14);
        color: #f1f5f9;
        backdrop-filter: blur(6px);
}
.ar-hero-stat-icon { background: var(--ar-emerald-soft); color: #34d399; border: 1px solid rgba(52, 211, 153, .3); }

/* ---------- مقایسهٔ دو ستونه ---------- */
.ar-compare-card { background: var(--ar-surface); border: 1px solid var(--ar-border); }
.ar-compare-card--pain { border-top: 4px solid #ef4444; }
.ar-compare-card--win { border-top: 4px solid var(--ar-emerald); box-shadow: 0 18px 40px -28px rgba(5, 150, 105, .5); }
.ar-compare-ic--pain { background: rgba(239, 68, 68, .1); color: #ef4444; }
.ar-compare-ic--win { background: var(--ar-emerald-soft); color: var(--ar-emerald); }
.ar-li-dot { width: 8px; height: 8px; border-radius: 999px; }
.ar-li-dot--pain { background: #ef4444; }
.ar-li-dot--win { background: var(--ar-emerald); }

/* ---------- مخاطبان / امکانات / گام‌ها ---------- */
.ar-aud-card, .ar-feat-card, .ar-step-card { background: var(--ar-surface); border: 1px solid var(--ar-border); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ar-aud-card:hover, .ar-feat-card:hover, .ar-step-card:hover { transform: translateY(-3px); border-color: rgba(5, 150, 105, .45); box-shadow: 0 16px 34px -22px rgba(5, 150, 105, .55); }
.ar-aud-icon, .ar-feat-icon { background: var(--ar-emerald-soft); color: var(--ar-emerald); border: 1px solid rgba(5, 150, 105, .25); }
html[data-theme="dark"] .ar-aud-icon, html[data-theme="dark"] .ar-feat-icon { color: #34d399; }
.ar-step-card { border-top: 3px solid rgba(245, 158, 11, .55); }
.ar-step-num {
        position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%);
        min-width: 34px; height: 28px; padding: 0 10px;
        display: inline-flex; align-items: center; justify-content: center;
        border-radius: 999px; background: linear-gradient(120deg, #fbbf24, #f59e0b);
        color: #1f1300; font-weight: 900; font-size: 13px;
        box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .7);
}

/* ---------- کارت طرح‌ها ---------- */
.ar-plan-card { background: var(--ar-surface); border: 1.5px solid var(--ar-border); transition: transform .2s ease, box-shadow .2s ease; }
.ar-plan-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(15, 23, 42, .35); }
.ar-plan-card.is-recommended {
        border-color: var(--ar-gold);
        box-shadow: 0 24px 50px -26px rgba(245, 158, 11, .5);
}
.ar-plan-badge {
        background: linear-gradient(120deg, #fbbf24, #f59e0b);
        color: #1f1300;
        border: 1px solid rgba(255, 255, 255, .35);
        box-shadow: 0 10px 24px -10px rgba(245, 158, 11, .7);
}
.ar-plan-duration { background: var(--ar-emerald-soft); color: var(--ar-emerald); }
html[data-theme="dark"] .ar-plan-duration { color: #34d399; }
.ar-plan-pricebox { border-block: 1px dashed var(--ar-border); }
.ar-plan-features { color: var(--ar-text); }
.ar-plan-cta {
        background: var(--ar-emerald); color: #fff;
        box-shadow: 0 14px 28px -14px rgba(5, 150, 105, .6);
        transition: filter .15s ease, transform .15s ease;
}
.ar-plan-cta:hover { filter: brightness(1.07); transform: translateY(-2px); }
.ar-plan-cta.is-gold { background: linear-gradient(120deg, #fbbf24, #f59e0b); color: #1f1300; box-shadow: 0 14px 28px -14px rgba(245, 158, 11, .65); }
.ar-plan-cta:focus-visible { outline: 3px solid rgba(5, 150, 105, .4); outline-offset: 2px; }
.ar-plan-card .ar-cl-monthly, .ar-plan-card .ar-cl-badge-save { font-size: 11px; }

/* ---------- جدول مقایسهٔ فشرده ---------- */
.ar-compare-table-wrap { background: var(--ar-surface); border: 1px solid var(--ar-border); }
.ar-compare-table { border-collapse: collapse; min-width: 560px; }
.ar-compare-table thead th {
        background: var(--ar-navy); color: #f1f5f9;
        font-weight: 900; font-size: 12.5px; padding: 12px 14px; white-space: nowrap;
}
.ar-compare-table tbody th, .ar-compare-table tbody td {
        padding: 12px 14px; border-top: 1px solid var(--ar-border);
        font-size: 13px; font-weight: 700; color: var(--ar-text);
}
.ar-compare-table tbody th { font-weight: 800; color: var(--ar-muted); }
.ar-td-check { color: var(--ar-emerald); display: inline-flex; }
html[data-theme="dark"] .ar-td-check { color: #34d399; }
.ar-td-muted { color: var(--ar-muted); font-weight: 700; }

/* ---------- مشاوران برگزیده ---------- */
.ar-consultant-card { background: var(--ar-surface); border: 1px solid var(--ar-border); }
.ar-consultant-avatar { border: 2px solid rgba(5, 150, 105, .4); box-shadow: 0 8px 20px -10px rgba(5, 150, 105, .5); }
.ar-consultant-tag { background: rgba(245, 158, 11, .14); color: #b45309; }
html[data-theme="dark"] .ar-consultant-tag { color: #fbbf24; }

/* ---------- بنر پایانی ---------- */
.ar-final-banner {
        background:
                radial-gradient(700px 320px at 15% -20%, rgba(245, 158, 11, .2), transparent 60%),
                linear-gradient(160deg, #0f172a 0%, #06281f 55%, #0f172a 100%);
}
html[data-theme="dark"] .ar-final-banner {
        background:
                radial-gradient(700px 320px at 15% -20%, rgba(245, 158, 11, .15), transparent 60%),
                linear-gradient(160deg, #0b1220 0%, #06281f 55%, #0b1220 100%);
}

/* ---------- آکاردئون FAQ (کلاس‌های قالب جدید) ---------- */
.ar-landing .ar-cl-faq { background: var(--ar-surface); border: 1px solid var(--ar-border); }
.ar-landing .ar-cl-faq summary { color: var(--ar-text); }
.ar-landing .ar-cl-faq summary:hover { color: var(--ar-emerald); }
html[data-theme="dark"] .ar-landing .ar-cl-faq summary:hover { color: #34d399; }
.ar-landing .ar-cl-faq .ar-cl-faq-chev { color: var(--ar-muted); transition: transform .2s ease; }
.ar-landing .ar-cl-faq[open] .ar-cl-faq-chev { transform: rotate(180deg); }
.ar-landing .ar-cl-faq .ar-cl-faq-body { color: var(--ar-muted); border-color: var(--ar-border); }

/* ---------- فرم لید — باکس و دارک‌مود ---------- */
.ar-landing .ar-cl-lead-form { background: var(--ar-surface); border: 1px solid var(--ar-border); box-shadow: 0 18px 40px -30px rgba(15, 23, 42, .3); }
.ar-landing .ar-cl-lead-form label { color: var(--ar-text); }

/* ---------- دارک‌مود متن‌های عمومی ---------- */
html[data-theme="dark"] .ar-landing .ar-compare-card,
html[data-theme="dark"] .ar-landing .ar-aud-card,
html[data-theme="dark"] .ar-landing .ar-feat-card,
html[data-theme="dark"] .ar-landing .ar-step-card,
html[data-theme="dark"] .ar-landing .ar-plan-card,
html[data-theme="dark"] .ar-landing .ar-consultant-card,
html[data-theme="dark"] .ar-landing .ar-compare-table-wrap { background: #111a2c; }
html[data-theme="dark"] .ar-landing .text-slate-500 { color: #94a3b8 !important; }
html[data-theme="dark"] .ar-landing .text-slate-400 { color: #64748b !important; }

/* ---------- ریسپانسیو ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
        .ar-hero { padding-top: 110px; }
        .ar-hero-stat { padding: 14px; }
}
@media (max-width: 640px) {
        .ar-hero { padding-top: 96px; padding-bottom: 64px; }
        .ar-hero-stat { padding: 12px; }
        .ar-plan-card { padding: 24px 20px; }
        .ar-plan-badge { font-size: 11px; padding: 8px 16px; }
        .ar-compare-table thead th { padding: 10px 12px; }
        .ar-compare-table tbody th, .ar-compare-table tbody td { padding: 10px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
        .ar-btn-gold, .ar-plan-card, .ar-aud-card, .ar-feat-card, .ar-step-card, .ar-plan-cta { transition: none; }
        .ar-btn-gold:hover, .ar-plan-cta:hover { transform: none; }
}
