/* --- Global Variables (يفضل أن تكون في ملف CSS رئيسي) --- */
:root {
    --primary-color: #3e838c; /* Teal */
    --secondary-color: #4b9fa5; /* Dark Blue */
    --text-dark: #333;
    --text-very-dark: #1a1a1a; /* لنص العنوان الرئيسي في الهيرو */
    --text-light: #555;
    --text-meta: #777; /* لون لنص تاريخ النشر والكاتب */
    --bg-light: #ffffff;
    --bg-section-alt: #f8f9fa;
    --border-color: #e0e0e0;
    --font-family: "Cairo", sans-serif;
    --article-link-color: var(--secondary-color);
}

/* --- General Styles for Article Page --- */
.article-page {
    font-family: var(--font-family);
    color: var(--text-dark);
}

.article-page .container {
    width: 90%;
    max-width: 800px; /* عرض مناسب للمقالات لسهولة القراءة */
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Article Hero Section --- */
.article-hero {
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    padding: 80px 0; /* مساحة أكبر للهيرو */
    text-align: center;
    position: relative;
    color: var(--bg-light); /* لون النص الأساسي في الهيرو */
    margin-bottom: 40px;
    min-height: 450px; /* ارتفاع للهيرو */
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* تعتيم خفيف لإبراز النص */
    z-index: 1;
}

.article-hero .container {
    position: relative; /* ليكون فوق الأوفرلاي */
    z-index: 2;
}

.article-hero h1 {
    font-size: 2.8rem; /* حجم كبير لعنوان المقال */
    margin-bottom: 15px;
    color: var(--bg-light); /* لون عنوان المقال */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* ظل للنص */
    font-weight: 800;
}

.article-meta {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85); /* لون أفتح للمعلومات الوصفية */
    margin-bottom: 0;
}
.article-meta .publish-date {
    font-weight: 500;
}

/* --- Article Content Section --- */
.article-content-section {
    padding: 30px 0 50px;
}

.article-content-section article {
    line-height: 1.8; /* تباعد أسطر جيد للقراءة */
}

.article-content-section .lead-paragraph {
    font-size: 1.2rem; /* فقرة افتتاحية بحجم أكبر قليلاً */
    color: var(--text-light);
    margin-bottom: 1.5em;
    font-weight: 500;
}

.article-content-section h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2em;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--secondary-color); /* خط تحت العناوين الفرعية */
    font-weight: 700;
}

.article-content-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 700;
}

.article-content-section p {
    font-size: 1.05rem; /* حجم خط مناسب للمحتوى */
    margin-bottom: 1.2em;
    color: var(--text-dark);
}

.article-content-section ul,
.article-content-section ol {
    margin-bottom: 1.5em;
    padding-right: 25px; /* مسافة بادئة للقوائم في RTL */
}

.article-content-section ul li,
.article-content-section ol li {
    margin-bottom: 0.6em;
    font-size: 1.05rem;
    color: var(--text-dark);
}
.article-content-section ul li::marker {
    /* لتخصيص شكل النقطة */
    color: var(--primary-color);
}

.article-content-section strong {
    font-weight: 700;
    color: var(--text-very-dark);
}

.article-content-section a {
    color: var(--article-link-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed var(--article-link-color);
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}
.article-content-section a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.article-image {
    margin: 30px 0;
    text-align: center;
}
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius, 8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.article-image figcaption {
    font-size: 0.9rem;
    color: var(--text-meta);
    margin-top: 8px;
    font-style: italic;
}

.call-to-action {
    background-color: var(--bg-section-alt);
    padding: 25px;
    border-radius: var(--border-radius, 8px);
    margin-top: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.call-to-action p {
    font-size: 1.15rem;
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .article-hero {
        padding: 60px 0;
        min-height: 280px;
    }
    .article-hero h1 {
        font-size: 2.2rem;
    }
    .article-content-section h2 {
        font-size: 1.6rem;
    }
    .article-content-section h3 {
        font-size: 1.3rem;
    }
    .article-content-section p,
    .article-content-section ul li,
    .article-content-section ol li,
    .article-content-section .lead-paragraph {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .article-hero h1 {
        font-size: 1.8rem;
    }
    .article-meta {
        font-size: 0.85rem;
    }
    .call-to-action p {
        font-size: 1.05rem;
    }
}
