.news_block {

    .news-item {
        display: flex;
        flex-direction: column;
        white-space: normal;
        height: auto;
        position: relative;
        z-index: 51;
        border: 2px solid var(--color-primary-gray);
        border-radius: 10px;
        overflow: hidden;

        .info {
            display: flex;
            flex-direction: column;
            padding: 20px;
        }

        .date {
            color: var(--color-secondary-gray-dark);
            font-size: 12px;
            font-weight: 400;
            margin-bottom: 10px;
        }

        .name {
            color: var(--color-primary-black);
            font-size: var(--font-h5-size);
            font-weight: 500;
            line-height: 1.1;
            margin-bottom: 10px;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .image {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
            min-height: 200px;

            img {
                aspect-ratio: 4 / 3;
                display: block;
                object-fit: cover;
                object-position: center;
                width: 100%;
            }
        }
    }

    .news-item:hover .name {
        color: var(--color-error);
        text-decoration: underline;
    }

    .all_news {
        height: 48px;
        margin-top: 20px;
        margin-inline: auto;
        width: 188px;
        display: flex;
        justify-items: center;
        align-items: center;
        font-size: var(--font-body-size);
    }

    @media (max-width: 1280px) {
        .news-item {
            max-width: 320px;
        }
    }

    @media (max-width: 600px) {
        .all_news {
            height: 40px;
        }
    }
}
