/* Arabic typeface: The Year of Handicrafts */
@font-face {
  font-family: "The Year of Handicrafts";
  src: url("/fonts/TheYearofHandicrafts-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Year of Handicrafts";
  src: url("/fonts/TheYearofHandicrafts-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Year of Handicrafts";
  src: url("/fonts/TheYearofHandicrafts-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "The Year of Handicrafts";
  src: url("/fonts/TheYearofHandicrafts-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

[lang="ar"],
[dir="rtl"],
.arabic-font {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
}

/* Apply to all child elements */
[lang="ar"] *,
[dir="rtl"] *,
.arabic-font * {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
}

/* Headings */
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] h5, [lang="ar"] h6,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
.arabic-font h1, .arabic-font h2, .arabic-font h3, .arabic-font h4, .arabic-font h5, .arabic-font h6 {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Body text */
[lang="ar"] p, [lang="ar"] li,
[dir="rtl"] p, [dir="rtl"] li,
.arabic-font p, .arabic-font li {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0;
}

/* Form elements */
[lang="ar"] input, [lang="ar"] textarea, [lang="ar"] select, [lang="ar"] button, [lang="ar"] label,
[dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select, [dir="rtl"] button, [dir="rtl"] label,
.arabic-font input, .arabic-font textarea, .arabic-font select, .arabic-font button, .arabic-font label {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
}

/* Navigation and menus */
[lang="ar"] nav, [lang="ar"] .menu, [lang="ar"] .nav,
[dir="rtl"] nav, [dir="rtl"] .menu, [dir="rtl"] .nav,
.arabic-font nav, .arabic-font .menu, .arabic-font .nav {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
}

/* Preserve Font Awesome icons */
[lang="ar"] [class*="fa-"],
[lang="ar"] .fas, [lang="ar"] .far, [lang="ar"] .fab, [lang="ar"] .fal,
[dir="rtl"] [class*="fa-"],
[dir="rtl"] .fas, [dir="rtl"] .far, [dir="rtl"] .fab, [dir="rtl"] .fal,
.arabic-font [class*="fa-"],
.arabic-font .fas, .arabic-font .far, .arabic-font .fab, .arabic-font .fal {
  font-family: "Font Awesome 6 Free" !important;
}

[lang="ar"] .fab, [lang="ar"] .fa-brands,
[dir="rtl"] .fab, [dir="rtl"] .fa-brands,
.arabic-font .fab, .arabic-font .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

/* RTL text alignment */
[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .text-left {
  text-align: right !important;
}

[dir="rtl"] .text-right {
  text-align: left !important;
}

/* Better spacing for Arabic text */
[lang="ar"] .title,
[dir="rtl"] .title,
.arabic-font .title {
  letter-spacing: 0 !important;
}

/* Improve readability */
[lang="ar"] body,
[dir="rtl"] body,
.arabic-font body {
  font-size: 20px;
  line-height: 1.85;
}

/* Specific theme overrides */
[lang="ar"] .title-style-two .title,
[dir="rtl"] .title-style-two .title,
.arabic-font .title-style-two .title {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
  font-weight: 700;
}

[lang="ar"] .disc,
[dir="rtl"] .disc,
.arabic-font .disc {
  font-family: "The Year of Handicrafts", "Segoe UI", Tahoma, sans-serif !important;
  line-height: 1.9;
  font-size: 19px;
}
