/* =========================================================
   MSAHEM INVESTMENT PIPELINE
   نظام تقييم واتخاذ القرار الاستثماري
========================================================= */

.msahem-investment-pipeline {
    position: relative;

    padding: 110px 0;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(190, 139, 48, .09),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f6f7f9 100%
        );

    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.pipeline-header {
    max-width: 900px;

    margin: 0 auto 45px;

    text-align: center;
}


.pipeline-eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    padding: 7px 17px;

    background: #fbf3e3;

    border:
        1px solid rgba(190, 139, 48, .16);

    border-radius: 999px;

    color: #aa711b;

    font-size: 13px;
    font-weight: 900;
}


.pipeline-header h2 {
    margin: 0 0 17px;

    color: #101c38;

    font-size: 39px;
    font-weight: 950;

    line-height: 1.4;
}


.pipeline-header p {
    max-width: 790px;

    margin: 0 auto;

    color: #657084;

    font-size: 15px;
    font-weight: 600;

    line-height: 2;
}


/* =========================================================
   OVERVIEW
========================================================= */

.pipeline-overview {
    max-width: 1050px;

    margin: 0 auto 55px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}


.pipeline-overview-item {
    min-height: 92px;

    padding: 15px 17px;

    display: flex;

    align-items: center;

    gap: 13px;

    background: #ffffff;

    border:
        1px solid rgba(190, 139, 48, .17);

    border-radius: 16px;

    box-shadow:
        0 7px 22px rgba(16, 28, 56, .045);
}


.pipeline-overview-item > strong {
    color: #c0872c;

    font-size: 28px;
    font-weight: 950;
}


.pipeline-overview-item div {
    min-width: 0;
}


.pipeline-overview-item span {
    display: block;

    margin-bottom: 2px;

    color: #17233e;

    font-size: 12px;
    font-weight: 900;
}


