/* ==============================================================
   ONLINE QURAN MENTOR (OQM) - RTL STYLESHEET
   Direction: Right-to-Left (Urdu & Arabic)
   Brand Identity: Emerald Green & Radiant Gold
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Noto+Nastaliq+Urdu:wght@400;600;700&display=swap');

[dir="rtl"] {
  text-align: right;
}

/* Urdu Typography Optimization */
html[lang="ur"] body,
[lang="ur"] {
  font-family: 'Noto Nastaliq Urdu', 'Amiri', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', -apple-system, sans-serif;
  line-height: 2.1;
}

/* Arabic Typography Optimization */
html[lang="ar"] body,
[lang="ar"] {
  font-family: 'Amiri', 'Traditional Arabic', 'Cairo', -apple-system, sans-serif;
  line-height: 1.85;
}

/* RTL Announcement Ticker Bar */
[dir="rtl"] .ticker-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .ticker-badge-wrap {
  border-right: none;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.35);
}

/* Ticker strictly continues scrolling RIGHT TO LEFT */
[dir="rtl"] .ticker-track {
  animation: ticker-rtl 55s linear infinite;
}

/* RTL Navigation & Header */
[dir="rtl"] .site-header .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .top-bar .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .top-bar-left,
[dir="rtl"] .top-bar-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-link.active::after {
  left: auto;
  right: 0;
}

/* RTL Mobile Drawer */
[dir="rtl"] .mobile-menu {
  right: auto;
  left: -100%;
  transition: left var(--transition-normal);
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.15);
}

[dir="rtl"] .mobile-menu.open {
  left: 0;
  right: auto;
}

[dir="rtl"] .mobile-menu-header {
  flex-direction: row-reverse;
}

[dir="rtl"] .mobile-lang-switch {
  flex-direction: row-reverse;
}

/* RTL Badges & Icons */
[dir="rtl"] .course-badge {
  right: auto;
  left: 1.2rem;
}

[dir="rtl"] .faq-question {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .pricing-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .workshop-meta-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

/* RTL Floating WhatsApp: Placed on bottom-left */
[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 24px;
}

@media (max-width: 576px) {
  [dir="rtl"] .whatsapp-float {
    right: auto;
    left: 20px;
  }
}

/* RTL Cards Alignment */
[dir="rtl"] .hero-visual-features {
  text-align: right;
}

[dir="rtl"] .feature-card,
[dir="rtl"] .step-card {
  text-align: right;
}

[dir="rtl"] .step-number {
  margin: 0 0 1.2rem auto;
}

/* RTL Form Controls */
[dir="rtl"] .form-control {
  text-align: right;
}

[dir="rtl"] .form-disclaimer-box {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .hero-trust-list {
  text-align: right;
}
