.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.news-item {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.25); }

.news-item img { width: 100%; height: 200px; object-fit: cover; }
.news-item h2 { font-size: 1.3rem; margin: 1rem; color: #0f2341; }
.news-item p { margin: 0 1rem 1rem; color: #555; font-size: 1rem; }

/* News Detail (for news_detail.html) */
.news-detail {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 2rem auto;
}

.news-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.news-meta { color: #777; font-size: 0.9rem; margin-bottom: 1rem; }
.news-body { line-height: 1.7; color: #333; }

.news-item h2 a {
    color: #0f2341;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.news-item h2 a:hover {
    color: #1c8e33;
    text-shadow: 0 1px 3px rgba(28, 142, 51, 0.3);
}

.news-item h2 a:active {
    color: #21a038;
}
