/* =========================================================
   محفظة المشاريع الإضافية
   نفس روح بطاقات المشاريع الأصلية
   Desktop: 6 بطاقات في السطر
========================================================= */

.portfolio-projects {
    padding: 90px 0;
    background: #f4f5f7;
}

.portfolio-header {
    max-width: 820px;
    margin: 0 auto 45px;
    text-align: center;
}

.portfolio-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #c58a2d;
    font-size: 13px;
    font-weight: 800;
}

.portfolio-header h2 {
    margin: 0 0 13px;
    color: #0f172a;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.4;
}

.portfolio-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}


/* =========================================================
   الشبكة - 6 بطاقات في كل صف
========================================================= */

.portfolio-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}


/* =========================================================
   البطاقة
========================================================= */

.portfolio-card {
    position: relative;
    min-width: 0;
    min-height: 330px;

    background: #ffffff;

    border: 1px solid rgba(218, 169, 86, 0.48);
    border-radius: 20px;

    padding: 18px 12px 16px;

    box-shadow:
        0 10px 28px rgba(15, 23, 42, 0.06);

    display: flex;
    flex-direction: column;

    text-align: center;

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

.portfolio-card:hover {
    transform: translateY(-5px);

    border-color: rgba(197, 138, 45, 0.75);

    box-shadow:
        0 17px 35px rgba(15, 23, 42, 0.11);
}


/* =========================================================
   أعلى البطاقة
========================================================= */

.portfolio-card-top {
    position: relative;

    min-height: 105px;

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

    padding: 0;
}


/* =========================================================
   الشعار
========================================================= */

.portfolio-logo {
    width: 92px;
    height: 92px;

    margin: 0 auto;

    border-radius: 22px;

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

    background: #ffffff;

    border: 2px solid rgba(218, 169, 86, 0.62);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.06);
}

.portfolio-logo svg {
    width: 51px;
    height: 51px;

    fill: none;

    stroke: #b77b25;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* نخفي رقم المشروع */
.portfolio-number {
    display: none;
}


/* =========================================================
   محتوى البطاقة
========================================================= */

.portfolio-card-body {
    padding: 10px 0 0;

    display: flex;
    flex-direction: column;

    flex: 1;
}


/* القطاع */
.portfolio-sector {
    order: 2;

    display: block;

    margin: 0 0 8px;

    padding: 0;

    background: transparent;

    color: #64748b;

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


/* اسم المشروع */
.portfolio-card h3 {
    order: 1;

    min-height: 48px;

    margin: 0 0 7px;

    color: #111827;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.65;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   معلومات المشروع
========================================================= */

.portfolio-info {
    order: 3;

    margin-top: 0;
    padding-top: 0;

    border-top: 0;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.portfolio-info > div {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 4px;
}


/* نخفي الأيقونات الصغيرة */
.portfolio-info-icon {
    display: none;
}

.portfolio-info p {
    margin: 0;

    color: #475569;

    font-size: 11px;
    line-height: 1.6;

    text-align: center;
}

.portfolio-info small {
    display: inline;

    margin: 0 0 0 3px;

    color: #475569;

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

.portfolio-info small::after {
    content: ":";
}

.portfolio-info strong {
    color: #64748b;

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


/* =========================================================
   حالة المشروع
========================================================= */

.portfolio-status {
    order: 4;

    margin-top: auto;
    padding-top: 13px;
}

.portfolio-status-title {
    margin-bottom: 7px;

    color: #475569;

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

.portfolio-status-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.portfolio-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 52px;

    padding: 4px 8px;

    border-radius: 999px;

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


/* منفذ */
.portfolio-status-badge.completed {
    color: #ffffff;
    background: #55a94c;
}


/* قيد التنفيذ */
.portfolio-status-badge.progress {
    color: #ffffff;
    background: #e79a24;
}


.portfolio-percent {
    min-width: 31px;

    color: #459641;

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

.portfolio-percent.progress {
    color: #d88713;
}


/* =========================================================
   شريط الإنجاز
========================================================= */

.portfolio-progress {
    position: relative;

    height: 5px;

    margin-top: 8px;

    background: #e8edf0;

    border-radius: 999px;

    overflow: hidden;
}

.portfolio-progress-bar {
    height: 100%;

    background: #55a94c;

    border-radius: inherit;
}

.portfolio-progress-bar.progress {
    background: #e79a24;
}


/* =========================================================
   شاشات متوسطة
========================================================= */

@media (max-width: 1400px) {

    .portfolio-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

}


@media (max-width: 1200px) {

    .portfolio-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


@media (max-width: 992px) {

    .portfolio-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   الجوال
========================================================= */

@media (max-width: 700px) {

    .portfolio-projects {
        padding: 60px 0;
    }

    .portfolio-header {
        margin-bottom: 30px;
    }

    .portfolio-header h2 {
        font-size: 26px;
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .portfolio-card {
        min-height: 310px;

        padding: 14px 9px;

        border-radius: 17px;
    }

    .portfolio-logo {
        width: 78px;
        height: 78px;

        border-radius: 19px;
    }

    .portfolio-logo svg {
        width: 43px;
        height: 43px;
    }

    .portfolio-card-top {
        min-height: 88px;
    }

    .portfolio-card h3 {
        min-height: 44px;

        font-size: 12px;
    }

    .portfolio-sector,
    .portfolio-info p,
    .portfolio-info small,
    .portfolio-info strong {
        font-size: 9.5px;
    }

}


@media (max-width: 430px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        min-height: 300px;
    }

}
