/*
Theme Name: Khaldoon Industrial Theme - Saqqr
Theme URI: https://khaldoon.com.sa
Author: Saqqr Digital Marketing
Author URI: https://saqqr.com
Description: قالب  مخصص لمصنع خلدون للإنتاج المعدني - برمجة شركة الصقر للتسويق الرقمي .
Version: 3.0
Text Domain: khaldoon
*/

/* =========================================
   1. IMPORTS & FONTS (استدعاء الخطوط)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* =========================================
   2. GLOBAL VARIABLES (متغيرات الهوية)
   ========================================= */
:root {
    /* الألوان الرسمية */
    --color-primary: #5FB8C6;       /* السيان الصناعي (Industrial Cyan) */
    --color-primary-dark: #4A909B;  /* درجة أغمق للتحويم */
    --color-dark: #1F1F1F;          /* الرمادي الداكن الأساسي */
    --color-gray-text: #666666;     /* نصوص الفقرات */
    --color-light-bg: #F4F6F7;      /* خلفيات الأقسام الفاتحة */
    --color-border: #E0E0E0;        /* حدود العناصر */
    --color-white: #FFFFFF;
    
    /* الخطوط */
    --font-main: 'Cairo', sans-serif;
    --font-en: 'Roboto', sans-serif;
    
    /* القياسات */
    --container-width: 1240px;
    --header-height: 90px;          /* يجب أن يطابق ارتفاع الهيدر */
    --section-padding: 80px;
    --border-radius: 2px;           /* حواف حادة للطابع الصناعي */
    --transition: 0.3s ease;
}

/* =========================================
   3. RESET & BASE STYLES (التأسيس)
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-white);
    color: var(--color-dark);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 16px;
    direction: rtl;       /* اتجاه الموقع للعربية */
    text-align: right;
    overflow-x: hidden;   /* منع التمرير الأفقي */
}

/* ضبط الصور */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* الروابط */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; color: var(--color-gray-text); }

/* =========================================
   4. LAYOUT UTILITIES (التخطيط)
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

/* الشبكات (Grid System) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* الخلفيات */
.bg-light { background-color: var(--color-light-bg); }
.bg-dark { background-color: var(--color-dark); color: var(--color-white); }

/* المحاذاة */
.text-center { text-align: center; }
.align-center { align-items: center; }

/* عنوان القسم المزين (Section Title) */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
}

.text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

/* =========================================
   5. COMPONENTS (العناصر المتكررة)
   ========================================= */
/* الأزرار */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
}

.btn-industrial {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-industrial:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* =========================================
   6. HEADER & FOOTER OVERRIDES
   (تكميلي لملفات الهيدر والفوتر)
   ========================================= */
/* ضمان عدم اختفاء المحتوى خلف الهيدر الثابت */
.site-content {
    min-height: 60vh; /* لضمان عدم التصاق الفوتر بالهيدر في الصفحات الفارغة */
}

/* تنسيقات الفوتر الأساسية (إذا لم تكن مضمنة داخله) */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding-top: 80px;
    margin-top: auto;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--color-primary); }

/* =========================================
   7. PAGE: HOME (الصفحة الرئيسية)
   ========================================= */
/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--color-dark);
    padding: 160px 0 120px;
    text-align: center;
    color: var(--color-white);
    /* يمكنك إضافة صورة خلفية هنا */
    /* background-image: url('assets/images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
}
.hero-section::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(31, 31, 31, 0.85); /* تعتيم */
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { color: var(--color-white); margin-bottom: 20px; }
.hero-content p { color: #ddd; font-size: 1.1rem; max-width: 800px; margin: 0 auto 30px; }

/* Product Cards */
.product-card {
    background: var(--color-white);
    padding: 30px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-dark);
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.product-card h3 { font-size: 1.3rem; margin-bottom: 15px; }

/* Trust Factors */
.trust-item {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-right: 3px solid var(--color-primary);
    color: var(--color-white);
}

/* =========================================
   8. PAGE: INNER PAGES (الصفحات الداخلية)
   ========================================= */
/* ترويسة الصفحة الداخلية (Breadcrumb Area) */
.page-header {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}
.page-header h1 { color: var(--color-white); margin: 0; }

/* صفحة اتصل بنا */
.contact-info-box {
    background: var(--color-light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
}
.contact-item { margin-bottom: 20px; display: flex; gap: 10px; }
.contact-item i { color: var(--color-primary); margin-top: 5px; }

/* نماذج الاتصال */
form input, form textarea, form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
}
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* =========================================
   9. RESPONSIVE (التجاوب مع الشاشات)
   ========================================= */
@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr; /* عمود واحد في التابلت والجوال */
        gap: 30px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-section { padding: 120px 0 80px; }
}

@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .btn { width: 100%; text-align: center; }
}

/* =========================================
   10. WORDPRESS DEFAULTS (توافق ووردبريس)
   ========================================= */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.wp-caption { max-width: 100%; }

 
 /* =========================================
   إعدادات الصفحة الرئيسية (Front Page Styles)
   ========================================= */

:root {
    --color-primary: #5FB8C6;       /* السيان الصناعي */
    --color-dark: #1F1F1F;          /* الخلفية الداكنة */
    --color-text: #666666;          /* النصوص العامة */
    --color-light-bg: #F4F6F7;      /* الخلفيات الفاتحة */
    --color-border: #E0E0E0;
    --transition: all 0.3s ease;
}

/* تنسيقات عامة للصفحة */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.align-center {
    align-items: center;
}

.mb-50 {
    margin-bottom: 50px;
}

/* الشبكات (Grid System) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* =========================================
   1. Hero Section (الواجهة)
   ========================================= */
.hero-section {
    position: relative;
    background-color: var(--color-dark);
    /* يفضل وضع صورة خلفية هنا */
    /* background-image: url('assets/images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 180px 0 140px;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 31, 31, 0.85); /* تعتيم الخلفية */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #ffffff;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-dark);
}

/* =========================================
   2. About Section (من نحن)
   ========================================= */
.about-section {
    background-color: #fff;
}

.sub-title {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* لأن الموقع عربي */
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
}

.text-center .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-dark);
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--color-primary);
}

/* الصورة والبادج */
.about-image {
    position: relative;
    padding: 20px;
}

