/* News List Page Styles - Card Layout */
.news-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.news-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.news-image {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 220px;
    /* height: auto; */
    object-fit: cover;
}

.news-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.news-content-wrapper {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-content-wrapper h3 {
    margin: 0 0 0.75rem 0;
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-content-wrapper .excerpt {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
    flex: 1;
}

.news-content-wrapper .meta {
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.news-content-wrapper .read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.news-content-wrapper .read-more:hover {
    color: #764ba2;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-container {
        grid-template-columns: 1fr;
    }

    .news-image {
        height: 250px;
    }
}