/* تنظیمات پایه و متغیرها */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-family: 'Vazirmatn', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* هدر و ناوبری */
.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* محتوای اصلی */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* فوتر */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================
   Global Reset & Base Styles
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* برای چسبیدن فوتر به پایین صفحه */
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    flex: 1; /* باعث میشه محتوای وسط فضای خالی رو پر کنه */
    padding: 40px 0;
}

/* ==========================================================
   Header & Navigation
   ========================================================== */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between; /* لوگو سمت راست، منو سمت چپ */
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb; /* رنگ آبی لوگو */
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px; /* فاصله بین آیتم‌های منو */
}

.main-nav a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #2563eb;
}
/* ==========================================================
   Footer Styles (Dynamic)
   ========================================================== */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 30px 0 20px;
    text-align: center;
    color: #4b5563;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-footer h3 {
    color: #1f2937;
    font-size: 1.2rem;
}

.footer-job {
    font-weight: 600;
    color: #2563eb;
}

.footer-bio {
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 500px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.social-links a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #2563eb;
}

.copyright {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 10px;
}
/* دکمه همبرگری فقط در موبایل */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background-color: #111;
    border-radius: 2px;
}

/* منوی کشویی موبایل */
.mobile-nav {
    display: none;
    background-color: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

/* کوئری برای نمایش در موبایل */
@media (max-width: 768px) {
    .desktop-nav {
        display: none; /* مخفی کردن منوی معمولی */
    }

    .hamburger-btn {
        display: flex; /* نمایش دکمه همبرگری */
    }

    .mobile-nav.active {
        display: block; /* نمایش منو هنگام کلیک */
    }
}