/* style.css - Final Update with Sponsors & Hero Fix */

/* --- تعریف متغیرها و ریست --- */
:root {
    --primary-color: #ffd700;   /* طلایی */
    --secondary-color: #0a3d62; /* سرمه‌ای تیره */
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
}

* { 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, h4 { color: var(--secondary-color); font-weight: 700; margin-bottom: 15px; }

/* --- Navbar Styles --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(10, 61, 98, 0.98);
    color: var(--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; }

.logo { display: flex; align-items: center; gap: 5px; color: var(--white); cursor: default; }

.menu { display: flex; list-style: none; gap: 30px; margin: 0; }
.menu li a { color: var(--white); position: relative; font-size: 0.95rem; }
.menu li a:hover { color: var(--primary-color); }

/* Hamburger Menu */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: 0.3s; background-color: var(--white); }

@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; 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: right center; 
    
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* گرادینت تیره برای خوانایی متن روی عکس */
    background: linear-gradient(to bottom, rgba(10,61,98,0.7), rgba(10,61,98,0.5));
    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 15px rgba(0, 0, 0, 0.9);
    line-height: 1.4;
}

.hero .slogan {
    font-size: 1.2rem; color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9); margin-bottom: 30px;
}

.date { 
    display: inline-block; padding: 8px 20px; 
    border: 1px solid rgba(255,255,255,0.6); 
    background: rgba(0, 0, 0, 0.4); 
    border-radius: 50px; margin-bottom: 25px; 
    backdrop-filter: blur(4px);
}

.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; }
.primary:hover { background: #e6c200; }
.secondary { border: 2px solid var(--white); color: var(--white); background: rgba(0,0,0,0.3); }
.secondary:hover { background: var(--white); color: var(--secondary-color); }

/* --- Sections General --- */
section { padding: 80px 0; }
section h2 { text-align: center; margin-bottom: 50px; font-size: 2rem; }
section h2::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: var(--primary-color); margin: 15px auto 0; border-radius: 2px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card {
    background: var(--white); padding: 30px; border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center;
    border-top: 4px solid transparent; transition: 0.3s;
}
.card:hover { transform: translateY(-5px); border-top-color: var(--primary-color); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }

/* --- Sponsors Section (بخش حامیان - جدید) --- */
.sponsors-section { background-color: white; }
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}
.sponsor-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.sponsor-card:hover { border-color: var(--primary-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.sponsor-icon { font-size: 2.5rem; margin-bottom: 15px; } /* جایگزین لوگو */
.sponsor-card h4 { font-size: 1rem; margin-bottom: 5px; color: #555; }
.sponsor-card p { font-size: 0.9rem; color: #888; margin: 0; }

/* --- Footer Section --- */
.footer-section { background-color: var(--secondary-color); color: var(--white); padding: 60px 0 20px; }
.footer-section h2 { color: var(--white); margin-bottom: 30px; }
.footer-section h2::after { background: rgba(255,255,255,0.3); }

.contact-info { text-align: center; font-size: 1.1rem; line-height: 2.2; margin-bottom: 40px; }
.copyright { text-align: center; font-size: 0.9rem; opacity: 0.7; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
