/* --- وزن معمولی (Regular) --- */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Farsi-Digits/Vazir-Regular-FD.woff2') format('woff2'),
         url('fonts/Farsi-Digits/Vazir-Regular-FD.woff') format('woff'),
         url('fonts/Farsi-Digits/Vazir-Regular-FD.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
    font-display: swap;
}

/* --- وزن ضخیم (Bold) --- */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Farsi-Digits/Vazir-Bold-FD.woff2') format('woff2'),
         url('fonts/Farsi-Digits/Vazir-Bold-FD.woff') format('woff'),
         url('fonts/Farsi-Digits/Vazir-Bold-FD.ttf') format('truetype');
    font-weight: bold; 
    font-style: normal;
    font-display: swap;
}

/* --- وزن متوسط (Medium) --- */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Farsi-Digits/Vazir-Medium-FD.woff2') format('woff2'),
         url('fonts/Farsi-Digits/Vazir-Medium-FD.woff') format('woff'),
         url('fonts/Farsi-Digits/Vazir-Medium-FD.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* --- وزن نازک (Light) --- */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Farsi-Digits/Vazir-Light-FD.woff2') format('woff2'),
         url('fonts/Farsi-Digits/Vazir-Light-FD.woff') format('woff'),
         url('fonts/Farsi-Digits/Vazir-Light-FD.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* --- وزن خیلی ضخیم (Black) --- */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Farsi-Digits/Vazir-Black-FD.woff2') format('woff2'),
         url('fonts/Farsi-Digits/Vazir-Black-FD.woff') format('woff'),
         url('fonts/Farsi-Digits/Vazir-Black-FD.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ========================================= */
/* اعمال فونت روی تمام بخش‌های سایت */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, button, input, textarea {
    font-family: 'Vazir', tahoma, sans-serif !important;
}

:root {
    --primary-blue: #0f3c70; 
    --accent-orange: #ff4500; 
    --bg-light: #ffffff; 
    --text-dark: #333;
}

body {
    direction: rtl;
    background-color: var(--bg-light); 
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* جلوگیری از اسکرول افقی در کل سایت */
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
}

.logo img {
    height: 100px;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 15px;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

nav ul li a:hover {
    color: var(--accent-orange);
}

/* Dropdown Menu */
nav ul li ul {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 3px solid var(--accent-orange);
    z-index: 100;
}

nav ul li:hover ul {
    display: flex;
}

nav ul li ul li a {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

nav ul li ul li a:hover {
    background-color: #f9f9f9;
}

/* ========================================= */
/* اصلاحات رسپانسیو منوی بالا (هدر) برای موبایل */
/* ========================================= */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        padding: 15px;
    }
    .logo img {
        height: 70px;
        margin-bottom: 15px;
    }
    nav ul {
        flex-wrap: wrap; /* اجازه می‌دهد منوها در موبایل بشکنند و زیر هم بروند */
        justify-content: center;
        gap: 15px;
    }
    nav ul li a {
        font-size: 14px;
        padding: 5px 10px;
    }
    /* جلوگیری از بیرون زدن زیرمنوها در موبایل */
    nav ul li ul {
        position: static;
        box-shadow: none;
        border-top: none;
        border-right: 2px solid var(--accent-orange);
        padding-right: 10px;
        min-width: 100%;
    }
}