.custom-news-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    justify-items: center;
    gap: 25px;
    margin: 20px 0;
}

.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    max-width: 350px;
    width: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7f7f7;
}

.news-card .news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: #eef2f5;
}

.news-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 700;
}

.news-card .news-card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #3498db;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f5f7fa;
    font-size: 0.85rem;
    margin-top: auto;
}

.news-card-date {
    color: #95a5a6;
}

.news-card-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.news-card-more:hover {
    text-decoration: underline;
}

.news-pagination {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 40px 0 !important;
    width: 100% !important;
}

.news-pagination .page-numbers {
    padding: 10px 20px !important;
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    color: #4f2190 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
    white-space: nowrap !important;
}

.news-pagination .page-numbers.current {
    background: #4f2190 !important;
    border-color: #4f2190 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 480px) {
    .news-pagination {
        gap: 6px !important;
        margin: 30px 0 !important;
    }

    .news-pagination .page-numbers {
        padding: 5px 14px !important;
        font-size: 0.85rem !important;
        min-width: 38px !important;
        text-align: center !important;
    }
}