/* =========================================
   1. Header Layout
   ========================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.95); /* شفافية بسيطة جداً */
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* تأثير زجاجي للهيدر أيضاً */
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* =========================================
   2. Branding
   ========================================= */
.site-branding .site-title {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}
.site-branding .site-title a {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 700;
}

/* =========================================
   3. Navigation
   ========================================= */
.main-navigation {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}
.main-navigation a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    transition: color 0.3s ease;
    position: relative;
}
.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px; bottom: -4px; right: 0;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}
.main-navigation a:hover { color: var(--color-accent); }
.main-navigation a:hover::after { width: 100%; }

/* =========================================
   4. Hero Section (تحديث شامل للزجاجية)
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh; /* زيادة الارتفاع قليلاً */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* أ) الصورة الخلفية - تقليل التمويه */
.hero-bg-image {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* التعديل: تقليل الـ blur من 4px إلى 1.5px لتظهر المعالم */
    filter: blur(1.5px); 
    transform: scale(1.02); /* تكبير طفيف لمنع الحواف */
}

/* ب) طبقة التعتيم */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6)); /* تدرج لوني بدلاً من لون ثابت */
    z-index: 2;
}

/* ج) كارد المحتوى الزجاجي (جديد) */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
}

.hero-glass-card {
    /* تأثير Glassmorphism */
    background: rgba(255, 255, 255, 0.05); /* خلفية بيضاء شفافة جداً */
    backdrop-filter: blur(8px); /* تمويه ما خلف الكارد */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* حدود شفافة */
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 8px; /* حواف ناعمة */
    max-width: 900px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); /* ظل ناعم */
}

.hero-title {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* =========================================
   5. Buttons (توحيد الأزرار)
   ========================================= */
.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.9rem 2.5rem; /* تكبير الحشوة */
    min-width: 180px; /* توحيد العرض للأزرار */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px; /* حواف شبه حادة للفخامة */
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

/* الزر الأساسي */
.btn-primary {
    background-color: var(--color-accent); /* استخدام اللون الذهبي مباشرة */
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background-color: #fff;
    color: var(--color-text-main);
    border-color: #fff;
}

/* الزر المفرغ (داخل الهيرو) */
.btn-outline {
    background-color: transparent;
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.btn-outline:hover {
    background-color: #fff;
    color: var(--color-text-main);
    border-color: #fff;
}

/* =========================================
   6. Partner Section (التحديث الحيوي)
   ========================================= */
.partner-section {
    position: relative;
    /* سحب القسم للأعلى ليتداخل مع الهيرو قليلاً (تأثير عصري) */
    margin-top: -60px; 
    z-index: 10;
    padding-bottom: var(--spacing-lg);
}

.partner-glass-box {
    /* تأثير Glassmorphism قوي */
    background: rgba(255, 255, 255, 0.85); /* أبيض شبه معتم */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
    
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* ظل كبير ناعم للرفع */
}

.partner-icon {
    font-size: 1.5rem;
    filter: grayscale(1);
    opacity: 0.7;
}

.partner-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin: 0;
    text-align: center;
    line-height: 1.5;
}
/* =========================================
   7. About Us Section (من نحن)
   ========================================= */

/* تحسين المسافات العامة للأقسام */
.section-padding {
    padding: 6rem 0; /* مسافة كبيرة (Luxury spacing) */
}

/* الشبكة (Grid Layout) */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين متساويين */
    gap: 4rem; /* مسافة كبيرة بين الصورة والنص */
    align-items: center; /* محاذاة عمودية في المنتصف */
}

/* 1. تنسيق الصورة وتأثير الإطار (Luxury Frame) */
.about-image-wrapper {
    position: relative;
    padding: 1rem; /* مساحة للإطار الخلفي */
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    position: relative;
    z-index: 2; /* الصورة فوق الإطار */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* ظل ناعم */
    transition: transform 0.5s ease;
}

