/* ==========================================================================
   1. تعريف الخطوط المعتمدة بمسارات عكسية دقيقة (Absolute relative paths)
   ========================================================================== */
/* ==========================================================================
   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: 110px !important;
    height: 110px !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; 
    width: 50%;
}

/* قائمة العناصر والشروحات */
.digi-explanations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    width: 45%;
}

.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); }
}

.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; 
    }
}




.services-section-header1 {
    text-align: center !important;
    margin-bottom: 50px;
    padding: 0 15px;
    position: relative;
    z-index: 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* .services-section-header1 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;
} */

.services-section-header1 .main-title .brand-color {
    color: var(--accent-green) !important; /* اللون الأخضر التزييني */
    font-weight: 800;
    display: inline-block;
}


.sec-bottom-marquee .digi-software-marquee { 
        overflow: hidden; 
        width: 100%; 
        display: flex; 
        align-items: center; 
    }
    
    .sec-bottom-marquee .marquee-content { 
        display: flex; 
        flex-shrink: 0; 
        align-items: center; 
        /* تم تقليل المسافة هنا لتكون الصور متقاربة جداً */
        gap: 10px; 
        min-width: 100%; 
        justify-content: flex-start; /* لضمان الالتزام بقيمة الـ gap فقط */
    }

    .sec-bottom-marquee .software-tool-item img { 
        max-width: 180px; 
        height: auto; 
        transition: transform 0.3s ease; 
        display: block;
    }

    .sec-bottom-marquee .software-tool-item img:hover { 
        transform: scale(1.05); 
    }

    /* تحسين العرض للأجهزة اللوحية (التابلت) */
    @media (max-width: 992px) {
        .sec-bottom-marquee .marquee-content { 
            gap: 15px; /* مسافة أصغر للتابلت */
        }
        .sec-bottom-marquee .software-tool-item img { 
            max-width: 140px; 
        }
    }

    /* تحسين العرض للموبايل */
    @media (max-width: 600px) {
        .sec-bottom-marquee .marquee-content { 
            gap: 10px; /* مسافة متقاربة جداً للموبايل */
        }
        .sec-bottom-marquee .software-tool-item img { 
            max-width: 100px; 
        }
    }


/* ==========================================================================
   DigiCode services footer parity hotfix
   - Keeps the original services-page design unchanged.
   - Reuses the exact footer refinements already approved on the homepage.
   - Removes residual page spacing below the copyright bar.
   ========================================================================== */

body.page-services,
body.page-services #page,
body.page-services .site-content,
body.page-services .site-footer,
body.page-services .footer-copyright {
    margin-bottom: 0 !important;
}

body.page-services {
    padding-bottom: 0 !important;
}

body.page-services #page,
body.page-services .site-content {
    padding-bottom: 0 !important;
}

body.page-services .site-footer {
    margin-inline: 0 !important;
    padding-bottom: 0 !important;
}

body.page-services .footer-copyright {
    display: block;
    width: 100%;
    padding-bottom: 22px !important;
}

/* Exact homepage footer identity refinements, scoped to /services only. */
body.page-services .site-footer .footer-container {
    align-items: flex-start;
}

body.page-services .footer-desc {
    color: #4e5d70 !important;
    line-height: 1.85 !important;
}

body.page-services .footer-title {
    margin-bottom: 20px !important;
}

body.page-services .footer-list li,
body.page-services .footer-services-grid li {
    margin-bottom: 11px;
}

body.page-services .footer-list li a,
body.page-services .footer-services-grid li a,
body.page-services .contact-item,
body.page-services .contact-item a {
    line-height: 1.65;
}

body.page-services .footer-contact-info {
    gap: 14px !important;
}

body.page-services .footer-contact-info a[href^="tel:"],
body.page-services .footer-contact-info a[href^="mailto:"] {
    direction: ltr;
    unicode-bidi: isolate;
}

body.page-services .footer-copyright {
    letter-spacing: 0;
}

body.page-services .brand-copyright.green-text {
    color: #eafffd !important;
}

body.page-services .footer-logo-box img {
    width: 90px;
    height: 80px;
    object-fit: contain;
}

body.page-services .footer-list a:focus-visible,
body.page-services .footer-services-grid a:focus-visible,
body.page-services .footer-contact-info a:focus-visible {
    outline: 3px solid rgba(91, 196, 191, 0.46);
    outline-offset: 3px;
    border-radius: 5px;
}

body.page-services.ltr .footer-col {
    text-align: left !important;
}

@media (max-width: 768px) {
    body.page-services .site-footer {
        padding-top: 42px !important;
    }

    body.page-services .site-footer .footer-container {
        gap: 28px !important;
    }

    body.page-services .footer-copyright {
        margin-top: 38px !important;
        padding-inline: 70px !important;
    }
}

@media (max-width: 430px) {
    body.page-services .footer-copyright {
        padding-inline: 62px !important;
        font-size: 0.92rem !important;
    }
}

/* ========================================================================== 
   Services banner cleanup
   Removes only the overlaid copy and the strip directly below the banner.
   ========================================================================== */
body.page-services .about-banner.services-image-banner {
    min-height: clamp(280px, 26.4vw, 510px);
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

body.page-services .about-banner.services-image-banner::before,
body.page-services .about-banner.services-image-banner::after {
    content: none !important;
    display: none !important;
}

body.page-services .about-banner.services-image-banner + .digi-banner-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
}

