/* ==========================================================================
   1. تعريف الخطوط المعتمدة بمسارات عكسية دقيقة (Absolute relative paths)
   ========================================================================== */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Questv1';
    src: url('../fonts/Questv1 Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Sakkal Majalla';
    src: url('../fonts/Sakkal Majalla Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* ==========================================================================
   2. متغيرات الهوية الرقمية (Global Variables)
   ========================================================================== */
:root {
    /* لوحة الألوان المعتمدة */
    --primary-blue: #3b71b9;
    --accent-green: #5bc4bf;
    --black-fakhim: #111827;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --text-main: #2d3436;
    --text-dim: #636e72;
    
    /* نظام الخطوط الثلاثة الموحد */
    --font-main: 'Sakkal Majalla', 'Arial', sans-serif;
    --font-headers: 'Cairo', 'Helvetica', sans-serif;
    --font-accent: 'Questv1', sans-serif;
}

/* ==========================================================================
   قالب صفحات الخدمات - ديجيكود (الإصدار النهائي الموحد - كامل وشامل للألوان والخطوط)
   ========================================================================== */

.about-banner {
    background-size: cover;
    background-position: center;
    padding: 120px 20px;
    text-align: center;
    color: #ffffff;
    background-color: var(--primary-blue);
}

.about-banner h1 {
    font-family: 'Cairo', sans-serif !important;
    font-size: 3.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}
.digi-banner-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* [1] الحاويات الرئيسية */
.digi-service-container { width: 100% !important; max-width: 1200px !important; margin: auto !important; padding: 0 20px !important; box-sizing: border-box !important; }
.digi-service-section { width: 100% !important; display: block !important; position: relative !important; overflow-x: hidden; padding: 40px 0 !important; background-color: var(--white); }

/* [2] تخطيط الأقسام (Flex Layout 20% - 80%) */
.digi-flex-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; width: 100%; position: relative; z-index: 2; }
.digi-col-20 { flex: 1; min-width: 220px; max-width: 20%; text-align: right; padding-top: 40px; }
.digi-col-80 { flex: 4; min-width: 320px; max-width: 80%; text-align: right; }
.digi-bg-section { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; padding: 40px 0 !important; }
.digi-col-20 h1, .digi-col-80 h1, .digi-col-80 h2 { color: var(--primary-blue) !important; font-family: var(--font-headers) !important; font-size: 2.5rem !important; margin-bottom: 20px !important; }

/* [3] العناوين والمقدمات مع تأثير الخط التزييني السفلي الموحد */
.digi-title-wrapper { position: relative; margin-bottom: 20px !important; text-align: center; z-index: 2; padding: 40px 20px !important; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: auto !important; }

.digi-title-wrapper h1,
.digi-title-wrapper h2,
.digi-col-20 h1,
.digi-col-80 h2,
.section-title,
.achievements-header h2,
.services-section-header .main-title,
.testimonials-header h2 {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 14px !important;
}

/* التموضع والتأثير لجميع خطوط العناوين الممركزة بشكل افتراضي */
.digi-title-wrapper h1::after,
.digi-title-wrapper h2::after,
.digi-col-20 h1::after,
.digi-col-80 h2::after,
.section-title::after,
.achievements-header h2::after,
.services-section-header .main-title::after,
.testimonials-header h2::after {
    content: "" !important;
    position: absolute !important;
    bottom: -4px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 4px !important;
    background-color: var(--accent-green) !important;
    border-radius: 2px !important;
}

.digi-title-wrapper h1 { font-size: 2.5rem !important; color: var(--primary-blue) !important; margin-bottom: 20px; font-family: var(--font-headers) !important; }
.digi-title-wrapper h2 { color: var(--primary-blue) !important; font-family: var(--font-headers) !important; font-weight: 800; font-size: 2rem !important; margin: 0 0 15px 0; position: relative; z-index: 2; }
.digi-title-wrapper h4 { font-family: var(--font-headers) !important; }
.digi-title-wrapper p { margin: 0; z-index: 2; color: var(--text-dim); font-size: 1.1rem; font-family: var(--font-main) !important; }

/* [4] تنسيق الفقرات النصية */
.digi-text-content p { font-size: 1.6rem !important; line-height: 1.6 !important; color: var(--text-main) !important; margin-bottom: 25px !important; text-align: justify; font-family: var(--font-main) !important; }

/* [5] إلغاء خلفيات العناوين الممتدة للعرض الكامل لتبقى نظيفة وبيضاء */
/* --- تنسيق حاوية القسم الثالث الأساسية --- */
.digi-service-section.digi-sec-3-clean-layout {
    width: 100% !important;
    display: block !important;
    position: relative !important;
    overflow-x: hidden;
    padding: 90px 0 !important;
    background: linear-gradient(to left, var(--black-fakhim), var(--primary-blue));
}

/* تنسيق هيدر القسم الممركز */
.text-center-custom {
    text-align: center !important;
    margin-bottom: 55px !important;
}

.text-center-custom .main-title {
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    margin-bottom: 20px !important;
    font-family: var(--font-headers) !important;
}

.text-center-custom .section-desc {
    font-size: 1.5rem !important;
    color: var(--text-dim) !important;
    max-width: 750px;
    margin: 0 auto !important;
    line-height: 1.7 !important;
    font-family: var(--font-main) !important;
}

/* شبكة توزيع الكروت بالتنسيق الجديد المرن */
.digi-cards-grid-clean {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

/* --- تنسيق بطاقة الخدمة النظيفة المطورة --- */
.service-clean-card-v2 {
    flex: 0 0 calc(33.333% - 20px);
    position: relative;
    background-color: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    border: 1px solid #e1e8ed;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* طبقة النمط الزخرفي الشفاف الخلفي للبطاقة */
.service-clean-card-v2 .card-pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* الشفافية المطلوبة لعدم التشويش على القراءة */
    z-index: 1;
    pointer-events: none;
}

/* حاوية المحتوى لضمان ظهوره فوق النمط */
.service-clean-card-v2 .card-body-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* تنسيق أيقونة/صورة الخدمة */
.service-clean-card-v2 .card-icon-wrapper img {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    margin-bottom: 25px !important;
}

/* عنوان الخدمة الفرعي بالخط المعتمد واللون الأساسي */
.service-clean-card-v2 h3 {
    font-family: var(--font-headers) !important;
    color: var(--primary-blue) !important;
    font-size: 1.8rem !important;
    margin-top: 0;
    margin-bottom: 15px !important;
    font-weight: 700;
}

/* تأثير الخط التزييني السفلي الموحد تحت العنوان الداخلي للكرت */
.service-clean-card-v2 h3::after {
    content: "" !important;
    display: block !important;
    width: 45px !important;
    height: 3px !important;
    background-color: var(--accent-green) !important;
    margin: 10px auto 0 !important;
    border-radius: 2px !important;
    position: static !important;
    transform: none !important;
}

/* وصف الخدمة بالخط العريض المريح للعين */
.service-clean-card-v2 p {
    font-family: var(--font-main) !important;
    color: var(--text-dim) !important;
    font-size: 1.45rem !important;
    line-height: 1.6 !important;
    margin-top: 15px !important;
    margin-bottom: 0 !important;
    text-align: center !important;
    flex-grow: 1;
}

/* تأثير التحويم الفاخر والانسيابي */
.service-clean-card-v2:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(59, 113, 185, 0.12);
    border-color: var(--primary-blue);
}

/* --- شاشات التابلت والموبايل للقسم الثالث (Responsive Grid) --- */
@media (max-width: 991px) {
    .digi-service-section.digi-sec-3-clean-layout { padding: 60px 0 !important; }
    .text-center-custom .main-title { font-size: 2.2rem !important; }
    .text-center-custom .section-desc { font-size: 1.3rem !important; }
    .service-clean-card-v2 {
        flex: 0 0 calc(50% - 15px); /* كرتين في الصف على شاشات التابلت */
        padding: 35px 25px;
    }
    .service-clean-card-v2 h3 { font-size: 1.5rem !important; }
}

@media (max-width: 600px) {
    .digi-service-section.digi-sec-3-clean-layout { padding: 50px 0 !important; }
    .text-center-custom { margin-bottom: 35px !important; }
    .text-center-custom .main-title { font-size: 1.8rem !important; }
    .text-center-custom .section-desc { font-size: 1.15rem !important; }
    
    .digi-cards-grid-clean {
        gap: 15px !important;
    }
    .card-seo-title.card-seo-title2 {
        font-size: 0.9rem !important;
    }
    .service-clean-card-v2 {
        flex: 0 0 calc(50% - 7.5px); /* الحفاظ على كرتين في الصف للموبايل بحسب رغبتك بالتصميم */
        padding: 20px 15px;
        border-radius: 14px;
    }
    .service-clean-card-v2 .card-icon-wrapper img {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 15px !important;
    }
    .service-clean-card-v2 h3 { 
        font-size: 1.1rem !important; 
        margin-bottom: 8px !important;
    }
    .service-clean-card-v2 h3::after {
        width: 30px !important;
        margin-top: 6px !important;
    }
    .service-clean-card-v2 p { 
        font-size: 1rem !important; 
        line-height: 1.5 !important;
        margin-top: 10px !important;
    }
}
/* [6] تصميم كروت الخدمات */
.methodology-swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 20px 0 60px 0 !important;
}

