/* --- استایل‌های مربوط به صفحه تماس با ما (Contact Us) --- */

#contact-header {
    grid-column: 1 / -1; /* اطمینان از اینکه هدر کل عرض را می‌گیرد */
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #e0f2f7; /* آبی روشن ملایم */
    border-radius: 8px;
}

#contact-header h2 {
    font-size: 2.8em;
    color: #005b96; /* آبی تیره */
    margin-bottom: 15px;
}

#contact-header p {
    font-size: 1.2em;
    color: #333;
}

/* فرم تماس */
#contact-form-section {
    grid-column: 1 / -1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

#contact-form-section h3 {
    font-size: 2em;
    color: #005b96;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #87cefa;
    padding-bottom: 10px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1; /* فرم برای فیلد پیام کل عرض را بگیرد */
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Vazirmatn', sans-serif; /* اطمینان از استفاده از فونت */
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #87cefa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.3);
}

.contact-form textarea {
    resize: vertical; /* اجازه تغییر اندازه عمودی */
}

/* دکمه ارسال */
.cta-button {
    grid-column: 1 / -1; /* دکمه هم کل عرض را بگیرد */
    padding: 15px 25px;
    background-color: #005b96; /* رنگ اصلی دکمه */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 91, 150, 0.2);
}

.cta-button:hover {
    background-color: #003f6e; /* تیره‌تر در حالت هاور */
    transform: translateY(-2px);
}

/* جزئیات تماس */
#contact-details-section {
    grid-column: 1 / -1;
    background-color: #fdfdfd;
    padding: 30px;
    border-radius: 8px;
    border: 1px dashed #ccc; /* حاشیه نقطه‌چین برای حس کلاسیک */
}

#contact-details-section h3 {
    font-size: 2em;
    color: #005b96;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #87cefa;
    padding-bottom: 10px;
}

.contact-details p,
.contact-details h4 {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #333;
}

.contact-details strong {
    color: #005b96;
    min-width: 140px; /* برای هم‌ترازی بهتر */
    display: inline-block;
}

.contact-details a {
    color: #007bff; /* رنگ لینک‌ها */
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    margin: 0 8px;
    color: #005b96;
    font-weight: bold;
}

.social-links a:hover {
    color: #003f6e;
    text-decoration: underline;
}

/* واکنش‌گرایی برای صفحه تماس با ما */
@media (max-width: 768px) {
    #contact-header h2 {
        font-size: 2.2em;
    }
    #contact-header p {
        font-size: 1em;
    }
    .contact-form,
    .contact-details {
        grid-template-columns: 1fr; /* در دستگاه‌های کوچک‌تر، همه چیز در یک ستون */
    }
    .form-group.full-width {
        grid-column: 1 / -1;
    }
    .cta-button {
        grid-column: 1 / -1;
    }
}

/* استایل‌های عمومی که قبلا داشتید و باید حفظ شوند */
/* ... (بقیه استایل‌های newspaper.css یا style.css شما اینجا قرار می‌گیرد) ... */

/* مثال: استایل‌های هدر و ناوبری */
header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}
header .logo h1 {
    color: #005b96;
    font-size: 1.8em;
    margin: 0;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* راست چین کردن آیتم‌های منو */
}
nav ul li {
    margin-left: 25px; /* فاصله بین آیتم‌ها */
}
nav ul li:last-child {
    margin-left: 0;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #87cefa;
}

/* footer styles */
footer {
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
    background-color: #333;
    color: #ccc;
    font-size: 0.9em;
    border-top: 2px solid #87cefa;
}

/* .container, .hero-section, .article-text, .container > main, body (basic setup) */
body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f1ea; /* رنگ پس‌زمینه کاغذ قدیمی */
    margin: 0;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px; /* فضای کناری */
    background-color: #fff; /* پس‌زمینه سفید برای محتوا */
    box-shadow: 0 0 15px rgba(0,0,0,0.1); /* سایه جعبه‌ای */
    border-radius: 8px;
}
.container > main {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* سه ستونی */
    gap: 30px; /* فاصله بین ستون‌ها */
    padding: 20px 0; /* فاصله بالا و پایین main */
}
/* ستون‌بندی اصلی برای محتوا */
main > section, main > div {
    grid-column: 1 / -1; /* همه بخش‌ها در ابتدا کل عرض را بگیرند */
    /* برای بخش‌هایی که می‌خواهید در سه ستون قرار بگیرند، باید childهای آن‌ها را مشخص کنید */
}

