




/* --- */
/* تحسينات الخطوط (Typography) */
body {
    font-family: 'Cairo', sans-serif; /* إعطاء الأولوية لخط كايرو للمحتوى العربي */
    color: #343a40; /* لون رمادي داكن لنص الجسم */
    line-height: 1.6;
}

.article-clean h1 {
    font-size: 2.8rem; /* جعل العنوان الرئيسي بارزًا */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #212529; /* لون داكن وقوي للعناوين */
}

.article-clean .text p {
    font-size: 1.125rem; /* حجم قراءة مثالي للفقرات */
    line-height: 1.75; /* تحسين تباعد الأسطر */
    color: #343a40; /* لون نص متناسق */
    margin-bottom: 1.5rem; /* مسافة بين الفقرات */
}

.social-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #343a40;
}


/* --- */
/* تحسينات التخطيط والمسافات (Layout & Spacing) */
.container {
    max-width: 960px; /* تحديد أقصى عرض معقول لمحتوى المقال */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* إضافة بعض المسافات الأفقية للشاشات الأصغر */
}

.article-clean {
    padding: 3rem 2rem; /* مسافة داخلية (padding) أكثر سخاء لقسم المقال بأكمله */
    background-color: #ffffff; /* خلفية بيضاء صريحة */
    border-radius: 10px; /* زوايا دائرية أكثر قليلاً لمظهر عصري */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); /* ظل أنعم وأكثر انتشارًا */
    margin-top: 2.5rem; /* مسافة فوق المقال */
    margin-bottom: 3rem; /* مسافة أسفل المقال */
}

    .article-clean .intro {
        text-align: center;
        margin-bottom: 2.5rem; /* مسافة أسفل قسم المقدمة */
    }

.author-info {
    display: flex;
    justify-content: center; /* توسيط معلومات المؤلف */
    align-items: center;
    gap: 0.75rem; /* مسافة بين اسم المؤلف والتاريخ */
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

    .author-info a {
        font-weight: 600;
        color: #495057; /* لون أغمق لاسم المؤلف */
        text-decoration: none; /* إزالة التسطير الافتراضي */
    }

        .author-info a:hover {
            text-decoration: underline; /* إضافة تسطير عند المرور فوقه */
        }

    .author-info .date {
        color: #999;
    }

.featured-image {
    margin-bottom: 2.5rem; /* مسافة أكبر أسفل الصورة */
    overflow: hidden; /* يضمن عمل border-radius */
    border-radius: 8px; /* زوايا دائرية خفيفة للصورة */
}

    .featured-image img {
        max-width: 100%;
        height: auto;
        display: block; /* يزيل المساحة الإضافية أسفل الصورة */
        object-fit: cover; /* يضمن تغطية الصورة للمساحة دون تشويه إذا اختلفت الأبعاد */
    }

.article-clean .text {
    padding: 0 1rem; /* إضافة مسافة داخلية أفقية لكتلة النص نفسها */
}

.social-section {
    text-align: center;
    margin-top: 3.5rem; /* مسافة أكبر فوق قسم التواصل الاجتماعي */
    padding-top: 2rem;
    border-top: 1px solid #f0f0f0; /* خط فاصل ناعم */
}

/* --- */
/* تحسينات الألوان والعناصر التفاعلية */
a {
    color: #007bff; /* أزرق عصري ونابض بالحياة */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

.btn-primary {
    color: #fff;
    background-color: #007bff; /* أزرق أساسي متناسق */
    border-color: #007bff;
    padding: 0.8rem 1.8rem; /* مسافة داخلية (padding) أكثر سخاء */
    border-radius: 0.3rem; /* زوايا دائرية أكثر قليلاً */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #007bff; /* متناسق مع الزر الأساسي */
    border-color: #007bff;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.8rem; /* مسافة أكبر بين الأيقونات */
    margin-bottom: 2rem;
}

    .social-icons a {
        font-size: 2rem; /* أيقونات تواصل اجتماعي أكبر */
        color: #6c757d; /* لون باهت للأيقونات */
        transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    }

        .social-icons a:hover {
            color: #007bff; /* تلوين عند المرور فوقه */
            transform: translateY(-4px); /* تأثير رفع خفيف */
        }

.article-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem; /* زيادة المسافة بين عناصر الإحصائيات */
    flex-wrap: wrap; /* السماح بالالتفاف على الشاشات الصغيرة */
    font-size: 0.95rem;
    color: #6c757d;
    margin-top: 1.5rem; /* مسافة فوق الإحصائيات */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.6rem; /* مسافة بين الأيقونة والنص */
}

    .stat-item i {
        color: #007bff; /* لون أيقونة متناسق */
    }