@media (max-width: 768px) {
    body.page-services .about-banner.services-image-banner {
        min-height: 280px;
        background-position: center !important;
    }
}

/* ========================================================================== 
   DigiCode services refinement v4.2.8
   Preserves the approved visual identity while fixing bilingual, responsive,
   accessibility, and content-overflow issues on the services overview only.
   ========================================================================== */

body.page-services {
    overflow-x: clip;
}

/* Clean image-only banner with the original DigiCode palette and artwork. */
body.page-services .about-banner.services-image-banner {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1595 / 423;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: #203f66;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

body.page-services .about-banner.services-image-banner .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Keep service cards visually unchanged while preventing long English titles
   from being cropped inside the collapsed information panel. */
body.page-services .digi-service-slide-card {
    min-width: 0;
}

body.page-services .service-sliding-info {
    height: 92px;
    padding: 14px 14px;
    justify-content: center;
}

body.page-services .service-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7em;
    margin: 0;
    font-size: clamp(1.1rem, 1.3vw, 1.48rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.page-services .digi-service-slide-card:hover .service-sliding-info {
    height: 100%;
}

/* Locale-aware roadmap: same desktop identity, correct LTR order, readable
   touch layout instead of tiny absolutely positioned labels on phones. */
body.page-services .galaxy-pathway {
    padding: 92px 20px;
}

body.page-services .galaxy-pathway .achievements-header {
    max-width: 880px;
    margin-bottom: 44px !important;
}

body.page-services.ltr .galaxy-pathway .achievements-header {
    direction: ltr !important;
}

body.page-services .galaxy-pathway .path-container {
    max-width: 1080px;
    height: 290px;
    padding: 0;
    list-style: none;
}

body.page-services .galaxy-pathway .step {
    z-index: 1;
}

body.page-services .galaxy-pathway .sphere {
    width: 82px;
    height: 82px;
    font-size: 1.7rem;
}

body.page-services .galaxy-pathway .label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.92rem;
}

body.page-services .galaxy-pathway .label strong {
    display: block;
    font-size: clamp(0.86rem, 1vw, 1.04rem) !important;
    line-height: 1.45;
    font-family: var(--font-headers) !important;
}

body.page-services .galaxy-pathway .label small {
    font-size: 0.82rem;
}

body.page-services.ltr .galaxy-pathway .step-1 { left: 0%; right: auto; }
body.page-services.ltr .galaxy-pathway .step-2 { left: 20%; right: auto; }
body.page-services.ltr .galaxy-pathway .step-3 { left: 40%; right: auto; }
body.page-services.ltr .galaxy-pathway .step-4 { left: 55%; right: auto; }
body.page-services.ltr .galaxy-pathway .step-5 { left: 75%; right: auto; }
body.page-services.ltr .galaxy-pathway .step-6 { left: 95%; right: auto; }

/* Native <details> FAQ: same cards and colors, keyboard support without JS. */
body.page-services .faq-item {
    padding: 0;
    overflow: hidden;
}

body.page-services .faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 18px 22px;
    color: var(--white);
    font-family: var(--font-headers) !important;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
}

body.page-services .faq-item summary::-webkit-details-marker {
    display: none;
}

body.page-services .faq-item summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--accent-green);
    font-family: var(--font-headers) !important;
    font-size: 1.55rem;
    line-height: 1;
    transition: transform 0.25s ease, color 0.25s ease;
}

body.page-services .faq-item[open] summary {
    color: var(--accent-green);
}

body.page-services .faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--white);
}

body.page-services .faq-item summary:focus-visible {
    outline: 3px solid rgba(91, 196, 191, 0.72);
    outline-offset: -4px;
    border-radius: 14px;
}

body.page-services .faq-answer {
    max-height: none;
    overflow: visible;
    color: var(--white);
}

body.page-services .faq-answer p {
    margin: 0;
    padding: 0 22px 20px;
    text-align: start;
}

body.page-services.ltr .faq-container,
body.page-services.ltr .faq-item,
body.page-services.ltr .faq-answer p {
    text-align: left;
}

body.page-services.rtl .faq-container,
body.page-services.rtl .faq-item,
body.page-services.rtl .faq-answer p {
    text-align: right;
}

