/* Navid English — Persian (RTL) styles.
   Loads the Vazir font (locally, woff2) and applies it to all text in RTL mode.
   Scoped under [dir="rtl"] so English mode is untouched. Icons are never
   targeted (no <i>/<span>/universal) so Tutor/WooCommerce icons stay intact. */

@font-face {
  font-family: 'Vazir';
  src: url('fonts/vazir/Vazir-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('fonts/vazir/Vazir-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazir';
  src: url('fonts/vazir/Vazir-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Vazir everywhere in Persian ---- */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] a, [dir="rtl"] blockquote, [dir="rtl"] label, [dir="rtl"] figcaption,
[dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] optgroup,
[dir="rtl"] th, [dir="rtl"] td, [dir="rtl"] caption,
[dir="rtl"] .site-title, [dir="rtl"] .ast-site-title, [dir="rtl"] .entry-title, [dir="rtl"] .widget-title,
[dir="rtl"] .main-header-menu a, [dir="rtl"] .ast-header-menu a, [dir="rtl"] .menu-item a,
[dir="rtl"] .wp-block-heading, [dir="rtl"] .elementor-heading-title,
[dir="rtl"] .navid-landing, [dir="rtl"] .navid-landing *:not(svg):not(path),
[dir="rtl"] .tutor-course-name, [dir="rtl"] .tutor-btn,
[dir="rtl"] .woocommerce, [dir="rtl"] .trp-language-switcher,
[dir="rtl"] .modal, [dir="rtl"] .select2-container, [dir="rtl"] .tutor-modal {
  font-family: 'Vazir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif !important;
}

/* ---- RTL layout fixes for our custom landing ---- */
[dir="rtl"] .navid-landing .feature,
[dir="rtl"] .navid-landing .card { text-align: right; }
/* Flip directional arrows (buttons + "explore") so they point the RTL way. */
[dir="rtl"] .navid-landing .btn svg,
[dir="rtl"] .navid-landing .card .go { transform: scaleX(-1); display: inline-block; }
[dir="rtl"] .navid-landing .hero,
[dir="rtl"] .navid-landing .head { text-align: center; }

/* Persian reads a touch larger comfortably; nudge line-height for Vazir. */
[dir="rtl"] body { line-height: 1.9; }
[dir="rtl"] .navid-landing .lead { line-height: 1.9; }
