/* === assets/css/home.css === */

.hero {
    padding: 60px 2%;
    min-height: 85vh;
    display: grid;
    /* العودة للتقسيم القديم: النص يأخذ مساحة أكبر */
    grid-template-columns: 1.1fr 0.9fr; 
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f9fcff 0%, #ffffff 100%);
    position: relative;
}

/* 2. النصوص (الجزء اليمين) */
.hero-text { text-align: right; z-index: 2; }

.badge-box {
    background-color: #e7f1ff; 
    color: var(--primary-action);
    padding: 8px 15px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.9rem;
    margin-bottom: 20px; 
    display: inline-block; 
    border-right: 4px solid var(--primary-action);
}

.hero h1 { 
    font-size: 3rem; /* الحجم الكبير الأصلي */
    font-weight: 900; 
    line-height: 1.4; 
    margin-bottom: 20px; 
    color: var(--elite-blue);
}

.hero p { 
    font-size: 1.3rem; /* حجم خط الوصف الأصلي */
    color: #555; 
    margin-bottom: 35px; 
    line-height: 1.8; 
    font-weight: 600;
}

/* إظهار كسر السطر فقط في الشاشات الكبيرة */
@media (min-width: 992px) { .break-lg { display: block; margin-top: 5px; } }

.hero-actions { display: flex; gap: 15px; }
.hero-btn-large { padding: 12px 40px; font-size: 1.1rem; }

/* 3. السلايدر (الجزء اليسار) - الإصلاح الكامل */
.hero-slider-container {
    width: 100%;
    aspect-ratio: 16/9; 
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #fff;
    border: 3px solid white;
    z-index: 1;
}

/* === الكود الصحيح والنهائي للسلايدر (بدون تكرار) === */

.slide {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    opacity: 0; 
    transition: opacity 0.9s ease-in-out; /* القيمة من الصورة */
    display: flex; 
    justify-content: center; 
    align-items: center;
    background-color: #fff;
    text-decoration: none;
}

.slide.active { 
    opacity: 1; /* تم تصحيح 1.2 إلى 1 (لأن أقصى شفافية هي 1) */
    z-index: 2; 
}

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    
    /* === نقطة البداية (مهم جداً) === */
    transform: scale(1.5); /* الصورة تبدأ صغيرة */
    
    transition: transform 2s ease; /* مدة الزووم */
}

.slide.active img { 
    /* === نقطة النهاية === */
    transform: scale(1); /* الصورة تكبر لتملأ الإطار */
}

/* طبقة العنوان */
.slide-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white; padding: 20px; text-align: center; z-index: 3;
}
.slide-caption h3 { font-size: 1.5rem; font-weight: bold; margin: 0; font-family: 'Cairo', sans-serif; }

/* الأسهم */
.slider-nav {
    position: absolute; top: 50%; width: 100%; transform: translateY(-50%);
    display: flex; justify-content: space-between; padding: 0 15px; z-index: 10;
    pointer-events: none;
}
.nav-btn {
    pointer-events: auto; background: rgba(255,255,255,0.8); color: var(--elite-blue);
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    font-size: 1.2rem; display: flex; justify-content: center; align-items: center; transition: 0.3s;
}
.nav-btn:hover { background: var(--primary-action); color: white; }

/* 4. تجاوب الموبايل */
@media (max-width: 992px) {
    .hero { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero-text { text-align: center; order: 2; }
    .hero-slider-container { order: 1; max-width: 500px; margin: 0 auto; }
    .hero-actions { justify-content: center; }
}