.ebhro4-carousel {
    display: flex;
    flex-direction: column;
    /* الأزرار ستكون أسفل الكاروسيل في الموبايل */
    gap: var(--ebhro4-space-sm);
    width: 100%;
    padding: var(--ebhro4-space-md);

}

/* تنسيقات الموبايل أولاً (Mobile First) */
.ebhro4-carousel-container {
    position: relative;
    width: 100%;
    max-width: var(--ebhro4-container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    /* الأزرار ستكون أسفل الكاروسيل في الموبايل */
    gap: var(--ebhro4-space-xs);
    overflow: hidden;
}

.ebhro4-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: var(--ebhro4-space-lg);
    touch-action: pan-y;
    /* لتسهيل التمرير العمودي باللمس ومنع التعارض */
}

.ebhro4-track {
    display: flex;
    transition: transform var(--ebhro4-transition);
    will-change: transform;
}

.ebhro4-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.ebhro4-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--ebhro4-space-lg);
    overflow: hidden;
    background-color: var(--ebhro4-dark);
}

.ebhro4-card-img {
    width: 100%;
    height: 100%;
    /* object-fit: fill; */
}

.ebhro4-card-overlay {

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    /* padding: var(--ebhro4-space-lg) var(--ebhro4-space-md); */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}

.ebhro4-card-content {
    display: flex;
    flex-direction: column;
    gap: 0;

    position: absolute;
    bottom: 0;
    right: 0;
    width: 98%;

}

.ebhro4-badge {
    align-self: flex-end;
    background-color: var(--ebhro4-secondary);
    color: var(--ebhro4-dark);
    font-size: var(--ebhro4-fs-base);
    font-weight: 600;
    padding: var(--ebhro4-space-xs) var(--ebhro4-space-md);
    border-radius: var(--ebhro4-space-md);
    transform: translate(-5px, 10px);
}

.ebhro4-details {
    background-color: var(--ebhro4-primary);
    border-radius: 0 0 var(--ebhro4-space-md) 0;
    padding: var(--ebhro4-space-sm) var(--ebhro4-space-xs);
    display: flex;
    align-items: start;
    gap: var(--ebhro4-space-md);
    color: var(--ebhro4-white);

    width: 98%;
}

.ebhro4-number {
    font-size: var(--ebhro4-title-clamp);
    font-weight: 800;
    line-height: 1;
}

.ebhro4-text-wrap {
    display: flex;
    flex-direction: column;
    gap: var(--ebhro4-space-xs);
}

.ebhro4-text-main {
    font-size: clamp(var(--ebhro4-fs-sm), 3vw, var(--ebhro4-fs-base));
    font-weight: 500;
}

.ebhro4-text-sub {
    font-size: clamp(var(--ebhro4-fs-sm), 2.5vw, var(--ebhro4-fs-base));
    font-weight: 300;
}

/* أزرار التنقل */
.ebhro4-nav-btn {
    background-color: var(--ebhro4-white);
    color: var(--ebhro4-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color var(--ebhro4-transition);
    z-index: 10;
    align-self: center;
    /* توسيط في الموبايل */
}

.ebhro4-nav-btn:hover {
    background-color: var(--ebhro4-secondary);
}

/* النقاط السفلية (Dots) */
.ebhro4-dots {
    display: flex;
    justify-content: center;
    gap: var(--ebhro4-space-sm);
    padding: var(--ebhro4-space-xs) 0;

}

.ebhro4-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color var(--ebhro4-transition), transform var(--ebhro4-transition);
}

.ebhro4-dot.ebhro4-active {
    background-color: var(--ebhro4-primary);
    transform: scale(1.2);
}

/* الشاشات المتوسطة والكبيرة (Tablet & Desktop) */
@media (min-width: 768px) {
    .ebhro4-carousel {
      
        gap: var(--ebhro4-space-sm);
       
    }
    .ebhro4-carousel-container {
        flex-direction: row;
        align-items: center;
        /* padding: var(--ebhro4-space-lg); */
        align-items: center;
        justify-content: center;
    }

    .ebhro4-track-wrapper {
        width: 70%;
    }

    .ebhro4-card {
        aspect-ratio: auto;
        height: 600px;
        /* ارتفاع ثابت أو يمكنك تركه حر حسب الرغبة */
    }



    .ebhro4-details {
        width: 100%;
    }

    .ebhro4-card-content {
        width: 50%;
    }
}