/* الإطار الذهبي الوهمي */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; /* الإطار مزاح لليسار والأعلى */
    width: 90%; /* حجم الإطار */
    height: 90%;
    border: 2px solid var(--color-accent); /* لون ذهبي */
    z-index: 1; /* خلف الصورة */
    transition: all 0.5s ease;
}

/* تأثير حركة عند المرور بالماوس */
.about-image-wrapper:hover .about-img {
    transform: translateY(-5px);
}
.about-image-wrapper:hover::before {
    top: -10px; left: -10px; /* توسيع الإطار قليلاً عند التحويم */
}

/* مربع مؤقت في حال عدم وجود صورة */
.placeholder-box {
    width: 100%; height: 400px;
    background: #eee;
    display: flex; align-items: center; justify-content: center;
    color: #999; border: 2px dashed #ccc;
}

/* 2. تنسيق النصوص */
.about-content {
    padding-left: 2rem; /* مسافة إضافية */
}

.section-subtitle {
    color: var(--color-accent); /* لون ذهبي */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-text-main);
}

.section-desc {
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.8; /* مسافة بين الأسطر مريحة للقراءة */
    margin-bottom: 2rem;
}

/* استجابة الشاشات (Mobile Responsive) */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr; /* تحويل لعمود واحد */
        gap: 3rem;
        text-align: center; /* توسيط النصوص في الموبايل */
    }

    .about-content {
        padding-left: 0;
        order: 1; /* جعل النص أولاً في الموبايل (اختياري) */
    }
    
    .about-image-wrapper {
        order: 2;
        margin: 0 auto;
        max-width: 500px;
    }
    
    .about-image-wrapper::before {
        left: 5%; top: -10px; /* تعديل الإطار في الموبايل */
    }
}
/* =========================================
   8. Gallery Slider (معرض الصور المتحرك)
   ========================================= */

.gallery-desc-limit {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* حاوية السلايدر الرئيسية */
.gallery-slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md); /* مساحة للأزرار */
}

/* المسار المتحرك (Track) */
.gallery-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto; /* يسمح بالسحب باللمس */
    scroll-behavior: smooth; /* حركة ناعمة */
    scroll-snap-type: x mandatory; /* إجبار التوقف عند كل صورة */
    padding-bottom: 20px; /* مساحة للظل */
    
    /* إخفاء شريط التمرير الافتراضي للمتصفح لمظهر نظيف */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.gallery-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* الشريحة الواحدة (Slide) */
.gallery-slide {
    flex: 0 0 350px; /* عرض ثابت للصورة */
    scroll-snap-align: center; /* الصورة تقف في المنتصف */
    transition: transform 0.3s ease;
}

.slide-content img {
    width: 100%;
    height: 450px; /* ارتفاع موحد للصور */
    object-fit: cover; /* ملء المساحة وقص الزوائد */
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
}

/* تأثير عند التحويم */
.gallery-slide:hover .slide-content img {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* تنسيق أزرار التنقل */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

/* تجاوب للموبايل */
/* تجاوب للموبايل (تحديث جديد لإظهار الأزرار) */
@media (max-width: 768px) {
    .gallery-slide {
        flex: 0 0 100%; /* الصورة تأخذ كامل العرض في الجوال */
        padding: 0 40px; /* ترك مساحة جانبية للأزرار */
    }
    
    .slide-content img {
        height: 300px; /* تقليل الطول قليلاً */
    }

    /* تنسيق الأزرار في الجوال (تصغيرها قليلاً) */
    .slider-btn {
        display: flex !important; /* إجبار الظهور */
        width: 35px; /* تصغير العرض */
        height: 35px; /* تصغير الطول */
        font-size: 1rem;
        background-color: rgba(255, 255, 255, 0.8); /* شفافية بسيطة */
    }
    
    .gallery-slider-wrapper {
        padding: 0; 
    }
}
/* =========================================
   9. Browse Sections (تصفح الأقسام)
   ========================================= */

.browse-buttons-grid {
    display: flex;
    justify-content: center; /* توسيط الأزرار */
    gap: 2rem; /* مسافة كبيرة بين الأزرار */
    flex-wrap: wrap; /* السماح بالنزول لسطر جديد في الشاشات الصغيرة */
    margin-top: 2rem;
}

.browse-big-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem; /* زر ضخم ومريح */
    color: #fff; /* النص أبيض دائماً */
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 250px; /* عرض أدنى لتوحيد الشكل */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* ظل خفيف */
    position: relative;
    overflow: hidden;
}

