* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

:root {
    --blue: #007bff;
    --orange: #ff7f00;
    --bg-card: #f4f9ff;
}

body { font-family: sans-serif; margin: 0; background: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; text-align: center; }

.section-title { color: var(--blue); font-size: 32px; margin-bottom: 10px; }
.section-subtitle { color: #555; margin-bottom: 30px; }

/* الأزرار */
.filter-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
    border: 1px solid var(--blue);
    background: white;
    color: var(--blue);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.tab-btn.active, .tab-btn:hover { background: var(--blue); color: white; }

/* شبكة البطاقات */
.leaders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.leader-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}

.image-box { height: 300px; width: 100%; }
.image-box img { width: 100%; height: 100%; object-fit: cover; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    text-align: left;
}

.info h3 { margin: 0; font-size: 16px; color: var(--blue); }
.info span { font-size: 13px; color: #777; }

.play-btn {
    background: var(--orange);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

/* النافذة المنبثقة */
.video-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
}

.modal-content {
    position: relative;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; max-width: 700px;
}

#player { width: 100%; border-radius: 10px; }

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    color: white; font-size: 30px; cursor: pointer;
}


body {
  background: #fff;
  color: #222;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 25px;
}
.nav-links a {
    position: relative; /* ضروري عشان نتحكم في مكان الخط */
    text-decoration: none;
    color: #333; /* أو اللون الحالي عندك */
    padding-bottom: 5px; /* مسافة بسيطة للخط */
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; /* الخط بيبدأ بطول صفر */
    height: 2px; /* سمك الخط */
    bottom: 0;
    right: 0; /* يبدأ الرسم من اليمين لليناسب اللغة العربية */
    background-color: #1976d2; /* اللون الأزرق */
    transition: width 0.3s ease; /* سرعة حركة الخط */
    
}
.nav-links a:hover {
    color: #1976d2; /* تغيير لون النص نفسه للأزرق عند الهوفر */
}

.nav-links a:hover::after {
    width: 100%; /* الخط بياخد عرض الكلمة بالكامل */
    
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}

.primary {
  background: #0b74d9;
  color: #fff;
}

.outline {
  border: 2px solid #0b74d9;
  color: #0b74d9;
}

/* Hero */
.hero {
  padding: 60px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.hero-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}
.hero-buttons .btn:hover {
    transform: scale(1.1); /* تكبير الزر بنسبة 10% */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* إضافة ظل ليعطي عمق */
}

.btn.outline {
    border: 2px solid #25D366; /* لون الواتساب الأخضر */
    color: #25D366;
    background: transparent;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
}

.btn.outline:hover {
    background-color: #25D366; /* ينقلب اللون للأخضر عند الهوفر */
    color: white;
}
.btn i {
    font-size: 1.2rem;
}

/* تنسيق الحاوية الجديدة للأزرار */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* المسافة بين زر اللغة وزر الحجز */
}

/* تنسيق زر اللغة */
.lang-switch {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.lang-switch i {
    color: #1976d2;
}

.lang-switch:hover {
    background-color: #f0f7ff;
    border-color: #1976d2;
    color: #1976d2;
}

/* تعديل للموبايل: إخفاء الأزرار داخل المنيو أو ترتيبها */
@media (max-width: 768px) {
    .nav-actions {
        display: none; /* سيختفي في الموبايل ويظهر بدلاً منه الـ menu-toggle */
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-text h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 25px;
}

.hero-image img {
  width: 100%;
}

/* Sections */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}
.feature-card {
  padding: 60px;
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  transition: 
    transform 0.35s ease,
    box-shadow 1s ease,
    background-color 0.35s ease;
}

.feature-card h3 {
  transition: color 0.3s ease;
}

.feature-card:hover h3 {
  color: #0b74d9;
}
.feature-card:active {
  transform: scale(0.98);
}


.feature-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 116, 217, 0.15);
}

/* تنسيق أزرار التبويب */
.age-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background-color: #f0f0f0; /* لون خلفية الزر غير النشط */
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
}

/* تنسيق الزر النشط */
.tab-btn.active, .tab-btn:hover {
    background-color: #007bff; /* اللون الأزرق الرئيسي لموقعك */
    color: white;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}

/* إخفاء جميع المحتويات بشكل افتراضي */
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

/* إظهار المحتوى النشط */
.active-content {
    display: grid; /* أو display: flex حسب تنسيق الـ cards-container الأصلي عندك */
}

