/**
 * Yekan Bakh Font Implementation
 * Custom integration for Nexifund Persian pages
 */

/* Font Face Definitions */
@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 100;
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-Thin.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-Thin.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-Light.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-Light.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 400; /* normal */
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-Regular.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-Regular.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-SemiBold.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-SemiBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 700; /* bold */
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-Bold.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-Bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-ExtraBold.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-ExtraBold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-Black.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-Black.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Yekan Bakh';
    font-style: normal;
    font-weight: 950;
    src: url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff/YekanBakh-ExtraBlack.woff') format('woff'),
         url('../fonts/font/Yekan%20Bakh%20Family/Webfonts/fonts/woff2/YekanBakh-ExtraBlack.woff2') format('woff2');
    font-display: swap;
}

/* Apply Yekan Bakh to all elements in Persian pages */
body, 
h1, h2, h3, h4, h5, h6,
p, a, span, button, input, textarea, select,
div, table, th, td, li, ul, ol {
    font-family: 'Yekan Bakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* Heading Font Weights */
h1, h2, h3 {
    font-weight: 700;
}

h4, h5, h6 {
    font-weight: 600;
}

/* Special Elements */
.section__title {
    font-weight: 800;
}

.hero__title {
    font-weight: 800;
}

.footer__widget-title {
    font-weight: 700;
}

.e-btn, 
.link-btn {
    font-weight: 600;
}

/* RTL-specific enhancements */
body {
    line-height: 1.8;
    letter-spacing: -0.2px;
    text-rendering: optimizeLegibility;
}

/* Improve number display in Persian */
.price__tag h4,
.course__meta span,
.events__meta span,
.price span,
.product__sm-price,
.cart-input,
.hero__meta span,
.blog__meta span {
    font-feature-settings: "tnum";
    direction: ltr;
    display: inline-block;
}

/* Fix arrow directions in RTL */
.link-btn i.far.fa-arrow-right:before {
    content: "\f060"; /* Use left arrow instead of right in RTL */
}

/* Adjust padding for RTL */
.mr-15 {
    margin-left: 15px !important;
    margin-right: 0 !important;
}

.mr-30 {
    margin-left: 30px !important;
    margin-right: 0 !important;
}

.ml-20 {
    margin-right: 20px !important;
    margin-left: 0 !important;
}

.ml-50 {
    margin-right: 50px !important;
    margin-left: 0 !important;
} 