/* 1. الإعدادات العامة لهوية سبشل سولوشن */
:root {
    --primary-color: #FF8C00; /* البرتقالي الرسمي */
    --dark-bg: #1a1a1a;
    --light-bg: #f4f7f6;
    --white: #ffffff;
    --text-color: #333;
    --transition: 0.3s ease;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    /* fallback مشابه لـ Cairo يقلل الـ CLS عند تحميل الخط */
    font-family: 'Cairo', 'Segoe UI', 'Arial Unicode MS', Arial, sans-serif;
}

body { background-color: var(--white); color: var(--text-color); line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* 2. القائمة العلوية (ثابتة في كل الصفحات) */
nav {
    background: var(--white); padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--dark-bg); text-transform: uppercase; }
.logo span { color: #AF6000; } /* أغمق من البرتقالي لتحقيق contrast 4.5:1 مع الأبيض */
.nav-links { display: flex; gap: 25px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--dark-bg); font-weight: 700; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }

/* 3. الأزرار */
.btn { padding: 12px 25px; border-radius: 6px; text-decoration: none; font-weight: 700; transition: var(--transition); border: none; cursor: pointer; display: inline-block; }
.btn-primary { background: var(--primary-color); color: #1a1a1a; } /* نص داكن على برتقالي → contrast 7:1 */
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }

/* 4. تصميم صفحات المحتوى (Header) */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=1600');
    background-size: cover; background-position: center;
    color: var(--white); padding: 100px 0; text-align: center;
}

/* 5. تنسيق صفحة تواصل معنا (Contact) */
.contact-section { padding: 80px 0; background: var(--light-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.info-card { background: var(--white); padding: 25px; border-radius: 10px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.icon-box { color: var(--primary-color); font-size: 1.5rem; }
.contact-form-wrapper { background: var(--white); padding: 40px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; outline: none; }
.form-control:focus { border-color: var(--primary-color); }

/* 6. التجاوب مع الجوال */
@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}
/* تحسينات إضافية للإقناع */
.stats-section { padding: 60px 0; background: var(--dark-bg); color: var(--white); text-align: center; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.stat-item h2 { font-size: 3rem; color: var(--primary-color); margin-bottom: 10px; }
.stat-item p { font-weight: 600; opacity: 0.8; }

.process-section { padding: 80px 0; text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.process-step { position: relative; padding: 20px; }
.step-number { width: 40px; height: 40px; background: var(--primary-color); color: white; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 20px; font-weight: bold; }

.cta-banner { background: linear-gradient(45deg, var(--primary-color), #e67e00); color: white; padding: 60px 0; text-align: center; border-radius: 15px; margin: 40px auto; width: 90%; max-width: 1100px; }
.cta-banner h2 { font-size: 2.2rem; margin-bottom: 20px; }
/* تصميم أيقونة الواتساب العائمة */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    left: 40px; /* تظهر في الجهة اليسرى لأن الموقع عربي (RTL) */
    background-color: #25d366; /* لون واتساب الرسمي */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
    background-color: #128c7e; /* لون أغمق عند التأشير */
}

/* لإخفاء النص التوضيحي في الشاشات الصغيرة جداً إن وجد */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }
}
/* =========================================
   تصميم الفوتر الاحترافي (Footer)
   ========================================= */
.main-footer {
    background-color: var(--dark-bg); /* لون الخلفية الداكن */
    color: #ddd;
    padding-top: 60px;
    margin-top: 50px; /* لترك مسافة بينه وبين محتوى الصفحة */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* خط برتقالي صغير تحت العناوين كنوع من الأناقة */
.footer-col h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color); 
}

.brand-col p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #aaa;
}

/* أيقونات التواصل الاجتماعي */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 5px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* تصميم الروابط */
.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.95rem;
}

/* حركة خفيفة لليسار عند التأشير بالماوس */
.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(-5px); 
}

/* معلومات التواصل */
.contact-col p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #bbb;
}

.contact-col i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.contact-col a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.contact-col a:hover {
    color: var(--primary-color);
}

/* شريط حقوق النشر السفلي */
.footer-bottom {
    background-color: #111; /* لون أسود أغمق من الفوتر */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #999; /* أفتح من #777 لتحقيق contrast 5.3:1 على خلفية #111 */
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr; /* عمود واحد في الجوال */
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-col p {
        justify-content: center;
    }
}
/* =========================================
   تصميم القائمة المنسدلة (Dropdown Menu)
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

/* سهم القائمة */
.dropdown .dropbtn i {
    font-size: 0.8rem;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

/* صندوق القائمة المنسدلة (مخفي افتراضياً) */
.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.08);
    z-index: 1001;
    top: 150%; /* يبدأ من الأسفل قليلاً للحركة الانسيابية */
    right: 0; /* محاذاة لليمين عشان الموقع عربي */
    border-radius: 8px;
    overflow: hidden;
    border-top: 3px solid var(--primary-color); /* خط برتقالي أنيق من الأعلى */
    transition: all 0.3s ease;
}

/* روابط القائمة المنسدلة */
.dropdown-content a {
    color: var(--dark-bg);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.3s ease;
}

.dropdown-content a i {
    margin-left: 8px;
    color: #888;
    transition: var(--transition);
}

/* إزالة الخط السفلي من آخر رابط */
.dropdown-content a:last-child {
    border-bottom: none;
}

/* تأثير مرور الماوس على الروابط */
.dropdown-content a:hover {
    background-color: #fff9f2; /* خلفية برتقالية فاتحة جداً */
    color: var(--primary-color);
    padding-right: 25px; /* حركة إزاحة خفيفة لليسار كدليل بصري */
}

.dropdown-content a:hover i {
    color: var(--primary-color);
}

/* إظهار القائمة وتدوير السهم عند مرور الماوس على العنصر الرئيسي */
.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    top: 100%; /* ترتفع القائمة لمكانها الصحيح */
}

.dropdown:hover .dropbtn {
    color: var(--primary-color);
}

.dropdown:hover .dropbtn i {
    transform: rotate(180deg); /* تدوير السهم للأعلى */
}
/* تصميم شبكة المقالات */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.category {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.read-more i {
    margin-right: 5px;
    transition: 0.3s;
}

.read-more:hover i {
    margin-right: 10px;
}