.news-section {
    margin: 2rem 0;
    padding: 1rem;
    border-radius: 5px;
    background: #f5f5f5;
}

.news-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.news-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 -1rem;
    padding: 0;
}

.news-list li {
    margin: 1rem;
    /* width: calc(33.33% - 2rem); */
    max-width: 400px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.news-list li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    .news-list li:hover img {
        filter: grayscale(0.8);
    }
    .news-list li:hover .news-content {
        background-color: rgba(0, 0, 0, 0.1);
    }
    /* .news-list li:hover img {
        transform: scale(1.05);
    } */
}

.news-list li img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
    min-height: 300px;
    max-height: 300px;
}

.news-content {
    padding: 1rem;
    width: 100%;
    /* height: 145px; */
    max-height: fit-content;
}

.news-content .news-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.news-date,
.news-category {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.2rem;
}

.news-content .news-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1c1c1c;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.news-button {
    display: block;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    width: 90%;
    margin-bottom: 5%;

    color: #1c1c1c;
	background: #FFEB00;
	transition: all .3s;
}

.news-button:hover {
    background: #1c1c1c;
	color: #FFEB00;
}

.news-list li > a:first-child {
    width: 100%;
    display: block;
    max-height: 403px;
    overflow: hidden;
}