/* ==============================================
   🔶 خارطة المسار الاستثماري – Investment Pathway
================================================ */

.feasibility-pathway {
    padding: 90px 0 110px;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f3f0 40%, #ebe7df 100%);
    position: relative;
    overflow: hidden;
    direction: rtl;
}

/* هالة ذهبية خفيفة */
.feasibility-pathway::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center,
        rgba(255,255,255,0.96) 0%,
        rgba(217,179,106,0.16) 40%,
        transparent 70%);
    pointer-events: none;
}

/* عنوان القسم */
.feasibility-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.feasibility-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.feasibility-header p {
    font-size: 15px;
    line-height: 2;
    color: #4b5563;
}

.feasibility-header strong {
    color: #b48a3b;
    font-weight: 800;
}

/* غلاف المسار */
.pathway-wrapper {
    position: relative;
    margin-top: 10px;
    padding: 40px 0 10px;
}

/* الخط العمودي للمسار */
.pathway-line {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 3px;
    transform: translateX(50%);
    background: linear-gradient(180deg,
        #d1b26b 0%,
        #f6e4b5 35%,
        #fef9e7 55%,
        #f6e4b5 75%,
        #d1b26b 100%);
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(217,179,106,0.65);
    opacity: 0.95;
}

/* شبكة العناصر */
.pathway-grid {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 2;
}

/* كل نقطة في المسار */
.pathway-item {
    position: relative;
    display: flex;
    align-items: flex-start;
}

/* يمين / يسار المسار */
.pathway-item.is-right {
    justify-content: flex-end;
}

.pathway-item.is-left {
    justify-content: flex-start;
}

/* النقطة الموجودة على الخط */
.pathway-node {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translate(50%, 0);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 0 4px rgba(249,250,251,0.98),
        0 0 18px rgba(15,23,42,0.45);
}

/* رقم المرحلة */
.pathway-node span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fbbf24;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 0 2px #111827;
}

/* البطاقة */
.pathway-card {
    position: relative;
    max-width: 380px;
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 16px 38px rgba(15,23,42,0.14);
    border: 1px solid rgba(209,213,219,0.85);
    text-align: right;
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease,
                background-color .25s ease;
}

/* تموضع الكروت يمين ويسار */
.pathway-item.is-right .pathway-card {
    margin-right: 60px;
}

.pathway-item.is-left .pathway-card {
    margin-left: 60px;
}

/* رأس الكرت */
.pathway-card h4 {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
}

.pathway-card p {
    font-size: 12px;
    line-height: 1.9;
    color: #4b5563;
}

/* هوفر */
.pathway-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(15,23,42,0.18);
    border-color: rgba(217,179,106,0.95);
    background-color: #ffffff;
}

.pathway-card:hover h4 {
    color: #b48a3b;
}

/* المرحلة النهائية شكلها أثقل قليلاً */
.pathway-item.is-final .pathway-card {
    border-width: 1.5px;
    background: linear-gradient(135deg, #fffdf7, #f6ecda);
}

/* CTA في الأسفل */
.pathway-cta {
    margin-top: 52px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.pathway-cta p {
    font-size: 14px;
    color: #374151;
    margin-bottom: 12px;
}

.pathway-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #d1b26b, #f6e4b5);
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(148,114,46,0.45);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pathway-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(148,114,46,0.55);
}

/* =============================
   موبايل و شاشات أصغر
==============================*/
@media (max-width: 992px) {

    .feasibility-header h2 {
        font-size: 24px;
    }

    .pathway-line {
        right: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
    }

    .pathway-grid {
        gap: 28px;
    }

    .pathway-item {
        justify-content: flex-end !important;
    }

    .pathway-item.is-right .pathway-card,
    .pathway-item.is-left .pathway-card {
        margin-right: 60px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {

    .pathway-grid {
        gap: 24px;
    }

    .pathway-card {
        max-width: 100%;
        padding: 14px 14px;
    }

    .pathway-item.is-right .pathway-card {
        margin-right: 48px;
    }

    .pathway-node {
        width: 26px;
        height: 26px;
    }

    .pathway-node span {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .pathway-card h4 {
        font-size: 13px;
    }

    .pathway-card p {
        font-size: 11px;
    }
}
