/* ============================================================
   JahanPaiwand — RTL / Persian (Vazirmatn)  v3.0
   Full RTL overrides including new animation & logo elements
   ============================================================ */

body.rtl {
  direction: rtl; text-align: right;
  font-family: 'Vazirmatn','Tahoma','Segoe UI',sans-serif;
  line-height: 1.85;
}
body.rtl h1,body.rtl h2,body.rtl h3,body.rtl h4 {
  font-family: 'Vazirmatn',sans-serif; font-weight:800; letter-spacing:0;
}
body.rtl p,body.rtl a,body.rtl label,body.rtl button,
body.rtl input,body.rtl select,body.rtl textarea {
  font-family: 'Vazirmatn',sans-serif;
}
body.rtl .btn            { letter-spacing:0; }
body.rtl .section-tag    { letter-spacing:.5px; }
body.rtl .hero-eyebrow   { letter-spacing:.5px; }
body.rtl .stat-label     { letter-spacing:0; }
body.rtl .news-cat       { letter-spacing:0; }
body.rtl .footer-col h4  { letter-spacing:.5px; }
body.rtl .story-step-tag { letter-spacing:.5px; }

/* ── Layout flips ── */
body.rtl .main-nav          { flex-direction:row-reverse; }
body.rtl .header-inner      { flex-direction:row-reverse; }
body.rtl .header-actions    { flex-direction:row-reverse; }
body.rtl .hero-btns         { flex-direction:row-reverse; }
body.rtl .hero-stats        { flex-direction:row-reverse; }
body.rtl .footer-grid       { direction:rtl; }
body.rtl .footer-social     { flex-direction:row-reverse; }
body.rtl .value-item        { flex-direction:row-reverse; }
body.rtl .contact-info-item { flex-direction:row-reverse; }
body.rtl .search-bar        { flex-direction:row-reverse; }
body.rtl .back-link         { flex-direction:row-reverse; }
body.rtl .news-meta         { flex-direction:row-reverse; }
body.rtl .form-actions      { flex-direction:row-reverse; }

/* ── Form inputs ── */
body.rtl .form-group input,
body.rtl .form-group select,
body.rtl .form-group textarea { text-align:right; direction:rtl; }

/* ── Select arrow flipped ── */
body.rtl .form-group select {
  background-position: left 14px center;
  padding-right: 16px; padding-left: 44px;
}

/* ── Alert border side ── */
body.rtl .alert              { border-left:none; border-right:4px solid transparent; }
body.rtl .alert-success      { border-right-color:#22c55e; }
body.rtl .alert-error        { border-right-color:var(--red); }
body.rtl .alert-warning      { border-right-color:#f59e0b; }
body.rtl .alert-info         { border-right-color:var(--blue); }

/* ── Card border side ── */
body.rtl .card               { border-left:none; border-right:3px solid transparent; }
body.rtl .card:hover         { border-right-color:var(--blue); }
body.rtl .card::before       { transform-origin:right; }

/* ── Nav underline ── */
body.rtl .main-nav a::after  { left:50%; right:50%; }
body.rtl .main-nav a:hover::after,
body.rtl .main-nav a.active::after { left:14px; right:14px; }

/* ── Footer ── */
body.rtl .footer-col a:hover { padding-left:0; padding-right:4px; }
body.rtl .footer-brand p     { text-align:right; }
body.rtl .footer-col         { text-align:right; }
body.rtl .footer-bottom      { flex-direction:row-reverse; }

/* ── About split ── */
body.rtl .about-split        { direction:rtl; }
body.rtl .contact-info-item > div { text-align:right; }

/* ── Reveal animations mirrored ── */
body.rtl .reveal-left  { transform:translateX(44px); }
body.rtl .reveal-right { transform:translateX(-44px); }
body.rtl .reveal-left.active,
body.rtl .reveal-right.active { transform:translateX(0); }

/* ── Card link arrow ── */
body.rtl .card-link { flex-direction:row-reverse; }
body.rtl .card-link:hover { gap:10px; }

/* ── Back link ── */
body.rtl .back-link:hover { padding-right:20px; padding-left:16px; }

/* ── Scroll progress bar (mirrored) ── */
body.rtl #scrollProgress { left:auto; right:0; }

/* ── Story timeline (mirrored) ── */
body.rtl .story-step     { padding:48px 80px 48px 0; }
body.rtl .story-progress-track { left:auto; right:24px; }
body.rtl .story-step-dot { left:auto; right:16px; }
body.rtl .story-step.active { transform:translateX(0); }

/* ── Airplane SVG (flipped on RTL) ── */
body.rtl .airplane-svg-wrap svg { transform:scaleX(-1); }

/* ── Hero coordinate watermarks (swap positions) ── */
body.rtl .hero::before { left:auto; right:40px; }
body.rtl .hero::after  { right:auto; left:40px; }

/* ── Immigration objects (directional adjustments) ── */
body.rtl .imm-boarding::before { right:auto; left:28px; }
body.rtl .imm-suitcase::before { }

/* ── Footer social ── */
body.rtl .footer-social { justify-content:flex-start; }

/* ── Mobile RTL ── */
@media(max-width:768px){
  body.rtl .main-nav     { text-align:right; }
  body.rtl .main-nav a   { text-align:right; }
  body.rtl .hero-btns    { flex-direction:column; align-items:stretch; }
  body.rtl .hero-stats   { flex-direction:row-reverse; flex-wrap:wrap; }
  body.rtl .form-row     { direction:rtl; }
  body.rtl .story-step   { padding:40px 60px 40px 0; }
  body.rtl .story-progress-track { left:auto; right:12px; }
  body.rtl .story-step-dot { left:auto; right:7px; }
  body.rtl .footer-bottom { flex-direction:column; }
}
@media(max-width:480px){
  body.rtl .hero-stats { flex-direction:row-reverse; }
  body.rtl .footer-social { justify-content:center; }
}
