/* =========================================
   1. متغيرات الألوان والخطوط العامة
   ========================================= */
:root {
    /* الألوان الأساسية */
    --primary-dark: #1a1a3d;
    --primary-blue: #3498db;
    --accent-orange: #F7442D;
    --balance-blue: #0057b7;
    
    /* ألوان الخلفيات والنصوص */
    --bg-light: #f8f9fa;
    --text-grey: #555;
    --text-light: #f0f0f0;
    --text-muted: #999;
    --text-del: #635f5f;
    
    /* ألوان الكارت */
    --card-bg: #1b233d;
    --card-shadow: rgba(100, 100, 111, 0.2) 0px 7px 20px 0px;
    
    /* ألوان التدرج (Gradient) */
    --grad-start: rgb(4, 159, 187);
    --grad-end: rgb(80, 246, 255);
}
body {
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    color: var(--primary-dark);
    overflow-x: hidden;
}

h2, h3, h5 { font-weight: 700; }

/* =========================================
   2. قسم العنوان والصورة 3D (Hero Section)
   ========================================= */
.titel_name {
    margin-top: 50px;
}

.titel_name h2 {
    color: var(--balance-blue);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.titel_name h3 {
    color: var(--text-grey);
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
/* =========================================
    3. أقسام "لماذا تختارنا" (Grid Sections)
    ========================================= */
.section-header {
    text-align: center;
    margin: 60px 0 40px;
}
.section-header h2 {
    color: var(--balance-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-header h2::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
/* حاوية العرض */
.showcase-area {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 80px; /* مسافة سفلية كبيرة */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
}
/* الأرضية البرتقالية المائلة */
.ground {
    position: absolute;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8c6b 100%);
    border-radius: 40px;
    transform: perspective(1000px) rotateX(25deg) scale(0.95);
    z-index: 1;
    top: 60px;
    box-shadow: 0 20px 50px rgba(232, 80, 33, 0.2);
}


/* صورة المحاسبة */
.accounting {
    position: relative;
    z-index: 2;
    border-radius: 15px;
    width: 85%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background-color: #fff;
    border: 1px solid #eee;
}

/* استجابة الجوال للصورة */
@media (max-width: 768px) {
    .ground {
        transform: perspective(600px) rotateX(15deg) scale(0.95);
        height: 200px;
        top: 30px;
    }
    .accounting { width: 95%; }
}

/* =========================================
   3. جدول المميزات (Features Cards)
   ========================================= */
/* #example_daleel {
    width: 90%;
    margin: 0 auto 60px;
    table-layout: fixed;
    border-collapse: separate; 
    border-spacing: 20px; 
    background-color: transparent;
}

#example_daleel td {
    border: none;
    padding: 0;
    vertical-align: top;
    background-color: transparent;
}


.service-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border: 1px solid #f0f0f0;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}


.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.icon-wrapper i {
    font-size: 32px;
    color: #fff;
}



#example_daleel tr td:nth-child(1) .icon-wrapper { background-color: #3498db; }

#example_daleel tr td:nth-child(2) .icon-wrapper { background-color: #1abc9c; }

#example_daleel tr td:nth-child(3) .icon-wrapper { background-color: #e74c3c; }


.service-box .tit {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-box h5 {
    font-size: 0.95rem;
    color: var(--text-grey);
    text-align: center;
    font-weight: 400;
    line-height: 1.5;
}


@media (max-width: 991px) {
    #example_daleel, #example_daleel tbody, #example_daleel tr, #example_daleel td {
        display: block;
        width: 100%;
    }
    #example_daleel td { margin-bottom: 20px; }
} */

#example_daleel {
    width: 95%; /* تم زيادة العرض قليلاً ليستوعب 4 كروت بشكل مريح */
    margin: 0 auto 60px;
    table-layout: fixed;
    border-collapse: separate; 
    border-spacing: 15px; /* تم تقليل المسافة قليلاً لتناسب 4 كروت */
    background-color: transparent;
}

#example_daleel td {
    border: none;
    padding: 0;
    vertical-align: top;
    background-color: transparent;
}

/* تنسيق الكارت */
.service-box {
    background: #fff;
    padding: 30px 15px; /* تم تقليل الحواف الجانبية قليلاً */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition, 0.3s ease); /* أضفت قيمة احتياطية في حال لم تكن المتغيرات معرفة */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* تم التعديل لجعل النصوص تبدأ من الأعلى وتكون متساوية */
    min-height: 320px; /* تم زيادة الطول قليلاً لأن النص قد يكون أطول */
    border: 1px solid #f0f0f0;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* تنسيق الأيقونة */
.icon-wrapper {
    width: 70px; /* تصغير الأيقونة بنسبة بسيطة لتناسب الكروت الأربعة */
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition, 0.3s ease);
}