.img-box {
    background-color: #f8f9fa;
    border: 1px solid #eee;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--color-primary);
    color: #fff;
    padding: 30px;
    min-width: 180px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-badge strong {
    display: block;
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

.experience-badge span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* =========================================
   3. Products Section (المنتجات)
   ========================================= */
.bg-light {
    background-color: var(--color-light-bg);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text);
    font-size: 1.1rem;
}

.product-item {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--color-border);
    border-top: 5px solid var(--color-dark); /* لمسة صناعية */
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.product-item .icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.product-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.product-item p {
    color: var(--color-text);
    margin-bottom: 25px;
    min-height: 60px; /* لتوحيد ارتفاع البطاقات */
}

.product-item a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.product-item a:hover {
    gap: 10px; /* حركة السهم عند التحويم */
}

/* =========================================
   4. Production Section (القدرات)
   ========================================= */
.production-section .img-box.dark {
    background-color: #333;
    color: #666;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-dark);
}

.feature-list li i {
    color: var(--color-primary);
}

/* =========================================
   5. Trust Section (الثقة)
   ========================================= */
.bg-dark {
    background-color: var(--color-dark);
    color: #fff;
}

.section-title.white {
    color: #fff;
}

.trust-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.trust-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.trust-box h4 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.trust-box p {
    color: #ccc;
    margin: 0;
    line-height: 1.5;
}

/* =========================================
   6. CTA & Map (التواصل والخريطة)
   ========================================= */
.cta-strip {
    background-color: var(--color-primary);
    color: #fff;
    padding: 80px 0;
}

.cta-strip h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.cta-strip p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.map-container {
    height: 450px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%); /* خريطة رمادية لتناسب الطابع الصناعي */
}

/* =========================================
   Media Queries (التجاوب مع الشاشات)
   ========================================= */
@media (max-width: 992px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr; /* تحويل الأعمدة لعمود واحد */
        gap: 40px;
    }

    .about-image {
        order: -1; /* رفع الصورة فوق النص في الموبايل */
        margin-bottom: 30px;
    }

    .experience-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: -40px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}


/* =========================================
   تحديثات الصور (Images Update)
   ========================================= */

/* 1. تفعيل خلفية الـ Hero */
.hero-section {
    /* تأكد من وجود الصورة في المسار الصحيح */
    background-image: url('assets/images/hero-bg.jpg');
    /* الخصائص الأساسية موجودة مسبقاً، هذا السطر فقط لتفعيل الصورة */
}

/* 2. تنسيق الصور العامة */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* حواف ناعمة قليلاً */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* ظل خفيف للعمق */
}

/* حاوية الصورة لضبط الأبعاد */
.image-wrapper {
    position: relative;
    overflow: hidden;
    border: 5px solid #fff; /* إطار أبيض للصورة */
}

/* 3. تنسيق شارة الخبرة (تعديل طفيف للموقع) */
.about-image {
    position: relative;
    padding: 0 20px 40px 0; /* مساحة للشارة */
}

.experience-badge {
    /* ضمان ظهور الشارة فوق الصورة */
    z-index: 2;
    right: auto;
    left: -20px;
    bottom: 20px;
}

/* 4. شبكة شعارات العملاء */
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0.7; /* شفافية بسيطة لعدم التشويش */
}

.client-logo {
    max-height: 80px; /* توحيد ارتفاع الشعارات */
    width: auto;
    filter: grayscale(100%); /* تحويل الشعارات لرمادي للطابع الرسمي */
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%); /* تلوين الشعار عند التحويم */
    opacity: 1;
    transform: scale(1.1);
}

/* تحسين تجاوب الصور */
@media (max-width: 768px) {
    .about-image { padding: 0; margin-bottom: 40px; }
    .experience-badge { left: 0; bottom: -20px; width: auto; padding: 20px; }
    .client-logo { max-height: 60px; }
}



/* =========================================
   تحديث قسم القطاعات (Sectors Icons Update)
   ========================================= */

/* الشبكة الخاصة بالأيقونات */
.sectors-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* تجاوب تلقائي */
    gap: 30px;
    margin-top: 40px;
}

/* صندوق القطاع الواحد */
.sector-item-box {
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: 35px 20px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* ظل خفيف */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* تأثير الحركة عند التحويم (Hover) */
.sector-item-box:hover {
    transform: translateY(-10px); /* يرتفع للأعلى */
    border-color: var(--color-primary); /* يتلون الإطار */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); /* يزيد الظل */
}

/* خط ملون يظهر في الأسفل عند التحويم */
.sector-item-box::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0%; height: 4px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.sector-item-box:hover::after {
    width: 100%;
}

/* تنسيق الأيقونة */
.sector-item-box .sec-icon {
    font-size: 3rem; /* حجم كبير للأيقونة */
    color: var(--color-dark); /* لون داكن في الوضع العادي */
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.sector-item-box:hover .sec-icon {
    color: var(--color-primary); /* تتلون الأيقونة بالسيان عند التحويم */
}

/* عنوان القطاع */
.sector-item-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .sectors-icon-grid {
        grid-template-columns: repeat(2, 1fr); /* عمودين في الجوال */
        gap: 15px;
    }
    .sector-item-box { padding: 25px 15px; }
    .sector-item-box .sec-icon { font-size: 2.2rem; }
    .sector-item-box h4 { font-size: 0.95rem; }
}


/* =========================================
   تنسيقات قسم العملاء (Partners Section)
   ========================================= */

.partners-section {
    border-top: 1px solid var(--color-border); /* فاصل خفيف بينه وبين القسم السابق */
}

/* شبكة الشعارات */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* توزيع تلقائي */
    gap: 40px;
    align-items: center;
    justify-items: center;
    margin-top: 40px;
}

/* حاوية الشعار */
.partner-logo {
    width: 100%;
    max-width: 160px; /* أقصى عرض للشعار */
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 15px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* الشعار نفسه */
.partner-logo img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(100%); /* تحويل لرمادي (رسمي) */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* تأثير عند التحويم */
.partner-logo:hover {
    border-color: var(--color-border);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.partner-logo:hover img {
    filter: grayscale(0%); /* استعادة الألوان */
    opacity: 1;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 شعارات في الصف */
        gap: 20px;
    }
    .partner-logo { max-width: 100px; height: 80px; padding: 10px; }
}


/* =========================================
   تأثيرات ظهور العملاء (Scroll Animations)
   ========================================= */

/* الحالة الابتدائية: مخفي ومنزاح للأسفل */
.partner-logo.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.3s, box-shadow 0.3s !important;
    /* !important هنا لضمان عدم تعارض الترانزيشن مع تأثير الهوفر السابق */
}

