/*
Theme Name: Global Code Professional Theme
Theme URI: www.honeydew-chicken-219979.hostingersite.com
Author: Eng GC
Description:  Global Code 
Version: 2.0
Text Domain: global-code
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #0b1d33;
    --dark-bg: #061324;
    --gradient-start: #00bcd4;
    --gradient-end: #2ecc71;
    --text-color: #333;
    --light-gray: #f8f9fa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}


/* ==========================================================================
 /* الحالة الافتراضية: شفاف */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    background: transparent; /* خلفية شفافة */
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: all 0.4s ease-in-out;
    height: 70px;
}

/* حالة التمرير (يتم إضافتها عبر الجافاسكربت) */
.site-header.scrolled {
    background: #ffffff; /* لون أبيض */
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* تعديل لون الشعار عند التمرير */
.site-header.scrolled .logo img {
    filter: brightness(0) invert(0); /* جعل الشعار داكناً ليظهر على الأبيض */
}

/* الشعار الافتراضي (أبيض) */
.logo img {
    max-height: 80%;
    width: auto !important;
    filter: brightness(0) invert(1); /* أبيض */
    transition: all 0.4s ease-in-out;
}
/* القائمة الرئيسية */
.main-navigation {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: #ffffff !important; /* النصوص بيضاء افتراضياً */
    font-weight: 700;
    font-size: 16px;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--gradient-end);
}

/* ==========================================================================
   حالة النزول (Scrolled State) - تحويل الألوان: خلفية بيضاء، شعار طبيعي، نصوص زرقاء
   ========================================================================== */
.site-header.scrolled {
    background: #ffffff !important; /* خلفية بيضاء عند النزول */
    box-shadow: 0 4px 25px rgba(0,0,0,0.1) !important; /* ظل خفيف */
    height: 60px;
    padding: 12px 8%;
}
.site-header.scrolled .logo a {
    top: 5px; /* إنزاله قليلاً من الحافة العلوية */
    height: 50px; /* ضبط الحجم ليتناسب مع توسيط الـ 60px */
    display: flex !important;
    align-items: center !important;
}

.site-header.scrolled .logo img {
    filter: none !important;
    height: 100% !important; /* ملء ارتفاع الرابط */
    margin-bottom: 0 !important; /* إلغاء الإزاحة السابقة ليكون بالمنتصف */
}
/* النصوص تصبح زرقاء (كحلية) عند النزول */
.site-header.scrolled .main-navigation a {
    color: var(--primary-blue) !important; 
}

/* السلايدر الرئيسي البطل - تصنيف 3 */
.hero-slider-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-blue) 100%);
    position: relative;
    color: #fff;
    /* التعديلات هنا */
    display: flex;
    align-items: center;       /* توسيط عمودي */
    justify-content: center;   /* توسيط أفقي */
    min-height: 100vh;         /* ضمان شغل كامل الشاشة */
    padding: 0 5%;             /* تقليل الهوامش لضمان التمركز */
}
.hero-container {
    max-width: 750px;
    width: 100%;                /* ضمان أخذ العرض المتاح */
    text-align: center;         /* توسيط النص داخل الصندوق */
    margin: 0 auto;             /* توسيط الصندوق نفسه */
}

/* للتأكد من أن النصوص تتوسط */
.hero-container h1, 
.hero-container p {
    text-align: center;
} 

