/**
 * Vazirmatn Font Family - Local Font Implementation
 * This file provides the complete Vazirmatn font family using local font files
 * Apply this CSS to ensure consistent typography across the entire website
 */

/* Vazirmatn Thin */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Thin.woff2') format('woff2'),
         url('../font/Vazirmatn-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

/* Vazirmatn ExtraLight */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-ExtraLight.woff2') format('woff2'),
         url('../font/Vazirmatn-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* Vazirmatn Light */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Light.woff2') format('woff2'),
         url('../font/Vazirmatn-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

/* Vazirmatn Medium */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Medium.woff2') format('woff2'),
         url('../font/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Vazirmatn SemiBold */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-SemiBold.woff2') format('woff2'),
         url('../font/Vazirmatn-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Vazirmatn Bold */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Bold.woff2') format('woff2'),
         url('../font/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Vazirmatn ExtraBold */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-ExtraBold.woff2') format('woff2'),
         url('../font/Vazirmatn-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Vazirmatn Black */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn-Black.woff2') format('woff2'),
         url('../font/Vazirmatn-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Variable Font (Optional - for modern browsers) */
@font-face {
    font-family: 'Vazirmatn Variable';
    src: url('../font/Vazirmatn[wght].woff2') format('woff2-variations'),
         url('../font/Vazirmatn[wght].ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Global Font Application */
* {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
}

/* Ensure consistent font application */
html,
body,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
table, th, td,
.btn, .form-control, .card, .alert,
nav, .navbar, .nav-link,
.dropdown-item, .breadcrumb {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif !important;
}

/* Specific weight classes for easy use */
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

/* Ensure proper RTL text rendering */
body {
    direction: rtl;
    text-align: right;
}

/* Override any external font imports */
@import url('') !important;

/* Font smoothing for better readability */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}