/* حالة الظهور: ظاهر وفي مكانه الأصلي */
.partner-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* تحسين أداء الصور */
.partner-logo img {
    /* إضافة backface-visibility يحسن نعومة الحركة في بعض المتصفحات */
    backface-visibility: hidden; 
}




/* =========================================
   تنسيقات قسم التواصل المطور (Pro CTA & Map)
   ========================================= */

.cta-map-wrapper {
    position: relative;
    min-height: 600px; /* ارتفاع القسم بالكامل */
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 1. تنسيق الخريطة الخلفية */
.map-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.map-background iframe {
    width: 100%;
    height: 100%;
    /* فلتر لجعل الخريطة رمادية لتناسب هوية المصنع */
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s ease;
}

/* عند مرور الماوس على الخريطة تستعيد ألوانها */
.cta-map-wrapper:hover .map-background iframe {
    filter: grayscale(0%);
}

/* 2. الحاوية النسبية لضبط التموضع */
.relative-container {
    position: relative;
    z-index: 2; /* لضمان ظهور البطاقة فوق الخريطة */
    height: 100%;
    pointer-events: none; /* يسمح بالنقر على الخريطة في المساحات الفارغة */
}

/* 3. بطاقة التواصل العائمة */
.cta-floating-card {
    background: #fff;
    width: 100%;
    max-width: 450px; /* عرض البطاقة */
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-top: 5px solid var(--color-primary);
    pointer-events: auto; /* إعادة تفعيل النقر داخل البطاقة */
    margin-right: auto; /* محاذاة لليمين (في العربية) */
}

.cta-floating-card .sub-head {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.cta-floating-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-dark);
}

.cta-floating-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* تفاصيل الاتصال (أيقونات ونصوص) */
.contact-details {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.c-item i {
    width: 45px;
    height: 45px;
    background: var(--color-light-bg);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.c-item:hover i {
    background: var(--color-primary);
    color: #fff;
}

.c-text span {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 3px;
}

.c-text a {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.1rem;
    text-decoration: none;
}

.c-text a:hover {
    color: var(--color-primary);
}

/* زر كامل العرض */
.btn-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    gap: 10px;
}

/* --- التجاوب مع الجوال --- */
@media (max-width: 992px) {
    .cta-map-wrapper {
        flex-direction: column; /* تحويل التخطيط لعمودي */
        min-height: auto;
    }

    .map-background {
        position: relative; /* الخريطة تصبح عادية وليست مطلقة */
        height: 350px;
        order: 2; /* الخريطة في الأسفل */
    }

    .relative-container {
        width: 100%;
        padding: 0;
        order: 1; /* البطاقة في الأعلى */
    }

    .cta-floating-card {
        max-width: 100%; /* عرض كامل */
        box-shadow: none;
        border-radius: 0;
        padding: 60px 20px;
        text-align: center;
    }
    
    .contact-details .c-item {
        justify-content: center; /* توسيط العناصر في الجوال */
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
}


/* =========================================
   تنسيقات الفوتر (Footer Styles)
   ========================================= */

.site-footer {
    background-color: #1a1a1a; /* لون داكن جداً */
    color: #b3b3b3; /* لون نص رمادي فاتح لتقليل التباين المؤذي للعين */
    font-size: 0.95rem;
    position: relative;
    z-index: 10;
}

.section-padding-sm {
    padding: 80px 0 60px;
}

/* الشبكة */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* العمود الأول والأخير أعرض قليلاً */
    gap: 40px;
}

/* الشعار في الفوتر */
.f-logo {
    max-height: 60px;
    filter: brightness(0) invert(1); /* تحويل الشعار الملون إلى أبيض بالكامل */
    opacity: 0.9;
}

/* عناوين الويدجت */
.widget-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 3px;
    background-color: var(--color-primary);
}

/* القوائم والروابط */
.footer-menu {
    list-style: none; padding: 0; margin: 0;
}
.footer-menu li {
    margin-bottom: 12px;
}
.footer-menu a {
    color: #b3b3b3;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-menu a:hover {
    color: var(--color-primary);
    transform: translateX(-5px); /* حركة لليسار عند التحويم */
}

/* أيقونات التواصل الاجتماعي */
.social-icons {
    display: flex; gap: 15px; margin-top: 20px;
}
.social-icons a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* قائمة التواصل */
.contact-list {
    list-style: none; padding: 0; margin: 0;
}
.contact-list li {
    display: flex; align-items: flex-start; gap: 15px;
    margin-bottom: 15px;
}
.contact-list li i {
    color: var(--color-primary);
    margin-top: 5px;
}
.contact-list a { color: #b3b3b3; }
.contact-list a:hover { color: #fff; }

/* حقوق النشر (Bottom Bar) */
.site-info {
    background-color: #111; /* لون أغمق للشريط السفلي */
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.info-inner {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.developer a { color: #fff; font-weight: bold; }

/* زر العودة للأعلى */
#back-to-top {
    position: fixed;
    bottom: 30px; left: 30px; /* يسار الشاشة للعربية */
    width: 45px; height: 45px;
    background: var(--color-primary);
    color: #fff;
    text-align: center; line-height: 45px;
    border-radius: 4px;
    z-index: 99;
    opacity: 0; visibility: hidden;
    transition: 0.3s;
}
#back-to-top.show {
    opacity: 1; visibility: visible;
}
#back-to-top:hover {
    background: var(--color-dark);
    transform: translateY(-3px);
}

/* التجاوب (Responsive) */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* عمودين في التابلت */
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* عمود واحد في الجوال */
    }
    .info-inner {
        flex-direction: column; text-align: center;
    }
}


/* تنسيق خاص لأيقونة X SVG لتشبه البقية */
.social-icons a svg {
    display: block;
    width: 16px; /* حجم الأيقونة */
    height: 16px;
    fill: #fff; /* اللون الافتراضي أبيض */
    transition: fill 0.3s;
}

/* تلوين الـ SVG عند التحويم */
.social-icons a:hover svg {
    fill: #fff; /* يبقى أبيض لأن الخلفية تتغير للسيان */
}