/* Fixed backgrounds are expensive and visually unstable on touch devices. */
@media (max-width: 768px) {
    body.page-services .services-section-header,
    body.page-services .testimonials-header {
        background-attachment: scroll;
    }

    body.page-services .about-banner.services-image-banner {
        aspect-ratio: auto;
        min-height: clamp(205px, 55vw, 275px);
        background-position: left center !important;
    }

    body.page-services .services-interactive-grid.mobile-scroll-smooth {
        width: 100%;
        max-width: 100%;
        padding: 14px 16px 26px;
        gap: 16px;
        justify-content: flex-start;
        scroll-padding-inline: 16px;
        overscroll-behavior-inline: contain;
    }

    body.page-services .digi-service-slide-card {
        flex: 0 0 calc(100% - 32px) !important;
        width: calc(100% - 32px);
        min-width: 0 !important;
        height: 310px;
        scroll-snap-align: start;
    }

    body.page-services .service-sliding-info,
    body.page-services .digi-service-slide-card:hover .service-sliding-info {
        height: 132px;
        padding: 12px 14px;
    }

    body.page-services .service-title {
        min-height: 2.6em;
        font-size: 1.22rem;
    }

    body.page-services .galaxy-pathway {
        padding: 64px 16px;
    }

    body.page-services .galaxy-pathway .achievements-header {
        margin-bottom: 28px !important;
        padding-inline: 4px;
    }

    body.page-services .galaxy-pathway .path-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        width: 100%;
        height: auto;
        padding: 0;
    }

    body.page-services .galaxy-pathway .path-line {
        display: none;
    }

    body.page-services .galaxy-pathway .step,
    body.page-services.ltr .galaxy-pathway .step {
        position: relative;
        inset: auto;
        width: auto;
        min-height: 142px;
        padding: 16px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.07);
        box-shadow: 0 12px 28px rgba(6, 19, 38, 0.14);
    }

    body.page-services .galaxy-pathway .sphere {
        width: 54px;
        height: 54px;
        margin-bottom: 9px;
        font-size: 1.35rem;
        box-shadow: 0 0 16px rgba(91, 196, 191, 0.38);
    }

    body.page-services .galaxy-pathway .label strong {
        font-size: 0.92rem !important;
        line-height: 1.45;
    }

    body.page-services .galaxy-pathway .label small {
        font-size: 0.76rem;
    }

    body.page-services .faq-container {
        padding: 0;
    }

    body.page-services .faq-item summary {
        min-height: 64px;
        padding: 16px 18px;
        font-size: 1rem;
    }

    body.page-services .faq-answer p {
        padding: 0 18px 18px;
        font-size: 1.08rem;
        line-height: 1.7;
    }
}

