/* assets/css/style.css - نسخه نهایی اصلاح شده */

:root {
    --primary-color: #002B5B;
    --secondary-color: #FFD700;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --transition: all 0.3s ease;
}

* { 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;
    overflow-x: hidden;
}

.container { width: 90%; max-width: 1100px; margin: auto; }
a { text-decoration: none; color: inherit; display: inline-block; }
img { max-width: 100%; height: auto; }

/* --- هدر (اصلاح شده برای Point A) --- */
.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 { display: flex; flex-direction: column; }
.logo-area h1 { font-size: 1.1rem; margin: 0; line-height: 1.4; }
.logo-area .subtitle { font-size: 0.75rem; opacity: 0.9; color: var(--secondary-color); }

/* ناوبری */
.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; }

/* --- بخش قهرمان و اسلایدشو (Point M) --- */
.hero { background: #fff; padding: 60px 0; }
.hero-content { display: flex; align-items: center; gap: 40px; }
.text-box { flex: 1; }

/* استایل اسلایدشو دایره‌ای */
.hero-slideshow-wrapper {
    position: relative;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 6px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    background: #f0f0f0; /* رنگ پشتیبان */
    margin: 0 auto;
}
.hero-slideshow-wrapper img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero-slideshow-wrapper img.active { opacity: 1; }

.campaign-slogan {
    background: #f0f0f0; padding: 15px;
    border-right: 5px solid var(--secondary-color);
    font-weight: bold; font-size: 1rem; margin: 20px 0;
}

/* دکمه‌ها */
.btn {
    padding: 12px 25px; border-radius: 5px;
    font-weight: bold; text-align: center; margin-left: 10px;
}
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }

/* --- کارت‌های ائتلاف (Point C, D, E) --- */
.coalition-wrapper { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.coalition-card-equal {
    flex: 1; max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-top: 5px solid var(--secondary-color); /* نوار طلایی مشترک */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
    transition: transform 0.3s;
}
.coalition-card-equal:hover { transform: translateY(-5px); }

.coalition-header { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.coalition-photo {
    width: 90px; height: 90px;
    border-radius: 50%;
    border: 3px solid #ccc; /* حاشیه یکسان */
    object-fit: cover;
}
.coalition-name { font-size: 1.3rem; color: var(--primary-color); font-weight: 800; margin: 0; }
.coalition-role { font-size: 0.9rem; color: #777; font-weight: bold; }

/* --- گریدبندی تخصص‌ها --- */
.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-bottom: 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);
}
.card .icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; display: block; }

/* --- ریسپانسیو (موبایل) --- */
/* --- تنظیمات اصلاح شده و نهایی برای موبایل --- */
@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);
        z-index: 1001; /* اطمینان از قرارگیری روی همه چیز */
    }
    .nav-links.active { display: flex; } 
    
    /* ۳. اصلاح بخش هیرو (عکس و متن زیر هم) */
    .hero-content { 
        flex-direction: column-reverse; 
        text-align: center; 
    }
    
    /* اصلاح سایز اسلایدشو در موبایل */
    .hero-slideshow-wrapper { 
        width: 260px; 
        height: 260px; 
        margin: 0 auto 30px auto; 
    }

    /* ۴. اصلاح حیاتی کارت‌های ائتلاف (مشکل عکس ارسالی شما) */
    .coalition-wrapper {
        flex-direction: column; /* چیدمان ستونی (زیر هم) */
        align-items: center;    /* وسط‌چین کردن کارت‌ها */
        gap: 20px;              /* فاصله بین کارت‌ها */
    }

    .coalition-card-equal { 
        width: 100% !important; /* اجبار به تمام عرض بودن */
        max-width: 100% !important; 
        margin: 0;
        transform: none !important; /* حذف افکت‌های دسکتاپ */
    }

    /* ۵. اصلاح دکمه‌ها برای تاچ راحت‌تر */
    .btn { 
        width: 100%; 
        margin: 5px 0; 
        display: block; 
    }
    
    /* ۶. اصلاح باکس هشدار */
    .alert-box {
        text-align: center;
    }
}