/* السهم داخل الزر */
.btn-arrow {
    margin-right: 10px; /* مسافة بين النص والسهم */
    transition: transform 0.3s ease;
}

/* تأثيرات التحويم (Hover) */
.browse-big-btn:hover {
    transform: translateY(-5px); /* يرتفع الزر قليلاً */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); /* يزيد الظل */
    color: #fff; /* ضمان بقاء اللون أبيض */
    filter: brightness(1.1); /* تفتيح اللون قليلاً للإشارة للتفاعل */
}

.browse-big-btn:hover .btn-arrow {
    transform: translateX(-5px); /* تحرك السهم لليسار */
}

/* التجاوب مع الجوال */
@media (max-width: 768px) {
    .browse-buttons-grid {
        flex-direction: column; /* الأزرار تحت بعض */
        gap: 1rem;
    }
    
    .browse-big-btn {
        width: 100%; /* الزر يأخذ كامل العرض */
        max-width: 400px; /* لا يصبح عريضاً جداً في التابلت */
        margin: 0 auto; /* توسيط */
    }
}
/* =========================================
   10. New Sections Styling (لمن نقدم خدماتنا + خدماتنا)
   ========================================= */

/* أ) تنسيق "لمن نقدم خدماتنا" (Audience) */
.section-padding-small {
    padding: 3rem 0; /* مسافة أقل لأنه قسم فرعي */
    background-color: var(--color-bg-surface); /* خلفية بيضاء لتمييزه */
    border-bottom: 1px solid var(--color-border);
}

.section-subtitle-small {
    color: var(--color-text-light);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.audience-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: center;
}

.audience-item {
    opacity: 0.8;
    transition: var(--transition);
}
.audience-item:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.audience-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.audience-icon-placeholder {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.audience-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* ب) تنسيق "خدماتنا التفصيلية" (Services List) */
.services-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-full-card {
    background: #fff;
    padding: 3rem 2rem;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: var(--transition);
    border-radius: 4px;
}

.service-full-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.service-icon-box img {
    width: 40px;
    height: 40px;
}

.service-full-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.service-full-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* تجاوب */
@media (max-width: 768px) {
    .audience-grid {
        gap: 2rem;
    }
    .audience-item {
        width: 45%; /* عنصرين في السطر للجوال */
    }
}
/* =========================================
   11. New Description Styling (تنسيقات الأوصاف الجديدة)
   ========================================= */

/* تحسين شكل قسم "لمن نقدم خدماتنا" لاستيعاب الوصف */
.audience-item {
    width: 200px; /* تحديد عرض ثابت لترتيب الشبكة */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audience-item-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* في حال كان هناك وصف، نقلل المسافة السفلية للأيقونة */
.audience-icon {
    margin-bottom: 0.8rem;
}

/* تنسيق الشبكة لتتعامل مع العدد الكبير */
.audience-grid {
    justify-content: center;
    gap: 3rem;
}

/* تنسيق شبكة الخدمات (لضمان المظهر الجيد مع 9 عناصر) */
.services-full-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
/* =========================================
   12. Icons & Optional Buttons (أيقونات وأزرار)
   ========================================= */

/* أ) تنسيق أيقونات Font Awesome */
.audience-icon-wrap,
.service-icon-box {
    color: var(--color-accent); /* لون ذهبي */
    font-size: 2.5rem; /* حجم كبير */
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

/* تنسيق خاص لأيقونة الخدمات داخل الدائرة */
.service-icon-box {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2rem; /* حجم مناسب داخل الدائرة */
}

/* تأثير الحركة عند التحويم */
.audience-item:hover .audience-icon-wrap,
.service-full-card:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg); /* تكبير ودوران خفيف */
}

