/* static/css/news.css */

body.article-page {
    background-color: #ffffff;
}

.news-list {
    --bs-gutter-y: 1.5rem;
}

.news-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.4s ease-in-out, border-color 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #fff;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    border-color: #28a745;
}

.news-item-image-container {
    display: flex;
    height: 220px;
    width: 100%;
    background-color: #ffffff;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-item:hover .news-item-image {
    transform: scale(1.04);
}

.news-item .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.9rem;
}

.news-item .card-title {
    margin-bottom: 0;
}

.news-item .card-title a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-item .card-title a:hover {
    color: #28a745;
}

.news-item-meta {
    margin-bottom: 0;
    align-items: center;
}

.news-item-summary {
    margin-bottom: 0;
    color: #4f5b67;
    line-height: 1.65;
}

@media (max-width: 767.98px) {
    .news-item-image-container {
        height: 200px;
    }
}
