/**
 * Arabic / RTL overrides for the KNTEST theme.
 * Loaded after the theme stylesheets.
 */

:root {
  --fontfamily: "Noto Kufi Arabic", "Cairo", "Tajawal", "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* keep Latin brand / model strings readable inside Arabic text */
html[dir="rtl"] .prodetails-name,
html[dir="rtl"] .pro-cate-title,
html[dir="rtl"] .newscontent-title,
html[dir="rtl"] .banner-title-h1,
html[dir="rtl"] .home-title {
  line-height: 1.6;
}

/* form controls must follow the document direction */
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="url"] {
  direction: ltr;
  text-align: right;
}

/* language switch block was left aligned in the original theme */
html[dir="rtl"] .lang {
  text-align: right;
}

/* breadcrumbs read right to left */
html[dir="rtl"] .banner-breadcrumbs {
  direction: rtl;
  text-align: right;
}

/* align table based specification blocks with the reading direction */
html[dir="rtl"] .prodetails-content article table th,
html[dir="rtl"] .prodetails-content article table td {
  text-align: right;
}

/* lists and definition style blocks */
html[dir="rtl"] .project-list .project-name,
html[dir="rtl"] .faq-list .project-name {
  text-align: right;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
  padding-right: 0;
}

/* floating side widget stays on the opposite side */
html[dir="rtl"] .floatwindow_fd_conct {
  right: auto;
  left: 0;
}

html[dir="rtl"] .rfixed {
  right: auto;
  left: 0;
}
