/*
 * فونت‌های فارسی محلی (بدون CDN)
 * مسیرها نسبت به این فایل (/css/) هستند → ../fonts/...
 * روی سرور با PathBase / ساب‌فولدر هم درست resolve می‌شوند.
 */

/* ---------- Vazirmatn ---------- */
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-Black.woff2") format("woff2");
}

/* ---------- IRANSans (FaNum) — نام‌های سازگار با تم قدیمی ---------- */
@font-face {
  font-family: "IRANSansWeb(FaNum)";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum)_UltraLight.woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum)_UltraLight.woff") format("woff");
}

@font-face {
  font-family: "IRANSansWeb(FaNum)";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum)_Light.woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum)_Light.woff") format("woff");
}

@font-face {
  font-family: "IRANSansWeb(FaNum)";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum).woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum).woff") format("woff");
}

@font-face {
  font-family: "IRANSansWeb(FaNum)";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum)_Medium.woff") format("woff");
}

@font-face {
  font-family: "IRANSansWeb(FaNum)";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum)_Bold.woff") format("woff");
}

@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum).woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum).woff") format("woff");
}

@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
       url("../fonts/IRANSansWeb(FaNum)_Bold.woff") format("woff");
}

/* ---------- Sahel Bold (عناوین اختیاری) ---------- */
@font-face {
  font-family: "Sahel-Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sahel-font/Sahel-Bold.woff2") format("woff2"),
       url("../fonts/sahel-font/Sahel-Bold.woff") format("woff");
}

:root {
  --psso-font-family: "Vazirmatn", "IRANSansWeb(FaNum)", "IRANSans", Tahoma, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.btn,
.form-control,
.dropdown-item,
.main-menu,
.header-navbar,
.content-body,
.card,
.modal,
.navigation,
.breadcrumb,
.psso-dash {
  font-family: var(--psso-font-family) !important;
}
