.news {
    padding: 2.5rem 0;
}

.news h1 {
    margin: 0 0 1.875rem;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 1.25rem;
    row-gap: 1.875rem;
}

.news__item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: inherit;
    text-decoration: none;
}

.news__image {
    width: 100%;
    height: 10.4375rem;
    border-radius: 0.5625rem;
    overflow: hidden;
    background-color: #eee;
}

.news__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__text {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
}

.news__date {
    font-size: 0.875rem;
    color: var(--black);
}

.news__text p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--black);
    transition: color 0.3s ease;
}

.news__item:hover .news__text p {
    color: var(--color-primary);
}

/* cssrem-disable-next-line */
@media (max-width: 991px) {
    .news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news h1 {
        font-size: 1.5rem;
    }
}

/* cssrem-disable-next-line */
@media (max-width: 575px) {
    .news__grid {
        grid-template-columns: 1fr;
    }
}
