﻿.Features {
    display: flex;
    padding: 64px 156px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 64px;
    align-self: stretch;
    width: 100%;
    background: var(--Primary-50, #F3F2F6);
}

.features-text-features-title {
    color: var(--Colors-Gray-Darkest, #111);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: "IBM Plex Sans Arabic";
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    align-self: stretch;
}

.Cards {
    width: 100%;
    align-self: stretch;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
    gap: clamp(16px, 3.5vw, 56px);
    display: flex;
    flex-wrap: wrap;
}

.Feature {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex: 1 1 320px;
    min-width: 320px !important;
    max-width: none !important;
    min-height: 530px !important;
    max-height: 530px !important;
}

.Frame5,
.Frame6,
.Frame7 {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

    .Frame5 .feature-point,
    .Frame6 .feature-point,
    .Frame7 .feature-point {
        width: 100%;
        min-width: 0;
    }

.feature-point {
    display: block;
    width: 100%;
    white-space: nowrap;
    text-align: inherit;
    overflow: visible;
}

/* English text - allow wrapping to prevent overflow */
[dir="ltr"] .feature-point {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Widescreen - Enhanced spacing */
@@media (min-width: 1440px) {
    .Feature {
        flex: 1 1 360px;
    }
}

/* Tablet */
@@media (max-width: 1024px) {
    .Features {
        padding: 48px 80px;
        gap: 48px;
    }

    .features-text-features-title {
        font-size: 40px;
    }
}

/* Mobile - Vertical Layout */
@@media (max-width: 768px) {
    .Features {
        padding: 40px 20px;
        gap: 40px;
    }

    .Cards {
        flex-wrap: wrap !important;
        gap: clamp(12px, 2vw, 20px) !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        padding: 0 !important;
    }

    .Feature {
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .features-text-features-title {
        font-size: 32px;
    }
}

/* Small Mobile */
@@media (max-width: 480px) {
    .Features {
        padding: 32px 16px;
        gap: 32px;
    }

    .features-text-features-title {
        font-size: 28px;
    }

    .Feature {
        padding: 20px !important;
        gap: 24px !important;
    }

        .Feature img {
            width: 120px !important;
            height: 120px !important;
        }

        .Feature > div[style*="28px"] {
            font-size: 24px !important;
        }

        .Feature > div[style*="16px"] {
            font-size: 14px !important;
        }
}

