/* استایل کلی */
:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --secondary: #ff9800;
    --light: #f1f8e9;
    --dark: #1e1e1e;
    --gray: #757575;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    direction: rtl;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn.primary {
    background-color: var(--primary);
}

.btn.secondary {
    background-color: var(--secondary);
    color: var(--dark);
}

.btn.outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn.outline:hover {
    background-color: var(--primary);
    color: white;
}

.text-center {
    text-align: center;
}

/* نوار پیمایش */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu li a:hover {
    color: var(--primary);
}

.nav-menu li a.cta-btn {
    background-color: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* هدر اصلی */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('180080.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 180px 0 100px;
    margin-top: 70px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* بخش بیان مسئله */
.problem-statement {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.problem-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-10px);
}

.problem-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.problem-text {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    border-right: 5px solid var(--secondary);
    max-width: 800px;
    margin: 0 auto;
}

.problem-text p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* بخش مقالات */
.articles {
    padding: 80px 0;
}

.articles-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary);
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}

.article-meta i {
    margin-left: 5px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* بخش آموزش */
.education {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.edu-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.edu-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.edu-card ul {
    list-style: none;
    text-align: right;
    margin-top: 20px;
}

.edu-card li {
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.edu-card li:last-child {
    border-bottom: none;
}

.edu-card li a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.edu-card li a:hover {
    color: var(--primary);
    padding-right: 10px;
}

/* بخش داده‌ها */
.data-section {
    padding: 80px 0;
}

.data-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.data-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.data-description p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.data-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.data-map {
    background-color: var(--light);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.map-placeholder {
    background-color: #e8f5e9;
    height: 400px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.iran-map {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Iran_blank.svg/800px-Iran_blank.svg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.province {
    position: absolute;
    background-color: rgba(46, 125, 50, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.province:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.map-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: var(--gray);
}

/* درباره ما */
.about {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--primary-dark);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* تماس با ما */
.contact {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

/* پاورقی */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--light);
}

.footer-links h4, .footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: 10px;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    margin-bottom: 15px;
}

.footer-newsletter button {
    width: 100%;
    padding: 12px;
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: #ffb74d;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* واکنش‌گرایی */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .data-container, .about-content, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .data-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        right: 0;
        box-shadow: var(--shadow);
        padding: 20px;
        border-radius: 0 0 10px 10px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}