.news-section {
    margin-top: calc(170 / 16 * 1rem);
    margin-bottom: calc(103 / 16 * 1rem);
    direction: rtl; /* لضمان الاتجاه العربي */
}

.news-image-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px; /* اختياري لإضافة شكل جمالي */
}

.news-image-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.news-image-card:hover img {
    transform: scale(1.1); /* تأثير بسيط للصورة عند الهوفر */
}

.news-info-box {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: white;
    padding: 16px 15px 10px 15px;
    transition: all 0.7s ease;
    z-index: 2;
    max-height: 75px; /* الارتفاع الافتراضي (العنوان فقط) */
    overflow: hidden;
    border-radius: 8px;
}

.news-image-card:hover .news-info-box {
    max-height: 90%; /* يتمدد ليظهر كل المحتوى */
}

.news-hidden-content {
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.news-image-card:hover .news-hidden-content {
    opacity: 1;
    visibility: visible;
}

.news-title {
    color: var(--main);
    margin-bottom: 1rem;
    font-size: calc(60 / 16 * 1rem);
    font-weight: bold;
    text-align: center;
}

html:lang(en) .news-title {
    font-size: calc(50 / 16 * 1rem);
}

.news-disc {
    font-weight: 300;
    font-size: calc(18 / 16 * 1rem);
    color: var(--main);
    text-align: center;
    max-width: calc(642 / 16 * 1rem);
    margin: auto;
    margin-bottom: calc(80 / 16 * 1rem);
}

.news-btn-light-custom {
    background-color: #f4cc3e;
    color: var(--main);
    border: none;
    width: 100%;
    padding: 10px 0;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* التنسيقات العلوية */
.news-h5 {
    font-weight: 700;
    font-size: calc(24 / 16 * 1rem);
    color: var(--main);
}

.news-small {
    color: var(--text);
    max-width: 856px;
    margin: 10px auto 40px auto;
    line-height: 1.5;
    font-size: 1rem;
}

.news-card-link {
    text-decoration: none; /* لإزالة الخط تحت النص */
    color: inherit; /* لكي يرث النص الألوان الأصلية من الكلاسات الداخلية */
    display: block; /* ليأخذ الرابط حجم الكارت بالكامل */
}

.news-card-link:hover {
    text-decoration: none; /* التأكد من عدم ظهور خط عند تمرير الماوس */
}
