/*
 * RTL/LTR — Usama Al Adawi
 * Arabic  (default): body.lang-ar → direction: rtl
 * English (/en/):    body.lang-en → direction: ltr
 */

/* ── اتجاه الصفحة ── */
body.lang-ar { direction: rtl; }
body.lang-en { direction: ltr; }

/* ── الهيدر ── */
body.lang-ar .header-inner { flex-direction: row-reverse; }
body.lang-en .header-inner { flex-direction: row; }
body.lang-ar .header-right { flex-direction: row-reverse; }
body.lang-en .header-right { flex-direction: row; }

/* زر اللغة لا يتعكس */
.lang-switcher { direction: ltr !important; }

/* ── القائمة ── */
body.lang-ar .main-nav ul { flex-direction: row-reverse; }
body.lang-en .main-nav ul { flex-direction: row; }
body.lang-en .main-nav a  { font-family: var(--font-en); font-size: 0.88rem; letter-spacing: 0.02em; font-weight: 600; }

/* ── Hero ── */
body.lang-ar .hero-content { direction: rtl; }
body.lang-en .hero-content { direction: ltr; }
body.lang-ar .hero-title, body.lang-ar .hero-desc { text-align: right; }
body.lang-en .hero-title, body.lang-en .hero-desc { text-align: left; }
body.lang-en .hero-title   { font-family: var(--font-en); font-size: clamp(2.4rem,5vw,3.8rem); font-weight: 700; }
body.lang-en .hero-title .gold-text { font-style: italic; }

/* ── النصوص ── */
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3 { font-family: var(--font-ar); text-align: right; }
body.lang-en h1, body.lang-en h2, body.lang-en h3 { font-family: var(--font-en); letter-spacing: -0.01em; text-align: left; }
body.lang-ar p { text-align: right; }
body.lang-en p { text-align: left; }

/* ── Section headers ── */
body.lang-ar .section-header { text-align: right; }
body.lang-en .section-header { text-align: left; }
body.lang-en .section-header h2 { font-size: clamp(1.9rem,3.5vw,2.8rem); font-weight: 700; }

/* ── الجداول ── */
body.lang-ar .firms-table th, body.lang-ar .firms-table td { text-align: right; }
body.lang-en .firms-table th, body.lang-en .firms-table td { text-align: left; }

/* ── الأزرار ── */
body.lang-ar .btn { font-family: var(--font-ar); }
body.lang-en .btn { font-family: var(--font-en); letter-spacing: 0.05em; font-size: 0.85rem; }
body.lang-en .plan-tier { font-family: var(--font-en); font-size: 0.95rem; letter-spacing: 0.1em; }
body.lang-en .feat-item h3 { font-family: var(--font-en); font-size: 1rem; }
body.lang-en .testi-name { font-family: var(--font-en); }

/* ── الفوتر ── */
body.lang-ar .footer-grid > * { direction: rtl; text-align: right; }
body.lang-en .footer-grid > * { direction: ltr; text-align: left; }

/* ── الإشهادات ── */
body.lang-ar .testi-quote::before { right: -6px; left: auto; }
body.lang-en .testi-quote::before { left:  -6px; right: auto; }

/* ── الدورات ── */
body.lang-en .course-thumb-badges { right: auto; left: 10px; }

/* ── الخطط ── */
body.lang-ar .plan-popular-badge { left: 50%; right: auto; }

/* ── الحقول ── */
body.lang-ar input, body.lang-ar textarea { direction: rtl; text-align: right; }
body.lang-en input, body.lang-en textarea { direction: ltr; text-align: left; }
body.lang-ar .nl-input { direction: rtl; font-family: var(--font-ar); }
body.lang-en .nl-input { direction: ltr; font-family: var(--font-en); }

/* ── Scroll Top ── */
body.lang-ar .scroll-top { left: 26px; right: auto; }
body.lang-en .scroll-top { right: 26px; left: auto; }

/* ── Admin bar ── */
body.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar #site-header { top: 46px; }
}

/* ══════════════════════════════════════
   إصلاح Prop Firms — إنجليزي LTR
══════════════════════════════════════ */
body.lang-en .firms-table { direction: ltr; }
body.lang-en .firms-table .firm-name-cell { flex-direction: row !important; justify-content: flex-start !important; }
body.lang-en .firms-table .firm-desc { text-align: left; direction: ltr; }

/* إصلاح عام — كل flex containers في الإنجليزي */
body.lang-en .feat-item    { text-align: left; direction: ltr; }
body.lang-en .card-body    { text-align: left; direction: ltr; }
body.lang-en .course-footer { flex-direction: row; }
body.lang-en .section-header { direction: ltr; }
body.lang-en .gold-line    { margin-right: 0; margin-left: 0; }

/* إصلاح Prop Firms row direction */
body.lang-en [style*="flex-direction:row-reverse"] {
  flex-direction: row !important;
}