/* ------------------------------------------------------------- */
/* تكبير الخط للشاشات الكبيرة (أكبر من 992 بكسل) دون لمس الأزرار */
/* ------------------------------------------------------------- */
@media (min-width: 992px) {
    .hero-container h1 {
        font-size: 3rem;   /* تكبير العنوان الرئيسي فقط */
    }
    
    .hero-container p {
        font-size: 1.5rem; /* تكبير النص الوصفي فقط */
    }
}
.btn-main, .btn-submit {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}
.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    margin-right: 15px;
}
/* ------------------------------------------------------------- */
/* تصغير أزرار الاتصال فقط عند فتح الموقع من الموبايل */
/* ------------------------------------------------------------- */
@media (max-width: 767px) {
    .btn-main, .btn-submit, .btn-secondary {
        padding: 8px 20px;   /* تقليل الحشوة ليصبح الزر أصغر */
        font-size: 13px;     /* تصغير حجم الخط داخل الزر */
    }
}
@media screen and (max-width: 768px) {
    /* 1. إجبار الهيدر على أن يكون صفاً واحداً */
    .site-header {
        display: flex !important;
        flex-direction: row !important;
        direction: rtl !important; /* الشعار يمين، المحتويات الأخرى يسار */
        justify-content: space-between !important;
        align-items: center !important;
        height: 75px !important;
        padding: 0 5% !important;
        background: transparent !important; /* ليبقى شفافاً في الموبايل أيضاً */
    }
/* تغيير لون أيقونة القائمة في الموبايل (الثلاث خطوط) */
@media screen and (max-width: 768px) {
    /* استبدل .menu-toggle بالكلاس الفعلي الذي يستخدمه موقعك لزر القائمة */
    .menu-toggle span, 
    .menu-toggle div {
        background-color: #ffffff !important; /* اللون الأبيض */
    }

    /* في حال كانت الأيقونة عبارة عن أيقونة FontAwesome أو SVG */
    .menu-toggle i, 
    .menu-toggle svg {
        color: #ffffff !important;
        fill: #ffffff !important;
    }
}
    /* 2. الشعار يمين */
    .logo {
        margin-right: 0 !important;
        margin-left: auto !important; /* يدفع الشعار لليمين في الـ RTL */
    }

    /* 3. القائمة وزر اتصل بنا في اليسار */
    /* تأكد أن القائمة والزر موجودان داخل حاوية واحدة أو بجانب بعضهما */
    .main-navigation {
        direction: ltr !important; /* إعادة التوجه للنصوص لتقرأ بشكل صحيح */
        order: -1 !important; /* يدفع القائمة والزر لليسار */
    }

    /* 4. تنسيق القائمة المنسدلة عند الفتح */
    .main-navigation {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
        padding: 20px 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out !important;
    }

    .main-navigation.is-active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}
/* قسم الكروت العائمة (حلولنا) - تصنيف 4 */
.floating-solutions {
    padding: 0 8%;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.solution-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s;
}
.solution-card:hover {
    transform: translateY(-8px);
}
.solution-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}
.solution-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* قسم لماذا نحن والإحصائيات */
.why-choose-us {
    padding: 80px 8%;
    background: #fff;
}
.features-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
.stats-side {
    flex: 1;
    display: flex;
    gap: 30px;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
}
.stat-box h2 {
    color: var(--primary-blue);
    font-size: 2rem;
}
.text-side {
    flex: 1;
}
.text-side h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* قسم نشاطاتنا - تصنيف 5 */
.activities-section {
    padding: 80px 8%;
    background: var(--light-gray);
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

/* ==========================================================================
   التطابق النهائي الشامل والمصحح بالمليمتر
   ========================================================================== */

/* 1. ضبط أبعاد ومحاذاة الخريطة لتتوازى بالمليمتر مع صندوق الرسالة */
@media (min-width: 768px) {
    .contact-popup-form .info-side {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* تم تصحيح القيمة البرمجية هنا */
    }
    
    /* جعل الخريطة تبدأ وتنتهي تماماً مع صندوق الرسالة المقابل */
    .contact-popup-form .map-wrapper-flexible {
        flex-grow: 1 !important;
        height: 190px !important; /* الارتفاع المثالي لموازاة حقل الرسالة */
        margin-top: auto !important;
        margin-bottom: 50px !important; /* ترك مساحة موازية لزر إرسال */
    }
}

/* 2. تنسيق حقول الإدخال وإضافة الأيقونات الخلفية (المستخدم، البريد، الهاتف، الرسالة) */
.contact-popup-form .frm_form_field input[type="text"],
.contact-popup-form .frm_form_field input[type="email"],
.contact-popup-form .frm_form_field textarea {
    background-color: #F8FAFC !important; /* خلفية رمادية ناعمة */
    color: #1F2937 !important;
    border: 1px solid #CBD5E1 !important; /* حدود رمادية نحيفة */
    border-radius: 14px !important; /* زوايا دائرية */
    padding: 14px 45px 14px 16px !important; /* مساحة للأيقونة على اليمين */
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-repeat: no-repeat !important;
    background-position: calc(100% - 15px) center !important;
    background-size: 18px !important;
}

/* 3. حقن الأيقونات الاحترافية داخل الحقول مباشرة عبر روابط SVG ناعمة ونظيفة */
.contact-popup-form .frm_form_field input[name*="name"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z' /%3E%3C/svg%3E") !important;
}

.contact-popup-form .frm_form_field input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 002-2H5a2 2 0 00-2 2v10a2 2 0 002 2z' /%3E%3C/svg%3E") !important;
}

