/* Yekan Font - For Headings and Navigation */
@font-face {
    font-family: 'Yekan';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/Yekan.woff') format('woff');
}

/* IRANSans Font Family - All Weights - For Body Text */
/* Using local IRANSansWeb.woff2 file for all weights */
@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 100;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 200;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 800;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'IRANSans';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url('../fonts/IRANSansWeb.woff2') format('woff2');
}

/* Apply IRANSans to body and all text elements */
body, html {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Heading fonts - Use Yekan for all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Yekan', 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

h1 {
    font-weight: 700;
}

h2 {
    font-weight: 600;
}

h3 {
    font-weight: 600;
}

h4 {
    font-weight: 500;
}

h5 {
    font-weight: 500;
}

h6 {
    font-weight: 400;
}

/* Navigation Menu - Use Yekan */
.navbar,
.navbar-brand,
.navbar-nav,
.navbar-nav .nav-link,
.navbar-nav .nav-item {
    font-family: 'Yekan', 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Dropdown Menu - Use Yekan */
.dropdown-menu,
.dropdown-item {
    font-family: 'Yekan', 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Input and form elements */
input:not([class*="fa"]):not([type="checkbox"]):not([type="radio"]), 
textarea:not([class*="fa"]), 
select:not([class*="fa"]), 
button:not([class*="fa"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab),
label {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Table fonts */
table, th, td {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Paragraph and text elements */
p, div, span, a, li, ul, ol {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Font weight utilities */
.fw-thin { font-weight: 100 !important; }
.fw-extralight { font-weight: 200 !important; }
.fw-light { font-weight: 300 !important; }
.fw-regular { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }

/* Better text rendering - Exclude icons */
*:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(i):not(svg):not([class*="fa-"]) {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL support */
[dir="rtl"] {
    font-family: 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Card Headers - Use Yekan */
.card-header,
.card-header h5,
.card-header h4,
.card-header h3,
.card-header h2,
.card-header h1 {
    font-family: 'Yekan', 'IRANSans', 'Tahoma', 'Arial', sans-serif !important;
}

/* Better line height for Persian text */
body, p, div, span, a, label, li {
    line-height: 1.8;
    letter-spacing: 0.01em;
}