/* --- Trust Section Styles --- */
.trust-section {
    background-color: var(--dark-base); /* نفس اللون الداكن المستخدم سابقاً */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* خلفية تزيينية خفيفة جداً (اختياري) */
.trust-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 140, 149, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* ضمان أن المحتوى فوق الخلفية */
.trust-section .container {
    position: relative;
    z-index: 2;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* تصميم البطاقة (Trust Card) */
.trust-card {
    background: rgba(255, 255, 255, 0.03); /* خلفية شفافة جداً */
    border: 1px solid rgba(255, 255, 255, 0.05); /* حدود خفيفة */
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px; /* زوايا دائرية خفيفة */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* الخط اللوني العلوي الذي يظهر عند الهوفر */
.trust-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-cyan);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

/* تأثيرات الـ Hover */
.trust-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 140, 149, 0.3);
}

.trust-card:hover::before {
    transform: scaleX(1);
}

/* الأيقونة */
.trust-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.trust-card:hover .trust-icon {
    transform: scale(1.1);
    color: #fff;
}

/* العنوان */
.trust-card h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--white);
    transition: color 0.3s ease;
}

/* النص التوضيحي */
.trust-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

/* --- Media Queries للتجاوب --- */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-card {
        padding: 30px 20px;
    }
}


/* =========================================
   تطوير قسم عوامل الثقة (Pro Trust Section)
   ========================================= */

.trust-section {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a; /* لون أغمق قليلاً من الخلفية العامة للتمييز */
}

/* عنوان فرعي ملون */
.sub-title-cyan {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.relative-z { position: relative; z-index: 2; }

/* الشبكة */
.trust-grid-pro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* تصميم البطاقة */
.trust-card {
    background: rgba(255, 255, 255, 0.03); /* خلفية شبه شفافة */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 30px;
    border-radius: 4px;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* تأثير الخط الجانبي الملون */
.trust-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 4px; height: 0%;
    background-color: var(--color-primary);
    transition: height 0.4s ease;
}

/* تأثير التحويم */
.trust-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.trust-card:hover::before {
    height: 100%; /* ظهور الخط الجانبي */
}

/* الأيقونة */
.t-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    opacity: 0.8;
    transition: 0.3s;
    flex-shrink: 0; /* منع انكماش الأيقونة */
}

.trust-card:hover .t-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* المحتوى النصي */
.t-content h3 {
    font-size: 1.8rem; /* حجم كبير للرقم أو العنوان الرئيسي */
    font-weight: 800;
    margin: 0 0 5px;
    color: #fff;
    line-height: 1;
}

.t-content h4 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.t-content p {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0;
    line-height: 1.6;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .trust-grid-pro {
        grid-template-columns: 1fr; /* بطاقة واحدة في الصف */
    }
    .trust-card {
        flex-direction: column; /* الأيقونة فوق النص */
        text-align: center;
        align-items: center;
    }
    .trust-card::before {
        right: auto; left: 0; width: 100%; height: 4px; top: 0;
    }
    .trust-card:hover::before {
        height: 4px; width: 100%; /* الخط يصبح علوي بدلاً من جانبي */
    }
}



/* =========================================
   تنسيقات صفحة من نحن (About Page Styles)
   ========================================= */

