﻿/* فونت و تنظیمات کلی با پالت رنگی هماهنگ با نویسی */
body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #fbf9f6; /* کرم بسیار ملایم (حس گرما و تنه درخت) */
    color: #2e2d2c; /* زغالی تیره مایل به قهوه‌ای برای خوانایی بهتر متن */
}

header {
    text-align: center;
    margin-bottom: 30px;
}

main {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 126, 116, 0.08); /* سایه گرم و ملایم */
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #8c827a; /* قهوه‌ای خاکستری ملایم برای متن فوتر */
}

/* استایل‌های صفحات */
.hero {
    text-align: center;
    padding: 40px 20px;
    background-color: #edf4ee; /* سبز نعنایی بسیار ملایم و روشن (برگ‌های نویسی) */
    border-radius: 12px;
    margin-bottom: 20px;
}

    .hero h2 {
        color: #2d5a27; /* سبز تیره و پخته برای تیتر اصلی */
        margin-bottom: 10px;
    }

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #e1ebd5; /* کادر سبز-خاکستری بسیار روشن */
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .feature-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(62, 125, 50, 0.08);
    }

    .feature-card h3 {
        color: #3e7d32; /* سبز برگی برای تیترهای فرعی */
        margin-top: 0;
    }

.faq-section, .contact-section {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.faq-item {
    margin-bottom: 20px;
}

    .faq-item h4 {
        color: #2d5a27;
        margin-bottom: 5px;
    }

.contact-section {
    text-align: center;
}

a {
    color: #3e7d32;
    text-decoration: none;
    font-weight: 500;
}

    a:hover {
        text-decoration: underline;
    }

/* استایل‌های مربوط به تصاویر نویسی */
.nevisi-container {
    text-align: center;
    margin: 20px 0;
}

.nevisi-img {
    max-width: 250px;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

    .nevisi-img:hover {
        transform: scale(1.05);
    }

/* برای چینش تصویر در کنار متن (فلکس‌باکس) */
.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.flex-text {
    flex: 1;
    min-width: 280px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* تنظیمات بهبود یافته برای هدر صفحه FAQ */
.faq-header {
    display: flex;
    align-items: center; /* تراز کردن متن و تصویر در وسط */
    gap: 25px; /* فاصله بین تصویر و متن */
    margin-bottom: 2rem;
    padding: 15px;
    background-color: #fdfdfd; /* یک پس‌زمینه خیلی ملایم */
    border-radius: 12px;
    border-bottom: 2px solid #e1ebd5; /* یک خط جداکننده زیبا برای جدا شدن از سؤالات */
}

.faq-mascot {
    width: 100px; /* کمی کوچک‌تر شد تا با متن متناسب‌تر باشد */
    height: auto;
    flex-shrink: 0; /* جلوگیری از تغییر شکل تصویر در نمایشگرهای کوچک */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.1)); /* اضافه کردن سایه نرم به تصویر */
}

/* متن هدر */
.faq-header-text h2 {
    margin-top: 0;
    color: #2d5a27;
}

.faq-header-text p {
    margin-bottom: 0;
    font-size: 1.1em;
    color: #555;
}

/* واکنش‌گرایی برای موبایل */
@media (max-width: 600px) {
    .faq-header {
        flex-direction: column; /* تصویر می‌رود بالای متن */
        text-align: center;
    }

    .faq-mascot {
        margin-bottom: 10px; /* فاصله از پایین تصویر در موبایل */
    }
}
