/* فونت‌های پایه */
@font-face {
    font-family: "B Yekan";
    src: local("B Yekan"), local("BYekan"),
        url("/path/to/BYekan.woff2") format("woff2"),
        url("/path/to/BYekan.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: local("IRANSansX Regular"), local("IRANSansX-Regular"),
        url("/path/to/IRANSansX-Regular.woff2") format("woff2"),
        url("/path/to/IRANSansX-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* تنظیمات برای فارسی */
[dir="rtl"] {
    font-family: "B Yekan", "IRANSansX", sans-serif;
}

/* تنظیمات برای انگلیسی */
[dir="ltr"] {
    font-family: "Roboto",Verdana, Geneva, Tahoma, sans-serif;
}

/* اطمینان از نمایش اعداد فارسی در RTL */
[dir="rtl"] * {
    font-feature-settings: "ss01";
    /* در صورت نیاز برای فونت‌های خاص */
}

/* اطمینان از نمایش اعداد لاتین در LTR */
[dir="ltr"] * {
    font-variant-numeric: tabular-nums;
    /* اعداد لاتین منظم */
}