.medad-news-section {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 30px auto;
    max-width: 1200px;
}

.medad-news-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: bold;
    color: #333;
}

.medad-news-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: #009688;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.slider-arrow:hover {
    background-color: #00796b;
}

.left-arrow { left: -20px; }
.right-arrow { right: -20px; }

.medad-news-wrapper {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    width: 100%;
    gap: 20px;
}

.medad-news-card {
    flex: 0 0 calc(33.333% - 13.33px);
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.medad-news-card:hover {
    transform: translateY(-5px);
}

.medad-news-card .thumb img {
    width: 100%;
    height: 200px; /* توحيد الارتفاع */
    object-fit: cover; /* اقتصاص احترافي */
    border-radius: 6px;
    margin-bottom: 10px;
}

.medad-news-card h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.medad-news-card h3 a {
    color: #007bff;
    text-decoration: none;
}

.medad-news-card p {
    font-size: 14px;
    color: #555;
    flex-grow: 1;
}

.medad-news-card .date {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    display: block;
}

.medad-news-card .read-more {
    margin-top: 10px;
    display: inline-block;
    background-color: #009688;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.medad-news-card .read-more:hover {
    background-color: #00796b;
}

/* إخفاء شريط التمرير */
.medad-news-wrapper::-webkit-scrollbar {
    display: none;
}
.medad-news-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* شاشات الجوال */
@media (max-width: 768px) {
    .medad-news-card {
        flex: 0 0 100%;
    }

    .slider-arrow {
        top: -30px;
        font-size: 16px;
        padding: 6px 10px;
        opacity: 0.6;
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }
}