@media (max-width: 420px) {
    body.page-services .about-banner.services-image-banner {
        min-height: 195px;
    }

    body.page-services .galaxy-pathway .path-container {
        gap: 10px;
    }

    body.page-services .galaxy-pathway .step,
    body.page-services.ltr .galaxy-pathway .step {
        min-height: 134px;
        padding-inline: 8px;
    }

    body.page-services .galaxy-pathway .label strong {
        font-size: 0.84rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-services .digi-service-slide-card,
    body.page-services .service-sliding-info,
    body.page-services .faq-item,
    body.page-services .faq-item summary::after,
    body.page-services .galaxy-pathway .sphere {
        transition: none !important;
    }
}


/* ========================================================================== 
   DigiCode services card layout hotfix v4.2.9
   Fixes the empty white area without changing the approved card identity.
   ========================================================================== */

/* Restore the original desktop card height. A global homepage rule sets these
   cards to height: 100%, which can stretch them on the services page. */
body.page-services .digi-service-slide-card {
    height: 340px !important;
}

/* Keep the title inside the white panel. border-box prevents padding from
   increasing the visible panel height beyond the declared value. */
body.page-services .service-sliding-info {
    box-sizing: border-box;
    height: 92px !important;
    min-height: 92px;
    padding: 12px 14px;
    justify-content: center;
    background: var(--white, #ffffff) !important;
}

body.page-services .service-title {
    flex: 0 0 auto;
    min-height: 0;
    margin: 0;
}

/* The hidden description previously remained in the flex layout and pushed
   the title above the white panel. Collapse it fully until hover/focus. */
body.page-services .sliding-content-inner {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    body.page-services .digi-service-slide-card:hover .service-sliding-info,
    body.page-services .digi-service-slide-card:focus-within .service-sliding-info {
        height: 100% !important;
        padding: 22px 18px;
        justify-content: center;
    }

    body.page-services .digi-service-slide-card:hover .service-title,
    body.page-services .digi-service-slide-card:focus-within .service-title {
        margin-bottom: 12px;
    }

    body.page-services .digi-service-slide-card:hover .sliding-content-inner,
    body.page-services .digi-service-slide-card:focus-within .sliding-content-inner {
        max-height: 230px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    body.page-services .digi-service-slide-card {
        height: 310px !important;
    }

    body.page-services .service-sliding-info,
    body.page-services .digi-service-slide-card:hover .service-sliding-info,
    body.page-services .digi-service-slide-card:focus-within .service-sliding-info {
        height: 96px !important;
        min-height: 96px;
        padding: 10px 12px;
    }

    body.page-services .sliding-content-inner,
    body.page-services .digi-service-slide-card:hover .sliding-content-inner,
    body.page-services .digi-service-slide-card:focus-within .sliding-content-inner {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

/* ========================================================================
   DigiCode v4.2.16 — Services/About banner harmony
   Uses the artwork's natural 3:1 composition and matches About Us.
   Scoped to the services overview only.
   ======================================================================== */
body.page-services .about-banner.services-image-banner {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    aspect-ratio: 3 / 1;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    background-color: #203f66;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.page-services .about-banner.services-image-banner::before,
body.page-services .about-banner.services-image-banner::after {
    content: none !important;
    display: none !important;
}

@media (max-width: 768px) {
    body.page-services .about-banner.services-image-banner {
        aspect-ratio: auto;
        min-height: clamp(205px, 55vw, 275px);
        background-position: center !important;
    }
}

@media (max-width: 420px) {
    body.page-services .about-banner.services-image-banner {
        min-height: 195px;
    }
}


/* ========================================================================
   DigiCode v4.2.17 — Services banner full-width parity with About Us
   Makes the services artwork escape the constrained page container while
   preserving the approved 3:1 ratio, crop, colors, and image-only design.
   ======================================================================== */
body.page-services .about-banner.services-image-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
}

/* ========================================================================== 
   DigiCode v4.2.29 — service detail reliability and accessibility layer
   ========================================================================== */
.single-service-main {
    overflow: clip;
    background: #fff;
}

.digi-service-banner {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    min-height: 0;
    aspect-ratio: 3 / 1;
    margin-block: 0;
    margin-inline: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    background: #203f66;
}

.digi-service-banner img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.service-page-title {
    margin: 0 0 15px;
    color: var(--primary-blue, #3b71b9);
    font-family: var(--font-headers, "Cairo", sans-serif);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1.45;
}

.card-seo-title2 {
    display: block;
    margin: 0 0 10px;
    color: var(--primary-blue, #3b71b9);
    font-family: var(--font-headers, "Cairo", sans-serif);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.5;
}

.hex-card-title {
    display: block;
    color: var(--primary-blue, #3b71b9);
    font-family: var(--font-headers, "Cairo", sans-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.flip-box[role="button"] {
    cursor: pointer;
    outline: none;
}

.flip-box:focus-visible {
    border-radius: 24px;
    box-shadow: 0 0 0 4px rgba(73, 181, 176, .32);
}

.flip-box.is-flipped .flip-box-inner,
.flip-box[aria-expanded="true"] .flip-box-inner {
    transform: rotateY(-180deg);
}

.flip-box.is-flipped .flip-box-border,
.flip-box[aria-expanded="true"] .flip-box-border {
    background-color: #49b3ae;
    filter: drop-shadow(0 0 4px rgba(91, 196, 191, .6));
}

.sec-bottom-marquee {
    padding: 30px 0;
    overflow: hidden;
    background: #fff;
}

.sec-bottom-marquee .software-tool-item img {
    object-fit: contain;
    filter: none;
    opacity: 1;
}

@media (hover: none) {
    .flip-box:hover .flip-box-inner {
        transform: none;
    }

    .flip-box.is-flipped .flip-box-inner,
    .flip-box[aria-expanded="true"] .flip-box-inner {
        transform: rotateY(-180deg);
    }
}

@media (max-width: 768px) {
    .digi-service-banner {
        aspect-ratio: auto;
        min-height: clamp(205px, 55vw, 275px);
    }
}

@media (max-width: 680px) {
    .service-page-title {
        font-size: 1.45rem;
    }

    .single-service-main .digicode-breadcrumbs {
        margin-bottom: 20px;
    }
}

@media (max-width: 420px) {
    .digi-service-banner {
        min-height: 195px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-service-main .marquee-content {
        animation: none !important;
        transform: none !important;
    }

    .single-service-main .flip-box,
    .single-service-main .flip-box-inner,
    .single-service-main .flip-icon {
        transition: none !important;
    }
}

/* ==========================================================================
   DigiCode v4.2.34 — Clean service intro and larger marquee artwork
   - Removes the decorative circuit image from the first service section.
   - Removes service-detail breadcrumbs from the rendered template.
   - Keeps the approved larger tool and partner images.
   - Preserves the service-only footer whitespace fix.
   ========================================================================== */
body.single-service,
body.single-service #page,
body.single-service .site-content,
body.single-service .single-service-main,
body.single-service .site-footer,
body.single-service .footer-copyright {
    margin-bottom: 0 !important;
}

body.single-service {
    padding-bottom: 0 !important;
    overflow-x: clip;
    background: #fff;
}

body.single-service #page,
body.single-service .site-content,
body.single-service .single-service-main,
body.single-service .site-footer {
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

body.single-service .site-footer {
    margin-inline: 0 !important;
}

body.single-service .footer-copyright {
    display: block;
    width: 100%;
    margin-bottom: 0 !important;
    padding: 22px 15px !important;
}

/* First service section: content only, without decorative background or
   artificial reserved space. */
.single-service-main .section-parallax-custom {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    padding: clamp(58px, 7vw, 88px) 0 !important;
    background: #fff !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

.single-service-main .section-parallax-custom .digi-service-container {
    position: relative;
    z-index: 1;
}

.single-service-main .section-parallax-custom .digi-flex-layout {
    align-items: flex-start;
}

/* Large, readable tool logos in the first moving slider. */
.single-service-main .section-parallax-custom .software-tool-item {
    width: 175px !important;
    margin-inline: 24px !important;
    gap: 10px !important;
}

.single-service-main .section-parallax-custom .software-tool-item img {
    display: block !important;
    width: 155px !important;
    height: 96px !important;
    max-width: none !important;
    object-fit: contain !important;
    filter: drop-shadow(0 5px 8px rgba(32, 63, 102, .10)) !important;
}

.single-service-main .section-parallax-custom .software-tool-item span {
    font-size: 1rem !important;
}

/* Slightly larger service illustrations and methodology icons. */
.single-service-main .card-icon-wrapper img {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain;
}

.single-service-main .flip-icon img {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain;
}

/* Large partner/platform artwork in the bottom marquee. */
.single-service-main .sec-bottom-marquee .software-tool-item {
    width: 245px !important;
    margin-inline: 22px !important;
}

.single-service-main .sec-bottom-marquee .software-tool-item img {
    width: 225px !important;
    height: 225px !important;
    max-width: none !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    body.single-service .site-footer {
        padding-bottom: 0 !important;
    }

    body.single-service .footer-copyright {
        margin-top: 38px !important;
        padding: 22px 32px !important;
    }

    .single-service-main .section-parallax-custom {
        padding: 44px 0 54px !important;
    }

    .single-service-main .section-parallax-custom .digi-col-20,
    .single-service-main .section-parallax-custom .digi-col-80,
    .single-service-main .section-parallax-custom .services-section-header,
    .single-service-main .section-parallax-custom .services-content-body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .single-service-main .section-parallax-custom .services-section-header {
        padding-inline: 0 !important;
    }

    .single-service-main .section-parallax-custom .service-page-title,
    .single-service-main .section-parallax-custom .section-desc,
    .single-service-main .section-parallax-custom .content-main-q,
    .single-service-main .section-parallax-custom .digi-text-content p {
        overflow-wrap: anywhere;
    }

    .single-service-main .section-parallax-custom .software-tool-item {
        width: 138px !important;
        margin-inline: 15px !important;
    }

    .single-service-main .section-parallax-custom .software-tool-item img {
        width: 122px !important;
        height: 78px !important;
    }

    .single-service-main .section-parallax-custom .software-tool-item span {
        font-size: .92rem !important;
    }

    .single-service-main .card-icon-wrapper img {
        width: 82px !important;
        height: 82px !important;
    }

    .single-service-main .flip-icon img {
        width: 60px !important;
        height: 60px !important;
    }

    .single-service-main .sec-bottom-marquee .software-tool-item {
        width: 210px !important;
        margin-inline: 16px !important;
    }

    .single-service-main .sec-bottom-marquee .software-tool-item img {
        width: 195px !important;
        height: 195px !important;
    }
}

@media (max-width: 430px) {
    body.single-service .footer-copyright {
        padding-inline: 24px !important;
        font-size: .92rem !important;
    }

    .single-service-main .section-parallax-custom .software-tool-item {
        width: 126px !important;
        margin-inline: 12px !important;
    }

    .single-service-main .section-parallax-custom .software-tool-item img {
        width: 112px !important;
        height: 72px !important;
    }

    .single-service-main .sec-bottom-marquee .software-tool-item {
        width: 184px !important;
        margin-inline: 12px !important;
    }

    .single-service-main .sec-bottom-marquee .software-tool-item img {
        width: 172px !important;
        height: 172px !important;
    }
}

/* ==========================================================================
   DigiCode v4.2.35 — Service intro circuit artwork behind content
   - Reuses the approved circuit artwork as a subtle section background.
   - Keeps all copy, headings, and marquee artwork above the decoration.
   - Adds no standalone image and reserves no artificial empty space.
   ========================================================================== */
.single-service-main .section-parallax-custom {
    background-color: #fff !important;
    background-image:
        linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
        url('../images/bc-4.webp') !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: center, center !important;
    background-size: cover, min(1426px, 100%) auto !important;
    background-attachment: scroll, scroll !important;
}

.single-service-main .section-parallax-custom .digi-service-container,
.single-service-main .section-parallax-custom .digi-flex-layout,
.single-service-main .section-parallax-custom .services-section-header,
.single-service-main .section-parallax-custom .services-content-body,
.single-service-main .section-parallax-custom .hero-software-slider-wrapper {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .single-service-main .section-parallax-custom {
        background-image:
            linear-gradient(rgba(255, 255, 255, .91), rgba(255, 255, 255, .91)),
            url('../images/bc-4.webp'),
            url('../images/bc-4.webp') !important;
        background-repeat: no-repeat, no-repeat, no-repeat !important;
        background-size: cover, 720px auto, 720px auto !important;
        background-position:
            center,
            left -28px top 14px,
            right -28px bottom 14px !important;
    }
}

@media (max-width: 430px) {
    .single-service-main .section-parallax-custom {
        background-size: cover, 640px auto, 640px auto !important;
        background-position:
            center,
            left -34px top 12px,
            right -34px bottom 12px !important;
    }
}

/* ==========================================================================
   DigiCode v4.2.36 — Methodology copy readability
   - Gives Arabic and English copy enough room inside the hexagonal cards.
   - Uses shorter readable line lengths and prevents clipping on hover/click.
   ========================================================================== */
.single-service-main .flip-grid {
    max-width: 1160px !important;
    gap: 28px !important;
}

.single-service-main .flip-box {
    width: 250px !important;
    height: 280px !important;
}

.single-service-main .flip-box-front,
.single-service-main .flip-box-back {
    box-sizing: border-box;
    overflow: hidden;
    padding: 38px 28px !important;
}

.single-service-main .hex-card-title {
    display: block;
    width: 100%;
    max-width: 190px;
    margin: 0 auto;
    font-size: clamp(1rem, 1.15vw, 1.18rem) !important;
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.single-service-main .flip-box-back p {
    width: 100%;
    max-width: 190px;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: clamp(.86rem, .82vw, .98rem) !important;
    line-height: 1.65 !important;
    font-weight: 500;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

html[lang="en"] .single-service-main .flip-box-back p,
.single-service-main[dir="ltr"] .flip-box-back p {
    font-size: clamp(.82rem, .78vw, .94rem) !important;
    line-height: 1.55 !important;
}

@media (max-width: 1180px) and (min-width: 993px) {
    .single-service-main .flip-grid {
        max-width: 1060px !important;
        gap: 18px !important;
    }

    .single-service-main .flip-box {
        width: 238px !important;
        height: 270px !important;
    }
}

@media (max-width: 992px) {
    .single-service-main .flip-grid {
        max-width: 550px !important;
        gap: 26px !important;
    }
}

@media (max-width: 650px) {
    .single-service-main .list-card-item.swiper-slide {
        width: 250px !important;
        max-width: 250px !important;
        min-width: 250px !important;
        height: 280px !important;
    }

    .single-service-main .flip-box-front,
    .single-service-main .flip-box-back {
        padding: 38px 30px !important;
    }

    .single-service-main .hex-card-title {
        font-size: 1rem !important;
    }

    .single-service-main .flip-box-back p {
        font-size: .9rem !important;
        line-height: 1.6 !important;
    }
}

/* ========================================================================== 
   DigiCode v4.2.37 — Keep service process content on the right in both locales
   - The visual/photo remains on the left side of the section.
   - Arabic keeps RTL/right-aligned reading.
   - English keeps LTR/left-aligned reading inside a right-side content column.
   ========================================================================== */
.single-service-main .sec-5-custom .digi-service-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
}

.single-service-main .sec-5-custom .sec5-header-wrapper,
.single-service-main .sec-5-custom .digi-explanations-list {
    width: min(52%, 720px) !important;
    max-width: min(52%, 720px) !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Arabic: right-side column with normal RTL reading. */
.single-service-main[dir="rtl"] .sec-5-custom,
.single-service-main[dir="rtl"] .sec-5-custom .sec5-header-wrapper,
.single-service-main[dir="rtl"] .sec-5-custom .digi-explanations-list,
.single-service-main[dir="rtl"] .sec-5-custom .explanation-item {
    direction: rtl !important;
    text-align: right !important;
}

/* English: keep the whole column on the right, but preserve natural LTR text. */
html[lang="en"] .single-service-main .sec-5-custom,
.single-service-main[dir="ltr"] .sec-5-custom {
    direction: ltr !important;
}

html[lang="en"] .single-service-main .sec-5-custom .sec5-header-wrapper,
html[lang="en"] .single-service-main .sec-5-custom .digi-explanations-list,
html[lang="en"] .single-service-main .sec-5-custom .explanation-item,
.single-service-main[dir="ltr"] .sec-5-custom .sec5-header-wrapper,
.single-service-main[dir="ltr"] .sec-5-custom .digi-explanations-list,
.single-service-main[dir="ltr"] .sec-5-custom .explanation-item {
    direction: ltr !important;
    text-align: left !important;
}

html[lang="en"] .single-service-main .sec-5-custom .sec5-header-wrapper,
.single-service-main[dir="ltr"] .sec-5-custom .sec5-header-wrapper {
    align-items: flex-start !important;
}

html[lang="en"] .single-service-main .sec-5-custom .sec5-main-title::after,
.single-service-main[dir="ltr"] .sec-5-custom .sec5-main-title::after {
    left: 0 !important;
    right: auto !important;
}

html[lang="en"] .single-service-main .sec-5-custom .explanation-item,
.single-service-main[dir="ltr"] .sec-5-custom .explanation-item {
    padding-left: 20px !important;
    padding-right: 5px !important;
    border-left: 4px solid var(--accent-green) !important;
    border-right: none !important;
}

html[lang="en"] .single-service-main .sec-5-custom .explanation-item:hover,
.single-service-main[dir="ltr"] .sec-5-custom .explanation-item:hover {
    transform: translateX(5px) !important;
    border-left-color: var(--white) !important;
}

html[lang="en"] .single-service-main .sec-5-custom .explanation-item-desc,
.single-service-main[dir="ltr"] .sec-5-custom .explanation-item-desc {
    text-align: left !important;
}

@media (max-width: 900px) {
    .single-service-main .sec-5-custom .sec5-header-wrapper,
    .single-service-main .sec-5-custom .digi-explanations-list {
        width: min(62%, 650px) !important;
        max-width: min(62%, 650px) !important;
    }
}

@media (max-width: 700px) {
    .single-service-main .sec-5-custom .digi-service-container {
        align-items: stretch !important;
    }

    .single-service-main .sec-5-custom .sec5-header-wrapper,
    .single-service-main .sec-5-custom .digi-explanations-list {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
    }
}

/* ==========================================================================
   DigiCode v4.2.38 — Compact mobile intro and fixed circuit background
   - Uses the approved circuit artwork as a static background behind intro copy.
   - Removes the duplicated full-section artwork introduced by older patches.
   - Reduces excessive vertical whitespace on service pages on small screens.
   ========================================================================== */
.single-service-main .section-parallax-custom {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    padding: clamp(46px, 5vw, 68px) 0 !important;
    background: #fff !important;
    background-image: none !important;
    background-attachment: scroll !important;
}

/* Keep the circuit artwork attached to the intro copy, not as a standalone
   image and not as a moving/parallax layer. */
.single-service-main .section-parallax-custom .services-section-header {
    margin: 0 !important;
    min-height: 0 !important;
    padding: 36px 18px 28px !important;
    background-color: transparent !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center 8px !important;
    background-size: clamp(260px, 22vw, 340px) auto !important;
    background-attachment: scroll !important;
}

.single-service-main .section-parallax-custom .services-section-header,
.single-service-main .section-parallax-custom .services-section-header > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .single-service-main .section-parallax-custom {
        padding: 24px 0 30px !important;
    }

    .single-service-main .section-parallax-custom .digi-service-container {
        padding-inline: 18px !important;
    }

    .single-service-main .section-parallax-custom .digi-flex-layout {
        gap: 14px !important;
    }

    .single-service-main .section-parallax-custom .digi-col-20,
    .single-service-main .section-parallax-custom .digi-col-80 {
        min-width: 0 !important;
    }

    .single-service-main .section-parallax-custom .services-section-header {
        padding: 22px 10px 16px !important;
        background-position: center 2px !important;
        background-size: 285px auto !important;
    }

    .single-service-main .section-parallax-custom .services-section-header .sub-title {
        margin-bottom: 4px !important;
    }

    .single-service-main .section-parallax-custom .service-page-title {
        margin-top: 0 !important;
        margin-bottom: 10px !important;
        line-height: 1.35 !important;
    }

    .single-service-main .section-parallax-custom .services-section-header .section-desc {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        line-height: 1.65 !important;
    }

    .single-service-main .section-parallax-custom .services-content-body {
        padding-top: 0 !important;
    }

    .single-service-main .section-parallax-custom .content-main-q {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
    }

    .single-service-main .section-parallax-custom .digi-text-content p {
        margin-bottom: 12px !important;
    }

    .single-service-main .section-parallax-custom .hero-software-slider-wrapper {
        margin-top: 12px !important;
    }
}

@media (max-width: 430px) {
    .single-service-main .section-parallax-custom {
        padding: 18px 0 26px !important;
    }

    .single-service-main .section-parallax-custom .digi-service-container {
        padding-inline: 14px !important;
    }

    .single-service-main .section-parallax-custom .digi-flex-layout {
        gap: 10px !important;
    }

    .single-service-main .section-parallax-custom .services-section-header {
        padding: 18px 8px 12px !important;
        background-position: center top !important;
        background-size: 245px auto !important;
    }

    .single-service-main .section-parallax-custom .service-page-title {
        margin-bottom: 8px !important;
    }

    .single-service-main .section-parallax-custom .content-main-q {
        margin-bottom: 10px !important;
    }
}

/* ==========================================================================
   DigiCode v4.2.39 — Remove service decorative circuit artwork
   - Removes the circuit image from every header inside the seven detail pages.
   - Removes the soft circuit background behind the first-section copy.
   - Keeps spacing, typography, sliders, and solid section colors unchanged.
   ========================================================================== */
body.single-service .single-service-main .services-section-header,
body.single-service .single-service-main .section-parallax-custom .services-section-header {
    background-image: none !important;
    background-color: transparent !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
}

body.single-service .single-service-main .section-parallax-custom {
    background-image: none !important;
}


/* ==========================================================================
   DigiCode v4.2.58.8.12 — English service process layout
   - Uses dedicated right-side artwork on all seven English service pages.
   - Places English process copy on the left with natural LTR alignment.
   - Arabic keeps its approved right-side RTL copy and original artwork.
   ========================================================================== */
html[lang="en"] .single-service-main .sec-5-custom .digi-service-container,
.single-service-main[dir="ltr"] .sec-5-custom .digi-service-container {
    align-items: flex-start !important;
}

html[lang="en"] .single-service-main .sec-5-custom .sec5-header-wrapper,
html[lang="en"] .single-service-main .sec-5-custom .digi-explanations-list,
.single-service-main[dir="ltr"] .sec-5-custom .sec5-header-wrapper,
.single-service-main[dir="ltr"] .sec-5-custom .digi-explanations-list {
    width: min(52%, 720px) !important;
    max-width: min(52%, 720px) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[lang="en"] .single-service-main .sec-5-custom,
.single-service-main[dir="ltr"] .sec-5-custom {
    background-position: center center !important;
}

@media (max-width: 900px) {
    html[lang="en"] .single-service-main .sec-5-custom .sec5-header-wrapper,
    html[lang="en"] .single-service-main .sec-5-custom .digi-explanations-list,
    .single-service-main[dir="ltr"] .sec-5-custom .sec5-header-wrapper,
    .single-service-main[dir="ltr"] .sec-5-custom .digi-explanations-list {
        width: min(62%, 650px) !important;
        max-width: min(62%, 650px) !important;
    }
}

@media (max-width: 700px) {
    html[lang="en"] .single-service-main .sec-5-custom,
    .single-service-main[dir="ltr"] .sec-5-custom {
        background-position: 68% center !important;
    }

    html[lang="en"] .single-service-main .sec-5-custom .sec5-header-wrapper,
    html[lang="en"] .single-service-main .sec-5-custom .digi-explanations-list,
    .single-service-main[dir="ltr"] .sec-5-custom .sec5-header-wrapper,
    .single-service-main[dir="ltr"] .sec-5-custom .digi-explanations-list {
        width: 100% !important;
        max-width: 100% !important;
        margin-inline: 0 !important;
    }
}

/* ========================================================================== 
   DigiCode v4.2.58.8.23 — Industrial automation software slider
   Dedicated to the Arabic and English industrial-automation service pages.
   ========================================================================== */
.automation-tech-slider-section {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    padding: 88px 0 82px !important;
    background:
        radial-gradient(circle at 12% 18%, rgba(91, 196, 191, 0.16), transparent 30%),
        radial-gradient(circle at 88% 76%, rgba(59, 113, 185, 0.13), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 58%, #f5f8fc 100%) !important;
}

.automation-tech-slider-section::before,
.automation-tech-slider-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(1px);
}

.automation-tech-slider-section::before {
    inline-size: 260px;
    block-size: 260px;
    inset-block-start: -145px;
    inset-inline-start: -90px;
    border: 38px solid rgba(91, 196, 191, 0.09);
}

.automation-tech-slider-section::after {
    inline-size: 330px;
    block-size: 330px;
    inset-block-end: -225px;
    inset-inline-end: -120px;
    border: 46px solid rgba(59, 113, 185, 0.08);
}

.automation-tech-slider-header {
    max-width: 850px;
    margin: 0 auto 46px !important;
    padding-inline: 16px;
}

.automation-tech-slider-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 13px;
    color: var(--primary-blue);
    font-family: var(--font-headers) !important;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.automation-tech-slider-kicker::before,
.automation-tech-slider-kicker::after {
    content: "";
    inline-size: 28px;
    block-size: 2px;
    border-radius: 999px;
    background: var(--accent-green);
}

.automation-tech-slider-title {
    position: relative;
    display: inline-block;
    margin: 0 0 18px !important;
    padding-bottom: 17px;
    color: var(--black-fakhim) !important;
    font-family: var(--font-headers) !important;
    font-size: clamp(1.85rem, 3vw, 2.65rem) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.automation-tech-slider-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    inset-block-end: 0;
    inline-size: 74px;
    block-size: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
    transform: translateX(-50%);
}

.automation-tech-slider-subtitle {
    max-width: 760px;
    margin: 0 auto !important;
    color: #5f6b7a !important;
    font-family: var(--font-main) !important;
    font-size: clamp(1.15rem, 1.7vw, 1.38rem) !important;
    line-height: 1.75 !important;
}

.automation-tech-slider-shell {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.automation-tech-swiper {
    width: 100%;
    min-width: 0;
    padding: 12px 8px 22px !important;
    overflow: hidden;
}

.automation-tech-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding-bottom: 8px;
}

.automation-tech-slide {
    position: relative;
    box-sizing: border-box;
    height: auto !important;
    min-height: 210px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 18px 20px;
    border: 1px solid rgba(59, 113, 185, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 35px rgba(17, 24, 39, 0.075);
    scroll-snap-align: center;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.automation-tech-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(91, 196, 191, 0.09), transparent 38%, rgba(59, 113, 185, 0.06));
    opacity: 0;
    transition: opacity 0.28s ease;
}

.automation-tech-slide:hover,
.automation-tech-slide:focus-within {
    transform: translateY(-6px);
    border-color: rgba(91, 196, 191, 0.58);
    box-shadow: 0 20px 42px rgba(31, 68, 117, 0.14);
}

.automation-tech-slide:hover::before,
.automation-tech-slide:focus-within::before {
    opacity: 1;
}

.automation-tech-logo-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.automation-tech-logo-frame img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 118px !important;
    object-fit: contain;
    filter: saturate(0.96);
    transition: transform 0.28s ease, filter 0.28s ease;
}

.automation-tech-slide:hover .automation-tech-logo-frame img {
    transform: scale(1.035);
    filter: saturate(1.08);
}

.automation-tech-name {
    position: relative;
    z-index: 1;
    margin: 0 !important;
    color: var(--black-fakhim) !important;
    font-family: var(--font-headers) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center;
}

.automation-tech-slider-control {
    inline-size: 46px;
    block-size: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(59, 113, 185, 0.18);
    border-radius: 50%;
    color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
    cursor: pointer;
    transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.automation-tech-slider-control:hover {
    color: #ffffff;
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    transform: translateY(-2px);
}

.automation-tech-slider-control:focus-visible {
    outline: 3px solid rgba(91, 196, 191, 0.5);
    outline-offset: 3px;
}

.automation-tech-slider-control.swiper-button-disabled {
    opacity: 0.42;
    cursor: default;
    transform: none;
}

.automation-tech-slider-control svg {
    inline-size: 22px;
    block-size: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[dir="rtl"] .automation-tech-slider-control svg {
    transform: rotate(180deg);
}

.automation-tech-pagination.swiper-pagination {
    position: static !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 15px;
}

.automation-tech-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border-radius: 999px;
    background: rgba(59, 113, 185, 0.28);
    opacity: 1;
    transition: width 0.22s ease, background-color 0.22s ease;
}

.automation-tech-pagination .swiper-pagination-bullet-active {
    width: 28px;
    background: var(--accent-green);
}

@media (max-width: 767px) {
    .automation-tech-slider-section {
        padding: 68px 0 62px !important;
    }

    .automation-tech-slider-header {
        margin-bottom: 30px !important;
    }

    .automation-tech-slider-shell {
        display: block;
    }

    .automation-tech-slider-control {
        display: none;
    }

    .automation-tech-swiper {
        padding-inline: 4px !important;
        overflow: visible;
    }

    .automation-tech-slide {
        min-height: 190px;
        padding: 20px 14px 17px;
        border-radius: 17px;
    }

    .automation-tech-logo-frame {
        min-height: 112px;
    }

    .automation-tech-logo-frame img {
        max-height: 102px !important;
    }
}

@media (max-width: 420px) {
    .automation-tech-slider-title {
        font-size: 1.65rem !important;
    }

    .automation-tech-slider-subtitle {
        font-size: 1.08rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .automation-tech-slide,
    .automation-tech-slide::before,
    .automation-tech-logo-frame img,
    .automation-tech-slider-control,
    .automation-tech-pagination .swiper-pagination-bullet {
        transition: none !important;
    }
}