.contact-popup-form .frm_form_field input[name*="phone"],
.contact-popup-form .frm_form_field input[type="text"][placeholder*="هاتف"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.94.725l.548 2.2a1 1 0 01-.321.988l-1.305.98a10.582 10.582 0 004.872 4.872l.98-1.305a1 1 0 01.988-.321l2.2.548a1 1 0 01.725.94V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z' /%3E%3C/svg%3E") !important;
}

.contact-popup-form .frm_form_field textarea {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z' /%3E%3C/svg%3E") !important;
    background-position: calc(100% - 15px) 15px !important;
    min-height: 180px !important;
    max-height: 180px !important;
    resize: none !important;
}

/* 4. الإبادة الفورية المطلقة للمربع الأبيض والكتابة المزعجة */
.frm_blank_field, 
[class*="frm_blank_field"], 
.frm_hidden,
#contactPopup div[class*="blank_field"],
#contactPopup .frm_form_fields > div:last-child {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* 5. تنسيق زر الإرسال الأزرق العريض الدائري في الأسفل */
.contact-popup-form .frm_submit {
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin-top: 20px !important;
}
.contact-popup-form .frm_submit input[type="submit"],
.contact-popup-form .frm_submit button {
    background-color: #0052CC !important;
    color: #FFFFFF !important;
    padding: 14px 50px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-block !important;
}
/* التجاوب التام والـ Responsive عالي الأداء */
@media (max-width: 992px) {
    .features-layout { flex-direction: column-reverse; }
    .hero-container h1 { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .site-header { flex-direction: column; gap: 15px; }
    .main-navigation ul { gap: 15px; }
    .hero-slider-section { padding-top: 60px; text-align: center; }
    .btn-secondary { margin-right: 0; margin-top: 10px; }
}
/* ==========================================================================
   تأثير اللمعة المتحركة الذكية للشعار (Dynamic Logo Shine Effect)
   ========================================================================== */

/* تهيئة حاوية الشعار لتسمح بمرور تأثير الضوء من فوقها */
.logo a {
    position: relative;
    display: inline-block;
    overflow: hidden; /* إخفاء اللمعة عندما تكون خارج حدود الشعار */
}

/* بناء شريط الإضاءة المائل باستخدام العنصر الوهمي Before */
.logo a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* تبدأ الحركة من خارج الشعار من جهة اليسار */
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0) 100%
    ); /* لمعة بيضاء ناعمة */
    transform: skewX(-25deg); /* إمالة اللمعة لتبدو احترافية */
    pointer-events: none; /* ضمان عدم إعاقة النقر على الشعار */
    z-index: 15;
    
    /* تشغيل الأنيميشن بشكل مستمر كل 4 ثوانٍ بحركة سلسة */
    animation: global-logo-shine 4s infinite ease-in-out;
}

/* --------------------------------------------------------------------------
   تغيير لون اللمعة عند النزول (عندما تصبح خلفية الهيدر زرقاء والشعار أبيض)
   -------------------------------------------------------------------------- */