/* ب) تنسيق الأزرار الصغيرة الاختيارية */
.item-btn-small {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.item-btn-small:hover {
    color: var(--color-text-main);
    border-bottom-color: var(--color-text-main);
    padding-left: 5px; /* حركة بسيطة لليسار */
}

/* تنسيق خاص لزر الخدمات ليكون في المنتصف */
.service-btn {
    display: block; /* لكي يقبل الـ margin auto */
    width: fit-content;
    margin: 1rem auto 0 auto;
}
/* =========================================
   13. Blog Projects Section (مشاريع المدونة)
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.project-img-link {
    display: block;
    height: 220px;
    overflow: hidden;
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.project-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.project-title a:hover {
    color: var(--color-accent);
}

.project-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more-link {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
}

/* في حالة عدم وجود صورة للمقال */
.project-placeholder {
    width: 100%; height: 100%;
    background-color: #f0f0f0;
}
/* =========================================
   14. Advanced CTA Section (مركز التواصل)
   ========================================= */

.cta-advanced-section {
    background-color: #1a1a1a; /* خلفية داكنة فخمة */
    color: #ffffff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* زخرفة خلفية خفيفة (اختياري) */
.cta-advanced-section::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* تعديل ألوان النصوص داخل القسم الداكن */
.cta-advanced-section .section-title {
    color: #ffffff;
}
.text-white-opacity {
    color: rgba(255, 255, 255, 0.7);
}

/* 1. أزرار التواصل الكبيرة */
.cta-contact-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px; /* حواف دائرية بالكامل */
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* زر الواتساب */
.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: 2px solid #25D366;
}
.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
}

/* زر الهاتف */
.btn-phone {
    background-color: var(--color-accent);
    color: #fff;
    border: 2px solid var(--color-accent);
}
.btn-phone:hover {
    background-color: transparent;
    color: var(--color-accent);
}

/* الفاصل */
.cta-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* 2. شبكة الروابط الداخلية */
.cta-links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-internal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05); /* زجاجي خفيف */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.cta-internal-link:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.long-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.cta-internal-link:hover .long-arrow {
    transform: translateX(-5px); /* حركة السهم */
}

/* للموبايل */
@media (max-width: 768px) {
    .cta-btn {
        width: 100%; /* الأزرار بعرض كامل في الموبايل */
    }
    .cta-links-grid {
        gap: 0.8rem;
    }
    .cta-internal-link {
        width: calc(50% - 0.4rem); /* زرين في كل سطر */
        justify-content: center;
        font-size: 0.85rem;
    }
}
/* =========================================
   15. FAQ Section (الأسئلة الشائعة) - مصحح
   ========================================= */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: right;
    padding: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: color 0.3s ease;
}