/* 1. Inner Hero (الترويسة الداخلية) */
.inner-hero-section {
    background-color: var(--color-dark);
    /* المسار النسبي الصحيح: يبدأ من مكان ملف style.css ويدخل لمجلد assets */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('assets/images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    padding: 140px 0 80px; /* زيادة الحشوة العلوية لتعويض الهيدر الثابت */
    color: #fff;
    position: relative;
    text-align: center;
}

.inner-hero-section .page-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.breadcrumbs {
    list-style: none; padding: 0; margin: 0;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    font-size: 0.95rem; opacity: 0.9;
}
.breadcrumbs a { color: #fff; text-decoration: none; transition: 0.3s; }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs i { font-size: 0.7rem; margin-top: 2px; color: var(--color-primary); }


/* 2. Story Section (القصة والنشأة) */
/* كلاس العنوان الفرعي الملون (مهم جداً للتوافق) */
.sub-title-cyan {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 20px;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
    text-align: justify;
}

.divider-small {
    width: 60px; height: 4px; background: var(--color-primary);
    border: none; margin: 30px 0; border-radius: 2px;
}

.story-image {
    padding-right: 30px; /* مساحة جمالية */
}

.story-image .img-frame {
    position: relative;
    border: 10px solid #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.year-badge {
    position: absolute; top: -30px; left: -30px;
    background: var(--color-primary); color: #fff;
    padding: 25px 20px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 140px;
    border-radius: 4px;
}
.year-badge .year { display: block; font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.year-badge .label { font-size: 0.85rem; font-weight: 600; opacity: 0.9; }


/* 3. Vision & Mission (الرؤية والرسالة) */
.vision-mission-section {
    position: relative;
    overflow: hidden;
}

.gap-50 { gap: 50px; } /* مسافة بين الصندوقين */

.vm-box {
    background: rgba(255,255,255,0.05);
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    height: 100%; /* لتوحيد الارتفاع */
}
.vm-box:hover { 
    background: rgba(255,255,255,0.08); 
    transform: translateY(-10px); 
    border-color: var(--color-primary);
}

.vm-icon {
    font-size: 3rem; color: var(--color-primary); margin-bottom: 25px;
}
.vm-box h3 { font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.vm-box p { color: #ddd; line-height: 1.8; font-size: 1.05rem; margin: 0; }


/* 4. Values Grid (القيم) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 40px 25px;
    background: #fff;
    border: 1px solid #eee;
    border-top: 4px solid transparent; /* تحضير للإطار العلوي */
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 4px;
}

.value-item:hover {
    border-top-color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.v-icon { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 20px; }
.value-item h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 15px; color: var(--color-dark); }
.value-item p { font-size: 0.95rem; color: #666; margin: 0; line-height: 1.6; }


/* 5. Specialties & ISO (التخصصات والآيزو) */
.specialties-iso-section {
    background-color: var(--color-light-bg);
}

.specs-content h3 { font-size: 2rem; color: var(--color-dark); }

.check-list-grid {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: 1fr; gap: 18px;
}
.check-list-grid li {
    position: relative; padding-right: 35px;
    font-weight: 600; color: #444; font-size: 1.05rem;
}
.check-list-grid li::before {
    content: '\f00c'; /* أيقونة الصح */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 0; top: 4px;
    color: var(--color-primary);
    background: rgba(95, 184, 198, 0.1); /* خلفية خفيفة للأيقونة */
    width: 25px; height: 25px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
}

.iso-box-wrapper {
    display: flex; justify-content: center; align-items: center;
}

.iso-card {
    background: #fff; padding: 50px 40px;
    border: 2px dashed #ccc; /* إطار متقطع */
    max-width: 450px; width: 100%;
    transition: 0.3s;
    position: relative;
}
.iso-card:hover {
    border-color: var(--color-primary);
    transform: scale(1.02);
}


/* --- التجاوب مع الشاشات (Responsive) --- */
@media (max-width: 992px) {
    .align-center { grid-template-columns: 1fr; gap: 50px; }
    .story-image { padding-right: 0; margin-top: 30px; }
    .year-badge { top: auto; bottom: -20px; left: 20px; }
    .gap-50 { grid-template-columns: 1fr; gap: 30px; }
}


/* =========================================
   تنسيقات قسم الدعوة المطور (Pro CTA) - تعديل اللون
   ========================================= */

.cta-pro-section {
    position: relative;
    padding: 100px 0;
    /* اللون السماوي الصافي (السيان) */
    background-color: var(--color-primary); 
    overflow: hidden;
}

/* 1. الخلفية (إلغاء التدرج الداكن والاعتماد على اللون الصافي) */
.cta-overlay-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* جعلناها شفافة قليلاً لتسمح بظهور الخريطة الخلفية بوضوح مع الحفاظ على اللون السماوي */
    background: rgba(95, 184, 198, 0.92); /* هذا هو كود اللون #5FB8C6 بنسبة شفافة */
    z-index: 1;
}

/* 2. خلفية الخريطة (كما هي) */
.cta-map-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('assets/images/world-map.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* زيادة الوضوح قليلاً لأن الخلفية أصبحت أفتح */
    z-index: 0;
    animation: bgMove 60s linear infinite;
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.relative-z { position: relative; z-index: 2; }

/* 3. محتوى البطاقة */
.cta-content-box {
    max-width: 800px;
    margin: 0 auto;
}

.cta-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2); /* زيادة التباين */
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.4);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.cta-desc {
    font-size: 1.2rem;
    color: #fff; /* لون أبيض ناصع */
    opacity: 1;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 500;
}

/* 4. الزر الكبير */
.btn-lg {
    padding: 18px 45px;
    font-size: 1.1rem;
    border: 2px solid #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: none;
}

.btn-lg:hover {
    background: #fff;
    color: var(--color-primary); /* النص يصبح سماوي عند التحويم */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-lg:hover i {
    transform: translateX(-5px);
}

/* تجاوب الجوال */
@media (max-width: 768px) {
    .cta-pro-section { padding: 70px 0; }
    .cta-title { font-size: 1.8rem; }
    .cta-desc { font-size: 1rem; }
    .btn-lg { width: 100%; justify-content: center; }
}

 

/* =========================================
   تنسيقات صفحة المشاريع (Projects Gallery)
   ========================================= */

/* 1. أزرار التصفية (Filter Buttons) */
.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #ddd;
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #666;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif; /* لضمان نفس الخط */
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(95, 184, 198, 0.3);
}

/* 2. شبكة المشاريع */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease; /* من أجل حركة التصفية */
}

.project-item:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

/* 3. صورة المشروع وتأثيراتها */
.p-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.p-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .p-image img {
    transform: scale(1.1); /* تكبير الصورة عند التحويم */
}

/* طبقة التعتيم عند التحويم */
.p-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 31, 31, 0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.project-item:hover .p-overlay {
    opacity: 1;
}

.view-btn {
    width: 50px; height: 50px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: 0.4s;
}

.project-item:hover .view-btn {
    transform: translateY(0);
}

/* 4. محتوى المشروع */
.p-content {
    padding: 25px;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.project-item:hover .p-content {
    border-bottom-color: var(--color-primary);
}

.p-cat {
    display: block;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.p-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.p-content p {
    font-size: 0.95rem;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* التجاوب */
@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .filter-btn { padding: 8px 20px; font-size: 0.9rem; }
}



/* =========================================
   تنسيقات قسم الكتالوجات (Catalogues Section)
   ========================================= */

.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* بطاقة الكتالوج */
.cat-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* تمييز الكتالوجات المهمة */
.cat-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(to right, #fff 98%, var(--color-primary) 98%);
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

/* أيقونة الملف */
.cat-icon {
    width: 50px; height: 50px;
    background: #f4f6f7;
    color: #e74c3c; /* لون أيقونة PDF الأحمر */
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cat-card.featured .cat-icon {
    color: var(--color-primary); /* لون مختلف للمميز */
}

/* معلومات الملف */
.cat-info {
    flex-grow: 1;
}

.cat-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: var(--color-dark);
}

.file-meta {
    display: block;
    font-size: 0.8rem;
    color: #888;
}

/* زر التحميل */
.download-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-dark);
    text-decoration: none;
    transition: 0.3s;
}

.cat-card:hover .download-btn {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* تنسيق بسيط لقائمة القطاعات في الأسفل */
.sectors-simple-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;
}
.sec-item span {
    background: rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    display: block;
    font-size: 0.95rem;
} 


/* =========================================
   تنسيقات صفحة المنتجات (Catalogue Styles)
   [محدث - Checkmark List & Grid Fix]
   ========================================= */

/* الخلفية والشبكة العامة */
.products-catalog-section {
    background: #f9f9f9;
}

.catalog-grid {
    display: grid;
    /* ضبط العرض ليكون متجاوباً (320px كحد أدنى للبطاقة) */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* بطاقة المنتج */
.prod-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px; /* حواف أكثر نعومة */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* لضمان تساوي ارتفاع البطاقات */
    height: 100%;
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* ظل أقوى قليلاً عند التحويم */
    border-color: var(--color-primary);
}

/* صورة البطاقة */
.pc-image {
    height: 230px; /* زيادة بسيطة في الارتفاع */
    position: relative;
    overflow: hidden;
}

.pc-image img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prod-card:hover .pc-image img {
    transform: scale(1.1); /* تأثير زووم أوضح */
}

/* أيقونة البطاقة */
.pc-icon {
    position: absolute; 
    bottom: -25px; /* نزول الأيقونة قليلاً */
    left: 25px;
    width: 60px; height: 60px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

/* محتوى البطاقة */
.pc-content {
    padding: 40px 25px 30px; /* ضبط الحشوات */
    flex-grow: 1; /* يجعل المحتوى يتمدد ليملأ الفراغ */
    display: flex; 
    flex-direction: column;
}

.pc-content h3 {
    font-size: 1.35rem; 
    margin-bottom: 12px; 
    color: var(--color-dark);
    font-weight: 700;
}

.pc-content p {
    font-size: 0.95rem; 
    color: #666; 
    margin-bottom: 20px; 
    line-height: 1.7;
}

/* قائمة الميزات (تم التعديل لاستخدام علامة الصح) */
.pc-features {
    list-style: none; 
    padding: 0; 
    margin: 0 0 25px;
    border-top: 1px solid #f0f0f0; 
    padding-top: 20px;
    flex-grow: 1; /* لدفع الزر للأسفل دائماً */
}

.pc-features li {
    font-size: 0.92rem; 
    color: #555; 
    margin-bottom: 10px;
    position: relative; 
    padding-right: 25px; /* مسافة للأيقونة */
}

.pc-features li::before {
    content: '\f00c'; /* رمز علامة الصح (Check) بدلاً من السهم */
    font-family: 'Font Awesome 5 Free'; 
    font-weight: 900;
    position: absolute; 
    right: 0; 
    top: 4px; 
    color: var(--color-primary); /* لون السيان */
    font-size: 0.85rem;
}

/* زر التفاصيل */
.btn-text {
    color: var(--color-primary); 
    font-weight: 700; 
    text-decoration: none;
    margin-top: auto; /* يضمن بقاء الزر في قاع البطاقة */
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    transition: 0.3s;
}

.btn-text:hover { 
    gap: 12px; 
    color: var(--color-dark); 
}

/* تحسينات للجوال */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* عمود واحد في الجوال */
        gap: 30px;
    }
    
    .pc-image {
        height: 200px;
    }
}
/* --- تنسيقات قسم الجودة (Quality & Sectors) --- */
.white-check li {
    color: #ddd; 
}
.white-check li::before {
    background: rgba(255,255,255,0.1); /* خلفية شفافة للأيقونة */
}

.two-cols {
    grid-template-columns: 1fr 1fr; /* عمودين للقائمة */
}

/* --- تنسيقات الصفحة الداخلية (Single Product) --- */
.product-layout-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr; /* المحتوى الرئيسي أعرض */
    gap: 40px;
}

.single-product-image img {
    width: 100%; border-radius: 4px; border: 1px solid #eee;
}

.product-features-box {
    background: #f9f9f9; padding: 30px; border-radius: 4px; border-right: 4px solid var(--color-primary);
}

/* السايدبار */
.sidebar-widget {
    padding: 25px; margin-bottom: 30px; border-radius: 4px;
}
.bg-light { background: #f8f9fa; }
.border-widget { border: 1px solid #eee; }

.sidebar-widget h4 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block; padding-bottom: 5px;
}

.related-links { list-style: none; padding: 0; margin: 0; }
.related-links li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.related-links li:last-child { border: none; }
.related-links a { 
    color: #555; text-decoration: none; display: block; transition: 0.2s; 
}
.related-links a:hover { color: var(--color-primary); padding-right: 5px; }

/* التجاوب */
@media (max-width: 992px) {
    .product-layout-grid { grid-template-columns: 1fr; }
    .product-sidebar { order: 2; }
}


/* =========================================
   تنسيقات المدونة والأخبار (Blog / Index)
   ========================================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* الصورة المصغرة */
.blog-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f4f4f4;
}

.blog-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
}

