/* News card component styles */
.news-article-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-article-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 360px;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-article-card:hover .news-article-image img {
    transform: scale(1.05);
}

/* Date badge shown on news cards */
.news-date-badge {
    position: absolute;
    bottom: 0px;
    left: 20px;
    background-color: #235292;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 73px;
    z-index: 2;
    pointer-events: none;
}

.news-day {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.1;
}

.news-month {
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 500;
    text-transform: capitalize;
}

.news-article-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    max-width: 500px;
}

.news-article-title {
    font-family: var(--font-main);
    color: var(--text-white);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.news-article-excerpt {
    font-family: var(--font-main);
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.news-read-more:hover {
    color: #94b53d;
}

.news-read-more__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.news-read-more__icon img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.news-read-more:hover .news-read-more__icon img {
    transform: translateX(3px);
}

/* Responsive heights for the image container */
@media (max-width: 1200px) {
    .news-article-image { height: 320px; max-width: 100%; }
}
@media (max-width: 1024px) {
    .news-article-image { height: 280px; }
}
@media (max-width: 768px) {
    .news-article-image { height: 250px; }
}