.site-header.scrolled .logo a::before {
    background: linear-gradient(
        90deg,
        rgba(0, 188, 212, 0) 0%,
        rgba(0, 230, 246, 0.6) 50., /* لمعة بلون السيان المضيء لكي تظهر فوق الشعار الأبيض */
        rgba(0, 188, 212, 0) 100%
    );
    animation: global-logo-shine 3.5s infinite ease-in-out; /* حركة أسرع قليلاً عند التثبيت */
}

/* --------------------------------------------------------------------------
   رسم مسار حركة اللمعة (Animation Keyframes)
   -------------------------------------------------------------------------- */
@keyframes global-logo-shine {
    0% {
        left: -150%; /* نقطة البداية خارج الشعار يساراً */
    }
    30% {
        left: 150%; /* تمر اللمعة بسرعة البرق عبر الشعار إلى اليمين */
    }
    100% {
        left: 150%; /* فترة توقف (Pause) مؤقتة قبل البدء من جديد لراحة العين */
    }
}
/* ==========================================================================
   نظام الخطوط الثلاثة لشاشات الموبايل (Responsive Hamburger Menu)
   ========================================================================== */

/* إعدادات الزر الافتراضية (مخفي تماماً في شاشات الكمبيوتر والديسكتوب) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10020;
    grid-column: 3; /* يتمركز في الجهة المقابلة للشعار تلقائياً */
    justify-self: end;
}

/* رسم الخطوط الثلاثة */
.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue); /* اللون الافتراضي كحلي */
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.4s ease;
}

/* عندما ينزل المستخدم وتصبح الخلفية زرقاء، تتحول الخطوط للون الأبيض */
.site-header.scrolled .menu-toggle span {
    background-color: #002244 !important; /* استبدل #002244 بلونك الكحلي الخاص */
}

/* تأثير تحويل الخطوط الثلاثة إلى علامة (X) عند تفعيل القائمة */
.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
    opacity: 0; /* إخفاء الخط الأوسط */
}
.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* ==========================================================================
   قواعد التجاوب عند تصغير الشاشة (طول وعرض الموبايل والتابلت)
   ========================================================================== */
@media (max-width: 768px) {
    .site-header {
        display: flex !important; /* إلغاء الـ Grid والتحويل لـ Flex لسهولة التوزيع */
        justify-content: space-between;
        align-items: center;
        height: 75px !important;
        padding: 0 5% !important;
    }

    /* إظهار زر الخطوط الثلاثة فوراً عند تصغير الشاشة */
    .menu-toggle {
        display: flex;
    }

    /* إخفاء القائمة العادية وتحويلها لقائمة منسدلة عمودية محاطة بالأمان */
    .main-navigation {
        display: block;
        position: absolute;
        top: 100%; /* تفتح مباشرة أسفل شريط الهيدر */
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        padding: 20px 0;
        
        /* تفعيل تأثير الاختفاء والظهور الناعم */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s ease-in-out;
    }

    /* الفتح النشط للقائمة عند النقر على الخطوط */
    .main-navigation.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* ترتيب روابط القائمة بشكل عمودي متناسق في الموبايل */
    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-navigation a {
        display: block;
        padding: 10px 0;
    }

    /* إذا فتحت القائمة أثناء وضع النزول (الخلفية الزرقاء) تصبح خلفية المنسدلة زرقاء أيضاً */
    .site-header.scrolled .main-navigation {
        background: var(--primary-blue);
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

* ==========================================================================
   6. تنسيق قسم شركاؤنا والشريط المتحرك (Infinite Logos Marquee)
   ========================================================================== */

.partners-section {
    padding: 60px 0;
    background-color: #ffffff; /* خلفية بيضاء نقية لفصلها عن الفوتر الرمادي */
    border-top: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

/* تنسيق العنوان الرئيسي للشركاء */
.partners-title-box {
    text-align: center;
    margin-bottom: 40px;
}

.partners-title-box h2 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

/* الخط الذهبي الزخرفي أسفل العنوان */
.partners-title-box .title-line {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* إعدادات مسار الشريط المتحرك */
.partners-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 15px 0;
    direction: ltr; /* توحيد اتجاه حركة التمرير ثنائي الأبعاد برمجياً لجميع المتصفحات */
}

/* تأثير التلاشي الضوئي على الجوانب لجعل الحركة تظهر وتختفي بنعومة */
.partners-marquee-wrapper::before,
.partners-marquee-wrapper::after {
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}
.partners-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}
.partners-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* الحاوية الداخلية الديناميكية للشعارات */
.partners-track {
    display: flex;
    width: max-content;
    gap: 60px; /* المسافة الفاصلة بين كل شعار والآخر */
    animation: scrollLogosLoop 25s linear infinite; /* 25 ثانية لسرعة حركة متزنة وراقية */
}

/* إيقاف الحركة مؤقتاً عند تمرير الماوس فوق الشريط لإتاحة التركيز للمستخدم */
.partners-track:hover {
    animation-play-state: paused;
}

/* تنسيق عنصر الشعار الفردي */
.partner-logo-item {
    width: 160px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%); /* تحويل الشعارات للرمادي لتبدو متجانسة كلياً مع هوية الموقع */
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* إعادة الألوان الطبيعية ووضوح الصورة الكامل عند تمرير الماوس فوق لوجو معين */
.partner-logo-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* الجداول الحركية الرياضية للشريط اللانهائي */
@keyframes scrollLogosLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        /* الانتقال الدقيق بنسبة -50% يجعل الشريط يقفز لبداية المجموعة المكررة لحظياً دون ملاحظة المستخدم */
        transform: translateX(-50%);
    }
}

