/* style.css - Final Optimized Version */

/* ریست کلی */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffd700;   /* طلایی */
    --secondary-color: #0a3d62; /* سرمه‌ای تیره */
    --bg-color: #f8f9fa;
    --text-color: #333;
}

html {
    scroll-behavior: smooth;
}

body {
    /* فونت در HTML تنظیم شده اما اینجا به عنوان پشتیبان می‌ماند */
    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;
}

h1, h2, h3, h4 {
    font-weight: 700; /* یا Bold */
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 61, 98, 0.95); /* حالت شیشه‌ای */
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: padding 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 900; /* Black */
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.menu li a {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.menu li a:hover::after {
    width: 100%;
}

.menu li a:hover {
    color: var(--primary-color);
}

/* --- 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;
    /* عکس پس‌زمینه در تگ HTML به صورت اینلاین لود می‌شود */
}

.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.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* ریسپانسیو هوشمند */
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    line-height: 1.4;
}

.date {
    display: inline-block;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.slogan {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
}

.primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.primary:hover {
    background-color: #ffcc00;
    transform: translateY(-3px);
}

.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.secondary:hover {
    background-color: white;
    color: var(--secondary-color);
}

/* --- Sections General --- */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
}

section h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

/* --- Grid Cards (Topics) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
}

/* --- Timeline (Schedule) --- */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    right: 20px; /* خط زمان سمت راست */
}

.time-item {
    position: relative;
    background: white;
    margin-bottom: 30px;
    padding: 25px;
    margin-right: 50px; /* فضا برای خط زمان */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-right: 4px solid var(--secondary-color);
}

.time-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -59px; /* تنظیم دایره روی خط */
    top: 30px;
    background-color: var(--primary-color);
    border: 3px solid white;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.time {
    display: inline-block;
    background: #eef2f5;
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.time-item h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    /* Navbar styles handled in HTML <style> for priority, 
       but keeping basics here is good practice */
    
    .timeline::after {
        right: 15px;
    }
    .time-item {
        margin-right: 35px;
        padding: 20px;
    }
    .time-item::before {
        right: -44px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
}
