/* ==========================================================================
   Moblak Mag Persian Web Fonts (Relative URL Resolution - 100% Reliable)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Yekan Bakh (Default & Recommended)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'YekanBakh';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Yekan Bakh Light'), local('YekanBakh-Light'),
         url('../fonts/yekanbakh/woff2/YekanBakhFaNum-Light.woff2') format('woff2'),
         url('../fonts/yekanbakh/woff/YekanBakhFaNum-Light.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakh';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Yekan Bakh Regular'), local('YekanBakh-Regular'), local('YekanBakh'),
         url('../fonts/yekanbakh/woff2/YekanBakhFaNum-Regular.woff2') format('woff2'),
         url('../fonts/yekanbakh/woff/YekanBakhFaNum-Regular.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakh';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Yekan Bakh SemiBold'), local('YekanBakh-SemiBold'),
         url('../fonts/yekanbakh/woff2/YekanBakhFaNum-SemiBold.woff2') format('woff2'),
         url('../fonts/yekanbakh/woff/YekanBakhFaNum-SemiBold.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakh';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Yekan Bakh Bold'), local('YekanBakh-Bold'),
         url('../fonts/yekanbakh/woff2/YekanBakhFaNum-Bold.woff2') format('woff2'),
         url('../fonts/yekanbakh/woff/YekanBakhFaNum-Bold.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakh';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Yekan Bakh ExtraBold'), local('YekanBakh-ExtraBold'),
         url('../fonts/yekanbakh/woff2/YekanBakhFaNum-ExtraBold.woff2') format('woff2'),
         url('../fonts/yekanbakh/woff/YekanBakhFaNum-ExtraBold.woff') format('woff');
}

@font-face {
    font-family: 'YekanBakh';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: local('Yekan Bakh Black'), local('YekanBakh-Black'),
         url('../fonts/yekanbakh/woff2/YekanBakhFaNum-Black.woff2') format('woff2'),
         url('../fonts/yekanbakh/woff/YekanBakhFaNum-Black.woff') format('woff');
}

/* --------------------------------------------------------------------------
   2. IRANSansX
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('IRANSansX Light'), local('IRANSansX-Light'),
         url('../fonts/iransansx/woff2/IRANSansXFaNum-LightD4.woff2') format('woff2'),
         url('../fonts/iransansx/woff/IRANSansXFaNum-LightD4.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('IRANSansX Regular'), local('IRANSansX-Regular'), local('IRANSansX'),
         url('../fonts/iransansx/woff2/IRANSansXFaNum-RegularD4.woff2') format('woff2'),
         url('../fonts/iransansx/woff/IRANSansXFaNum-RegularD4.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('IRANSansX DemiBold'), local('IRANSansX-DemiBold'),
         url('../fonts/iransansx/woff2/IRANSansXFaNum-DemiBoldD4.woff2') format('woff2'),
         url('../fonts/iransansx/woff/IRANSansXFaNum-DemiBoldD4.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('IRANSansX Bold'), local('IRANSansX-Bold'),
         url('../fonts/iransansx/woff2/IRANSansXFaNum-BoldD4.woff2') format('woff2'),
         url('../fonts/iransansx/woff/IRANSansXFaNum-BoldD4.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('IRANSansX ExtraBold'), local('IRANSansX-ExtraBold'),
         url('../fonts/iransansx/woff2/IRANSansXFaNum-ExtraBoldD4.woff2') format('woff2'),
         url('../fonts/iransansx/woff/IRANSansXFaNum-ExtraBoldD4.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansX';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: local('IRANSansX Black'), local('IRANSansX-Black'),
         url('../fonts/iransansx/woff2/IRANSansXFaNum-BlackD4.woff2') format('woff2'),
         url('../fonts/iransansx/woff/IRANSansXFaNum-BlackD4.woff') format('woff');
}

/* --------------------------------------------------------------------------
   3. Dana
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Dana';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/dana/woff/DanaFaNum-Light.woff') format('woff');
}

@font-face {
    font-family: 'Dana';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Dana'), local('Dana Regular'),
         url('../fonts/dana/woff/DanaFaNum-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Dana';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Dana DemiBold'),
         url('../fonts/dana/woff/DanaFaNum-DemiBold.woff') format('woff');
}

@font-face {
    font-family: 'Dana';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Dana Bold'),
         url('../fonts/dana/woff/DanaFaNum-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Dana';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Dana ExtraBold'),
         url('../fonts/dana/woff/DanaFaNum-ExtraBold.woff') format('woff');
}

/* --------------------------------------------------------------------------
   4. Kalameh
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/kalameh/woff2/KalamehWebFaNum-Regular.woff2') format('woff2'),
         url('../fonts/kalameh/woff/KalamehWebFaNum-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/kalameh/woff2/KalamehWebFaNum-SemiBold.woff2') format('woff2'),
         url('../fonts/kalameh/woff/KalamehWebFaNum-SemiBold.woff') format('woff');
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/kalameh/woff2/KalamehWebFaNum-Bold.woff2') format('woff2'),
         url('../fonts/kalameh/woff/KalamehWebFaNum-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Kalameh';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/kalameh/woff2/KalamehWebFaNum-Black.woff2') format('woff2'),
         url('../fonts/kalameh/woff/KalamehWebFaNum-Black.woff') format('woff');
}

/* --------------------------------------------------------------------------
   5. Peyda
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Peyda';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/peyda/woff2/PeydaWeb-Regular.woff2') format('woff2'),
         url('../fonts/peyda/woff/PeydaWeb-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Peyda';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/peyda/woff2/PeydaWeb-SemiBold.woff2') format('woff2'),
         url('../fonts/peyda/woff/PeydaWeb-SemiBold.woff') format('woff');
}

@font-face {
    font-family: 'Peyda';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/peyda/woff2/PeydaWeb-Bold.woff2') format('woff2'),
         url('../fonts/peyda/woff/PeydaWeb-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Peyda';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/peyda/woff2/PeydaWeb-Black.woff2') format('woff2'),
         url('../fonts/peyda/woff/PeydaWeb-Black.woff') format('woff');
}

/* --------------------------------------------------------------------------
   6. Shabnam & Vazir (Fallbacks)
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Shabnam';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/shabnam/Shabnam-FD.woff') format('woff');
}

@font-face {
    font-family: 'Shabnam';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/shabnam/Shabnam-Bold-FD.woff') format('woff');
}

@font-face {
    font-family: 'Vazir';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/vazir/vazir.woff') format('woff');
}

/* ==========================================================================
   Global Typography Application Rules (Guaranteed Persian Font on Mobile & Desktop)
   ========================================================================== */
:root {
    --mm-font-family: 'YekanBakh', 'IRANSansX', 'Dana', 'Kalameh', 'Peyda', 'Vazir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
    --mm-font-heading: 'YekanBakh', 'IRANSansX', 'Dana', 'Kalameh', 'Peyda', 'Vazir', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
p,
span,
a,
div,
li,
ul,
ol,
label,
section,
article,
nav,
header,
footer,
aside,
main,
blockquote,
figcaption {
    font-family: var(--mm-font-family) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mm-section-title,
.mm-card-title,
.mm-single-title,
.mm-overlay-title,
.widget-title,
.footer-widget-title,
.comment-reply-title {
    font-family: var(--mm-font-heading) !important;
}
