/*
 * NWERA Arabic RTL Styles
 * Theme: Osty
 * Scope: Arabic pages only
 */

html[lang="ar"] body {
    direction: rtl;
    font-family: "Cairo", sans-serif;
}

/* Header widgets: fix RTL alignment */
html[lang="ar"] .main-header.menu-left .main-header--widgets {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* Main navigation: right-side spacing in Arabic */
html[lang="ar"] .main-header__layout .navbar-nav:not(#primary-menu-button) {
    padding: 0 32px 0 32px !important;
}

/* Keep menu text right-aligned and Arabic direction */
html[lang="ar"] .main-header__layout .navbar-nav:not(#primary-menu-button),
html[lang="ar"] .main-header__layout .navbar-nav:not(#primary-menu-button) a {
    direction: rtl;
    text-align: right;
}

/* Responsive safety: prevent Arabic menu padding from causing overflow */
@media (max-width: 991px) {
    html[lang="ar"] .main-header__layout .navbar-nav:not(#primary-menu-button) {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
}

/* =========================================
   NWERA Arabic Typography
   Cairo Text + Font Awesome Protection
   ========================================= */

/* Default Arabic font */
html[lang="ar"] body {
    font-family: "Cairo", sans-serif !important;
}

/* Cairo for text content */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] label,
html[lang="ar"] blockquote,
html[lang="ar"] figcaption {
    font-family: "Cairo", sans-serif !important;
}

/* Elementor text */
html[lang="ar"] .elementor-heading-title,
html[lang="ar"] .elementor-widget-text-editor,
html[lang="ar"] .elementor-button-text {
    font-family: "Cairo", sans-serif !important;
}

/* Forms */
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
    font-family: "Cairo", sans-serif !important;
}

/* =========================================
   Font Awesome - Restore Original Icon Fonts
   ========================================= */

/* Font Awesome Solid */
html[lang="ar"] .fas,
html[lang="ar"] .fa-solid,
html[lang="ar"] .fa,
html[lang="ar"] .fa-solid::before,
html[lang="ar"] .fas::before,
html[lang="ar"] .fa::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* Font Awesome Regular */
html[lang="ar"] .far,
html[lang="ar"] .fa-regular,
html[lang="ar"] .far::before,
html[lang="ar"] .fa-regular::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

/* Font Awesome Brands */
html[lang="ar"] .fab,
html[lang="ar"] .fa-brands,
html[lang="ar"] .fab::before,
html[lang="ar"] .fa-brands::before {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Elementor Icons */
html[lang="ar"] .eicon,
html[lang="ar"] [class^="eicon-"],
html[lang="ar"] [class*=" eicon-"] {
    font-family: "eicons" !important;
}

/* Dashicons */
html[lang="ar"] .dashicons {
    font-family: "dashicons" !important;
}
}