/* ملاءمة الشاشات الصغيرة والهواتف */
@media (max-width: 768px) {
    .partners-section { padding: 40px 0; }
    .partner-logo-item { width: 120px; height: 55px; }
    .partners-track { gap: 35px; }
    .partners-marquee-wrapper::before, .partners-marquee-wrapper::after { width: 60px; }
}

/* ==========================================================================
   تنسيق وتوازن كروت النشاطات وتأثير الـ Hover الاحترافي
   ========================================================================== */

/* 1. شبكة العرض: تضمن تمدد الكروت بشكل متساوٍ تماماً في الارتفاع */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch; /* سحر الـ CSS: يجعل كل الكروت بنفس الارتفاع تلقائياً */
}

/* 2. تصميم الكرت نفسه */
.activities-section .solution-card {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 25px !important;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* حركة الكرت بالكامل عند التأشير */
.activities-section .solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
}

/* 3. حاوية الصورة الثابتة والموزونة */
.card-image-wrapper {
    width: 100%;
    height: 210px; /* الارتفاع القياسي الموحد لكل الصور في الموقع */
    border-radius: 8px;
    overflow: hidden; /* ضروري جداً لقص أطراف الصورة أثناء تكبيرها بالداخل */
    margin-bottom: 15px;
    position: relative;
    background: #f7f7f7;
}

/* 4. ضبط وتوسيط الصورة بنسبة 100% دون أي تمطيط */
.card-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* إجبار الصورة على ملء المربع وتوسيط محتواها بذكاء */
    object-position: center !important; /* تمركز الصورة في المنتصف تماماً */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease !important;
    display: block;
}

/* 5. التأثير المطلوب: تكبير الصورة وتمويهها عند تمرير الماوس على الكرت */
.activities-section .solution-card:hover .card-image-wrapper img {
    transform: scale(1.12) !important; /* تكبير انسيابي بنسبة 12% */
    filter: blur(4px) !important; /* تمويه الصورة بشكل ضبابي ناعم وأنيق */
}

/* 6. تحسين هوامش النصوص أسفل الصورة الموحدة */
.activities-section .solution-card h3 {
    font-size: 18px;
    color: #060c22;
    margin: 15px 0 8px 0 !important;
    font-weight: bold;
}

