/**
 * ==============================================================================
 * AL-ESRAA UNIVERSITY - LATEST NEWS (EDITORIAL BENTO GRID WITH SIDE CAROUSEL)
 * تصميم الجريدة الأكاديمية التفاعلية المعتمد رسمياً لفقرة أحدث الأخبار
 * ==============================================================================
 */

/* ==========================================================================
   MODEL 1: MODERN EDITORIAL BENTO GRID (الجريدة الأكاديمية)
   ========================================================================== */
.news-bento-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #0c3468;
    box-shadow: 0 16px 40px rgba(12, 52, 104, 0.15);
    border: 1px solid rgba(12, 52, 104, 0.12);
    text-decoration: none !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.news-bento-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(1, 139, 188, 0.25);
}

.news-bento-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-bento-hero:hover .news-bento-hero-img {
    transform: scale(1.05);
}

.news-bento-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 52, 104, 0.1) 0%, rgba(12, 52, 104, 0.6) 45%, rgba(7, 22, 44, 0.96) 100%);
}

.news-bento-hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: #ffffff;
}

.news-bento-side-item {
    background: #ffffff;
    border: 1px solid rgba(12, 52, 104, 0.08);
    border-radius: 18px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.news-bento-side-item:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    transform: translateX(-4px);
    box-shadow: 0 8px 25px rgba(1, 139, 188, 0.12);
}

html[dir="ltr"] .news-bento-side-item:hover {
    transform: translateX(4px);
}

.news-bento-side-thumb {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #e2e8f0;
}

.news-bento-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-bento-side-item:hover .news-bento-side-thumb img {
    transform: scale(1.08);
}

/* ==========================================================================
   SIDE CAROUSEL CONTROLS & ARCHIVE CARD
   ========================================================================== */
.news-carousel-arrow {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #ffffff;
    border: 1px solid rgba(1, 139, 188, 0.25);
    color: #018bbc;
    font-size: 0.74rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.news-carousel-arrow:hover {
    background: #018bbc;
    border-color: #018bbc;
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(1, 139, 188, 0.25);
}

.news-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-carousel-dot.active {
    width: 22px;
    border-radius: 10px;
    background: #018bbc;
    box-shadow: 0 2px 8px rgba(1, 139, 188, 0.4);
}

.news-bento-archive-card {
    background: linear-gradient(135deg, rgba(12, 52, 104, 0.03) 0%, rgba(1, 139, 188, 0.08) 100%);
    border: 1.5px dashed rgba(1, 139, 188, 0.35);
}

.news-bento-archive-card:hover {
    border-style: solid;
    border-color: #018bbc;
    background: linear-gradient(135deg, rgba(12, 52, 104, 0.07) 0%, rgba(1, 139, 188, 0.14) 100%);
}

@media (max-width: 991.98px) {
    .news-bento-hero {
        min-height: 350px;
        margin-bottom: 20px;
    }
}