/* التنسيق الافتراضي للشاشات الكبيرة (تم تحويله إلى 4 أعمدة بجانب بعضها وتوسيع الحاوية) */
.flip-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 1050px; 
    margin: 0 auto;
}

/* تم تصغير أبعاد الصندوق الهندسي السداسي ليناسب العرض الرباعي الجديد */
.flip-box {
    background-color: transparent;
    width: 220px;
    height: 245px;
    perspective: 1200px;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-box:hover { 
    transform: scale(1.04); 
    z-index: 10; 
}
.flip-box-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    text-align: center; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); 
    transform-style: preserve-3d; 
}
.flip-box:hover .flip-box-inner { 
    transform: rotateY(-180deg); 
}

/* قناع الرسم البرمجي لقَصّ وحساب زوايا وأضلاع الشكل السداسي */
.flip-box-front, 
.flip-box-back,
.flip-box-border {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='20 0 92 116'><path fill='black' d='M110.78,74.78v-32.21c0-6.48-3.41-12.48-8.97-15.8l-26.04-15.56c-5.81-3.47-13.06-3.47-18.88,0l-26.04,15.56c-5.56,3.32-8.97,9.32-8.97,15.8v32.21c0,6.48,3.41,12.48,8.97,15.8l26.04,15.56c5.81,3.47,13.06,3.47,18.88,0l26.04-15.56c5.56-3.32,8.97-9.32,8.97-15.8Z'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='20 0 92 116'><path fill='black' d='M110.78,74.78v-32.21c0-6.48-3.41-12.48-8.97-15.8l-26.04-15.56c-5.81-3.47-13.06-3.47-18.88,0l-26.04,15.56c-5.56,3.32-8.97,9.32-8.97,15.8v32.21c0,6.48,3.41,12.48,8.97,15.8l26.04,15.56c5.81,3.47,13.06,3.47,18.88,0l26.04-15.56c5.56-3.32,8.97-9.32,8.97-15.8Z'/></svg>");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
}

