/* --- إعادة تعيين وتنسيقات أساسية --- */
body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.8;
    color: #333333;
    background-color: #f9f9f9;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #3371b2;
    font-weight: 700;
}

a {
    color: #11c7e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3371b2;
}

/* --- تنسيق قسم الهيرو للمقالة --- */
.libyano-article-hero, .article-hero {
    position: relative;
    height: 55vh; /* ارتفاع مناسب للهيرو */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 20px; /* إضافة هامش علوي للهيرو */
    margin-bottom: 30px;
}

.hero-bg-image, .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* تغطية المساحة بالكامل */
    z-index: 1;
    filter: brightness(0.7) contrast(1.1); /* تعتيم الصورة قليلاً */
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    max-width: 100%;
}

.hero-content-overlay h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content-overlay p {
    font-size: 1.3rem;
    color: #eee; /* لون أفتح للنص الفرعي */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

/* --- تنسيق محتوى المقالة --- */
.article-layout {
    max-width: 900px; /* عرض مناسب للمقالات */
    margin: 40px auto;
    padding: 0 20px;
}

.blog-article-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 40px; /* زيادة الحشو الداخلي */
    position: relative; /* ضروري لـ z-index */
    z-index: 3; /* للتأكد من أنه فوق الهيرو */
    margin-top: 20px; /* إضافة هامش علوي بسيط بدلاً من السالب */
}

.blog-article-content section {
    margin-bottom: 40px; /* تباعد بين الأقسام */
}

.blog-article-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex; /* لمحاذاة الأيقونة مع النص */
    align-items: center;
}

.blog-article-content p,
.blog-article-content li {
    font-size: 1rem; /* حجم خط مقروء */
    color: #555; /* لون أغمق قليلاً للنص */
    margin-bottom: 15px;
}

.blog-article-content ul {
    list-style: none;
    padding-right: 0; /* إزالة الحشو الافتراضي للقوائم */
}

.blog-article-content ul li {
    position: relative;
    padding-right: 25px; /* مساحة للأيقونة */
    margin-bottom: 10px;
}

.icon-primary {
    color: #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    margin-left: 10px; /* تباعد الأيقونة عن النص */
    font-size: 1.5rem; /* حجم أيقونة العنوان */
}

.icon-accent {
    color: #11c7e6; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    font-size: 1.2rem;
    margin-left: 8px;
}

.icon-list {
    color: #11c7e6; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    position: absolute;
    right: 0;
    top: 5px; /* ضبط المحاذاة العمودية */
}

.checklist li .icon-check {
    color: #11c7e6; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    position: absolute;
    right: 0;
    top: 5px;
}

/* --- تنسيق العناصر المميزة --- */
.info-box.highlight {
    background: #e8f0f6; /* خلفية بلون أزرق فاتح */
    padding: 20px;
    border-right: 5px solid #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    margin: 25px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.info-box.highlight p {
    margin: 0;
    color: #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    font-weight: bold;
}

blockquote {
    border-right: 5px solid #11c7e6; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    padding-right: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #777;
}

