/* 1. الإعدادات العامة (Reset & Base) */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        html[dir="ltr"] body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            text-align: left;
        }

        html[dir="rtl"] body {
            font-family: 'Cairo', sans-serif;
            text-align: right;
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            transition: background-color 0.4s ease, color 0.4s ease;
        }

        .container {
            max-width: 1500px;
            margin: 0 auto;
            padding: 0 40px;
        }

        /* متغيرات الألوان الأصلية */
        :root {
            --primary-dark: #08121e; 
            --primary-yellow: #edb200;
            
            --bg-main: #fcfcfc;      
            --bg-card: #ffffff;      
            --text-main: #333333;    
            --text-gray: #555555;    
            --border-color: #e2e8f0; 
        }

        /* ========================================== */
        /* 2. الشريط العلوي (Navbar) الأبيض */
        /* ========================================== */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 50px;
            background-color: #ffffff; /* تم إعادته للأبيض */
            border-bottom: 1px solid #e2e8f0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.05);
            position: sticky;
            top: 0;
            z-index: 110;
            width: 100%;
        }

        .logo img { 
            height: 55px;
            object-fit: contain;
            display: block;
        }

        .nav-links {
            display: flex;
            gap: 25px;
            list-style: none;
            align-items: center;
            margin: 0;
            padding: 0;
        }

        .nav-links a {
            text-decoration: none;
            color: #08121e; /* النص بلون داكن ليتناسب مع الخلفية البيضاء */
            font-weight: 600;
            font-size: 14.5px;
            transition: color 0.3s ease;
        }

        .nav-links a.active, .nav-links a:hover { 
            color: #edb200; 
        }

        .lang-btn {
            background-color: transparent;
            border: 1px solid #08121e;
            color: #08121e;
            padding: 5px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .lang-btn:hover {
            background-color: #08121e;
            color: #ffffff;
        }

        .user-action {
            background-color: #08121e; 
            padding: 10px 18px;
            border-radius: 20px;
            text-decoration: none;
            color: #ffffff;
            font-size: 13.5px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            transition: 0.3s;
            border: 1px solid transparent;
        }
        .user-action:hover {
            background-color: #edb200;
            color: #08121e;
        }
        .user-action:hover i {
            color: #08121e !important;
        }

        /* ========================================== */
        /* 3. تأثير الانتقال بين الصفحات (SPA Transition) */
        /* ========================================== */
        .page-view {
            animation: fadeView 0.5s ease-out forwards;
        }

        @keyframes fadeView {
            0% { opacity: 0; transform: translateY(15px); }
            100% { opacity: 1; transform: translateY(0); }
        }

        /* ========================================== */
        /* 4. تنسيقات الصفحة الرئيسية (Home) */
        /* ========================================== */
        .hero {
            position: relative;
            background-image: linear-gradient(to right, rgba(8, 18, 30, 0.9) 0%, rgba(8, 18, 30, 0.4) 50%, rgba(8, 18, 30, 0.8) 100%), url('../PICS/HERO%20SECTION.png');
            background-size: cover;
            background-position: center;
            min-height: 93vh; 
            display: flex;
            align-items: center;
            padding: 0 50px;
            color: #ffffff;
            overflow: hidden;
        }

        html[dir="rtl"] .hero {
            background-image: linear-gradient(to left, rgba(8, 18, 30, 0.9) 0%, rgba(8, 18, 30, 0.4) 50%, rgba(8, 18, 30, 0.8) 100%), url('../PICS/HERO%20SECTION.png') !important;
        }

        .hero-bottom-wrapper {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            z-index: 10;
        }

        .hero-services-row {
            display: flex;
            grid-template-columns: repeat(6, 1fr);
            background-color: rgba(13, 27, 42, 0.85); 
            border-top: 1px solid rgba(255,255,255,0.1);
            flex-wrap: wrap; /* حتى تنزل العناصر لسطر جديد بالشاشات الصغيرة */
            width: 100%;
        }

        .hero-srv-item {
            padding: 12px 10px; 
            text-align: center;
            border-right: 1px solid rgba(255,255,255,0.05);
            color: #fff;
            transition: 0.3s;
            cursor: pointer;
            flex: 1;
            text-align: center;
            min-width: 150px;
        }
        .hero-srv-item:last-child { border-right: none; }
        .hero-srv-item:hover { background-color: rgba(255,255,255,0.08); transform: translateY(-5px); }
        .hero-srv-item i { font-size: 22px; margin-bottom:6px; } 
        .hero-srv-item h4 { font-size: 13px !important; font-weight: 700; margin-bottom: 2px !important; line-height: 1.3; } 
        .hero-srv-item p { font-size: 11px; color: #aab4c5; line-height: 1.4; margin: 0; opacity: 0.9; }

        .icon-blue { color: #4db8ff; }
        .icon-green { color: #2ecc71; }
        .icon-yellow { color: #f1c40f; }
        .icon-purple { color: #9b59b6; }
        .icon-orange { color: #e67e22; }
        .icon-red { color: #e74c3c; }

        .hero-stats-row {
            background-color: #363b4a; 
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            padding: 1px 50px !important;
            align-items: center; /* إجبار العناصر على التمركز عمودياً */
            min-height: 40px; /* تحديد ارتفاع مناسب وأنيق */
        }

        .hero-stat-item {
            display: flex;
            align-items: center;
            gap: 15px;
            color: #fff;
            padding: 10px;
        }
        .hero-stat-item i { font-size: 32px; color: #aab4c5; }
        .stat-info { text-align: left; }
        html[dir="rtl"] .stat-info { text-align: right; }
        
        .stat-info h3 { font-size: 20px; color: #edb200; font-weight: 700; margin: 0 0 2px 0; }
        .stat-info p { font-size: 11px; color: #aab4c5; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }

        @media (max-width: 1200px) {
            .hero-services-row { grid-template-columns: repeat(3, 1fr); }
            .hero-bottom-wrapper { position: relative; } 
        }
        @media (max-width: 768px) {
            .hero-services-row { grid-template-columns: repeat(2, 1fr); }
            .hero-stats-row { justify-content: flex-start; gap: 20px; }
            .hero-stat-item { width: 45%; }
        }

        .hero-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            flex-wrap: wrap;
            gap: 40px;
        }

        .hero-text {
            flex: 1;
            min-width: 300px;
            max-width: 500px;
        }

        .hero-text h4 { font-size: 16px; font-weight: 400; margin-bottom: 15px; }
        .hero-text h1 { font-size: 42px; font-weight: bold; margin-bottom: 20px; line-height: 1.2; }
        .hero-text h1 span { color: #edb200; }
        .hero-text p { font-size: 15px; margin-bottom: 30px; color: #e0e0e0; }

        .btn-primary {
            background-color: #edb200;
            color: #2c3e50;
            border: none;
            padding: 12px 25px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 5px;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            transition: background 0.3s ease;
        }
        .btn-primary:hover { background-color: #cda40f; }

        .hero-logos {
            flex: 1.2;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 40px;
            align-items: flex-end;
            max-width: 600px;
        }

        .logo-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            width: 100%;
        }

        .logo-group h5 { 
            font-size: 20px;
            font-weight: 400; 
            margin-bottom: 15px; 
            color: #d1d1d1; 
        }

        .logos-wrapper {
            overflow: hidden;
            width: 100%;
            position: relative;
            cursor: grab;
        }
        .logos-wrapper:active { cursor: grabbing; }

        .logos-track {
            display: flex;
            gap: 30px;
            width: max-content;
        }

        .logos-track img {
            height: 55px;
            max-width: 120px;
            object-fit: contain;
            filter: brightness(0) invert(1);
            opacity: 0.8;
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none;
        }

        .logos-track img:hover { 
            opacity: 1;
            transform: scale(1.1); 
        }

        /* ========================================== */
        /* تنسيقات قسم الاستدامة (Sustainability) */
        /* ========================================== */
        .sustainability-section {
            background-color: #ffffff;
            padding: 60px 50px;
            border-radius: 25px; 
            box-shadow: 0 10px 35px rgba(0,0,0,0.04);
            border: 3px solid var(--primary-yellow); 
            max-width: 95%; 
            margin: 0 auto; 
        }

        .sustainability-header { text-align: center; margin-bottom: 50px; }
        .sustainability-header h2 { font-size: 36px; color: var(--primary-dark); font-weight: 700; margin-bottom: 10px; }
        .sustainability-header p { color: var(--primary-yellow); font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }

        .sustainability-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
        .sustainability-text p { color: var(--text-gray); line-height: 1.8; margin-bottom: 20px; text-align: justify; font-size: 15px; }

        .sustainability-diagram {
            background-color: #f8f9fa;
            padding: 40px;
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .diagram-item { display: flex; align-items: center; gap: 25px; position: relative; z-index: 2; }
        .diagram-icon {
            width: 65px; height: 65px; background-color: var(--primary-dark); color: var(--primary-yellow);
            border-radius: 50%; display: flex; justify-content: center; align-items: center;
            font-size: 26px; box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2); flex-shrink: 0;
        }
        .diagram-content h4 { color: var(--primary-dark); font-size: 19px; margin-bottom: 8px; font-weight: 700; }
        .diagram-content p { color: #666; font-size: 14px; line-height: 1.6; margin: 0; }
        .diagram-line { width: 3px; height: 40px; background-color: #e2e8f0; margin-left: 31px; }
        html[dir="rtl"] .diagram-line { margin-left: 0; margin-right: 31px; }

        @media (max-width: 900px) {
            .sustainability-section { padding: 40px 20px; }
            .sustainability-layout { grid-template-columns: 1fr; gap: 40px; }
            .sustainability-diagram { padding: 30px 20px; }
            .vision-goals-grid { grid-template-columns: 1fr !important; gap: 25px !important; }
        }

        /* --- الشهادات (Certificates) --- */
        .certificates-container {
            display: grid;
            grid-template-columns: 1fr 1.5fr;
            gap: 50px;
            align-items: center;
            margin: 80px 0;
        }
        .cert-text h2 { font-size: 28px; margin-bottom: 20px; color: #08121e; }
        .cert-text h2 span { color: #edb200; }
        .cert-text p { text-align: justify; color: #555; }
        .cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: center; }
        .cert-item { display: flex; flex-direction: column; align-items: center; }
        .cert-item img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 15px; }
        .cert-item h4 { font-size: 18px; margin-bottom: 10px; color: #2c3e50; }
        .cert-item p { font-size: 12px; color: #666; }

        /* --- الأقسام (Departments Grid) بتصميم حديث --- */
        .departments-section {
            padding: 80px 50px;
            background-color: #f8fafc;
            border-radius: 30px;
            margin: 0 auto 80px;
            max-width: 1500px;
        }

        .departments-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .departments-header span {
            color: #edb200;
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: block;
            margin-bottom: 10px;
        }

        .departments-header h2 {
            font-size: 42px;
            color: var(--primary-dark);
            font-weight: 700;
        }

        .departments-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 30px;
        }
        @media (max-width: 1200px) { .departments-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 768px) { .departments-grid { grid-template-columns: 1fr; } }

        .department-card {
            text-decoration: none;
            background: #fff;
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: all .4s ease;
            display: block;
            border: 1px solid #e2e8f0;
            cursor: pointer;
        }

        .department-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 20px 45px rgba(0,0,0,0.15);
            border-color: #edb200;
        }

        .department-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }

        .card-body { padding: 30px; }
        .card-body h3 { color: #0a2342; font-size: 22px; margin-bottom: 15px; font-weight: 700; }
        .card-body p { color: #666; line-height: 1.8; margin-bottom: 20px; font-size: 14px; }
        .department-card::after { display: block; padding: 0 30px 30px; color: #edb200; font-weight: 700; }

        /* ========================================== */
        /* 5. تنسيقات صفحة حول (About Us) */
        /* ========================================== */
        .page-content { padding-top: 60px; padding-bottom: 80px; }
        .page-title { text-align: left; font-size: 37px; font-weight: 700; color: var(--primary-dark); margin-bottom: 60px; }
        html[dir="rtl"] .page-title { text-align: right; }

        
        
       

        .btn-profile {
            background-color: #3b4559; color: #ffffff; padding: 10px 25px; border: none; border-radius: 4px;
            cursor: pointer; font-size: 14px; font-weight: 500; float: inline-end; transition: background 0.3s ease;
        }
        .btn-profile:hover { background-color:#edb200; color: #08121e; }

        .vision-goals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; margin-bottom: 80px; }
        .card-box { background-color: #ffffff; padding: 45px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: 0.4s ease; border: 1px solid #e2e8f0; }
        .card-box:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
        .card-box h3 { font-size: 24px; color: var(--primary-dark); margin-bottom: 15px; font-weight: 600; }
        .card-box p, .card-box li { color: var(--text-gray); font-size: 15px; text-align: justify; }
        .inner-divider { border: 0; border-top: 1px solid #eaeaea; margin: 30px 0; }

        html[dir="ltr"] .card-box ul { padding-left: 20px; }
        html[dir="rtl"] .card-box ul { padding-right: 20px; }
        .card-box li { margin-bottom: 15px; }
        .card-box li strong { color: var(--primary-dark); }

        .board-header { text-align: center; margin-top: 20px; margin-bottom: 40px; }
        .board-title { font-size: 36px; color: var(--primary-dark); font-weight: 400; line-height: 1.4; max-width: 1200px; margin: 0 auto; }
        .board-title strong { font-weight: 700; }

        @media (max-width: 900px) { .board-title { font-size: 26px; padding: 0 15px; } }

        .director-card { background-color: #ffffff; padding: 50px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); margin-bottom: 60px; border: 1px solid #e2e8f0; }
        .director-card h2 { font-size: 26px; color: var(--primary-dark); margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eaeaea; }
        .director-card p { color: var(--text-gray); margin-bottom: 15px; text-align: justify; }
        .director_title {text-align: justify;}

        /* التجاوب */
        @media (max-width: 900px) {
            .hero-container, .certificates-container { flex-direction: column; text-align: center; grid-template-columns: 1fr; }
            .cert-grid { grid-template-columns: 1fr; }
            .hero-logos { align-items: center; }
            .navbar {gap: 15px; padding: 15px 20px;}
            .nav-links { flex-wrap: wrap; justify-content: center; }
            
            
            .btn-profile { float: none; display: block; margin: 20px auto 0; }
            .container { padding: 0 20px; }
            .departments-section { padding: 40px 20px; }
        }

        /* ========================================== */
        /* 6. تنسيقات صفحة السياسات (Policies) */
        /* ========================================== */
        .policies-layout { display: flex; gap: 50px; align-items: flex-start; margin-top: 20px; }
        .policy-sidebar { flex: 0 0 320px; background: #ffffff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); position: sticky; top: 120px; border: 1px solid #e2e8f0; }
        .policy-sidebar button { display: block; width: 100%; text-align: left; padding: 16px 20px; background: transparent; border: none; border-bottom: 1px solid #f1f3f5; font-size: 15px; font-weight: 600; color: var(--text-gray); cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
        html[dir="rtl"] .policy-sidebar button { text-align: right; }
        .policy-sidebar button:last-child { border-bottom: none; }
        .policy-sidebar button:hover, .policy-sidebar button.active { color: var(--primary-dark); background: #fdfdfd; border-left: 4px solid var(--primary-yellow); }
        html[dir="rtl"] .policy-sidebar button:hover, html[dir="rtl"] .policy-sidebar button.active { border-left: none; border-right: 4px solid var(--primary-yellow); }

        .policy-content { flex: 1; background: #ffffff; padding: 50px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); border: 1px solid #e2e8f0; }
        .policy-content h2 { color: var(--primary-dark); font-size: 28px; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f1f3f5; }
        .policy-content h3 { color: var(--primary-dark); font-size: 18px; margin-top: 30px; margin-bottom: 15px; text-transform: uppercase; }
        .policy-content p { color: var(--text-gray); line-height: 1.8; margin-bottom: 15px; text-align: justify; font-size: 15px; }
        .policy-content ul { padding-left: 25px; margin-bottom: 20px; }
        html[dir="rtl"] .policy-content ul { padding-left: 0; padding-right: 25px; }
        .policy-content li { color: var(--text-gray); margin-bottom: 10px; line-height: 1.6; font-size: 15px; }

        @media (max-width: 900px) {
            .policies-layout { flex-direction: column; }
            .policy-sidebar { flex: auto; width: 100%; position: relative; top: 0; }
            .policy-content { padding: 30px; }
        }

       /* تنسيقات شبكة الأخبار */
    .blogs-split-layout { display: flex; gap: 40px; align-items: flex-start; margin-top: 30px; }
    .blogs-sidebar { 
        flex: 0 0 320px; 
        background: #ffffff; 
        border-radius: 12px; 
        box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
        padding: 15px 0; 
        overflow-y: auto; 
        border: 1px solid #f1f5f9; 
        /* خصائص التثبيت */
        position: sticky; 
        top: 100px; 
        max-height: calc(100vh - 120px); 
    }
    .blog-list-item { padding: 18px 25px; cursor: pointer; border-left: 4px solid transparent; border-bottom: 1px solid #f8fafc; transition: all 0.3s ease; }
    .blog-list-item:hover, .blog-list-item.active { background: #f8fafc; border-left-color: #ffc107; }
    .blog-list-item.active .blog-list-title { color: #ffc107; }
    .blog-list-title { font-weight: 700; font-size: 16px; color: #1e293b; margin-bottom: 6px; line-height: 1.4; }
    .blog-list-date { font-size: 13px; color: #94a3b8; }
    .blogs-main-content { flex: 1; background: #ffffff; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); padding: 40px; border: 1px solid #f1f5f9; }
    .blog-detail-image { width: 100%; 
    max-height: 500px; /* زيادة الطول قليلاً ليتسع للصور الطولية */
    object-fit: contain; /* 👈 هذا هو الحل: يعرض الصورة بالكامل دون أي قص */
    background-color: #f8fafc; /* لون خلفية خفيف في حال كانت الصورة لا تملأ العرض */
    border-radius: 8px; 
    margin-bottom: 30px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);}
    .blog-detail-header { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
    .blog-detail-title { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 15px; }
    .blog-meta-info { display: flex; gap: 25px; color: #64748b; font-size: 15px; font-weight: 500; }
    .blog-meta-info i { color: #ffc107; margin-right: 8px; }
    .blog-detail-text { color: #475569; line-height: 1.9; font-size: 17px; }

    /* توافقية شاشات الموبايل لشبكة الأخبار */
    /* زر العودة لقائمة الإعلانات (مخفي في الديسكتوب) */
    .back-to-blogs-btn { display: none; background: transparent; border: 1px solid #e2e8f0; padding: 8px 15px; border-radius: 6px; font-weight: bold; color: #0f172a; cursor: pointer; margin-bottom: 20px; transition: 0.3s; font-family: inherit; }
    .back-to-blogs-btn:hover { background: #f1f5f9; }
    html[dir="rtl"] .back-to-blogs-btn i { transform: scaleX(-1); }

    /* توافقية شاشات الموبايل لشبكة الأخبار */
    @media (max-width: 991px) {
        .blogs-split-layout { flex-direction: column; }
        .blogs-sidebar { width: 100%; flex: auto; max-height: none; }
        
        /* إخفاء محتوى الإعلان في الموبايل لتبقى القائمة فقط */
        .blogs-main-content { display: none; padding: 25px; }
        .back-to-blogs-btn { display: inline-flex; align-items: center; gap: 8px; }
        
        /* الكلاسات التي تتفعل عند الضغط على إعلان في الموبايل */
        .blogs-split-layout.mobile-blog-open .blogs-sidebar { display: none; }
        .blogs-split-layout.mobile-blog-open .blogs-main-content { display: block; animation: fadeView 0.4s ease-out; }
    }
        
        /* المناقصات */
        .tenders-page-layout { display: flex; gap: 50px; align-items: flex-start; }
        .tenders-list { flex: 1; display: flex; flex-direction: column; gap: 30px; }
        .tender-wrapper { width: 100%; }
        .tenders-sidebar { width: 320px; flex-shrink: 0; position: sticky; top: 100px; }
        .ad-banner { visibility: hidden; }

        .tender-card { background: #ffffff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); max-width: 650px; }
        .tender-meta { font-size: 13px; color: #555; margin-bottom: 12px; padding: 0 5px; }
        .tender-meta span { color: #2c3e50; font-weight: 600; }
        
        @media (max-width: 900px) {
            .tenders-wrapper { flex-direction: column !important; }
            .tenders-sidebar { width: 100% !important; position: relative !important; top: 0 !important; }
        }

        /* تواصل معنا */
        #view-contact .page-content { max-width: 1100px; margin: 0 auto; }
        .contact-subtitle { color: var(--primary-yellow); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; display: block; margin-bottom: 8px; }
        .contact-title { color: var(--primary-dark); font-size: 36px; font-weight: 400; margin-bottom: 15px; }
        .contact-title strong { font-weight: 700; }
        .contact-desc { color: var(--text-gray); font-size: 16px; line-height: 1.6; max-width: 750px; margin: 0 auto; padding-bottom: 20px; }

        .contact-top-split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; margin-bottom: 50px; }
        .contact-cards-vertical { display: flex; flex-direction: column; gap: 20px; }
        .contact-info-card { background: #ffffff; padding: 25px 20px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02); transition: transform 0.3s ease; }
        .contact-info-card:hover { transform: translateX(5px); } 

        .icon-circle { width: 50px; height: 50px; background: rgba(237, 178, 0, 0.1); color: var(--primary-yellow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 12px; }
        .contact-info-card h3 { color: var(--primary-dark); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
        .contact-info-card p { color: #666; font-size: 14px; line-height: 1.5; margin: 0; }
        html[dir="rtl"] .contact-info-card p {
            direction: ltr;
        }

        .contact-form-box { background: #ffffff; padding: 40px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.02); }
        .modern-form .input-wrapper { margin-bottom: 20px; }
        .modern-form label { display: block; font-weight: 600; color: var(--primary-dark); margin-bottom: 8px; font-size: 14px; }
        .modern-form input, .modern-form textarea { width: 100%; padding: 14px 18px; background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 15px; color: #333; font-family: inherit; transition: all 0.3s ease; }
        .modern-form input:focus, .modern-form textarea:focus { background-color: #ffffff; border-color: var(--primary-yellow); box-shadow: 0 0 0 3px rgba(237, 178, 0, 0.15); outline: none; }
        .btn-submit { background-color: var(--primary-dark); color: #ffffff; border: none; width: 100%; padding: 15px; font-size: 16px; font-weight: 700; border-radius: 8px; cursor: pointer; transition: background 0.3s ease; margin-top: 10px; }
        .btn-submit:hover { background-color: var(--primary-yellow); color: var(--primary-dark); }

        .contact-map-full { width: 100%; height: 400px; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.02); }
        .contact-map-full iframe { width: 100%; height: 100%; border: 0; }

        @media (max-width: 900px) { .contact-top-split { grid-template-columns: 1fr; } .contact-map-full { height: 300px; } }

        /* بوابة الوظائف */
        .jobs-hero-section { background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2536 100%); padding: 80px 20px; color: #ffffff; border-radius: 0 0 30px 30px; margin-bottom: 40px; }
        .jobs-hero-title { font-size: 42px; font-weight: 400; margin-bottom: 15px; }
        .jobs-hero-title strong { color: var(--primary-yellow); font-weight: 700; }
        .jobs-hero-subtitle { font-size: 16px; color: #a0aec0; margin-bottom: 40px; }

        .jobs-search-bar { display: flex; align-items: center; background: #ffffff; padding: 8px; border-radius: 12px; max-width: 900px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
        .search-input-group { flex: 1; display: flex; align-items: center; padding: 10px 20px; }
        .search-input-group i { color: #a0aec0; font-size: 18px; margin-right: 15px; }
        .search-input-group input { width: 100%; border: none; outline: none; font-size: 15px; color: #333; background: transparent; }
        .search-divider { width: 1px; height: 30px; background: #e2e8f0; margin: 0 10px; }

        .btn-jobs-search { background: var(--primary-yellow); color: var(--primary-dark); border: none; padding: 15px 35px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.3s; }
        .btn-jobs-search:hover { background: #d4a710; }
        .btn-jobs-filter { background: #f1f5f9; color: var(--primary-dark); border: none; padding: 15px; border-radius: 8px; margin-left: 10px; cursor: pointer; transition: 0.3s; font-size: 18px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; }
        .btn-jobs-filter:hover { background: #e2e8f0; }

        .jobs-advanced-filters { background: #ffffff; border-radius: 12px; max-width: 900px; margin: 15px auto 0; margin-top: 10px; padding: 0; max-height: 0; overflow: hidden; transition: all 0.4s ease-in-out; box-shadow: 0 10px 30px rgba(0,0,0,0.15); text-align: left; border: 1px solid transparent; }
        .jobs-advanced-filters.show { padding: 25px; max-height: 400px; border-color: #e2e8f0; }

        .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
        .filter-group label { display: block; color: var(--primary-dark); font-weight: 600; font-size: 13px; margin-bottom: 8px; }
        .form-select-custom { width: 100%; padding: 12px 15px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; color: #4a5568; outline: none; background-color: #f8fafc; }
        .btn-apply-filters { background: var(--primary-dark); color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; }
        .btn-apply-filters:hover { background: #edb200; color: #08121e; }

        .jobs-list-container { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
        .job-card { display: flex;
    align-items: center; /* تم تصحيحها من left إلى center لترتيب الشعار والنصوص أفقياً بشكل سليم */
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: 0.3s;
    
    /* التعديلات الجديدة للحجم والمحاذاة */
    width: 100%;
    max-width: 700px; /* يمكنك تصغير أو تكبير هذا الرقم للتحكم بعرض البطاقة كما تحب */
    margin-right: auto;
    margin-left: 0; }
        .job-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); border-color: #cbd5e1; }
        .job-card-logo {width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(237, 178, 0, 0.1);
    color: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* مهم جداً: يمنع الصورة من الخروج خارج زوايا المربع الدائرية */
    padding: 0; /* تأكد من إزالة أي مسافات داخلية لتسمح للصورة بالتمدد */
    flex-shrink: 0; }

    .job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يجعل الصورة تملأ المربع بالكامل، يمكنك تغييرها إلى contain إذا أردت ظهور الشعار بدون قص الأطراف */
    border-radius: 12px;
}
        .job-card-info { flex: 1; }
        .job-title { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
        .job-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
        .job-meta span { font-size: 13.5px; color: #718096; display: flex; align-items: center; }
        .job-meta i { margin-right: 6px; color: #a0aec0; }
        .job-tags { display: flex; gap: 10px; }
        .tag { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

        .job-card-action { margin-left: 20px; }
        .btn-apply-now { background: transparent; color: var(--primary-dark); border: 2px solid #e2e8f0; padding: 10px 25px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.3s; }
        .job-card:hover .btn-apply-now { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }

        @media (max-width: 900px) {
            /* إبقاء ترتيب مربع البحث كما هو */
            .jobs-search-bar { flex-direction: column; padding: 15px; }
            .search-divider { width: 100%; height: 1px; margin: 10px 0; }
            .btn-jobs-search, .btn-jobs-filter { width: 100%; margin: 10px 0 0 0; }

            /* --- التعديل الجراحي السحري لبطاقة الوظيفة --- */
            .job-card {
                display: grid !important;
                /* تقسيم الشاشة لـ 3 أعمدة: صورة | نصوص | أزرار ووقت */
                grid-template-columns: 50px 1fr auto;
                grid-template-rows: auto auto auto;
                grid-template-areas: 
                    "logo title recently"
                    "logo meta meta"
                    ". tags button";
                gap: 8px 12px;
                padding: 16px !important;
                align-items: center;
            }
            
            .job-card-logo { 
                grid-area: logo; 
                width: 50px; 
                height: 50px; 
                margin: 0 !important;
            }
            
            /* فتح الصناديق لتشارك العناصر الداخلية في الشبكة مباشرة */
            .job-card-info, .job-card-action { 
                display: contents !important; 
            }
            
            .job-title { 
                grid-area: title; 
                font-size: 15.5px; 
                margin: 0 !important; 
                align-self: end;
            }
            
            .job-meta { 
                grid-area: meta; 
                margin: 0 !important; 
                gap: 12px; 
                flex-wrap: wrap; 
            }
            .job-meta span { font-size: 11.5px; }
            
            .job-tags { 
                grid-area: tags; 
                margin: 0 !important; 
                gap: 6px; 
                flex-wrap: wrap; 
                align-self: center;
            }
            .tag { padding: 4px 10px; font-size: 10px; }
            
            .job-card-action > div { 
                grid-area: recently; /* وضع كلمة حديثاً في الزاوية العلوية */
                margin: 0 !important; 
                font-size: 11px !important; 
                justify-self: end; 
                align-self: end;
            }
            
            .btn-apply-now { 
                grid-area: button; /* وضع زر التفاصيل بجانب التاجات */
                padding: 6px 14px; 
                font-size: 12px; 
                width: auto !important; 
                margin: 0 !important; 
                justify-self: end;
                align-self: center;
            }
        }

        .custom-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(4px); }
        .custom-modal.show { display: flex; animation: fadeInModal 0.3s ease; }
        @keyframes fadeInModal { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
        .custom-modal-content { background: #fff; width: 100%; max-width: 850px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; max-height: 90vh; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
        .custom-modal-header { padding: 20px 30px; border-bottom: 1px solid #f1f3f5; display: flex; justify-content: space-between; align-items: center; background: #fdfdfd; }
        .close-modal-btn { background: none; border: none; font-size: 28px; cursor: pointer; color: #a0aec0; transition: 0.3s; }
        .close-modal-btn:hover { color: #e53e3e; transform: rotate(90deg); }
        .custom-modal-body { padding: 30px; overflow-y: auto; flex: 1 1 auto;max-height: 70vh;}
        .custom-modal-footer { padding: 20px 30px; border-top: 1px solid #f1f3f5; display: flex; justify-content: flex-end; gap: 15px;
             background: #f8fafc; align-items: center; }

        #publicJobForm, #publicTenderForm { display: flex; flex-direction: column; overflow: hidden; flex: 1; min-height: 0; }

        /* التوثيق والدخول */
        .auth-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
        .auth-title { color: var(--primary-dark); font-size: 26px; font-weight: 700; margin-bottom: 5px; }
        .auth-subtitle { color: var(--text-gray); font-size: 14px; margin-bottom: 25px; }
        .login-section { background: #fdfdfd; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f1f3f5; }
        .signup-section { background: #fdfdfd; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #f1f3f5; }
        .forgot-password { font-size: 12px; color: #a0aec0; text-decoration: none; font-style: italic; transition: 0.3s; }
        .forgot-password:hover { color: var(--primary-dark); text-decoration: underline; }
        .auth-tabs { display: flex; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
        .auth-tab { flex: 1; padding: 12px; background: #fff; border: none; font-weight: 600; color: #718096; cursor: pointer; transition: 0.3s; font-size: 14px; }
        .auth-tab.active { background: #4db8ff; color: #fff; } 
        .auth-section-title { color: #4db8ff; font-size: 18px; margin: 25px 0 15px; font-weight: 400; }
        .file-drop-area { border: 2px dashed #cbd5e1; border-radius: 8px; padding: 30px; text-align: center; background: #f8fafc; position: relative; cursor: pointer; transition: 0.3s; }
        .file-drop-area:hover { border-color: #4db8ff; background: #f0f9ff; }
        .file-input-hidden { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
        .terms-check { font-size: 12px; color: #64748b; display: flex; align-items: flex-start; gap: 10px;}
        .terms-check input { margin-top: 3px; }
        .terms-check a { color: #4db8ff; text-decoration: none; font-weight: 600;}
        .btn-auth-blue { background-color: #4db8ff; color: #fff; border: none; padding: 12px 30px; border-radius: 4px; font-weight: 700; cursor: pointer; transition: 0.3s; }
        .btn-auth-blue:hover { background-color: #3aa6ed; }
        @media (max-width: 900px) { .auth-layout { grid-template-columns: 1fr; } }
        @media (max-width: 900px) {
    #banner-slider, 
    #jobs-banner-slider {
        display: none !important;
    }
    .jobs-search-wrapper {
        padding: 40px 20px !important;
    }
    #view-tenders > div:first-child > div:first-child {
        padding: 40px 20px !important;
    }
}

        /* صفحة الخدمات */
        .services-tabs-container { display: flex; justify-content: center; border-bottom: 1px solid #e2e8f0; max-width: 1200px; margin: 0 auto 30px auto; flex-wrap: wrap; }
        .service-tab { background: none; border: none; padding: 15px 30px; font-weight: 700; font-size: 14.5px; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; transition: 0.3s; }
        .service-tab:hover { color: var(--primary-dark); }
        .service-tab.active { color: var(--primary-yellow); border-bottom: 3px solid #4db8ff; }
        .services-bg-wrapper { background-color: #f8fafc; padding: 40px 0; border-radius: 20px; }
        .master-services-container { display: flex; gap: 40px; max-width: 1400px; margin: 0 auto; padding: 20px 40px; align-items: flex-start; }
        .services-grid-wrapper { flex: 1 1 65%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
        .why-choose-sidebar { flex: 1 1 35%; background-color: #fff; padding: 35px 30px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }
        .service-card-modern { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #e2e8f0; transition: 0.3s; }
        .service-card-modern:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.05); border-color: var(--primary-yellow); }
        .service-icon-modern { color: var(--primary-yellow); font-size: 28px; margin-bottom: 15px; }
        .service-card-modern h4 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
        .service-card-modern p { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0; }
        .why-choose-title { font-size: 24px; font-weight: 400; color: var(--primary-dark); margin-bottom: 25px; }
        .why-choose-title strong { color: var(--primary-yellow); font-weight: 700; }
        .why-choose-list { list-style: none; padding: 0; margin: 0; }
        .why-choose-list li { margin-bottom: 15px; position: relative; padding-left: 30px; }
        .why-choose-list li i { position: absolute; left: 0; top: 3px; color: #1a202c; font-size: 16px; }
        .why-choose-list li strong { color: var(--primary-dark); font-size: 14px; font-weight: 700; display: block; margin-bottom: 2px; }
        .why-choose-list li span { color: #64748b; font-size: 12.5px; line-height: 1.4; }
        /* إصلاح اتجاه القائمة الجانبية (علامات الصح) والنصوص في النسخة العربية لصفحة الخدمات */
        html[dir="rtl"] .why-choose-list li {
            padding-right: 30px !important;
            padding-left: 0 !important;
            text-align: right;
        }
        html[dir="rtl"] .why-choose-list li i {
            right: 0 !important;
            left: auto !important;
        }
        html[dir="rtl"] .service-card-modern p,
        html[dir="rtl"] .service-card-modern h4,
        html[dir="rtl"] .why-choose-sidebar {
            text-align: right;
        }
        @media (max-width: 1100px) { .master-services-container { flex-direction: column; } .services-grid-wrapper { grid-template-columns: 1fr; width: 100%; } 
        .why-choose-sidebar { width: 100%; position: relative; top: 0; } }

        /* الفوتر */
        .site-footer { background:#303440; color: #ffffff; margin-top: 120px; overflow: hidden; }
        .footer-container { max-width: 1400px; margin: auto; padding: 80px 50px 40px; }
        .footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 30px; }
        .footer-company .footer-logo { height: 80px; max-width: 100%; object-fit: contain; margin-bottom: 20px; display: block; }
        .footer-company h3 { color: #edb200; font-size: 24px; line-height: 1.4; margin-bottom: 15px; font-weight: 700; }
        .footer-company p { color: #aab4c5; line-height: 1.8; font-size: 14px; margin-bottom: 25px; text-align: justify; }
        .footer-heading { color: #fff; font-size: 18px; margin-bottom: 25px; position: relative; padding-bottom: 15px; font-weight: 600; }
        .footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 45px; height: 3px; background: #edb200; 
        border-radius: 10px; }
        html[dir="rtl"] .footer-heading::after { left: auto; right: 0; }
        .footer-links, .footer-contact { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 14px; }
        .footer-links a { color: #aab4c5; text-decoration: none; transition: .3s; font-size: 14px; display: inline-block; }
        .footer-links a:hover { color: #edb200; transform: translateX(5px); }
        html[dir="rtl"] .footer-links a:hover { transform: translateX(-5px); }
        .footer-contact li { display: flex; gap: 15px; margin-bottom: 20px; color: #aab4c5; line-height: 1.6; font-size: 14px; }
        .footer-contact i { color: #edb200; margin-top: 5px; font-size: 16px; }
        .social-links { display: flex; gap: 12px; flex-wrap: wrap; }
        .social-links a { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; 
            background: rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: .3s; }
        .social-links a:hover { background: #edb200; color: #08121e; transform: translateY(-5px); }

        .footer-middle { padding: 20px 0; }
        
        .logo-slider { overflow: hidden; width: 100%; cursor: grab; }
        .logo-slider:active { cursor: grabbing; }
        .logo-track { display: flex; width: max-content; align-items: center; animation: scrollFooterLogos 30s linear infinite; }
        .logo-slider:hover .logo-track { animation-play-state: paused; }
        
        @keyframes scrollFooterLogos {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        .logo-track img { width: 110px; height: 55px; object-fit: contain; margin-right: 50px; filter: brightness(0) invert(1); 
            opacity: 0.7; transition: 0.3s; pointer-events: auto; -webkit-user-drag: none; user-select: none; }
        .logo-track img:hover { filter: none; opacity: 1; transform: scale(1.1); }
        .bottom-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 13px; }
        .developer-name { color: #edb200; font-weight: 600; }

        @media(max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
        /* 3. الفوتر في الموبايل (تثبيت المحاذاة لليسار/البداية بدلاً من المنتصف) */
        @media(max-width: 768px) {
            .footer-grid { grid-template-columns: 1fr; gap: 40px; }
            .bottom-flex { text-align: center; justify-content: center; }
            
            /* إلغاء التوسيط وإجبار المحاذاة حسب اللغة */
            .footer-company .footer-logo { margin: 0 0 20px 0; }
            .footer-company { text-align: left; }
            html[dir="rtl"] .footer-company { text-align: right; }
            
            .social-links { justify-content: flex-start; }
            
            .footer-heading::after { left: 0; transform: none; }
            html[dir="rtl"] .footer-heading::after { right: 0; transform: none; left: auto; }
        }
        /* تنسيقات القائمة المنسدلة للمستخدم */
        .user-dropdown { position: relative; display: inline-block; }
        .nav-profile-pic { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #edb200; }
        .dropdown-menu {
            display: none; position: absolute; top: 120%; right: 0; background-color: #fff;
            min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px;
            overflow: hidden; z-index: 1000; flex-direction: column; border: 1px solid #e2e8f0;
            animation: fadeInDrop 0.2s ease;
        }
        .dropdown-menu.show { display: flex; }
        .dropdown-menu a {
            padding: 12px 20px; text-decoration: none; color: #1c1d1f; font-size: 14px;
            font-weight: 600; display: flex; align-items: center; gap: 12px; transition: 0.3s;
        }
        .dropdown-menu a i { width: 16px; text-align: center; }
        .dropdown-menu a:hover { background-color: #f8fafc; color: #edb200; padding-left: 25px; }
        .dropdown-menu hr { margin: 0; border: none; border-top: 1px solid #f1f3f5; }
        
        @keyframes fadeInDrop {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        /* تنسيق شبكة العرض */
.courses-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
}

/* تنسيق الكارت الحديث */
.modern-course-card { 
    background: #ffffff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); 
    border: 1px solid #e2e8f0; 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    position: relative; 
}
/* زر المفضلة في الواجهة الرئيسية */
.wishlist-btn { position: absolute; top: 10px; background: rgba(255, 255, 255, 0.95); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.15); color: #a0aec0; font-size: 16px; transition: all 0.2s ease; z-index: 10; }
html[dir="ltr"] .wishlist-btn { right: 10px; }
html[dir="rtl"] .wishlist-btn { left: 10px; }
.wishlist-btn.active { color: #e74c3c; }
.wishlist-btn:hover { transform: scale(1.1); color: #e74c3c; }

.modern-course-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.mcc-img-wrapper { position: relative; width: 100%; height: 160px; border-bottom: 1px solid #f1f3f5; }
.mcc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.mcc-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.mcc-title { font-weight: 700; font-size: 16px; color: #08121e; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2;line-clamp:2;  -webkit-box-orient: vertical; overflow: hidden;}
.mcc-instructor { font-size: 13px; color: #64748b; margin-bottom: 12px; }
.mcc-meta { font-size: 12px; color: #a0aec0; display: flex; justify-content: space-between; margin-bottom: 15px; }
.mcc-price { font-weight: 800; font-size: 18px; color: #08121e; margin-top: auto; }
.btn-mcc-action { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #08121e; background: transparent; color: #08121e; font-weight: 700; transition: 0.3s; margin-top: 15px; text-decoration: none; display: inline-block; text-align: center; }
.btn-mcc-action:hover { background: #08121e; color: #fff; }
.jobs-search-wrapper{position:relative;}
#advancedFilters{
        display:none;

    margin-top:18px;

    width:100%;

    position:relative;

    z-index:30;
}
.menu-btn{
    display:none;
    background:none;
    border:none;
    font-size:28px;
    cursor:pointer;
    color:#08121e;
}

.mobile-sidebar {
            position: fixed;
            top: 0;
            right: -300px;
            left: auto;
            width: 280px;
            height: 100%;
            background: #fff;
            box-shadow: -8px 0 30px rgba(0,0,0,.18);
            z-index: 9999;
            padding: 25px;
            padding-bottom: 100px; /* مسافة سفلية لتفادي القطع */
            display: flex;
            flex-direction: column;
            text-align: right;
            opacity: 0;
            visibility: hidden;
            transform: translateX(30px);
            transition: right .35s ease, opacity .25s ease, transform .35s ease;
            overflow-y: auto; /* 🌟 تفعيل السكرول السحري 🌟 */
        }

.mobile-sidebar.active{
    right:0;
      opacity:1;
    visibility:visible;
    transform:translateX(0);
}

.mobile-sidebar a{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:14px;
    padding:15px 18px;
    border-radius:12px;
    color:#08121e;
    text-decoration:none;
    transition:.25s ease;
    margin-bottom:6px;
}
.mobile-sidebar a.active{

    background:#fff7df;

    color:#edb200;

    border-right:4px solid #edb200;

    font-weight:700;

}

.mobile-sidebar a i{
    width:22px;
    text-align:center;
    font-size:18px;
    color:#edb200;
}

.close-btn{
    align-self:flex-start;
    background:none;
    border:none;
    font-size:22px;
    cursor:pointer;
    margin-bottom:20px;
}

.sidebar-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:9998;
}

.sidebar-overlay.active{
    opacity:1;
    visibility:visible;
}
html[dir="rtl"] .mobile-sidebar a:hover { transform: translateX(-5px); background: #f7f8fa; color: #edb200; }
/* تنسيقات الروابط الفرعية لتكون نظيفة وبدون إطارات أو حركات مزعجة */
        .mobile-sidebar .submenu-link {
            padding: 10px 20px;
            font-size: 13.5px;
            margin-bottom: 0;
            border: none !important;
            background: transparent !important;
        }
        .mobile-sidebar .submenu-link:hover {
            color: #edb200 !important;
            transform: none !important;
        }
        html[dir="rtl"] .mobile-sidebar .submenu-link:hover { transform: none !important; }
@media (max-width: 991px) {
            .navbar { padding: 15px 20px; display: flex; align-items: center; }
            .hide-on-mobile { display: none !important; }
            .logo { order: 1; margin-inline-end: auto; } /* هذا السطر يدفع الشعار للطرف دائماً */
            .nav-actions { order: 2; display: flex !important; gap: 10px; align-items: center; }
            .menu-btn { order: 3; margin-inline-start: 15px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; 
                font-size: 20px; font-weight: 600; color: #08121e; background: transparent; border: none; cursor: pointer; }
            .logo img { height: 42px; }
            
            /* إخفاء هذه العناصر في الموبايل */
            .nav-links, .user-action, .user-dropdown { display: none; }
            .services-tabs-container { display: none !important; }
            .nav-actions {width: auto; display: flex !important; gap: 10px; align-items: center; justify-content: flex-end;}
            #langToggle2 { display: flex !important; margin-top: 15px; justify-content: center; }
        }

.hero-top-split {
                    display: flex !important;
                    flex-direction: row !important;
                    flex-wrap: nowrap !important;
                    justify-content: space-between !important;
                    align-items: center !important;
                    text-align: left; 
                    margin-top: -10px;
                    margin-bottom: 210px; /* تم تقليل المسافة الضخمة */
                    padding: 0 2%; 
                    width: 100%;
                }

                html[dir="rtl"] .hero-text h1 {
                    font-size: 38px !important;
                    line-height: 1.5 !important;
                }
                html[dir="rtl"] .hero-text p {
                    font-size: 16px !important;
                }

                html[dir="rtl"] .hero-top-split {
                    text-align: right; /* ضبط اتجاه النص في العربية */
                }
                
                /* إعدادات النص (الجانب الأيسر) */
                .hero-text-left {
                    width: 50% !important; /* يأخذ النصف الأيسر فقط */
                    max-width: 700px;
                }
                
                .hero-buttons-left {
                    display: flex;
                    gap: 15px;
                    justify-content: flex-start; 
                }
                
                /* إعدادات الشعارات (الجانب الأيمن) */
                .logos-right-container {
                    width: 45% !important; /* يأخذ النصف الأيمن فقط */
                    display: flex;
                    flex-direction: column;
                    gap: 40px; /* مسافة بين سطر العملاء وسطر الشركاء */
                    overflow: hidden; /* لمنع أي تمدد يخرب التصميم */
                }
                
                .logo-section-title {
                    color: rgba(255, 255, 255, 0.8);
                    font-weight: 500;
                    margin: 0 auto 15px auto; /* التوسيط التلقائي بدلاً من 250px التي دمرت التصميم */
                    letter-spacing: 1px;
                    font-size: 14px;
                    text-transform: uppercase;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
                    padding-bottom: 8px;
                    display: inline-block;
                }
                
                /* إعدادات الحركة (Marquee) */
                .marquee-wrapper {
                    overflow: hidden;
                    width: 100%;
                    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
                    mask-image: linear-gradient (to right, transparent, black 10%, black 90%, transparent);
                    cursor: pointer;
                }

                .marquee-wrapper:hover .marquee-track {
                    animation-play-state: paused !important;
                }
                
                .marquee-track {
                    display: flex;
                    width: max-content;
                    align-items: center;
                    gap: 50px;
                    /* السطر الأول يتحرك لليسار */
                    animation: scrollLeft 30s linear infinite; 
                }
                
                .marquee-track.reverse {
                    /* السطر الثاني يتحرك لليمين */
                    animation: scrollRight 30s linear infinite; 
                }
                
                .marquee-track img {
                    height: 45px;
                    filter: brightness(0) invert(1); /* تبييض الشعارات */
                    opacity: 0.9;
                    object-fit: contain;
                    transition: opacity 0.3s ease;
                }
                .marquee-track img:hover {
                    opacity: 1; /* إضاءة الشعار أكثر عند الوقوف عليه */
                }
                
                /* حركات السطرين المتعاكسة */
                @keyframes scrollLeft {
                    0% { transform: translateX(0); }
                    100% { transform: translateX(-50%); } 
                }
                @keyframes scrollRight {
                    0% { transform: translateX(-50%); }
                    100% { transform: translateX(0); } 
                }
                
                /* استجابة شاشات الموبايل (تنزل للأسفل فقط في الشاشات الصغيرة) */
                @media (max-width: 991px) {
                    .hero-top-split {
                        flex-direction: column !important;
                        text-align: center;
                        gap: 50px;
                    }
                    .hero-text-left, .logos-right-container {
                        width: 100% !important;
                    }
                    .hero-text-left p { margin: 0 auto 35px auto !important; }
                    .hero-buttons-left { justify-content: center; }
                }