.activities-section .solution-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}
/* ==========================================================================
 /* 1. تمديد الخلفية الكحلية ومنع زحفها لليسار */
footer, 
#colophon, 
.site-footer-wrapper,
.site-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    /* التعديل الذكي للمواقع العربية: التوسيط عبر التصفير والـ margin التلقائي */
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    background-color: #0b1528 !important;
    box-sizing: border-box !important;
    clear: both !important;
}

/* 2. ضبط الحاوية الداخلية لتكون موازية تماماً للسلايدر والهيدر */
.footer-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 50px 8% 50px 8% !important; /* مسافة 8% الجانبية للمحاذاة التامة */
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important; /* الـ flex سيتكيف تلقائياً مع اتجاه الموقع RTL */
    justify-content: space-between !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    box-sizing: border-box !important;
}

/* 3. ترتيب الأعمدة بالداخل */
.footer-container > div,
.footer-container > section {
    flex: 1 1 250px !important;
    min-width: 200px !important;
}
/* 3. تأمين ظهور الأعمدة (اتصل بنا، اللوجو، الأقسام) بشكل مرتب */
.footer-container > div,
.footer-container > section {
    flex: 1 1 250px !important; /* توزيع مرن للأعمدة يمنع تداخلها */
    min-width: 200px !important;
}
/* 3. تنسيق الأعمدة الثلاثة */
.footer-column {
    flex: 1;
    min-width: 250px;
    color: #ffffff;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    font-weight: bold;
}
/* خط ديكور أسفل العناوين الجانبية */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #00c49f; /* اللون الأخضر التقني الخاص بأزرارك */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li, .footer-column p {
    font-size: 14.5px;
    color: #b0b7c5;
    line-height: 2;
    margin-bottom: 8px;
}
.footer-column ul li a {
    color: #b0b7c5;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column ul li a:hover {
    color: #00c49f;
}

/* 4. عمود المنتصف (الشعار والشركات) */
.logo-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-logo {
    height: 55px;
    margin-bottom: 15px;
}
.footer-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.logo-col h4 {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 20px;
}

/* 5. تصميم أزرار السوشال ميديا الحركية الاحترافية */
.footer-social-media {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 5px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.social-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff; /* لون الأيقونة أبيض افتراضياً */
    transition: fill 0.4s ease;
}

/* تأثير مرور الماوس: يتغير لون الخلفية وتتحرك للأعلى قليلاً */
.social-btn:hover {
    transform: translateY(-4px);
}
.social-btn.facebook:hover { background: #1877f2; }
.social-btn.linkedin:hover { background: #0077b5; }
.social-btn.whatsapp:hover { background: #25d366; }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* 6. شريط الحقوق السفلي الممتد */
.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    background: #070e1b;
}
.footer-bottom p {
    font-size: 13px;
    color: #798394;
    margin: 0;
}

/* 7. التوافق التام مع شاشات الموبايل */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px 30px 20px !important;
    }
    .footer-column h3::after {
        right: 50%;
        transform: translateX(50%); /* توسيط الخط تحت العنوان في الموبايل */
    }
    .logo-col { order: -1; } /* إبراز اللوجو في الأعلى دائماً على الموبايل */
}

/* تفعيل التمرير الانسيابي للموقع بالكامل */
html {
    scroll-behavior: smooth;
}

/* مسافة أمان علوية للأقسام عند القفز إليها حتى لا يغطيها الهيدر الثابت */
#cat-1, #news-section {
    scroll-margin-top: 90px; /* قم بتعديل هذا الرقم ليطابق ارتفاع الهيدر الخاص بموقعك */
}

