/* =====================================MODERN NEWS CARD========================================== */

.news-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.news-card:hover {
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.12),
        0 16px 40px rgba(0, 0, 0, 0.10);
    transform: translateY(-6px);
}

/* ===============================================IMAGE============================================ */

.news-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}
.news-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image {
    transform: scale(1.1);
}


.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-image-wrapper.no-image {
    background: linear-gradient(135deg, #cccecf, #bdbebe);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-no-image-bg {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
}
/* ==
==============================================CARD BODY=========================================== */

.news-card-body {
    flex-grow: 1;
    display: flex;
    background: #fff;
}

/* ============================================TITLE (MODERN LOOK)================================ */

.news-title {
    width: 100%;
    padding: 1rem 0.9rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    background: var(--white);
    color: var(--dark-teal);
    height: 92px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: background 0.5s ease;
}



/* ==============================================DATE BADGE========================================== */

.news-date-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #125875d1;
    color: var(--surface-elevated);
    padding: 0.4rem 0.9rem;
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.1;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-date-badge .date-day {
    font-size: 1.2rem;
    line-height: 1;
}

.news-date-badge .date-month {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.news-date-badge .date-year {
    font-size: 0.9rem;
}
/* ======================PAGINATION (UNCHANGED STYLE, POLISHED)======================================= */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination {
    gap: 12px;
}

.pagination .page-link {
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================MOBILE======================================== */

@media (max-width: 540px) {

    .news-image {
        height: 200px;
    }

    .news-title {
        height: 88px;
        font-size: 1rem;
    }

    .news-date-badge {
        top: 10px;
        left: 10px;
        padding: 0.45rem 0.75rem;
        border-radius: 10px;
    }
}
