﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 900;
    color: #3498db;
    text-decoration: none;
    font-family: 'Vazirmatn', sans-serif;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

    .main-nav a:hover {
        color: #3498db;
    }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* بخش عنوان اصلی */
.hero-section {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 60px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

/* بخش تاریخچه */
.timeline-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.timeline {
    position: relative;
    padding-left: 50px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #3498db;
    }

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -2px;
        top: 30px;
        width: 14px;
        height: 14px;
        background: #3498db;
        border-radius: 50%;
        border: 3px solid white;
        box-shadow: 0 0 0 2px #3498db;
    }

.timeline-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.timeline-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

.timeline-content img {
    width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* بخش آمار */
.stats-section {
    padding: 80px 0;
    text-align: center;
    background: #3498db;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* بخش نقل قول */
.quote-section {
    padding: 80px 0;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 60px 0;
}

.quote {
    font-size: 1.8rem;
    font-style: italic;
    color: #2c3e50;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
}

    .quote::before,
    .quote::after {
        content: '"';
        font-size: 4rem;
        color: #3498db;
        opacity: 0.2;
        position: absolute;
    }

    .quote::before {
        top: -30px;
        left: -20px;
    }

    .quote::after {
        bottom: -60px;
        right: -20px;
    }

.quote-author {
    font-size: 1.3rem;
    font-weight: 700;
    color: #34495e;
}

/* بخش تیم امروز */
.team-section {
    padding: 80px 0;
}

    .team-section h1 {
        font-size: 2.8rem;
        color: #2c3e50;
        text-align: center;
        margin-bottom: 50px;
        font-weight: 700;
    }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.team-member {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .team-member:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }

    .team-member img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

.team-info {
    padding: 25px;
}

    .team-info h3 {
        font-size: 1.6rem;
        color: #2c3e50;
        margin-bottom: 8px;
        font-weight: 700;
    }

    .team-info p {
        color: #7f8c8d;
        font-style: italic;
        font-size: 1.1rem;
    }

/* گالری تصاویر تاریخی */
.gallery-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

    .gallery-section h1 {
        font-size: 2.5rem;
        color: #2c3e50;
        margin-bottom: 40px;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .gallery-item:hover {
        transform: scale(1.03);
    }

    .gallery-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

/* فوتر ساده */
.footer {
    text-align: center;
    padding: 40px 0;
    background: #2c3e50;
    color: white;
    font-size: 0.9rem;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding: 20px;
    }

    .timeline-year {
        font-size: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: 0;
    }

    .stats-grid,
    .team-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .quote {
        font-size: 1.4rem;
    }

        .quote::before,
        .quote::after {
            font-size: 2.5rem;
        }

    .team-member img {
        height: 220px;
    }

    .gallery-item img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline-item {
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .quote {
        font-size: 1.2rem;
    }

        .quote::before,
        .quote::after {
            font-size: 2rem;
            top: -15px;
            right: -15px;
            left: unset;
        }

        .quote::after {
            bottom: -40px;
        }
}