.blog-thumb .placeholder-img {
    object-fit: contain; padding: 40px; opacity: 0.5;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

/* مربع التاريخ */
.post-date {
    position: absolute;
    top: 15px; right: 15px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1;
}

.post-date .day {
    display: block; font-size: 1.2rem; font-weight: 800; color: var(--color-primary);
}
.post-date .month {
    display: block; font-size: 0.8rem; color: #666; text-transform: uppercase;
}

/* محتوى التدوينة */
.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex; flex-direction: column;
}

.post-meta {
    font-size: 0.85rem; color: #888; margin-bottom: 10px;
}
.post-meta i { color: var(--color-primary); margin-left: 5px; }

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: 0.3s;
}

.post-title a:hover { color: var(--color-primary); }

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* يدفع الزر للأسفل */
}

/* زر القراءة */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    margin-top: auto;
}

.read-more-link:hover {
    color: var(--color-dark);
    gap: 12px;
}

/* التصفح (Pagination) */
.pagination-wrapper .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    margin: 0 5px;
    color: #555;
    text-decoration: none;
    transition: 0.3s;
}

.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* صفحة 404 */
.not-found-box {
    background: #fff; padding: 50px; border-radius: 6px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 600px; margin: 0 auto;
}
.search-box-404 { max-width: 400px; margin: 0 auto; }


/* =========================================
   تنسيقات صفحة المدونة (Blog Layout)
   ========================================= */

.blog-layout-section {
    background-color: #fff;
}

.blog-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* المحتوى يأخذ مساحة الثلثين */
    gap: 40px;
}