/* تنسيق رسالة النجاح لـ Contact Form 7 و Elementor ومعظم الإضافات */
.wpcf7-response-output.wpcf7-mail-sent-ok,
.elementor-message-success,
.gform_confirmation_message {
    background-color: rgba(0, 191, 165, 0.1) !important; /* خلفية شفافة باللون الزمردي الخاص بالشركة */
    border: 2px solid #00bfa5 !important; /* إطار باللون الزمردي */
    color: #00bfa5 !important; /* لون النص أخضر زمردي واضح */
    padding: 15px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-top: 20px !important;
    direction: rtl !important;
    box-sizing: border-box !important;
}
/* ==========================================================================
   تنسيق مخصص لحقول إضافة Formidable Forms داخل الـ Popup
   ========================================================================== */
.formidable-custom-style .frm_form_fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* تنسيق حقول الإدخال والنصوص (Inputs & Textarea) */
.formidable-custom-style input[type=text],
.formidable-custom-style input[type=email],
.formidable-custom-style input[type=tel],
.formidable-custom-style textarea {
    width: 100% !important;
    background-color: rgba(17, 24, 39, 0.6) !important; /* لون داكن متناسق مع الفوتر */
    border: 1px solid rgba(75, 85, 99, 0.4) !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
    text-align: right !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

/* تأثير التركيز عند الكتابة داخل الحقل */
.formidable-custom-style input:focus,
.formidable-custom-style textarea:focus {
    border-color: #10b981 !important; /* اللون الأخضر للبراند */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* تنسيق العناوين الصغيرة فوق الحقول (Labels) */
.formidable-custom-style .frm_primary_label {
    color: #d1d5db !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* تنسيق زر الإرسال الخاص بالإضافة ليصبح متناسقاً */
.formidable-custom-style .frm_submit input[type=submit] {
    width: 100% !important;
    background-color: #10b981 !important; /* اللون الأخضر المعتمد */
    color: #ffffff !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
}

.formidable-custom-style .frm_submit input[type=submit]:hover {
    background-color: #059669 !important; /* درجة أغمق عند التمرير */
    transform: translateY(-1px) !important;
}

/* إخفاء رسائل الخطأ الافتراضية المزعجة وتجميلها */
.formidable-custom-style .frm_error {
    color: #ef4444 !important;
    font-size: 0.75rem !important;
    margin-top: 4px !important;
}
/* تأثير دوران أيقونات التواصل الاجتماعي 360 درجة بسلاسة عند تمرير الماوس */
.custom-rotate {
    display: inline-block !important; /* ضروري لكي يتم تطبيق مصفوفة الدوران بنجاح */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease !important;
}

.custom-rotate:hover {
    transform: rotate(360deg) !important;
}

/* إخفاء حقل حماية الهونيبوت لمنع ظهوره للمستخدمين */
.frm_blank_field {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* لضمان التغطية الكاملة دون تشويه */
    transform: translate(-50%, -50%);
    z-index: 0;
}
.text-slider-wrapper {
    position: relative;
    height: 120px; /* مساحة ثابتة لمنع قفز الزر */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.changing-text {
    position: absolute; /* هذا هو السر: كلاهما يبدأ من نفس النقطة */
    width: 100%;
    margin: 0;
    opacity: 0;
    visibility: hidden; /* إخفاء العنصر تماماً عن المتصفح */
    animation: fadeSequence 60s infinite;
    text-align: center;
}

/* التوقيت */
.changing-text:nth-child(1) { animation-delay: 90s; }
.changing-text:nth-child(2) { animation-delay: 90s; }

@keyframes fadeSequence {
    /* النص النشط */
    5%, 45% { 
        opacity: 1; 
        visibility: visible; 
        transform: translateY(0); 
    }
    /* النص غير النشط (يختفي تماماً) */
    0%, 2%, 50%, 100% { 
        opacity: 0; 
        visibility: hidden; 
        transform: translateY(10px); 
    }
}
/* ضبط المسافات الخارجية للقسم لمنع الفراغات الكبيرة */
.services-triangle-section {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* إلغاء الفراغات الإضافية التي قد تسببها الحاويات الداخلية */
.services-triangle-section > .bg-white {
    margin-top: 0 !important;
    padding-top: 24px !important; /* مسافة داخلية متناسقة ومريحة للعين */
}