
  /*
    العربية QA patch for Language Academy page.
    Purpose:
    1) improve العربية readability,
    2) keep RTL layouts aligned,
    3) avoid cramped العربية buttons/cards on mobile.
  */
  html[lang="ar"],
  html[dir="rtl"] body {
    font-family: "DM Sans", "Tahoma", "Arial", sans-serif;
  }

  html[dir="rtl"] .hero,
  html[dir="rtl"] .section-head,
  html[dir="rtl"] .card,
  html[dir="rtl"] .footer-brand-block,
  html[dir="rtl"] .footer-col {
    text-align: right;
  }

  html[dir="rtl"] .section-head {
    margin-inline: auto;
    text-align: center;
  }

  html[dir="rtl"] .section-head h2,
  html[dir="rtl"] .section-head p {
    text-align: center;
  }

  html[dir="rtl"] .hero-actions,
  html[dir="rtl"] .footer-social-inline {
    direction: rtl;
  }

  html[dir="rtl"] .btn {
    letter-spacing: 0;
    line-height: 1.35;
  }

  @media (max-width: 768px) {
    html[dir="rtl"] .hero,
    html[dir="rtl"] .card,
    html[dir="rtl"] .footer-brand-block,
    html[dir="rtl"] .footer-col {
      text-align: center;
    }

    html[dir="rtl"] .hero-actions {
      align-items: center;
    }
  }