/* --- تنسيقات بطاقة المقال --- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--color-primary);
}

.b-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f4f4f4;
}

.b-thumb img {
    width: 100%; height: 100%; object-fit: cover; transition: 0.5s;
}

.blog-card-item:hover .b-thumb img { transform: scale(1.05); }

.b-cat {
    position: absolute; bottom: 10px; right: 10px;
    background: var(--color-primary); color: #fff;
    padding: 4px 12px; font-size: 0.75rem; border-radius: 4px;
    font-weight: 700;
}

.b-details {
    padding: 20px;
    flex-grow: 1;
    display: flex; flex-direction: column;
}

.b-meta {
    font-size: 0.8rem; color: #999; margin-bottom: 10px;
}
.b-meta i { margin-left: 5px; }

.b-title {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.5;
}
.b-title a { color: var(--color-dark); text-decoration: none; transition: 0.2s; }
.b-title a:hover { color: var(--color-primary); }

.b-excerpt {
    font-size: 0.9rem; color: #666; margin-bottom: 15px; flex-grow: 1;
}

.b-read-more {
    font-size: 0.85rem; font-weight: 700; color: var(--color-primary);
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
    margin-top: auto;
}
.b-read-more:hover { gap: 8px; color: var(--color-dark); }


/* --- تنسيقات السايدبار (Sidebar) --- */
.blog-sidebar {
    position: sticky; top: 100px; /* لتثبيت السايدبار عند التمرير */
    height: fit-content;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem; font-weight: 800; color: var(--color-dark);
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* ويدجت البحث */
.search-form { position: relative; }
.search-form input {
    width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px;
    font-family: 'Cairo', sans-serif;
}
.search-form button {
    position: absolute; left: 5px; top: 5px;
    background: var(--color-primary); color: #fff; border: none;
    width: 35px; height: 35px; border-radius: 4px; cursor: pointer;
}

/* ويدجت التصنيفات */
.categories-widget ul { list-style: none; padding: 0; margin: 0; }
.categories-widget li {
    border-bottom: 1px solid #f5f5f5;
}
.categories-widget li:last-child { border-bottom: none; }

.categories-widget a {
    display: flex; justify-content: space-between;
    padding: 12px 5px;
    color: #555; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: 0.2s;
}
.categories-widget a span { font-size: 0.8rem; color: #aaa; font-weight: 400; }
.categories-widget a:hover { color: var(--color-primary); padding-right: 10px; }

/* ويدجت الدعوة (CTA) */
.cta-widget {
    border: none; /* لأن الخلفية داكنة */
}

/* التجاوب */
@media (max-width: 992px) {
    .blog-grid-layout { grid-template-columns: 1fr; } /* عمود واحد في التابلت والموبايل */
    .blog-sidebar { margin-top: 40px; }
} 


/* =========================================
   تنسيقات صفحة اتصل بنا (Contact Page Styles)
   ========================================= */

/* 1. التخطيط العام */
.contact-content {
    background-color: #f8f9fa;
}

.max-w-900 {
    max-width: 900px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* القائمة الجانبية أصغر من النموذج */
    gap: 40px;
    align-items: start;
}

/* 2. القائمة الجانبية (Sidebar Info) */
.contact-info-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.box-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    display: inline-block;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}
.info-item:last-child { border-bottom: none; }

.info-item .icon {
    width: 40px; height: 40px;
    background: var(--color-light-bg);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.info-item .details strong {
    display: block; color: var(--color-dark); margin-bottom: 5px;
}
.info-item .details p, .info-item .details a {
    color: #666; font-size: 0.95rem; margin: 0; text-decoration: none;
}
.info-item .details a:hover { color: var(--color-primary); }

/* أيقونات التواصل الاجتماعي */
.social-icons-row {
    display: flex; gap: 10px; margin-top: 10px;
}
.sc-icon {
    width: 38px; height: 38px;
    background: #333; color: #fff;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.sc-icon:hover { background: var(--color-primary); transform: translateY(-3px); }

/* 3. صندوق الملاحظات المهمة */
.important-notes {
    background: #fff8e1; /* أصفر فاتح */
    border: 1px solid #ffe0b2;
    padding: 20px;
    border-radius: 6px;
    color: #f57c00;
}
.important-notes h5 { font-weight: 700; margin-bottom: 10px; font-size: 1rem; }
.important-notes ul { margin: 0; padding-right: 20px; }
.important-notes li { margin-bottom: 5px; font-size: 0.9rem; }

/* 4. نموذج التواصل */
.contact-form-wrapper {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-title { font-size: 1.5rem; margin-bottom: 10px; color: var(--color-dark); }
.form-desc { color: #777; margin-bottom: 30px; font-size: 0.95rem; }

.khaldoon-form input, 
.khaldoon-form select, 
.khaldoon-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
    transition: 0.3s;
    background: #fdfdfd;
}

.khaldoon-form input:focus, 
.khaldoon-form textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
}

.form-grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.privacy-note {
    font-size: 0.8rem; color: #999; text-align: center;
}

/* 5. الخريطة */
.map-section iframe {
    display: block;
    filter: grayscale(100%); /* تأثير رمادي للخريطة لتناسب التصميم الصناعي */
    transition: 0.5s;
}
.map-section:hover iframe { filter: grayscale(0%); }

/* التجاوب (Responsive) */
@media (max-width: 992px) {
    .contact-grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
}



/* =========================================
   تعديلات العميل (الشعار + واتساب)
   ========================================= */

/* 1. تكبير الشعار وتغميقه */
.site-branding img, 
.footer-logo {
    max-width: 220px; /* تكبير الحجم (كان 150px) */
    height: auto;
    filter: contrast(1.2) brightness(0.9); /* زيادة التباين وتغميق اللون قليلاً */
}

 /* =========================================
   القائمة العائمة الذكية (Smart Floating Menu)
   ========================================= */

.floating-menu {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse; /* لترتيب العناصر من الأسفل للأعلى */
    align-items: center;
    gap: 15px;
}

/* 1. الزر الرئيسي (الأيقونة الثابتة) */
.main-toggle-btn {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary); /* لون الهوية (السيان) */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* تأثير النبض لجذب الانتباه */
.main-toggle-btn::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 2. الأزرار الفرعية (اتصال + واتساب) */
.floating-item {
    width: 50px;
    height: 50px;
    background-color: #fff; /* خلفية بيضاء لتمييز الأيقونات */
    color: var(--color-dark); /* أيقونة باللون الداكن */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 0; /* مخفية افتراضياً */
    transform: translateY(20px) scale(0.5);
    transition: all 0.3s ease;
    position: relative;
}

/* تلميح النص (Tooltip) بجانب الزر */
.floating-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px; /* يظهر على يسار الزر */
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

/* 3. تأثير التحويم (إظهار القائمة) */
.floating-menu:hover .main-toggle-btn {
    transform: rotate(45deg); /* تدوير الزر الرئيسي */
    background-color: var(--color-dark); /* تغيير لونه للداكن عند الفتح */
}

.floating-menu:hover .main-toggle-btn::before { animation: none; } /* إيقاف النبض عند الفتح */

.floating-menu:hover .floating-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.floating-menu:hover .floating-item:hover::after {
    opacity: 1;
    right: 65px;
}

/* تلوين خاص للأزرار الفرعية عند التحويم عليها */
.floating-item.whatsapp:hover { background-color: #25d366; color: #fff; }
.floating-item.call:hover { background-color: var(--color-primary); color: #fff; }

/* تجاوب الجوال */
@media (max-width: 768px) {
    .floating-menu { bottom: 20px; right: 20px; }
    .main-toggle-btn { width: 55px; height: 55px; font-size: 24px; }
    .floating-item { width: 45px; height: 45px; font-size: 20px; }
}


/* =========================================
   [START] تنسيقات صفحة التوظيف (Careers Page)
   يستبدل أي كود سابق لهذا القسم
   ========================================= */

/* 1. قسم بيئة العمل (الصورة والنص) */
.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.shadow-lg {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1); /* ظل ناعم وكبير */
}

.rounded {
    border-radius: 12px; /* حواف ناعمة للصورة */
}

/* 2. صندوق نموذج التقديم */
.career-form-box {
    background: #fff;
    border-top: 5px solid var(--color-primary); /* اللون الأساسي للموقع */
    position: relative;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-title {
    font-size: 1.4rem;
    color: var(--color-dark);
    margin-bottom: 25px;
    font-weight: 700;
}

/* 3. تنسيق حقل رفع الملفات (Custom File Upload) */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #cbd5e0;
    padding: 35px 20px;
    border-radius: 8px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.file-upload-wrapper:hover {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; /* إخفاء الزر الافتراضي */
    cursor: pointer;
    z-index: 10;
}

.file-note {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 10px;
    pointer-events: none;
}

.file-note i {
    font-size: 2rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 10px;
}

/* 4. رسائل التنبيه (Alerts) */
.alert-box {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-box.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-box.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-box i { font-size: 1.2rem; }

/* 5. تحسينات الحقول */
.khaldoon-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* 6. التجاوب (Mobile Responsive) */
@media (max-width: 992px) {
    .row.align-center {
        flex-direction: column;
        gap: 40px;
    }
    
    /* ترتيب الصورة لتظهر أولاً في الجوال */
    .image-content {
        order: -1; 
        width: 100%;
    }
    
    .career-form-box {
        padding: 25px;
    }
}

/* =========================================
   [END] تنسيقات صفحة التوظيف
   ========================================= */

/* =========================================
   تصحبح ألوان عناوين الفوتر (Footer Headings Fix)
   ========================================= */

.site-footer .footer-widget h4 {
    color: #ffffff !important; /* لون أبيض إجباري */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* ظل خفيف لتحسين القراءة */
}


/* --- Video Wrapper Styles --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* نسبة العرض للارتفاع 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 4px;       /* حواف دائرية خفيفة (اختياري) */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* ظل خفيف */
    background-color: #000;   /* لون خلفية للفيديو قبل التحميل */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* =========================================
   تنسيقات صفحة تفاصيل المنتج والمعرض
   ========================================= */

/* شبكة المعرض */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* عنصر المعرض */
.gallery-item {
    background: #fff;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* تأثير التكبير عند التحويم */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* طبقة الأيقونة */
.gallery-img-wrapper .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-img-wrapper .overlay i {
    color: #fff;
    font-size: 2rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}


/* =========================================
   تنسيق زر التحميل التفاعلي (Interactive Button)
   ========================================= */
.custom-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px; /* حواف دائرية */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* حالة التحويم (Hover) */
.custom-download-btn:hover {
    background: #fff;
    color: var(--color-primary); /* سيصبح النص بلون السيان */
    transform: translateY(-5px); /* يرتفع للأعلى قليلاً */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    gap: 15px; /* تباعد الأيقونة عن النص */
}

/* حركة الأيقونة */
.custom-download-btn .icon-move {
    transition: transform 0.3s;
}

.custom-download-btn:hover .icon-move {
    transform: translateY(3px); /* حركة خفيفة للأسفل */
}

/* =========================================
   تنسيق زر الدعوة النابض (Pulse Button)
   ========================================= */
.text-center-mobile {
    /* في الشاشات الكبيرة يكون بجانب بعض، في الجوال تحت بعض */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .text-center-mobile {
        flex-direction: column;
        text-align: center;
    }
}

/* تصميم الزر */
.btn-pulse {
    background: #fff;
    color: var(--color-primary); /* نفس لون الـ Cyan */
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse-white 2s infinite; /* تشغيل حركة النبض */
}

.btn-pulse i {
    transition: transform 0.3s ease;
}

/* تأثير عند مرور الماوس */
.btn-pulse:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    gap: 15px; /* تباعد الأيقونة */
}

.btn-pulse:hover i {
    transform: translateX(-5px) rotate(-20deg); /* حركة للطائرة الورقية */
}

/* تعريف حركة النبض (Keyframes) */
@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); /* اختفاء الظل تدريجياً */
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
} 

/* =========================================
   تنسيقات صفحة الكتالوجات (Catalogues Page)
   ========================================= */

/* الشبكة */
.catalogues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* بطاقة الكتالوج */
.cat-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

/* أيقونة الملف */
.cat-icon {
    width: 60px;
    height: 60px;
    background: #f4fcfd; /* خلفية سماوي فاتح جداً */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-icon i {
    font-size: 28px;
    color: var(--color-primary);
}

/* معلومات الملف */
.cat-info {
    flex-grow: 1;
}

.cat-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
    color: #333;
}

.cat-info .file-meta {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

/* زر التحميل */
.download-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: 0.3s;
    flex-shrink: 0;
}

.cat-card:hover .download-btn {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* تمييز البطاقات الخاصة (Featured) */
.cat-card.featured {
    border: 1px solid var(--color-primary);
    background: #fbfbfb;
}

.cat-card.featured-dark {
    background: #222;
    border-color: #333;
}
.cat-card.featured-dark .cat-info h4 { color: #fff; }
.cat-card.featured-dark .cat-icon { background: #333; }
.cat-card.featured-dark:hover { border-color: var(--color-primary); }

/* شريط "الرئيسي" */
.ribbon {
    position: absolute;
    top: 12px;
    left: -25px;
    transform: rotate(-45deg);
    background-color: var(--color-primary);
    color: #fff;
    padding: 3px 30px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================
   تنسيق قسم القطاعات (Sectors Grid)
   ========================================= */
.sectors-simple-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sec-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
}

.sec-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.sec-item i {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.check-list-grid-en {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
}
.check-list-grid-en li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.check-list-grid-en li i {
    color: var(--color-primary);
}