/* استایل‌های مربوط به ستون‌بندی و جداکننده‌ها */
/* اینها در کدهای قبلی تعریف شده‌اند و باید اینجا هم باشند */
main { /* .container > main */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
    margin: 0; /* اطمینان از حذف margin اضافی */
}

main > section {
    grid-column: 1 / -1; /* به طور پیش‌فرض بخش‌ها کل عرض را می‌گیرند */
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff; /* پس‌زمینه بخش‌ها */
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* برای ایجاد حس ستون‌بندی داخل main */
/* شما باید childهای main را به این صورت استایل دهید */
.main-content-wrapper { /* یک div wrapper که دور بخش‌های اصلی قرار می‌دهید */
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.main-content-wrapper > section { /* بخش‌های داخل wrapper */
    grid-column: auto / auto; /* اجازه می‌دهد grid column را خودش تنظیم کند */
}

/* استایل‌های قدیمی‌تر را اینجا ادغام کنید */
.hero-section {
    grid-column: 1 / -1;
    padding: 30px 20px;
    background-color: #f4f1ea; /* یا رنگ دیگری که مناسب است */
    text-align: center;
    border-radius: 6px;
    margin-bottom: 30px;
}
.hero-section h2 {
    font-size: 2.5em;
    color: #005b96;
    margin-bottom: 10px;
}
.hero-section p {
    font-size: 1.1em;
    color: #555;
}

.article-text {
    text-align: justify;
    text-indent: 30px; /* تورفتگی برای شروع پاراگراف */
    hyphens: auto; /* برای شکستن کلمات در فارسی، نیاز به پشتیبانی مرورگر */
}
.article-text::first-letter {
    font-size: 2.5em;
    color: #87cefa; /* رنگ حرف اول */
    float: right;
    margin-left: 8px;
    line-height: 0.8; /* تنظیم ارتفاع خط برای حرف اول */
    padding-top: 5px; /* کمی فاصله از بالا */
}

/* اضافه کردن خطوط جداکننده (اختیاری، طبق طراحی) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('path/to/subtle-texture.png') repeat; /* مسیر فایل بافت ظریف */
    opacity: 0.05; /* شفافیت کم */
    z-index: -1; /* پشت محتوا */
    pointer-events: none; /* اجازه کلیک از طریق آن */
}

/* استایل‌های اسکرول کلاسیک */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Media Queries (واکنش‌گرایی) - این باید در انتهای فایل باشد */
@media (max-width: 992px) {
    .container {
        margin: 10px auto;
    }
    main {
        grid-template-columns: repeat(2, 1fr); /* دو ستونی در تبلت‌ها */
    }
    main > section, main > div {
        grid-column: 1 / -1; /* همچنان کل عرض را بگیرند */
    }
    .main-content-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    header {
        padding: 10px 15px;
        grid-template-columns: auto 1fr; /* آیکون لوگو و منو */
    }
    nav ul {
        flex-wrap: wrap; /* اجازه شکستن منو به خط بعد */
        justify-content: center;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .hero-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 5px auto;
        padding: 0 10px;
    }
    main {
        grid-template-columns: 1fr; /* تک ستونی در موبایل */
    }
    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    header .logo {
        margin-bottom: 10px;
    }
    nav ul {
        justify-content: center;
        width: 100%;
    }
    nav ul li {
        margin: 5px 5px;
        text-align: center;
    }
    .hero-section h2 {
        font-size: 1.8em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .article-text::first-letter {
        font-size: 2em; /* کوچکتر کردن حرف اول در موبایل */
    }
    .cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    footer {
        font-size: 0.8em;
    }
}
