/* style.css - نسخه نهایی با اصلاح رنگ متن هیرو و منوی موبایل */

/* --- تعریف متغیرها و ریست --- */
:root {
    --primary-color: #ffd700;
    --secondary-color: #0a3d62;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'IRANSansX', 'Tahoma', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* رنگ عمومی تیترها (برای سکشن‌های سفید) */
h1, h2, h3 { color: var(--secondary-color); font-weight: 700; }

/* --- Navbar Styles --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 61, 98, 0.98); /* کمی تیره‌تر برای خوانایی */
    color: white;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.menu li a { color: white; position: relative; font-size: 0.95rem;}
.menu li a:hover { color: var(--primary-color); }

/* --- Hamburger Menu Styles --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Responsive Menu */
@media (max-width: 992px) {
    .hamburger { display: block; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(10, 61, 98, 0.98);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.4s ease;
        padding-top: 120px;
        gap: 30px;
    }

    .menu.active { left: 0; }
    .menu li a { font-size: 1.4rem; display: block; }
}

/* --- Hero Section (اصلاح شده) --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* گرادینت تیره‌تر برای کنتراست بهتر */
    background: linear-gradient(to bottom, rgba(10,61,98,0.85), rgba(10,61,98,0.65));
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }

/* استایل متن اصلی هیرو - رنگ سفید اجباری */
.hero h1 { 
    font-size: clamp(1.8rem, 5vw, 3.5rem); 
    margin-bottom: 20px;
    color: #ffffff !important; 
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9); /* سایه مشکی */
    line-height: 1.4;
}

.hero .slogan {
    font-size: 1.2rem;
    color: #f1f1f1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    margin-bottom: 30px;
}

.date { 
    display: inline-block; 
    padding: 6px 18px; 
    border: 1px solid rgba(255,255,255,0.5); 
    background: rgba(0, 0, 0, 0.2); /* پس زمینه تیره زیر تاریخ */
    border-radius: 50px; 
    margin-bottom: 20px; 
    backdrop-filter: blur(2px);
}

.btn { display: inline-block; padding: 12px 30px; border-radius: 8px; margin: 5px; font-weight: bold; cursor: pointer;}
.primary { background: var(--primary-color); color: var(--secondary-color); border: none; }
.secondary { border: 2px solid white; color: white; background: rgba(0,0,0,0.3); }

/* --- Sections --- */
section { padding: 80px 0; }
section h2 { text-align: center; margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }

/* --- Footer --- */
footer section { padding: 40px 0; }
