/*
 * Speda font for right-to-left languages (Kurdish Sorani / Arabic).
 * Loaded last in every layout so it overrides the template's "Lexend" font
 * only when <body> carries the .rtl class (set by findDirectionOfLang()).
 * Icon fonts (Line Awesome) are explicitly preserved.
 */

@font-face {
    font-family: 'Speda';
    src: url('../fonts/speda/Speda.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Speda';
    src: url('../fonts/speda/Speda-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Apply Speda to text in RTL mode (note: <i> and icon classes are excluded). */
body.rtl,
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5, body.rtl h6,
body.rtl p, body.rtl a, body.rtl span, body.rtl li, body.rtl ul, body.rtl ol,
body.rtl td, body.rtl th, body.rtl label, body.rtl small, body.rtl strong, body.rtl b,
body.rtl div, body.rtl button, body.rtl input, body.rtl select, body.rtl textarea,
body.rtl .btn, body.rtl .form-control, body.rtl .nav-link, body.rtl .menu-title,
body.rtl .card-title, body.rtl table, body.rtl .badge, body.rtl .dropdown-item {
    font-family: 'Speda', 'Lexend', 'Segoe UI', Tahoma, sans-serif !important;
}

/* Custom Kurdistan flag for the Kurdish (Sorani) and Kurmanji language options.
   Relies on the base .flag-icon class (from icon-fonts.css) for sizing. */
.flag-icon-kurdistan {
    background-image: url('../fonts/flags/kurdistan.svg');
}

/* Keep the Line Awesome icon glyphs intact. */
body.rtl i,
body.rtl .la, body.rtl .las, body.rtl .lar, body.rtl .lad,
body.rtl [class^="la-"], body.rtl [class*=" la-"] {
    font-family: 'Line Awesome Free' !important;
}
body.rtl .lab,
body.rtl [class^="lab"], body.rtl [class*=" lab"] {
    font-family: 'Line Awesome Brands' !important;
}