/* أنيميشن بسيط للظهور */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Pricing *//* سيكشن الأسعار */
.pricing {
    padding: 80px 0;
    background-color: #fcfdfe;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

/* الكارت الأساسي */
.price-card {
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 25px;
    padding: 40px 30px;
    width: 320px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* تمييز الباقة الأسطورية */
.price-card.featured {
    border: 2px solid #4a90e2;
    transform: scale(1.05);
    z-index: 2;
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a90e2;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* تنسيق النصوص */
.card-header h3 {
    font-size: 24px;
    color: #1a2b4b;
    margin-bottom: 5px;
}

.card-header p {
    font-size: 14px;
    color: #7a869a;
    margin-bottom: 25px;
}

.price-body .price {
    font-size: 40px;
    font-weight: 800;
    color: #1a2b4b;
}

.price-body .currency {
    font-size: 18px;
    color: #4a90e2;
    font-weight: 700;
}

.duration {
    margin-top: 10px;
    font-size: 15px;
    color: #4a90e2;
    background: #f0f7ff;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
}

/* قائمة المميزات */
.features-list {
    list-style: none;
    margin: 30px 0;
    text-align: right;
    padding: 0 20px;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #4a5e7b;
}

/* الأزرار */
.outline-blue {
    border: 2px solid #4a90e2;
    color: #4a90e2;
    background: transparent;
}

.outline-blue:hover {
    background: #4a90e2;
    color: #fff;
}

/* للموبايل */
@media (max-width: 768px) {
    .price-card.featured {
        transform: scale(1);
    }
    .price-card {
        width: 100%;
    }
}
/* تنسيق السيكشن العام */
.cta-section {
    background: linear-gradient(135deg, #0d47a1, #1976d2); /* تدرج أزرق احترافي */
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif; /* تأكد من استخدام خط مناسب */
}

/* تنسيق الحاوية */
.cta-section .container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* تنسيق صورة الصاروخ */
.cta-icon img {
    width: 120px; /* حجم مناسب للصاروخ */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); /* ظل للصاروخ ليعطي عمق */
    animation: floatRocket 3s ease-in-out infinite; /* تشغيل الأنيميشن */
}

/* العناوين والنصوص */
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e3f2fd; /* لون أبيض مائل للأزرق الفاتح جداً */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* زر الدعوة لاتخاذ إجراء */
.cta-btn {
    display: inline-block;
    background-color: #ffad28; /* لون أصفر برتقالي يبرز فوق الأزرق */
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px; /* حواف دائرية بالكامل */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 162, 23, 0.4); /* توهج خفيف للزر */
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #1900f6;
    transform: translateY(-3px); /* يرتفع الزر قليلاً عند المرور عليه */
    box-shadow: 0 6px 20px rgba(10, 71, 202, 0.6);
}

/* أنيميشن حركة الصاروخ (يطفو لأعلى وأسفل) */
@keyframes floatRocket {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); } /* يتحرك لأعلى */
    100% { transform: translateY(0px) rotate(0deg); }
}

/* --- Responsive Design (للموبايل) --- */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 15px;
    }

    .cta-icon img {
        width: 90px; /* تصغير الصاروخ قليلاً */
    }

    .cta-content h2 {
        font-size: 1.8rem; /* تصغير العنوان */
    }

    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-btn {
        width: 100%; /* الزر يأخذ كامل العرض في الموبايل */
        padding: 12px 20px;
    }
}

/* Footer */
.main-footer {
    background-color: #0a0a0a; /* نفس اللون الأسود في الصورة */
    color: #ffffff;
    padding: 40px 0;
    font-family: 'Cairo', sans-serif;
    border-top: 1px solid #222;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* اللوجو يسار والسوشيال يمين */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* التنسيق الأيسر (اللوجو والحقوق) */
.footer-left {
    text-align: left; /* محاذاة النص لليسار */
}

.footer-logo img {
    width: 110px;
    margin-bottom: 10px;
     /* لو اللوجو أسود يخليه أبيض */
}

.copyrights {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}

/* التنسيق الأيمن (السوشيال ميديا) */
.footer-right {
    text-align: right; /* محاذاة النص لليمن */
}

.social-title {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #eee;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.social-icon {
    width: 38px;
    height: 38px;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* حواف دائرية خفيفة تعطي شكل عصري */
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-icon:hover {
    background-color: #1976d2; /* اللون الأزرق عند التمرير */
    border-color: #1976d2;
    transform: translateY(-3px);
}

/* --- Responsive (للموبايل) --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* ترتيب العناصر فوق بعضها في الموبايل */
        text-align: center;
        gap: 30px;
    }

    .footer-left, .footer-right {
        text-align: center; /* توسيط العناصر في الموبايل */
    }

    .footer-social {
        justify-content: center;
    }
}