/* --- تنسيق قسم مزايا ليبيانو --- */
.libyano-section {
    background-color: #f8f9fa; /* خلفية مميزة للقسم */
    padding: 30px;
    border-radius: 8px;
    margin: 40px -40px; /* توسيع القسم ليشغل عرض الحاوية */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* تقسيم مرن */
    gap: 25px; /* تباعد بين العناصر */
    margin-top: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background-color: #fff; /* خلفية بيضاء للعناصر */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem; /* حجم كبير للأيقونة */
    color: #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    margin-bottom: 15px;
    display: block; /* جعل الأيقونة تأخذ سطرًا خاصًا */
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* --- تنسيق قسم الدعوة للعمل (CTA) --- */
.libyano-cta-section {
    background: linear-gradient(135deg, #3371b2 0%, #001e49 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.libyano-cta-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
    border: none; /* إزالة الخط السفلي */
}

.libyano-cta-section p {
    color: #eee;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px; /* تباعد بين الأزرار */
    justify-content: center;
    flex-wrap: wrap; /* السماح بالالتفاف في الشاشات الصغيرة */
}

.libyano-btn {
    padding: 12px 30px; /* حجم مناسب للأزرار */
    border-radius: 50px; /* أزرار دائرية الحواف */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex; /* لمحاذاة الأيقونة مع النص */
    align-items: center;
    gap: 8px; /* تباعد بين الأيقونة والنص */
}

.libyano-btn.primary {
    background: #11c7e6;
    color: white;
}

.libyano-btn.primary:hover {
    background: #3371b2;
    transform: translateY(-2px);
}

.libyano-btn.secondary {
    background: white;
    color: #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    border: 2px solid #eee;
}

.libyano-btn.secondary:hover {
    background: #f0f0f0;
    border-color: #ddd;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- تنسيق نهاية المقالة --- */
.article-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-sharing {
    margin-bottom: 20px;
}

.social-sharing span {
    margin-left: 10px;
    font-weight: bold;
    color: #555;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* حجم أصغر قليلاً */
    height: 38px;
    border-radius: 50%;
    margin: 0 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    font-size: 1rem;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.whatsapp { background: #25d366; }
.linkedin { background: #0077b5; } /* إضافة لون لينكدإن */

.back-to-blog-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333333; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    color: white;
    border-radius: 50px;
    font-weight: bold;
}

.back-to-blog-link:hover {
    background-color: #3371b2; /* تم تغيير اللون ليتوافق مع الألوان المعتمدة */
    color: white;
}

/* --- تنسيقات للشاشات الصغيرة --- */
@media (max-width: 768px) {
    .hero-content-overlay h1 {
        font-size: 2rem;
    }
    .hero-content-overlay p {
        font-size: 1.1rem;
    }
    .blog-article-content {
        padding: 25px;
    }
    .blog-article-content h2 {
        font-size: 1.5rem;
    }
    .libyano-section {
        margin: 30px -25px; /* تعديل الهامش الجانبي */
        padding: 25px;
    }
    .features-grid {
        grid-template-columns: 1fr; /* عمود واحد في الشاشات الصغيرة */
    }
    .cta-buttons {
        flex-direction: column; /* الأزرار تحت بعضها */
        align-items: center;
    }
    .libyano-btn {
        width: 80%; /* جعل الأزرار أعرض */
        justify-content: center;
    }
    .article-hero {
        height: 300px;
    }
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .footer-column {
        flex: 0 0 48%; /* جعل كل عمود يأخذ حوالي نصف العرض */
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
    }
    .footer-column {
        flex: 0 0 100%; /* في الشاشات الصغيرة جدًا، جعل كل عمود يأخذ العرض كاملاً */
    }
}

/* --- إصلاح مشكلة اختفاء العنوان تحت القائمة --- */
.main-header {
    position: relative;
    z-index: 10; /* قيمة z-index أعلى للقائمة */
}

.blog-content {
    margin-top: 20px; /* إضافة هامش علوي للمحتوى */
}

/* --- تنسيقات للفوتر وضمان بقائه في الأسفل --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .main-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #333333;
    color: white;
    padding: 40px 20px 20px;
    font-family: 'Cairo', sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    flex: 1 1 0;
    min-width: 200px;
    margin-bottom: 30px;
    text-align: right;
}

.footer-column h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffd700;
}

.footer-column p {
    line-height: 1.6;
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: white;
}

/* تعديل الاستجابة للشاشات المختلفة */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 48%; /* جعل كل عمود يأخذ حوالي نصف العرض */
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 0 0 100%; /* في الشاشات الصغيرة جدًا، جعل كل عمود يأخذ العرض كاملاً */
    }
}
/* تنسيقات هيرو المقالة */
.article-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content-overlay p {
    font-size: 1.2rem;
    max-width: 800px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .article-hero {
        height: 300px;
    }
    
    .hero-content-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-content-overlay p {
        font-size: 1rem;
    }
}

/* إصلاح مشكلة اختفاء العنوان تحت القائمة */
.main-header {
    position: relative;
    z-index: 10; /* قيمة z-index أعلى للقائمة */
}

.article-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 20px; /* إضافة هامش علوي للهيرو */
    margin-bottom: 30px;
}

/* تعديل تنسيق المحتوى الرئيسي */
.blog-content {
    margin-top: 20px; /* إضافة هامش علوي للمحتوى */
}


/* --- تنسيقات للفوتر وضمان بقائه في الأسفل --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main, .main-content {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    background-color: #333;
    color: white;
    padding: 40px 20px 20px;
    font-family: 'Cairo', sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    flex: 1 1 0;
    min-width: 200px;
    margin-bottom: 30px;
    text-align: right;
}

.footer-column h3 {
    color: #ffd700; /* لون ذهبي للعناوين */
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white; /* لون أبيض للروابط */
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffd700; /* تغيير لون الرابط عند التحويم */
}

.footer-column p {
    line-height: 1.6;
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: white;
}

/* تعديل الاستجابة للشاشات المختلفة */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .footer-column {
        flex: 0 0 48%; /* جعل كل عمود يأخذ حوالي نصف العرض */
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        flex: 0 0 100%; /* في الشاشات الصغيرة جدًا، جعل كل عمود يأخذ العرض كاملاً */
    }
}