/* static/css/news.css */

body.article-page {
    background-color: #ffffff;
}

.news-list .card {
    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;
    /* Add a subtle border */
}

.news-list .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
    /* Make shadow softer and deeper */
    border-color: #28a745;
    /* Highlight with green border on hover */
}

/* Add a container for the image to handle background color */
.news-item-image-container {
    height: 250px;
    width: 100%;
    background-color: #ffffff;
    /* Light background for letterboxing */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-item-image {
    height: 100%;
    /* Fill the container height */
    width: 100%;
    /* Fill the container width */
    object-fit: contain;
    /* Was 'cover', 'contain' will prevent cutting */
    transition: transform 0.4s ease;
    /* Add transition for zoom effect */
}

.news-list .card:hover .news-item-image {
    transform: scale(1.05);
    /* Zoom image slightly on card hover */
}

.news-list .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.news-list .card-title a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-list .card-title a:hover {
    color: #28a745;
    /* Main green color */
}

.news-list .card-text .fa-calendar-alt {
    margin-right: 8px;
}
