/* Regular */
@font-face {
  font-family: 'IRANSansWeb';
  src: url('IRANSansWeb.woff2') format('woff2'),
       url('IRANSansWeb.woff') format('woff'),
       url('IRANSansWeb.ttf') format('truetype'),
       url('IRANSansWeb.eot');
  font-weight: 400;
  font-style: normal;
}

/* Bold */
@font-face {
  font-family: 'IRANSansWeb';
  src: url('IRANSansWeb_Bold.woff2') format('woff2'),
       url('IRANSansWeb_Bold.woff') format('woff'),
       url('IRANSansWeb_Bold.ttf') format('truetype'),
       url('IRANSansWeb_Bold.eot');
  font-weight: 700;
  font-style: normal;
}

/* Light */
@font-face {
  font-family: 'IRANSansWeb';
  src: url('IRANSansWeb_Light.woff2') format('woff2'),
       url('IRANSansWeb_Light.woff') format('woff'),
       url('IRANSansWeb_Light.ttf') format('truetype'),
       url('IRANSansWeb_Light.eot');
  font-weight: 300;
  font-style: normal;
}

/* Medium */
@font-face {
  font-family: 'IRANSansWeb';
  src: url('IRANSansWeb_Medium.woff2') format('woff2'),
       url('IRANSansWeb_Medium.woff') format('woff'),
       url('IRANSansWeb_Medium.ttf') format('truetype'),
       url('IRANSansWeb_Medium.eot');
  font-weight: 500;
  font-style: normal;
}

/* UltraLight */
@font-face {
  font-family: 'IRANSansWeb';
  src: url('IRANSansWeb_UltraLight.woff2') format('woff2'),
       url('IRANSansWeb_UltraLight.woff') format('woff'),
       url('IRANSansWeb_UltraLight.ttf') format('truetype'),
       url('IRANSansWeb_UltraLight.eot');
  font-weight: 200;
  font-style: normal;
}

/* custom-rtl.css (loaded last) */
@font-face{ font-family:'IRANSansWeb'; src:url('/static/fa-fonts/IRANSansWeb.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face{ font-family:'IRANSansWeb'; src:url('/static/fa-fonts/IRANSansWeb_Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face{ font-family:'IRANSansWeb'; src:url('/static/fa-fonts/IRANSansWeb_Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* Variables so Bootstrap/Velzon inherit it */
html[dir="rtl"]{
  --bs-font-sans-serif:'IRANSansWeb', Tahoma, sans-serif;
  --bs-body-font-family:var(--bs-font-sans-serif);
  --vz-heading-font-family:var(--bs-font-sans-serif);
}

/* Win the cascade across inline elements, but exclude icons */
html[dir="rtl"] body,
html[dir="rtl"] body *:not(i):not(svg):not([class*="ri-"]):not([class*="bx-"]):not([class*="mdi-"]):not([class*="fa-"]) {
  font-family: var(--bs-body-font-family) !important;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .card-title, html[dir="rtl"] .modal-title, html[dir="rtl"] .page-title {
  font-family: var(--vz-heading-font-family) !important;
  font-weight: 700;
}