/* ============================================================
   1. تعریف فونت‌های فارسی اختصاصی 
   ============================================================ */

@font-face {
    font-family: 'IRANSans'; /* فونت متن اصلی */
    src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2'); 
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans'; /* فونت تیترها */
    src: url('../fonts/IRANSansWeb_Medium.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
   2. تعریف آیکون‌های قالب (لود از هاست خودتان)
   

/* ============================================================
   3. اعمال فونت‌ها روی سایت
   ============================================================ */

/* اعمال فونت متن روی بدنه، منوها، فرم‌ها و دکمه‌ها */
body, p, a, span, li, div, b, strong, i, em, u, small, 
label, legend, input, textarea, select, button, option, 
th, td, .menu-item a, blockquote {
    font-family: 'IRANSans', sans-serif !important;
}

/* اعمال فونت تیتر روی هدینگ‌ها */
h1, h2, h3, h4, h5, h6,
.site-title, .entry-title, .widget-title {
    font-family: 'IRANSans', sans-serif !important;
}

/* ============================================================
   4. استثناها (جلوگیری از خرابی آیکون‌ها)
   ============================================================ */

/* نوار مدیریت وردپرس (Admin Bar) */
wpadminbar, #wpadminbar * {
    font-family: -apple-system, sans-serif !important;
}
wpadminbar .ab-icon:before {
    font-family: 'dashicons' !important;
}

/* آیکون‌های داشبورد وردپرس */
.dashicons, .dashicons-before:before {
    font-family: 'dashicons' !important;
}

/* آیکون‌های FontAwesome (اگر استفاده شده باشد) */
.fa, .fas, .fab, .far {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', FontAwesome !important;
}

