/* Creative Hub public Arabic font override. Keep this stylesheet AFTER the app bundle CSS. */
@font-face {
  font-family: "CreativeHubArabic";
  src: url("/apps/creative-hub/fonts/AL-JAZEERA-ARABIC-REGULAR-26D785EE425D8364B5D93D5BCD00F6E6.TTF") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CreativeHubArabic";
  src: url("/apps/creative-hub/fonts/AL-JAZEERA-ARABIC-BOLD-9D625782A47E0CC2158A733AD3349C8E.TTF") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* The React UI can put dir=rtl on its own wrapper while <html> stays dir=ltr.
   Set the font on the RTL wrapper and its real text controls. */
[dir="rtl"],
[dir="rtl"] :is(h1, h2, h3, h4, h5, h6, p, a, span, label, button, input, textarea, select, option, li, small, strong, em, b, td, th) {
  font-family: "CreativeHubArabic", sans-serif !important;
}

/* Avoid overriding icon font glyphs such as Font Awesome. */
[dir="rtl"] :is(.fa, .fas, .far, .fab, .fal, .fat, .fa-solid, .fa-regular, .fa-brands) {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}