/* طبقة الإطار النحيف الأخضر الخارجي للشكل السداسي */
.flip-box-border {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background-color: var(--accent-green);
    z-index: 1;
    pointer-events: none;
    backface-visibility: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.flip-box:hover .flip-box-border { 
    background-color: #49b3ae; 
    filter: drop-shadow(0 0 4px rgba(91, 196, 191, 0.6)); 
}

.flip-box-front, .flip-box-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    backface-visibility: hidden; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    padding: 20px 15px; /* تم تقليل البادينج ليتناسب مع الحجم الجديد الأصغر */
    z-index: 2; 
}
.flip-box-front { background-color: var(--white); color: var(--primary-blue); }
.flip-box-back { background-color: var(--primary-blue); background-image: linear-gradient(145deg, var(--primary-blue) 0%, #1a3a63 100%); color: var(--white); transform: rotateY(-180deg); }

/* محاذاة أيقونات الصور السداسية المصغرة */
.flip-icon {
    width: 50px; /* تم تصغير حجم الأيقونة لتلائم حجم السداسي الجديد */
    height: 50px;
    margin-bottom: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-icon img { width: 100% !important; height: 100% !important; object-fit: contain !important; }
.flip-box:hover .flip-icon { transform: scale(1.1) rotate(4deg); }

/* ضبط انسيابية الخطوط لمنع فيضان النصوص خارج قناع السداسي الصغير */
.flip-box-front h3 { 
    font-size: 1.25rem !important; 
    font-weight: 700; 
    color: var(--primary-blue); 
    margin: 0; 
    padding: 0 5px;
    font-family: var(--font-headers) !important; 
    line-height: 1.4;
}
.flip-box-back p { 
    font-size: 1.15rem !important; 
    padding: 0 8px; 
    line-height: 1.5; 
    color: #f7fafc; 
    font-family: var(--font-main) !important; 
    text-align: center; 
}

/* ترقيم نقاط السلايدر المتجاوب */
.methodology-pagination { position: absolute !important; bottom: 0px !important; left: 0; width: 100%; text-align: center; display: none; z-index: 10; }
.methodology-pagination .swiper-pagination-bullet { background: #cbd5e1; opacity: 1; margin: 0 4px !important; }
.methodology-pagination .swiper-pagination-bullet-active { background: var(--accent-green) !important; width: 24px; border-radius: 5px; transition: all 0.3s ease; }

/* ==========================================================================
   شاشات التجاوب المحسنة لدعم التوزيع الرباعي الجديد
   ========================================================================== */
@media (max-width: 992px) {
    /* عند شاشات التابلت العريضة: تحويل الـ Grid الرباعي إلى عمودين بشكل متزن */
    .flip-grid { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; 
        max-width: 520px; 
        gap: 20px !important; 
    }
}

@media (max-width: 650px) {
    /* تهيئة حاوية السلايدر لمنع أي فيضان خارجي */
    .methodology-swiper {
        overflow: hidden !important;
        padding: 20px 0 60px 0 !important;
        width: 100% !important;
        display: block !important;
    }
    .hex-card-title{
        font-size: 0.9rem !important;
    }

    /* تحويل الجريد إلى شريط مرن أفقي ممتد لعمل السلايدر */
    .flip-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0 !important; /* نترك السيطرة لـ spaceBetween الخاصة بـ Swiper */
        width: max-content !important; 
        transform-style: preserve-3d !important;
    }

    /* تثبيت وعزل أبعاد الكارت السلايدر داخل الموبايل */
    .list-card-item.swiper-slide {
        width: 220px !important; /* نفس العرض السداسي المصغر */
        max-width: 220px !important;
        min-width: 220px !important;
        height: 245px !important;
        flex-shrink: 0 !important; /* يمنع انضغاط أو تمطيط الكارت */
        margin: 0 !important;
        transform-style: preserve-3d !important;
    }

    .flip-box {
        width: 100% !important;
        height: 100% !important;
        margin: 0 auto !important;
    }

    /* إظهار نقاط الترقيم التحتية الدائرية بشكل واضح */
    .methodology-pagination {
        display: block !important;
        bottom: 15px !important;
    }
}
/* [7] القسم الخامس - ميثاق العمل (محاذاة الخط التزييني لليمين ليتناسق مع الهيكل) */
/* ==========================================================================
   تنسيقات القسم الخامس الفاخر الموحد والمطوّر
   ========================================================================== */
/* ==========================================================================
   تنسيقات القسم الخامس الفاخر (المحدث بالتدرج اللوني الجانبي المتجاوب)
   ========================================================================== */
.sec-5-custom { 
    text-align: right !important; 
    direction: rtl !important; 
    position: relative !important; 
    padding: 85px 0 !important; 
    background-size: cover !important; 
    background-position: center !important; 
    background-repeat: no-repeat !important;
    background-color: var(--black-fakhim); /* لون احتياطي فخم في حال لم تفتح الصورة */
    color: var(--white) !important; 
}

/* رفع محتوى الحاوية أعلى من تدرج خلفية الـ linear-gradient لثبات النص الساطع */
.sec-5-custom .digi-service-container {
    position: relative !important;
    z-index: 2 !important;
}

/* هيدر ومقدمة القسم الخامس */
.sec5-header-wrapper {
    text-align: right !important; 
    align-items: flex-start !important; 
    padding: 40px 0 20px 0 !important; 
    display: flex;
    flex-direction: column;
}

.sec5-main-title { 
    color: var(--white) !important; 
    font-size: 2.4rem !important; 
    font-weight: 800 !important;
    font-family: var(--font-headers) !important; 
    position: relative !important;
    padding-bottom: 14px !important;
    margin: 0 0 10px 0 !important;
}

/* الخط التزييني الممتد من اليمين في الهيدر */
.sec5-main-title::after { 
    content: "" !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important; /* يبدأ من اليمين تماماً متوافقاً مع اتجاه القراءة العربي */
    left: auto !important;
    width: 60px !important; 
    height: 4px !important; 
    background-color: var(--accent-green) !important; 
    border-radius: 2px !important;
}

.sec5-sub-title { 
    color: #e2e8f0 !important; 
    font-size: 1.4rem !important; 
    font-weight: 400 !important;
    margin: 10px 0 0 0 !important;
    font-family: var(--font-headers) !important; 
}

/* قائمة العناصر والشروحات */
.digi-explanations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.explanation-item { 
    margin-bottom: 25px !important; 
    padding-right: 20px !important; 
    padding-left: 5px !important;
    border-right: 4px solid var(--accent-green) !important; /* حافة خضراء تزيينية فخمة من اليمين */
    border-left: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* تأثير تفاعلي راقٍ عند تمرير الفأرة على العناصر */
.explanation-item:hover {
    transform: translateX(-5px); /* إزاحة خفيفة جهة اليسار */
    border-right-color: var(--white) !important; /* تحول الحافة للون الأبيض الفاخر */
}

/* متوافق تماماً مع وسم H3 المحدث للسيو */
.explanation-item-title { 
    font-family: var(--font-headers) !important; 
    font-size: 1.5rem !important; 
    color: var(--white) !important; 
    margin-top: 0 !important;
    margin-bottom: 8px !important; 
    font-weight: 700 !important; 
}

.explanation-item-desc { 
    font-family: var(--font-main) !important; 
    font-size: 1.35rem !important; /* حجم خط مريح ومناسب للقراءة */
    color: #cbd5e1 !important; 
    line-height: 1.8 !important; 
    margin: 0 !important;
    text-align: justify;
}

/* التجاوب السلس مع شاشات الهواتف الذكية */
@media (max-width: 600px) {
    .sec-5-custom { 
        padding: 40px 0 !important; 
    }
    .sec5-main-title { 
        font-size: 1.8rem !important; 
    }
    .sec5-sub-title { 
        font-size: 1.15rem !important; 
    }
    .explanation-item-title { 
        font-size: 1.25rem !important; 
    }
    .explanation-item-desc { 
        font-size: 1.1rem !important; 
        line-height: 1.6 !important; 
    }
}
/* [8] السلايدر المتحرك لأدوات البرمجيات (Marquee) */
.hero-software-slider-wrapper { margin-top: 20px !important; overflow: hidden; width: 100%; position: relative; direction: ltr; }
.digi-software-marquee { display: flex; width: 100%; overflow: hidden; }
.marquee-content { display: flex; align-items: center; animation: scroll-marquee 20s linear infinite; width: max-content; min-width: 200%; }
.software-tool-item { display: flex; flex-direction: column; align-items: center; margin: 0 15px; flex-shrink: 0; width: 200px; gap: 0; }
/* .software-tool-item img { width: 200px !important; height: 100px !important; object-fit: contain; display: block; } */
.software-tool-item span { margin-top: 10px; font-weight: 600; color: var(--primary-blue) !important; text-align: center; font-size: 1.1rem; font-family: var(--font-headers) !important; }
@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* [9] توزيع شبكات الكروت */
.card-with-bg { background-image: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('./images/bc-2.webp'); background-size: cover; }
.digi-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.digi-static-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 20px !important; }

/* [10] التجاوب العام (شاشات التابلت) */
@media (max-width: 991px) { 
    .digi-flex-layout { flex-direction: column; } 
    .digi-col-20, .digi-col-80 { max-width: 100% !important; padding-top: 0 !important; } 
    .digi-col-20 h1, .digi-col-80 h1, .digi-col-80 h2 { font-size: 1.8rem !important; }
    .digi-static-grid { grid-template-columns: repeat(2, 1fr); } 
    .digi-cards-grid { grid-template-columns: repeat(2, 1fr); } 
    .digi-text-content p { font-size: 1.3rem !important; }
    .sub-service-card h3, .static-service-card h3 { font-size: 1.25rem !important; }
    .sec-5-custom .digi-title-wrapper h2 { font-size: 1.8rem !important; }
    .sec-5-custom .explanation-item h5 { font-size: 1.3rem !important; }
}

/* [11] التجاوب الخاص بالموبايل (تثبيت كرتين في الصف وتصغير العناصر) */
@media (max-width: 600px) {
    .digi-static-grid, .digi-cards-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important; 
    }
    .sub-service-card, .static-service-card { 
        padding: 15px 10px !important; 
        min-height: auto !important; 
    }
    .sub-service-card img, .static-service-card img { 
        width: 40px !important; 
        height: 40px !important; 
        margin-bottom: 10px !important; 
    }
    .sub-service-card h3, .static-service-card h3 { 
        font-size: 0.95rem !important; 
        min-height: 2.4em !important; 
    }
    .sub-service-card p, .static-service-card p { 
        font-size: 0.8rem !important; 
        line-height: 1.4 !important; 
    }
    .software-tool-item { width: 100px !important; margin: 0 10px !important; }
    /* .software-tool-item img { width: 100px !important; height: 50px !important; } */
    .hero-software-slider-wrapper { margin-top: 20px !important; }
    .digi-text-content p { font-size: 1.1rem !important; line-height: 1.7 !important; }
    .sec-5-custom { padding: 30px 0 !important; }
    .sec-5-custom .digi-title-wrapper h2 { font-size: 1.5rem !important; }
    .sec-5-custom .explanation-item h5 { font-size: 1.1rem !important; }
    .sec-5-custom .explanation-item p { font-size: 0.95rem !important; line-height: 1.6 !important; }
    .sec-5-custom .sec3-title-bg-custom, .digi-sec-4 .sec4-title-bg-custom { margin-left: -20px !important; margin-right: -20px !important; width: calc(100% + 40px) !important; }
}
.sec5-main-title .brand-color {
    color: var(--accent-green) !important; /* أو أي لون تزييني خاص بـ ديجيكود */
    font-weight: 800;
}
.digi-text-content .brand-color {
    color: var(--accent-green) !important;
    font-weight: bold;
}
/* تنسيق الكلمة المميزة داخل العناوين الرئيسية للريدير */
.services-section-header .main-title .brand-color {
    color: var(--accent-green) !important; /* اللون الأخضر التزييني */
    font-weight: 800;
    display: inline-block;
}

/* --- إضافات لصفحة الخدمات العامة --- */
.digi-section { padding: 80px 20px; text-align: center; background-color: var(--bg-light); }
.section-title { font-size: 2.5rem; margin-bottom: 50px; color: var(--primary-blue); font-family: var(--font-headers) !important; }

/* تنسيق قسم المميزات */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; }
.feature-box { padding: 30px; border-radius: 16px; background: var(--white); border: 1px solid #e2e8f0; font-family: var(--font-main) !important; color: var(--text-main); }

/* --- قسم مسار جالاكسي المنحني (Galaxy Pathway) --- */
.galaxy-pathway { background: linear-gradient(to left, var(--black-fakhim), var(--primary-blue)); padding: 120px 0; overflow: hidden; }
.path-container { position: relative; max-width: 1000px; height: 300px; margin: 0 auto; }

.step { position: absolute; text-align: center; width: 120px; transition: 0.4s ease; }

/* توزيع إحداثيات النقاط الستة بدقة */
.step-1 { right: 0%; top: 90px; }
.step-2 { right: 20%; top: 90px; }
.step-3 { right: 40%; top: 135px; }
.step-4 { right: 55%; top: 130px; }
.step-5 { right: 75%; top: 90px; }
.step-6 { right: 95%; top: 140px; }

/* دوائر مسار جالاكسي المرئية */
.sphere {
    width: 95px; height: 95px; 
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; 
    box-shadow: 0 0 20px var(--primary-blue);
    transition: 0.3s;
    font-family: var(--font-accent) !important;
}

/* تأثير الـ Hover على كرات المسار */
.step:hover .sphere {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 0 40px #60a5fa;
    border-color: var(--white);
}

.label { color: var(--white); font-size: 0.8rem; font-weight: bold; line-height: 1.2; font-family: var(--font-headers) !important; }
.label small { font-family: var(--font-accent) !important; color: var(--accent-green); }
.path-line { position: absolute; width: 100%; height: 100%; z-index: 0; opacity: 0.6; }

/* تجاوب قسم جالاكسي */
@media (max-width: 1024px) {
    .sphere { width: 75px; height: 75px; font-size: 1.6rem; }
}

@media (max-width: 768px) {
    .sphere { width: 40px; height: 40px; font-size: 1.2rem; }
    .path-container { height: 150px; padding: 10px 20px; display: flex; flex-direction: row; align-items: center; }
    .path-line { height: 320px; width: 100%; }
    .desktop-path { display: none; }
    .mobile-path { display: block; }
    .step-1 { right: 0.1%; top: 39px; }
    .step-2 { right: 15%; top: 30px; }
    .step-3 { right: 31%; top: 82px; }
    .step-4 { right: 47%; top: 73px; }
    .step-5 { right: 61%; top: 30px; }
    .step-6 { right: 75%; top: 60px; }
    .label { color: var(--white); font-size: 0.8rem; font-weight: bold; line-height: 1.2; font-family: var(--font-headers) !important; }
    .label small { font-family: var(--font-accent) !important; color: var(--accent-green); }
    strong {font-size: 0.5rem !important}
    .brand-highlight {font-size: 1rem !important}
    .brand-highlight {font-size: 2rem !important}
}

.achievements-header {
    text-align: center !important;
    direction: rtl !important;
    max-width: 800px;
    margin: 0 auto 55px auto !important;
    padding: 0 20px;
}

.achievements-header h2 {
    color: var(--white) !important;
    font-size: 2.4rem !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    font-family: var(--font-headers) !important;
}

.achievements-header p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.2rem !important;
    line-height: 1.85 !important;
    font-weight: 500 !important;
    font-family: var(--font-main) !important;
    margin: 0 !important;
}

.achievements-header .brand-highlight  {
    color: var(--accent-green) !important;
    font-weight: 800 !important;
}
.brand-highlight1 {
    color: var(--accent-green) !important;
    font-weight: 800 !important;
    font-size: 2rem!important;
}

@media (max-width: 1024px) {
    .achievements-header h2 { font-size: 2rem !important; }
    .achievement-item { max-width: 210px; }
}

@media (max-width: 600px) {
    .achievements-header { margin-bottom: 35px !important; }
    .achievements-header h2 { font-size: 1.75rem !important; padding-bottom: 10px; }
    .achievements-header p { font-size: 1.05rem !important; line-height: 1.7; }
    .brand-highlight{font-size: 1rem;}    
}

/* ==========================================================================
   قسم الأسئلة الشائعة وهيدر الخدمات الموحد (FAQ & Section Header)
   ========================================================================== */

.services-section-header, .testimonials-header {
    text-align: center !important;
    margin-bottom: 50px;
    padding: 0 15px;
    position: relative;
    z-index: 3;
    padding: 90px 0;
    background-image: url('../images/bc-4.webp');
    background-size: cover;          
    background-position: center;     
    background-repeat: no-repeat;    
    background-attachment: fixed;
    position: relative;
}

.services-section-header .sub-title {
    color: var(--accent-green);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: var(--font-headers) !important;
}
.main-title.main-title-1 {
    color: var(--white) !important;
}
.section-desc.section-desc-2{
    color: #cbd5e1 !important;
}
.services-section-header .main-title, .testimonials-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-family: var(--font-headers) !important;
}

