/* ========================================== */
/* قسم المميزات */
/* ========================================== */
* {
    font-family: "Amazon Ember", Arial, sans-serif;
}

.features-section {
    padding: 60px 0;
    background-color: #fff;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: flex;

    /* نجعل العناصر في الوسط مع تقليل المسافة بينهم بدلا من الانتشار */
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 80px;
    /* مسافة أقرب بين العناصر */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
    flex: 0 0 auto;
}

/* الأيقونة */
.feature-icon {
    width: 65px;
    height: 65px;
    background: transparent;
    border: 2px solid #b42f4c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon i,
.feature-icon svg {
    font-size: 28px !important;
    width: 28px;
    height: 28px;
    color: #b42f4c;
    stroke: #b42f4c;
}

/* الهوفر */
.feature-item:hover .feature-icon {
    background: #b42f4c;
    color: #fff;
    box-shadow: 0 5px 15px rgba(180, 47, 76, 0.2);
    transform: translateY(-3px);
}

.feature-item:hover .feature-icon i,
.feature-item:hover .feature-icon svg,
.feature-item:hover .feature-icon svg path,
.feature-item:hover .feature-icon svg polyline {
    color: #fff !important;
    stroke: #fff !important;
}

/* النص */
.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* === ضبط الاتجاهات ديناميكياً مع اللغة === */
.feature-title {
    text-align: start;
}


/* ========================================== */
/* الموبايل والآيباد */
/* ========================================== */

@media (max-width: 992px) {
    .features-section {
        padding: 40px 0;
        margin-top: -25px;
    }

    .features-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 0 15px;
    }

    .feature-item {
        width: auto;
        justify-content: center;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon i,
    .feature-icon svg {
        font-size: 22px !important;
        width: 22px;
        height: 22px;
    }

    .feature-title {
        font-size: 15px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .features-section {
        margin-top: -20px;
        padding: 30px 0;
    }

    .features-grid {
        flex-direction: column;
        /* في الموبايل الصغير نخليهم تحت بعض عشان يقرأ براحته وما يتبهدلوش */
        gap: 20px;
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
    }

    .feature-icon i,
    .feature-icon svg {
        font-size: 20px !important;
        width: 20px;
        height: 20px;
    }

    .feature-title {
        font-size: 14px;
    }
}