/* التجاوب مع الموبايل */
@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        gap: 20px;
    }
}


/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 15px;
    border-radius: 12px;
  }

  .menu-toggle {
    display: block;
  }
}

.learning-paths {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    color: #1a2b4b;
    margin-bottom: 50px;
    position: relative;
}

/* حاوية الكروت */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

/* الكارت الواحد */
.card {
    background: #fff;
    border-radius: 20px;
    width: 280px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* صورة الكارت */
.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوى الكارت */
.card-content {
    padding: 20px;
    position: relative;
    padding-top: 40px; /* لترك مساحة للأيقونة */
}

/* الأيقونة الدائرية */
.icon-wrapper {
    width: 55px;
    height: 55px;
    background-color: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -27px;
    left: 20px; /* مكان الأيقونة حسب الصورة */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.icon {
    font-size: 20px;
    color: #4a90e2;
    font-weight: bold;
}

/* نصوص الكارت */
.card h3 {
    font-size: 22px;
    color: #1a2b4b;
    margin-bottom: 12px;
    font-weight: 700;
}

.card p {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.6;
}

/* تجاوب التصميم مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .card {
        width: 100%;
        max-width: 350px;
    }
}

html {
    scroll-behavior: smooth; /* ده بيخلي الحركة ناعمة وانسيابية */
}

/* نصيحة إضافية: ضيف Padding للسيكشنز عشان الـ Navbar مبيغطيش العنوان */
section {
    scroll-margin-top: 80px; /* خلي الرقم ده نفس طول الـ Navbar بتاعك تقريباً */
}

/* تصميم شاشة التحميل */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* لون خلفية الشاشة */
    z-index: 99999; /* أعلى من أي عنصر تاني */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-video {
    width: 100px; /* تحكم في حجم الفيديو من هنا */
    height: auto;
    margin-bottom: 20px;
}

/* حالة الإخفاء بعد التحميل */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* --- سيكشن من نحن (About Section) --- */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
    direction: rtl; /* لضمان الترتيب من اليمين لليسار */
}

.about-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap; /* للتوافق مع الموبايل */
}

/* محتوى النص */
.about-content {
    flex: 1;
    min-width: 300px;
}

.section-title {
    font-size: 2.5rem;
    color: #003366; /* أزرق داكن احترافي */
    margin-bottom: 20px;
    font-weight: bold;
}

.about-text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* بادج STEM */
.badges-container {
    display: flex;
    gap: 20px;
}

.stem-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f0f7ff;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid #d1e7ff;
}

.stem-badge img {
    height: 40px; /* حجم الشعار */
    width: auto;
}

.stem-badge span {
    font-weight: bold;
    color: #0056b3;
    font-size: 1rem;
}

/* جزء الإحصائيات (الكروت) */
.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-width: 300px;
}

.stat-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px); /* تأثير حركة خفيفة عند الوقوف عليه */
    border-color: #007bff;
}

.stat-card h3 {
    font-size: 2.2rem;
    color: #007bff; /* اللون الأساسي للأرقام */
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-card p {
    font-size: 1.1rem;
    color: #777;
    margin: 0;
}

/* --- التوافق مع الشاشات الصغيرة --- */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .badges-container {
        justify-content: center;
    }

    .about-stats {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

.faq-section {
    padding: 80px 0;
    background-color: #f8fbff; /* خلفية سماوي فاتح جداً */
    direction: rtl;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    margin-bottom: 15px;
    border-radius: 20px; /* حواف دائرية شيك */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #003366;
    font-size: 1.1rem;
}

.faq-question:hover {
    background-color: #f0f7ff;
}

.faq-question .icon {
    font-size: 0.8rem;
    color: #007bff;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0; /* مخفي افتراضياً */
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
    color: #666;
    line-height: 1.7;
}

/* الحالة النشطة عند الفتح */
.faq-item.active .faq-answer {
    padding: 10px 30px 25px 30px;
    max-height: 200px; /* القيمة دي لازم تكون أكبر من محتوى النص */
}

.faq-item.active .faq-question .icon {
    transform: rotate(180deg); /* قلب السهم */
}

.faq-item.active {
    border: 1px solid #007bff;
}
.login-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #007bff; /* نفس لون البراند الأزرق */
    color: #007bff;
    border-radius: 50px; /* حواف دائرية مثل باقي الأزرار */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    margin: 0 5px;
}

.login-platform-btn:hover {
    background-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

/* إضافة أيقونة بسيطة قبل النص */
.login-platform-btn i {
    font-size: 18px;
}