/*!
Theme Name: Outgrid Child
Theme URI: https://uicore.co
Description: Multi-Purpose Elementor WordPress Theme
Author: UiCore
Author URI: https://uicore.co
Template: outgrid
Version: 1.0.0
Text Domain: outgrid
*/

 /* Add your custom style here */
/* ---- Mr.Barfix Custom Portfolio Grid ---- */

/* الحاوية ديال الشبكة */
.mrbarfix-portfolio-grid {
    display: grid;
    /* غاتصاوب 2 أعمدة فالحاسوب، وعمود واحد فالهاتف */
    grid-template-columns: repeat(2, 1fr);
    gap: 25px; /* الفراغ بين البطاقات */
}

/* البطاقة الواحدة */
.mrbarfix-card-item a {
    text-decoration: none;
}

.mrbarfix-card-item .card-content {
    background-color: #F7F5EF; /* اللون الخلفي التقريبي من تصميمك */
    border-radius: 24px; /* الحواف الدائرية */
    padding: 20px;
    display: flex;
    align-items: flex-end; /* باش الشخصية تبدا من التحت */
    overflow: hidden;
    position: relative;
    height: 300px; /* يمكن تعديل الطول حسب الحاجة */
}

/* صورة الشخصية (النصف الأيسر) */
.mrbarfix-card-item .hero-image-wrapper {
    flex: 0 0 45%; /* كتاخد 45% من العرض */
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
}
.mrbarfix-card-item .hero-img {
    width: 100%;
    height: auto;
    max-height: 290px; /* باش ماتخرجش بزاف */
    object-fit: contain;
    object-position: bottom center;
}

/* معلومات المشروع (النصف الأيمن) */
.mrbarfix-card-item .project-info {
    flex: 1;
    text-align: right;
    padding-right: 15px;
    padding-bottom: 10px; /* باش ميكونش لاصق لتحت */
    z-index: 2;
}

.mrbarfix-card-item .project-subtitle {
    font-size: 24px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.3;
}

.mrbarfix-card-item .mockup-img {
    width: 100%;
    height: 170px;
    object-position: center top;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border-radius: 5px;
}

.mrbarfix-card-item .project-title {
    display: inline-block;
    background-color: #E1F0FF; /* اللون الأزرق التقريبي */
    color: #005a9c;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
}

/* ---- التجاوب مع الهاتف ---- */
@media (max-width: 767px) {
    .mrbarfix-portfolio-grid {
        grid-template-columns: 1fr; /* عمود واحد فالهاتف */
    }
    .mrbarfix-card-item .card-content {
        height: auto; /* الطول أوتوماتيكي */
        flex-direction: column; /* العناصر يجيو فوق بعضياتهم */
        align-items: center;
        padding-top: 25px;
    }
    .mrbarfix-card-item .project-info {
        text-align: center; /* توسيط النص فالهاتف */
        padding-right: 0;
        width: 100%;
    }
    .mrbarfix-card-item .hero-image-wrapper {
         height: 250px; /* تحديد طول الشخصية فالهاتف */
         width: 70%;
         margin-bottom: 15px;
    }
    .mrbarfix-card-item .hero-img {
        max-height: 250px;
    }
}