.icon-wrapper i {
    font-size: 28px;
    color: #fff;
}

/* ألوان خاصة لكل عمود (حسب الترتيب) */
/* العمود 1: Automated - أزرق */
#example_daleel tr td:nth-child(1) .icon-wrapper { background-color: #3498db; }
/* العمود 2: UI - أخضر/تيل */
#example_daleel tr td:nth-child(2) .icon-wrapper { background-color: #1abc9c; }
/* العمود 3: Excel - أحمر */
#example_daleel tr td:nth-child(3) .icon-wrapper { background-color: #e74c3c; }
/* العمود 4: Search - برتقالي (جديد) */
#example_daleel tr td:nth-child(4) .icon-wrapper { background-color: #f39c12; }

/* النصوص داخل الكارت */
.service-box .tit {
    font-size: 1.15rem;
    color: var(--primary-dark, #2c3e50);
    margin-bottom: 12px;
    font-weight: bold;
}

.service-box h5 {
    font-size: 0.9rem;
    color: var(--text-grey, #7f8c8d);
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
    margin: 0;
}

/* استجابة الجدول للموبايل والتابلت */
@media (max-width: 991px) {
    #example_daleel, #example_daleel tbody, #example_daleel tr, #example_daleel td {
        display: block;
        width: 100%;
    }
    #example_daleel td { margin-bottom: 20px; }
    .service-box { min-height: auto; padding: 30px 20px; }
}

/* =========================================
   4. قسم التبويبات والمحاكاة (ERP System Section)
   ========================================= */
.system-features-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-grey);
    font-size: 1.1rem;
}

/* حاوية التبويبات (شريط البرنامج) */
.erp-tab-container {
    background-color: #e6e9ed; /* لون رمادي يحاكي شريط المتصفح/الويندوز */
    border: 1px solid #ccc;
    border-bottom: none;
    display: flex;
    align-items: center;
    padding: 8px 15px 0 15px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* زر إغلاق وهمي للديكور */
.fake-close-btn {
    background-color: #ff5f56; /* لون أحمر */
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    border-radius: 4px;
    cursor: default;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* تنسيق التبويبات (Tabs) */
.erp-tabs {
    border-bottom: none;
    width: 100%;
}

.erp-tabs .nav-link {
    color: #555;
    background-color: #555; /* لون التاب غير النشط */
    border: 1px solid #bbb;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

/* التبويب النشط */
.erp-tabs .nav-link.active {
    background-color: #e85021;
    color: var(--primary-orange);
    border-color: #ccc;
    border-bottom: 1px solid #fff; /* دمج مع المحتوى */
    border-top: 3px solid var(--primary-orange); /* خط برتقالي مميز */
    position: relative;
    top: 1px;
}

/* منطقة المحتوى (Content Area) */
.erp-content-area {
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    padding: 50px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 100%;
    margin: 0 auto; /* توسيط */
}

/* محتوى النصوص داخل التبويب */
.feature-head {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.feature-desc {
    color: var(--text-grey);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* القائمة (Checklist) */

.feature-check {
    list-style: none;
    padding: 0;
}

.feature-check li {
    margin-bottom: 12px;
    color: #1a1a3d; /* أو var(--primary-dark) */
    font-weight: 500;
    display: flex;
    align-items: flex-start; /* محاذاة للأعلى لضمان التناسق */
}

.feature-check i {
    color: #e85021; /* أو var(--primary-orange) */
    margin-right: 12px;
    font-size: 1.1rem;
    margin-top: 4px; /* لضبط محاذاة الأيقونة مع أول سطر */
    flex-shrink: 0; /* منع الأيقونة من الانكماش */
}

/* هذا الكلاس الجديد مهم جداً */
.feature-check .text-content {
    flex: 1; /* يجبر النص على أخذ المساحة المتبقية بجانب الأيقونة */
    display: inline-block; /* يجعل النص ينساب بجانب بعضه */
}
/* صور داخل التبويبات */
.erp-content-area img {
    border: 1px solid #eee;
    transition: transform 0.3s;
}

.erp-content-area img:hover {
    transform: scale(1.02);
}