/* تنسيق القسم الخارجي */
.ebpt1-why-us-sec {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--ebpt1-space-xl);
    width: 100%;
    /* خلفية متناسبة لظهور التظليل، مأخوذة من المتغيرات عبر color-mix */
    background-color: color-mix(in srgb, var(--ebpt1-primary) 5%, var(--ebpt1-white));
}

/* الحاوية بنظام Flex للمسافات المتناظرة */
.ebpt1-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: var(--ebpt1-space-xl);
    max-width: var(--ebpt1-container-width);
    width: calc(100vw - 2em);
    margin: 0 auto;
    padding: 0 var(--ebpt1-space-md);
}

/* الكارت الأساسي وتأثير النيومورفيزم Neumorphism */
.ebpt1-card {
    position: relative;
    width: 320px;
    height: 350px;
    border-radius: 15px;
    transition: var(--ebpt1-transition);
padding: var(--ebpt1-space-sm);

    box-shadow:
        inset 5px 5px 5px color-mix(in srgb, var(--ebpt1-dark) 5%, transparent),
        inset -5px -5px 5px color-mix(in srgb, var(--ebpt1-white) 50%, transparent),
        5px 5px 5px color-mix(in srgb, var(--ebpt1-dark) 5%, transparent),
        -5px -5px 5px color-mix(in srgb, var(--ebpt1-white) 50%, transparent);
}

.ebpt1-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--ebpt1-space-md);
}

/* العنوان الرئيسي وكلمة التمييز */
.ebpt1-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bold;
    color: var(--ebpt1-secondary);
}

.ebpt1-title-highlight {
    color: var(--ebpt1-primary);
}

/* الخط السفلي الأنيق للعنوان (بدون الأيقونة الداخلية) */
.ebpt1-underline {
    width: 80px;
    height: 2px;
    background-color: var(--ebpt1-secondary);
    position: relative;
}


/* الصندوق الداخلي للكارت */
.ebpt1-card-box {
  

    background: var(--ebpt1-white);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--ebpt1-dark) 10%, transparent);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 100%;
}

.ebpt1-card-num {
    position: absolute;
    top: -60px;
    right: 30px;
    font-size: 8em;
    font-weight: 700;
    /* درجة رمادي خفيفة مستنتجة من الـ dark الخاص بك */
    color: color-mix(in srgb, var(--ebpt1-dark) 6%, transparent);
    transition: 0.6s;
    pointer-events: none;
    z-index: 0;
}

/* تأثير التمرير للرقم الخلفي بلون الشركة الثانوي */
.ebpt1-card:hover .ebpt1-card-num {
    color: color-mix(in srgb, var(--ebpt1-secondary) 15%, transparent);
}

/* حاوية المحتوى بنظام Flex لتحكم تام بالمسافات الداخلية بـ Gap */
.ebpt1-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--ebpt1-space-md);
    text-align: center;
    padding: var(--ebpt1-space-md);
    z-index: 1;
}

/* العناوين داخل البطاقة */
.ebpt1-card-title {
    font-size: var(--ebpt1-fs-xl);
    color: var(--ebpt1-primary);
    font-weight: 700;
    transition: var(--ebpt1-transition);
}

/* الفقرات الوصفية */
.ebpt1-card-desc {
    font-size: var(--ebpt1-fs-md);
    color: var(--ebpt1-primary);
    font-weight: 350;
    line-height: 1.5;
    transition: var(--ebpt1-transition);
}

/* زر التفاعل (اقرأ المزيد) */
.ebpt1-card-btn {
    display: inline-flex;
    padding: var(--ebpt1-space-sm) var(--ebpt1-space-lg);
    background: var(--ebpt1-primary);
    color: var(--ebpt1-white);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 20px color-mix(in srgb, var(--ebpt1-dark) 20%, transparent);
    transition: var(--ebpt1-transition);
}

/* تأثير التمرير على الزر */
.ebpt1-card:hover .ebpt1-card-btn {
    background: var(--ebpt1-secondary);
}

@media (max-width:320px) {
    .ebpt1-card {
        position: relative;
        width: 285px;
        height: 350px;
    }
}