/* News Grid Layout */
.news-grid-block {
    padding: 40px 0;
}

.news-block-title {
    max-width: 85%;
    margin: 0 auto 30px;
    font-size: 28px;
    color: #333;
    font-weight: bold;
    padding: 0 15px;
}

.news-grid-container {
    max-width: 85%;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive Columns */
@media (max-width: 1024px) {
    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Card Style */
.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.news-thumbnail {
    position: relative;
    padding-top: 60%; /* Aspect ratio */
    overflow: hidden;
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #0056b3;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    align-self: flex-start;
    transition: background-color 0.3s;
}

.news-read-more:hover {
    background-color: #004494;
    color: #fff;
}