.faq-icon {
    color: var(--color-accent);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

/* العنصر المتحرك (الحاوية الخارجية) */
.faq-answer {
    max-height: 0; /* البداية: مغلق */
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* حركة ناعمة للارتفاع فقط */
    background-color: #fafafa;
    /* هام: لا تضع padding هنا أبداً */
}

/* العنصر الداخلي (يحتوي النصوص والحشوة) */
.faq-answer-inner {
    padding: 1.5rem; /* الحشوة هنا */
    padding-top: 0; /* مسافة علوية 0 ليكون قريباً من العنوان */
    color: var(--color-text-light);
    line-height: 1.7;
    opacity: 0; /* نص مخفي قليلاً */
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* --- حالة النشاط (Active) --- */
.faq-item.active {
    border-color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-item.active .faq-question {
    color: var(--color-accent);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* تحويل + إلى x */
}

/* عند الفتح، نظهر النص بلمسة جمالية */
.faq-item.active .faq-answer-inner {
    opacity: 1;
    transform: translateY(0);
}
/* =========================================
   16. Contact Us Section (الخريطة والنموذج)
   ========================================= */

.contact-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين متساويين */
    gap: 3rem;
    align-items: start;
}

/* --- العمود الأيمن: المعلومات والخريطة --- */
.contact-info-boxes {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.c-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-weight: 600;
    color: var(--color-text-main);
    flex: 1;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.c-box i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-placeholder {
    width: 100%; height: 100%;
    background: #eee;
    display: flex; align-items: center; justify-content: center;
    color: #999;
}

/* --- العمود الأيسر: النموذج --- */
.form-wrapper-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* ظل فخم */
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    border-bottom: 2px solid var(--color-bg-body);
    padding-bottom: 1rem;
    display: inline-block;
}

/* تنسيق حقول الإدخال (ليعمل مع Contact Form 7 و WPForms) */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

input:focus,
textarea:focus {
    border-color: var(--color-accent);
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1); /* توهج خفيف */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* تنسيق زر الإرسال */
input[type="submit"],
button[type="submit"] {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* زر عريض */
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: var(--color-text-main); /* لون داكن عند التحويم */
    transform: translateY(-2px);
}

/* تجاوب للجوال */
@media (max-width: 992px) {
    .contact-container-grid {
        grid-template-columns: 1fr; /* عمود واحد */
        gap: 2rem;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .form-wrapper-card {
        padding: 1.5rem;
    }
}
/* =========================================
   17. Footer & Floating Elements (تحديث إصلاح الانزياح)
   ========================================= */

/* --- 1. الفوتر الرئيسي (Desktop) --- */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 0 1rem 0;
    border-top: 3px solid var(--color-accent);
    overflow: hidden; /* لمنع أي تمدد خارج الصندوق */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 2px;
    background-color: #fff;
}

.footer-text, .footer-links a {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-right: 5px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
}

/* --- 2. الشريط السفلي للجوال (Mobile Nav) --- */
.mobile-bottom-nav {
    display: none; /* مخفي في الديسكتوب */
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%; /* ضمان العرض الكامل */
    background: #fff;
    height: 65px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    border-top: 1px solid var(--color-border);
    padding: 0; /* إزالة أي حشوات تسبب انزياح */
    margin: 0;
}

/* كل عنصر يأخذ مساحة متساوية تماماً */
.mob-nav-item {
    flex: 1; /* السحر هنا: توزيع المساحة بالتساوي */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text-light);
    font-size: 0.75rem;
    height: 100%; /* ملء الارتفاع */
    transition: all 0.3s;
}

.mob-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--color-text-main);
}

