/* ========================================================= */
/* HOME PAGE - PREMIUM CLEAN DESIGN (مع شروحات عربية)        */
/* ========================================================= */

/* ========================================================= */
/* 1. الهيرو (السلايدر)                                      */
/* ========================================================= */
.home-hero {
    position: relative;
    min-height: 85vh; /* ارتفاع الهيرو (90% من الشاشة تقريباً) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #0f172a; /* لون احتياطي داكن */
}

.hero-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 10s ease-out;
    transform: scale(1);
}

.slide-bg.active {
    opacity: 1;
    transform: scale(1.1); /* حركة الزوم */
}

/* فلتر الشفافية فوق الصور - تم تغييره للون كحلي داكن مع تدرج سماوي */
.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /* التدرج الجديد: كحلي داكن (0f172a) مع لمسة سماوية (0ea5e9) بنسبة 70% */
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(14, 165, 233, 0.4) 100%);
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    color: #fff;
}

/* النصوص المتحركة */
.slide-text {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-text.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px; /* تم تصغير المساحة الداخلية */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem; /* تم تصغير الخط */
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.home-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* تم تصغير حجم الخط */
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.home-title span { color: #bae6fd; }

.home-subtitle {
    font-size: 1.1rem; /* تم تصغير الخط */
    color: rgba(255, 255, 255, 0.95);
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px; /* تم تصغير الأزرار */
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s ease;
}

.home-btn-primary {
    background: #fff;
    color: #0284c7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.home-btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    color: #0f172a;
}

.home-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}
.home-btn-secondary:hover {
    background: #fff;
    color: #0284c7;
}

/* ========================================================= */
/* 2. Bento Grid (البطاقات)                                  */
/* ========================================================= */
.home-bento-section {
    max-width: 1100px;
    margin: 50px auto; /* المسافة بين الهيرو والبطاقات (أعلى وأسفل) */
    padding: 0 20px; /* مسافة من اليمين واليسار (للشاشات الصغيرة) */
}

.home-section-head {
    text-align: center;
    margin-bottom: 20px; /* المسافة بين العنوان والبطاقات */
}

.home-section-title {
    font-size: 2.2rem; /* حجم خط العنوان */
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 10px;
}

.home-section-desc {
    color: #64748b;
    font-size: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* المسافة بين البطاقات */
}

.bento-item {
    background: #fff;
    border-radius: 30px; /* استدارة حواف البطاقة */
    padding: 30px; /* المساحة الداخلية للبطاقة */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* الظل */
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bento-wide {
    grid-column: span 2;
    flex-direction: row;
    text-align: start; /* محاذاة النص لليسار/اليمين حسب اللغة */
    justify-content: flex-start;
    gap: 30px;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.15);
    border-color: #0ea5e9;
}

.bento-icon {
    width: 60px; height: 60px;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.bento-wide .bento-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.bento-item:hover .bento-icon {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.bento-item h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.bento-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-wide { grid-column: span 1; flex-direction: column; text-align: center; gap: 20px; }
    .bento-wide .bento-icon { margin-bottom: 0; }
}

/* ========================================================= */
/* 3. كيف نعمل                                               */
/* ========================================================= */
.home-how-section {
    background: #f8fafc;
    padding: 30px 10px; /* المسافة العلوية والسفلية للقسم */
}

.home-how-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px; /* المسافة بين العنوان والخطوات */
    position: relative;
}

.how-steps::before {
    content: '';
    position: absolute;
    top: 40px; left: 15%; right: 15%;
    height: 2px;
    background: #cbd5e1;
    z-index: 1;
}

.how-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.how-num {
    width: 70px; height: 70px; /* حجم الدائرة */
    background: #fff;
    border: 4px solid #0ea5e9;
    color: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.how-step:hover .how-num {
    transform: scale(1.15) rotate(10deg);
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.4);
}

.how-step h3 { font-size: 1.2rem; color: #0f172a; margin-bottom: 10px; }
.how-step p { color: #64748b; font-size: 0.9rem; }

@media (max-width: 768px) {
    .how-steps { grid-template-columns: 1fr; }
    .how-steps::before { display: none; }
}

/* ========================================================= */
/* 4. الشركاء                                                */
/* ========================================================= */
.home-partners {
    max-width: 1100px;
    margin: 20px auto; /* المسافة العلوية والسفلية */
    padding: 0 20px;
    text-align: center;
}

.home-partners p {
    font-size: 1rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.home-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.home-partners-grid:hover { opacity: 1; }

.home-partners-grid i {
    font-size: 2.5rem;
    color: #64748b;
    transition: color 0.3s ease;
}

.home-partners-grid i:hover { color: #0ea5e9; }

/* ========================================================= */
/* 5. الأسئلة الشائعة (FAQ)                                  */
/* ========================================================= */
.home-faq-section {
    max-width: 900px;
    margin: 20px auto; /* المسافة العلوية والسفلية */
    padding: 0 20px;
}

.home-faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px; /* المسافة بين كل سؤال */
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.home-faq-q {
    padding: 10px; /* المساحة الداخلية للسؤال */
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.home-faq-q:hover { background: #f8fafc; }
.home-faq-q i { color: #0ea5e9; transition: transform 0.3s ease; }

.home-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
    color: #64748b;
    line-height: 1.7;
}

.home-faq-item.open .home-faq-a {
    max-height: 200px;
    padding: 0 20px 20px;
}

.home-faq-item.open .home-faq-q i { transform: rotate(180deg); }

/* ========================================================= */
/* 6. CTA النهائي                                            */
/* ========================================================= */
.home-cta-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.home-cta-box {
    background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    padding: 20px 20px; /* المساحة الداخلية للصندوق */
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.home-cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent 30%);
    animation: spin 5s linear infinite;
    z-index: 1;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.home-cta-box h2, .home-cta-box p, .home-cta-box a { position: relative; z-index: 2; }
.home-cta-box h2 { font-size: 2rem; margin-bottom: 15px; color: #fff; font-weight: 800; }
.home-cta-box p { font-size: 1rem; color: rgba(255,255,255,0.9); margin-bottom: 25px; }