.services-section-header .brand-highlight1 {
    color: var(--accent-green);
    font-weight: 900;
}

.services-section-header .section-desc, .testimonials-header p {
    font-size: 1.4rem;
    color: #5a6772;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
    font-family: var(--font-main) !important;
}

.digi-section.faq-section {
    padding: 80px 20px;
    background-color: white;
}

.faq-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    text-align: right; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
    padding: 10px;
}

.faq-column { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.faq-item { 
    background: linear-gradient(to left, var(--black-fakhim), var(--primary-blue));
    padding: 22px 25px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    cursor: pointer; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    border-color: var(--accent-green);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.faq-item h4 { 
    margin: 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-family: var(--font-headers) !important; 
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1.5;
}

.faq-item h4::after { 
    content: '+'; 
    font-size: 1.6rem; 
    transition: transform 0.3s ease, color 0.3s ease; 
    color: var(--accent-green); 
    font-family: var(--font-accent) !important;
    margin-right: 15px;
}

.faq-item.active {
    border-color: var(--primary-blue);
}

.faq-item.active h4 {
    color: var(--accent-green);
}

.faq-item.active h4::after { 
    transform: rotate(45deg); 
    color: var(--white); 
}

.faq-answer { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    color: var(--text-dim); 
}

.faq-answer p {
    margin: 0;
    padding-top: 15px; 
    font-family: var(--font-main) !important;
    font-size: 1.35rem;
    line-height: 1.6;
    color: white;
    text-align: justify;
}

@media (max-width: 991px) {
    .services-section-header .main-title, .testimonials-header h2 { font-size: 2.2rem; }
    .services-section-header .section-desc, .testimonials-header p { font-size: 1.25rem; }
    .faq-container { gap: 20px; }
}

@media (max-width: 768px) {
    .digi-section.faq-section { padding: 50px 15px; }
    .services-section-header, .testimonials-header { margin-bottom: 35px; }
    .services-section-header .main-title, .testimonials-header h2 { font-size: 1.8rem; }
    .services-section-header .sub-title { font-size: 1.1rem; }
    
    .faq-container { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    .faq-item { padding: 18px 20px; }
    .faq-item h4 { font-size: 1.05rem; }
    .faq-answer p { font-size: 1.15rem; }
}

/* ==========================================================================
   تنسيقات القسم الثاني المطور حصراً (.section-parallax-custom)
   ========================================================================== */

/* الحاوية الرئيسية للقسم مع تأثير Parallax انسيابي */
.section-parallax-custom {
    padding: 85px 0 !important;
    background-attachment: fixed !important; /* تثبيت الخلفية لتأثير السكرول الاحترافي */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    overflow-x: hidden;
}

/* ضبط محاذاة الخط التزييني لليمين بدلاً من التمركز التلقائي للموقع */
.section-parallax-custom .parallax-header-target.align-right-custom {
    text-align: right !important;
}

.section-parallax-custom .parallax-header-target.align-right-custom h2.section-secondary-title {
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 14px !important;
}

/* إجبار الخط التزييني للعنوان على البدء من اليمين تماماً */
.section-parallax-custom .parallax-header-target.align-right-custom h2.section-secondary-title::after {
    content: "" !important;
    position: absolute !important;
    bottom: -4px !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    width: 60px !important;
    height: 4px !important;
    background-color: var(--accent-green) !important;
    border-radius: 2px !important;
}

/* السلايدر المتحرك التلقائي لأدوات البرمجيات (Marquee) */
.section-parallax-custom .hero-software-slider-wrapper { 
    margin-top: 30px !important; 
    overflow: hidden !important; 
    width: 100% !important; 
    position: relative !important; 
    direction: ltr !important; /* لضمان حركة الشريط من اليسار لليمين بشكل سليم */
}

.section-parallax-custom .digi-software-marquee { 
    display: flex !important; 
    width: 100% !important; 
    overflow: hidden !important; 
}

.section-parallax-custom .marquee-content { 
    display: flex !important; 
    align-items: center !important; 
    animation: parallax-scroll-marquee 20s linear infinite !important; 
    width: max-content !important; 
    min-width: 200% !important; 
}

/* عناصر الأدوات داخل الشريط */
.section-parallax-custom .software-tool-item { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important; 
    margin: 0 25px !important; 
    flex-shrink: 0 !important; 
    width: 100px !important; 
    gap: 8px !important; 
}

/* الأيقونات البرمجية الموحدة الأبعاد بدون أي تمطيط */
.section-parallax-custom .software-tool-item img { 
    width: 150px !important; 
    height: 100px !important; 
    object-fit: contain !important; 
    display: block !important; 
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08)) !important; 
}

.section-parallax-custom .software-tool-item span { 
    margin-top: 5px !important; 
    font-weight: 600 !important; 
    color: var(--primary-blue) !important; 
    text-align: center !important; 
    font-size: 1rem !important; 
    font-family: var(--font-headers) !important; 
}

/* حركة الشريط اللانهائية */
@keyframes parallax-scroll-marquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* ==========================================================================
   [قياس الموبايل والتابلت الخاص بالقسم]
   ========================================================================== */
@media (max-width: 768px) {
    .section-parallax-custom {
        padding: 50px 0 !important;
        background-attachment: scroll !important; /* إلغاء التثبيت في الموبايل لمنع مشاكل الـ Lag في متصفحات الهواتف */
    }
    
    /* تحويل توزيع الأعمدة الجانبية (20%/80%) إلى صفوف رأسية كاملة العرض */
    .section-parallax-custom .digi-flex-layout {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .section-parallax-custom .digi-col-20, 
    .section-parallax-custom .digi-col-80 {
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
        padding-top: 0 !important;
        text-align: right !important;
    }
    
    /* تجاوب أحجام الخطوط والعناصر الداخلية */
    .section-parallax-custom .parallax-header-target .sub-title {
        font-size: 1rem !important;
    }
    
    .section-parallax-custom .parallax-header-target h2.section-secondary-title {
        font-size: 1.7rem !important;
        margin-bottom: 12px !important;
    }
    
    .section-parallax-custom .parallax-header-target .section-desc {
        font-size: 1.2rem !important;
        line-height: 1.6 !important;
    }
    
    .section-parallax-custom .services-content-body h2.content-main-q-2 {
        font-size: 1.5rem !important;
        margin-bottom: 15px !important;
    }
    
    .section-parallax-custom .digi-text-content p {
        font-size: 1.25rem !important;
        line-height: 1.7 !important;
        margin-bottom: 18px !important;
    }
    
    /* ضبط أحجام وتناسق عناصر السلايدر على الشاشات الصغيرة */
    .section-parallax-custom .software-tool-item { 
        width: 80px !important; 
        margin: 0 12px !important; 
    }
    /* .section-parallax-custom .software-tool-item img { 
        width: 35px !important; 
        height: 35px !important; 
    } */
    .section-parallax-custom .software-tool-item span { 
        font-size: 0.85rem !important; 
    }
}
/* ==========================================================================
   [شاشات الموبايل والأجهزة الذكية - للقسم الثاني حصراً]
   ========================================================================== */
@media (max-width: 768px) {
    /* إلغاء تأثير تثبيت الخلفية parallax في الموبايل لتجنب البطء ومشاكل المتصفحات */
    .section-parallax-custom {
        padding: 45px 0 !important;
        background-attachment: scroll !important;
        background-size: cover !important;
    }
    
    /* تحويل تخطيط الأعمدة الجانبية (20% و 80%) إلى صفوف رأسية كاملة العرض */
    .section-parallax-custom .digi-flex-layout {
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    /* عزل الحاويات وإلغاء العرض الأقصى القديم لتأخذ العرض الكامل للموبايل */
    .section-parallax-custom .digi-col-20, 
    .section-parallax-custom .digi-col-80 {
        max-width: 100% !important;
        width: 100% !important;
        flex: none !important;
        padding-top: 0 !important;
        text-align: right !important;
    }
    
    /* ضبط هيدر القسم والمقدمة الصغير */
    .section-parallax-custom .parallax-header-target .sub-title {
        font-size: 0.95rem !important;
        display: block;
        margin-bottom: 5px;
    }
    
    /* تصغير عنوان القسم ليناسب عرض شاشة الهاتف */
    .section-parallax-custom .parallax-header-target h2.section-secondary-title {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }
    
    /* ضبط الخط التزييني السفلي للعنوان ليحاذي اليمين بشكل صحيح وبأبعاد متناسقة */
    .section-parallax-custom .parallax-header-target.align-right-custom h2.section-secondary-title::after {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        width: 45px !important;
        height: 3px !important;
    }
    
    /* وصف الهيدر */
    .section-parallax-custom .parallax-header-target .section-desc {
        font-size: 1.15rem !important;
        line-height: 1.6 !important;
    }
    
    /* العنوان الداخلي الأيسر (السؤال أو الإضاءة) */
    .section-parallax-custom .services-content-body h2.content-main-q-2 {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    
    /* الفقرات النصية والشروحات */
    .section-parallax-custom .digi-text-content p {
        font-size: 1.2rem !important;
        line-height: 1.65 !important;
        margin-bottom: 15px !important;
        text-align: justify !important;
    }
    
    /* تقليص مسافات حافة شريط البرمجيات والأدوات الذكية */
    .section-parallax-custom .hero-software-slider-wrapper {
        margin-top: 20px !important;
    }
    
    /* تصغير الأيقونات وعناصر الشريط الدوار لتتناسب مع سرعة التمرير على الهاتف */
    .section-parallax-custom .software-tool-item { 
        width: 80px !important; 
        margin: 0 12px !important; 
        gap: 4px !important;
    }
    
    /* الأيقونة البرمجية */
    .section-parallax-custom .software-tool-item img { 
        width: 100px !important; 
        height: 50px !important; 
    }
    
    /* نصوص أسماء الأدوات أسفل الأيقونة */
    .section-parallax-custom .software-tool-item span { 
        font-size: 0.85rem !important; 
    }
}