.mob-nav-item:hover, .mob-nav-item:active {
    background-color: rgba(0,0,0,0.02); /* تأثير خفيف عند الضغط */
    color: var(--color-accent);
}
.mob-nav-item:hover i {
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* --- 3. الأزرار العائمة (Floating Buttons) --- */
.floating-container {
    position: fixed;
    bottom: 30px; 
    left: 30px; 
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
}

.btn-wa-float { background-color: #25D366; }
.btn-ph-float { background-color: var(--color-accent); }
.btn-top { 
    background-color: #333; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.btn-top.show {
    opacity: 1;
    pointer-events: all;
}

/* =========================================
   Responsive Logic (إصلاحات الجوال)
   ========================================= */
@media (max-width: 768px) {
    /* تفعيل الفليكس للشريط السفلي */
    .mobile-bottom-nav {
        display: flex; 
        justify-content: space-between;
    }

    /* إخفاء الفوتر الرئيسي */
    .footer-grid {
        display: none; 
    }
    
    /* ضبط مسافات الفوتر للجوال */
    .site-footer {
        padding: 2rem 0 90px 0; /* مسافة سفلية كافية للشريط */
        text-align: center;
    }
    
    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
        border: none;
    }

    /* رفع الأزرار العائمة فوق الشريط السفلي */
    .floating-container {
        bottom: 80px; 
        left: 15px; /* تقليل المسافة الجانبية لمنع الانزياح */
    }
    
    /* تصغير الأزرار العائمة قليلاً في الجوال */
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* =========================================
   Global Fix (حل جذري لأي انزياح)
   ========================================= */
body, html {
    overflow-x: hidden; /* يمنع السكرول الأفقي تماماً */
    width: 100%;
    position: relative;
}
/* =========================================
   1. Header Layout (الأساسي)
   ========================================= */
.site-header {
    background-color: #fff; /* خلفية بيضاء افتراضية */
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative; /* افتراضي */
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease; /* نعومة التحول للستيكي */
}

/* حالة الستيكي (تضاف بالجافاسكريبت) */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 0; /* تصغير الارتفاع */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* الشعار */
.site-branding img {
    max-height: 50px; /* حجم مناسب للشعار */
    width: auto;
    transition: max-height 0.3s ease;
}
.site-header.is-sticky .site-branding img {
    max-height: 40px; /* تصغير الشعار عند السكرول */
}

/* =========================================
   2. Desktop Navigation (القائمة الأفقية)
   ========================================= */
.main-navigation ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap; /* يمنع نزول النص لسطرين */
}

.main-navigation a:hover {
    color: var(--color-accent);
}

/* زر الهيدر */
.btn-header {
    background-color: var(--color-text-main);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}
.btn-header:hover {
    background-color: var(--color-accent);
}

/* =========================================
   4. Mobile Menu Overlay (مصحح مع التمرير)
   ========================================= */
.mobile-only { display: none; }

/* زر القائمة (Hamburger) */
.mobile-menu-toggle {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 6px;
    padding: 10px;
    z-index: 1002;
}
.mobile-menu-toggle .bar {
    width: 28px; height: 2px; 
    background-color: var(--color-text-main);
    border-radius: 2px; transition: 0.3s;
}

/* الشاشة السوداء (الحاوية الرئيسية) */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #1a1a1a; /* أسود فحمي */
    z-index: 99999;
    
    /* إعدادات الفليكس والتمرير */
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* هذا السطر يسمح للمحتوى بالتمرير إذا كان طويلاً */
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; /* نعومة التمرير في آيفون */
    
    padding: 20px; /* حشوة عامة */
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    transform: translateY(-20px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* المحتوى الداخلي */
.mobile-menu-content {
    width: 100%;
    max-width: 400px;
    
    /* هذا يجعل المحتوى يتوسط عمودياً إذا كان قصيراً، ويسمح بالتمرير إذا كان طويلاً */
    margin: auto 0; 
    
    text-align: center;
    padding-top: 60px; /* مساحة لزر الإغلاق */
    padding-bottom: 40px; /* مساحة في الأسفل */
}

/* زر الإغلاق (X) */
.close-menu-btn {
    position: absolute; /* تثبيت الزر بالنسبة للشاشة */
    top: 25px; left: 25px;
    background: none; border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 100001; /* فوق كل شيء */
}
.close-menu-btn:hover { transform: rotate(90deg); color: var(--color-accent); }

/* الشعار في القائمة */
.mobile-logo img {
    max-height: 60px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

/* الروابط والقائمة */
.mobile-menu-list {
    list-style: none; padding: 0; margin: 0;
    width: 100%;
}

.mobile-menu-list li {
    margin-bottom: 1rem; /* تقليل المسافة بين العناصر */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

/* حركة تتابع العناصر */
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(4) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.active .mobile-menu-list li:nth-child(5) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

.mobile-menu-list a {
    color: #fff;
    font-size: 1.2rem; /* تصغير الخط ليتناسب مع العناوين الطويلة */
    font-weight: 700;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    line-height: 1.4; /* لضبط الأسطر في العناوين الطويلة */
    word-wrap: break-word; /* كسر الكلمات الطويلة جداً */
}

.mobile-menu-list a:hover {
    color: var(--color-accent);
}

/* الفوتر أسفل القائمة */
.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu-footer p { color: #888; margin-bottom: 1rem; font-size: 0.9rem; }

.mobile-socials {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
}
.mobile-socials a { color: #fff; font-size: 1.4rem; transition: color 0.3s; }
.mobile-socials a:hover { color: var(--color-accent); }
/* =========================================
   Responsive Switching
   ========================================= */
@media (max-width: 992px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }
    
    /* تصغير الهيدر في الموبايل */
    .site-header { padding: 1rem 0; }
}
/* =========================================
   إصلاحات الهيرو للهاتف (Hero Mobile Fixes)
   يوضع في نهاية ملف layout.css
   ========================================= */

@media (max-width: 992px) {

    /* 1. إصلاح مساحات الهيرو (أعلى وأسفل) */
    .hero-section {
        /* إلغاء الطول الثابت للسماح للمحتوى بالتمدد */
        height: auto !important;
        min-height: 85vh; /* ضمان طول مناسب */
        
        /* إضافة مساحة علوية لكي لا يغطي الهيدر العنوان */
        /* القيمة 100px تقريبية، قد تحتاج زيادتها او نقصانها حسب ارتفاع هيدر موقعك */
        padding-top: 110px; 
        
        /* إضافة مساحة سفلية كافية للأزرار */
        padding-bottom: 80px;
    }

    /* 2. إصلاح تغطية القسم التالي للأزرار */
    .partner-section {
        /* في الديسكتوب كانت القيمة -60px */
        /* نقللها في الموبايل لتقليل التداخل */
        margin-top: -30px; 
        
        /* إذا استمرت المشكلة، اجعل القيمة 0 لإلغاء التداخل تماماً في الموبايل */
        /* margin-top: 0; */
    }

    /* تحسينات إضافية لشكل المحتوى في الموبايل */
    .hero-title {
        font-size: 2.2rem; /* تصغير خط العنوان قليلاً */
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-glass-card {
        padding: 2rem 1rem; /* تقليل حشوة الكارد الزجاجي */
        margin: 0 1rem; /* إضافة هوامش جانبية */
    }

    /* جعل الأزرار فوق بعضها في الشاشات الصغيرة جداً */
    @media (max-width: 480px) {
        .hero-actions {
            flex-direction: column;
            gap: 1rem;
        }
        .btn {
            width: 100%; /* الزر بعرض كامل */
        }
    }
}
/* =========================================
   18. Blog Archive & Hero
   ========================================= */
.blog-hero {
    min-height: 60vh; /* أقصر من الرئيسية */
}
.hero-partner-badge {
    margin-top: 2rem;
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* بطاقات المدونة */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}
.blog-card-elegant {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.blog-card-elegant:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}
.blog-card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.blog-date {
    position: absolute;
    top: 15px; right: 15px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: var(--color-text-main);
    line-height: 1.2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.blog-card-content { padding: 1.5rem; }
.blog-card-title { font-size: 1.3rem; margin: 0.5rem 0; }
.blog-card-title a { color: var(--color-text-main); text-decoration: none; }
.read-more-btn {
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 1rem;
}

/* =========================================
   19. Single Post Layout (المقال الفردي)
   ========================================= */
.single-post-header {
    background: #f9f9f9;
    padding: 4rem 0 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.single-post-title { font-size: 2.5rem; margin-bottom: 1rem; }
.single-post-meta { color: #888; display: flex; gap: 20px; justify-content: center; }

.single-post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* المحتوى (يمين) - السايدبار (يسار) */
    gap: 4rem;
}

/* السايد بار والسلايدر */
.sidebar-gallery-widget {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky; /* تثبيت السايدبار */
    top: 100px;
}
.slider-main-view img {
    width: 100%; height: 250px; object-fit: cover; border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.slider-details-box {
    background: #f4f4f4;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    border-right: 3px solid var(--color-accent);
}
.slider-thumbs-track {
    display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px;
}
.slider-thumb {
    width: 60px; height: 60px; flex-shrink: 0; cursor: pointer;
    border: 2px solid transparent; opacity: 0.6;
}
.slider-thumb.active { border-color: var(--color-accent); opacity: 1; }
.slider-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* شريك مصغر */
.partner-mini-box {
    margin-top: 2rem;
    background: #1a1a1a;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
}
.partner-mini-box i { font-size: 2rem; color: var(--color-accent); margin-bottom: 10px; }

/* =========================================
   20. Page Hero (الصفحات)
   ========================================= */
.page-hero {
    padding: 5rem 0;
    color: #fff;
    position: relative;
    text-align: center;
}
.page-nav-buttons {
    margin-top: 2rem;
    display: flex; justify-content: center; gap: 1rem;
}
.page-nav-btn {
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
}
.page-nav-btn:hover { background: #fff; color: #000; }

/* =========================================
   Responsive Fixes (تجاوب الموبايل)
   ========================================= */
@media (max-width: 992px) {
    .single-post-layout {
        display: flex;
        flex-direction: column; /* تحويل لعمود واحد */
    }
    
    /* تغيير الترتيب في الموبايل */
    .single-content-col { order: 1; } /* المحتوى أولاً */
    .single-sidebar-col { order: 2; margin-top: 2rem; } /* السايدبار (السلايدر) ثانياً */
    .related-posts-section { order: 3; } /* مقالات ذات صلة ثالثاً */

    /* إلغاء التثبيت في الموبايل */
    .sidebar-gallery-widget { position: static; }
}
/* تنسيق أسهم السلايدر الجانبي */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4); /* خلفية سوداء نصف شفافة */
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
    opacity: 0; /* مخفي افتراضياً */
}

/* إظهار الأسهم فقط عند وضع الماوس على الصورة */
.slider-main-view:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background-color: var(--color-accent); /* لون ذهبي عند التحويم */
}

/* الاتجاهات (بما أن الموقع عربي RTL) */
.arrow-prev {
    right: 10px; /* السابق يمين */
}

.arrow-next {
    left: 10px; /* التالي يسار */
}
/* =========================================
   21. Search Results Page
   ========================================= */
.search-hero .hero-title span {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.hero-search-form {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-form-stylish {
    position: relative;
    display: flex;
}

.search-form-stylish .search-field {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
}

.search-form-stylish .search-submit {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    width: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}
.search-form-stylish .search-submit:hover {
    background-color: var(--color-text-main);
}

.search-count-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    display: inline-block;
}

.type-badge {
    background: #eee;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
}

/* لا يوجد نتائج */
.no-results-box {
    padding: 4rem 0;
}
.no-results-icon {
    font-size: 5rem;
    color: var(--color-border);
    margin-bottom: 1.5rem;
}

/* =========================================
   22. 404 Error Page
   ========================================= */
.error-404-section {
    padding: 6rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    text-align: center;
}

.error-content-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.error-img img {
    max-width: 300px;
    margin-bottom: 2rem;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.error-desc {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* تنسيق نموذج البحث في 404 */
.search-form-404 {
    position: relative;
    width: 300px;
}
.search-form-404 .search-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    margin: 0;
}
.search-form-404 .search-submit {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}
.search-form-404 .search-submit:hover { color: var(--color-accent); }

/* تجاوب */
@media (max-width: 768px) {
    .error-number { font-size: 6rem; }
    .error-title { font-size: 1.8rem; }
    .error-actions { flex-direction: column; }
    .search-form-404 { width: 100%; }
}
/* ملاحظة: لا تضع max-height هنا، الجافاسكريبت سيضيفه ديناميكياً */