/* assets/css/style.css - نسخه بهینه برای موبایل */

:root {
    --primary-color: #002B5B;
    --secondary-color: #FFD700;
    --text-color: #333;
    --bg-light: #f9f9f9;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- هدر و منوی ناوبری --- */
.main-header {
    background: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    border-bottom: 3px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area h1 { font-size: 1.4rem; margin: 0; }
.logo-area .subtitle { font-size: 0.8rem; opacity: 0.8; }

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li { margin-right: 20px; }
.nav-links a { color: #fff; font-weight: bold; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--secondary-color); }

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- بخش قهرمان (Hero) --- */
.hero {
    background: #fff;
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.text-box { flex: 1; }
.image-box { flex: 1; text-align: center; }
.image-box img { 
    border-radius: 20px; 
    box-shadow: -10px 10px 0 var(--secondary-color); 
    border: 2px solid var(--primary-color);
}

h2 { color: var(--primary-color); font-size: 2.2rem; margin-bottom: 15px; }
.lead { font-size: 1.1rem; color: #555; }
.campaign-slogan { 
    background: #f0f0f0; 
    padding: 15px; 
    border-right: 5px solid var(--secondary-color); 
    font-weight: bold;
    font-size: 1rem;
}

/* --- دکمه‌ها --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); margin-right: 10px; }

/* --- گریدبندی (Highlights & Lab) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

/* --- تنظیمات مخصوص موبایل (Responsive) --- */
@media (max-width: 992px) {
    h2 { font-size: 1.8rem; }
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .grid-3 { grid-template-columns: 1fr; }
    .campaign-slogan { border-right: none; border-top: 5px solid var(--secondary-color); }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        display: none; /* مخفی در حالت عادی */
        flex-direction: column;
        width: 100%;
        background: var(--primary-color);
        position: absolute;
        top: 100%;
        right: 0;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active { display: flex; } /* نمایش هنگام کلیک روی همبرگر */
    .nav-links li { margin: 10px 0; }
    
    .btn { width: 100%; margin-right: 0 !important; }

    /* اصلاح تایم‌لاین در موبایل */
    .job-item { flex-direction: column; }
    .job-date { border-left: none; border-bottom: 2px solid var(--secondary-color); margin-bottom: 10px; padding: 5px 0; }
    
    /* اصلاح فرم تماس در موبایل */
    .contact-wrapper { flex-direction: column; }
}
/* تنظیمات نهایی برای موبایل (زیر 768 پیکسل) */
@media (max-width: 768px) {
    
    /* ۱. وسط‌چین کردن بخش هیرو (صفحه اصلی) */
    .hero-content {
        text-align: center;
        flex-direction: column-reverse; /* عکس بالا، متن پایین */
    }

    .hero .text-box {
        padding: 0;
    }

    .campaign-slogan {
        text-align: center;
        border-right: none;
        border-top: 5px solid var(--secondary-color);
        margin: 20px 0;
    }

    /* ۲. اصلاح باکس اولویت قرمز (صلاحیت گاز) */
    .alert-box {
        text-align: center;
        border-right: none;
        border-top: 5px solid #ffc107;
    }

    .alert-title {
        justify-content: center; /* آیکون و متن در مرکز */
        flex-direction: column;
        gap: 10px;
    }

    .alert-box p {
        text-align: center !important;
    }

    /* ۳. وسط‌چین کردن کارت‌های برنامه و سوابق */
    .program-card, .card {
        text-align: center;
    }

    .program-card ul {
        display: inline-block; /* برای اینکه بولت‌ها هم‌تراز وسط بمانند */
        text-align: right;    /* اما متن داخل لیست راست‌چین باشد */
        padding-right: 20px;
    }

    .program-card h3 {
        justify-content: center;
        display: flex;
        align-items: center;
    }

    /* ۴. اصلاح دکمه‌ها در موبایل */
    .btn {
        width: 100%;
        margin-right: 0 !important;
        margin-left: 0 !important;
        display: block;
    }
}