/* ===========================
   Slide 2 — Features Ecosystem (Fixed & Responsive)
   =========================== */
.slide-2 {
    background: #030406;
    background-image: radial-gradient(ellipse at 50% 50%, #11141c 0%, #06080b 60%, #020203 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* دفع المحتوى للأعلى لتوفير مساحة */
    padding: 50px 20px 70px; /* مساحة علوية وسفلية مدروسة */
}

.glow-gold-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 60%);
    animation: none;
}

.header-container {
    text-align: center;
    margin-bottom: 15px;
    z-index: 10;
    flex-shrink: 0;
}

.slide-2 .slide-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.slide-2 .slide-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

/* بطاقة المستثمر */
.investor-highlight {
    background: linear-gradient(90deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.02) 100%);
    border: 1px solid rgba(201,168,76,0.2);
    border-right: 4px solid var(--gold);
    padding: 10px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    max-width: 800px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

    .investor-highlight strong {
        color: var(--gold);
    }

/* شبكة متكيفة مع تمرير داخلي (Scrollable Grid) */
.modules-grid-24 {
    display: grid;
    /* الميزة السحرية: تجعل الأعمدة تتكيف تلقائياً مع حجم الشاشة دون تداخل */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 1250px;
    max-height: 52vh; /* الأهم: يمنع تجاوز الشاشة ويسمح بالتمرير */
    overflow-y: auto; /* تفعيل التمرير العمودي */
    padding: 5px 10px 5px 0;
    z-index: 10;
    direction: rtl;
}

    /* تصميم شريط التمرير (Scrollbar) ليكون فخماً */
    .modules-grid-24::-webkit-scrollbar {
        width: 6px;
    }

    .modules-grid-24::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
    }

    .modules-grid-24::-webkit-scrollbar-thumb {
        background: rgba(201,168,76,0.4);
        border-radius: 10px;
    }

        .modules-grid-24::-webkit-scrollbar-thumb:hover {
            background: rgba(201,168,76,0.8);
        }

/* تصميم البطاقة الأفقي (يوفر مساحة رأسية هائلة) */
.m-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: row; /* جعل الأيقونة بجانب النص */
    align-items: center;
    gap: 12px;
}

    .m-card:hover {
        background: rgba(201,168,76,0.05);
        border-color: rgba(201,168,76,0.4);
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }

.m-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.m-card:hover .m-icon {
    background: rgba(201,168,76,0.15);
    transform: scale(1.1);
}

.m-text {
    display: flex;
    flex-direction: column;
    text-align: right;
    overflow: hidden;
}

.m-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.m-desc {
    color: rgba(255,255,255,0.45);
    font-size: 0.72rem;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap; /* منع نزول النص لسطرين لتوفير المساحة */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* التجاوب مع الجوال (Mobile) */
@media (max-width: 768px) {
    .modules-grid-24 {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); /* عمود واحد في الجوال */
        max-height: 60vh;
    }

    .slide-2 {
        padding: 30px 15px 70px;
    }

        .slide-2 .slide-title {
            font-size: 1.8rem;
        }

    .m-desc {
        white-space: normal;
    }
    /* السماح بسطرين في الجوال */
}