.pipeline-overview-item small {
    display: block;

    color: #8b95a5;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   PIPELINE SHELL
========================================================= */

.pipeline-shell {
    position: relative;

    max-width: 1180px;

    margin: 0 auto;
}


/* الخط المركزي */

.pipeline-line {
    position: absolute;

    top: 30px;
    bottom: 115px;

    right: 37px;

    width: 2px;

    background:
        linear-gradient(
            180deg,
            #d6a146,
            #e4c687,
            #d6a146
        );

    opacity: .55;
}


/* =========================================================
   STAGE
========================================================= */

.pipeline-stage {
    position: relative;

    display: grid;

    grid-template-columns:
        76px 1fr;

    gap: 22px;

    margin-bottom: 21px;
}


/* =========================================================
   MARKER
========================================================= */

.pipeline-stage-marker {
    position: relative;

    z-index: 3;

    width: 76px;

    display: flex;

    justify-content: center;
}


.pipeline-stage-marker > span {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #101c38;

    border:
        5px solid #f7f8fa;

    border-radius: 50%;

    color: #e0ad50;

    font-size: 13px;
    font-weight: 950;

    box-shadow:
        0 7px 20px rgba(16, 28, 56, .16);
}


/* =========================================================
   STAGE CARD
========================================================= */

.pipeline-stage-card {
    position: relative;

    padding: 23px 25px;

    background: #ffffff;

    border:
        1px solid rgba(190, 139, 48, .18);

    border-radius: 20px;

    box-shadow:
        0 8px 26px rgba(16, 28, 56, .055);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.pipeline-stage-card:hover {
    transform: translateX(-5px);

    border-color:
        rgba(190, 139, 48, .48);

    box-shadow:
        0 16px 36px rgba(16, 28, 56, .09);
}


/* خط ذهبي صغير على الكرت */

.pipeline-stage-card::before {
    content: "";

    position: absolute;

    top: 24px;
    bottom: 24px;

    right: 0;

    width: 3px;

    background:
        linear-gradient(
            180deg,
            #e2b35e,
            #bc7d21
        );

    border-radius: 3px 0 0 3px;
}


/* =========================================================
   CARD TOP
========================================================= */

.pipeline-stage-top {
    display: grid;

    grid-template-columns:
        56px 1fr auto;

    align-items: center;

    gap: 15px;
}


/* =========================================================
   ICON
========================================================= */

.pipeline-stage-icon {
    width: 56px;
    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #f6ead1
        );

    border:
        1px solid rgba(190, 139, 48, .16);

    border-radius: 15px;

    font-size: 27px;
}


/* =========================================================
   TITLE
========================================================= */

.pipeline-stage-title > span {
    display: block;

    margin-bottom: 3px;

    color: #b27a23;

    font-size: 10px;
    font-weight: 900;
}


.pipeline-stage-title h3 {
    margin: 0;

    color: #13203c;

    font-size: 20px;
    font-weight: 950;

    line-height: 1.45;
}


/* =========================================================
   STATUS
========================================================= */

.pipeline-status {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 6px 11px;

    background: #f7f3eb;

    border-radius: 999px;

    color: #9b691f;

    font-size: 9px;
    font-weight: 900;

    white-space: nowrap;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.pipeline-stage-description {
    max-width: 850px;

    margin: 16px 71px 18px 0;

    color: #616c7e;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.9;
}


/* =========================================================
   META
========================================================= */

.pipeline-stage-meta {
    margin-right: 71px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.pipeline-stage-meta > div {
    min-height: 60px;

    padding: 10px 12px;

    display: flex;

    align-items: center;

    gap: 9px;

    background: #f8f9fb;

    border-radius: 11px;
}


.pipeline-stage-meta > div > span {
    width: 31px;
    height: 31px;

    min-width: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fbf2df;

    border-radius: 9px;

    color: #b67b21;

    font-size: 10px;
    font-weight: 950;
}


.pipeline-stage-meta p {
    margin: 0;
}


.pipeline-stage-meta small {
    display: block;

    margin-bottom: 2px;

    color: #98a1af;

    font-size: 8px;
    font-weight: 800;
}


.pipeline-stage-meta strong {
    display: block;

    color: #3b475b;

    font-size: 10.5px;
    font-weight: 850;
}


/* =========================================================
   FINAL DECISION
========================================================= */

.pipeline-decision {
    position: relative;

    margin: 35px 0 0 98px;

    padding: 25px 28px;

    display: grid;

    grid-template-columns:
        62px 1fr;

    align-items: center;

    gap: 18px;

    background:
        linear-gradient(
            135deg,
            #101c38,
            #172746
        );

    border-radius: 20px;

    box-shadow:
        0 16px 38px rgba(16, 28, 56, .16);
}


.pipeline-decision-icon {
    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #dbad54,
            #b5771f
        );

    border-radius: 17px;

    color: #ffffff;

    font-size: 29px;
    font-weight: 950;
}


.pipeline-decision span {
    display: block;

    margin-bottom: 3px;

    color: #e1b764;

    font-size: 11px;
    font-weight: 900;
}


.pipeline-decision h3 {
    margin: 0 0 5px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 950;
}


.pipeline-decision p {
    margin: 0;

    color: #cbd2de;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .pipeline-overview {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .pipeline-header h2 {
        font-size: 33px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .msahem-investment-pipeline {
        padding: 70px 0;
    }


    .pipeline-header {
        margin-bottom: 32px;
    }


    .pipeline-header h2 {
        font-size: 27px;
    }


    .pipeline-header p {
        font-size: 13px;
    }


    .pipeline-overview {
        margin-bottom: 40px;

        grid-template-columns:
            1fr 1fr;

        gap: 8px;
    }


    .pipeline-overview-item {
        min-height: 78px;

        padding: 11px;
    }


    .pipeline-overview-item > strong {
        font-size: 21px;
    }


    .pipeline-overview-item span {
        font-size: 10px;
    }


    .pipeline-overview-item small {
        font-size: 7px;
    }


    .pipeline-line {
        right: 24px;
    }


    .pipeline-stage {
        grid-template-columns:
            50px 1fr;

        gap: 10px;
    }


    .pipeline-stage-marker {
        width: 50px;
    }


    .pipeline-stage-marker > span {
        width: 43px;
        height: 43px;

        border-width: 4px;

        font-size: 10px;
    }


    .pipeline-stage-card {
        padding: 17px 14px;
    }


    .pipeline-stage-top {
        grid-template-columns:
            45px 1fr;
    }


    .pipeline-stage-icon {
        width: 45px;
        height: 45px;

        font-size: 21px;
    }


    .pipeline-stage-title h3 {
        font-size: 15px;
    }


    .pipeline-status {
        display: none;
    }


    .pipeline-stage-description {
        margin:
            13px 0 15px;

        font-size: 11px;
    }


    .pipeline-stage-meta {
        margin-right: 0;

        grid-template-columns: 1fr;
    }


    .pipeline-stage-meta strong {
        font-size: 9.5px;
    }


    .pipeline-decision {
        margin:
            25px 0 0;

        padding: 20px;

        grid-template-columns:
            50px 1fr;
    }


    .pipeline-decision-icon {
        width: 50px;
        height: 50px;

        font-size: 23px;
    }


    .pipeline-decision h3 {
        font-size: 17px;
    }


    .pipeline-decision p {
        font-size: 10px;
    }

}