.nm_loader {
    align-items: center;
    justify-content: center;
}

.card {
    border-radius: 16px!important;
}

.news_main_block {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(20em, 1fr))
}

.news_block_inside {
    width: 100%;
}

.news_inside {
    height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 6px;
}

.news_up img {
    height: 148px;
    border-radius: 12px;
    width: 100%;
    object-fit: cover;
    opacity: .8;
    pointer-events: none;
}

.news_button {
    position: absolute;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    bottom: -25px;
    cursor: pointer;
    overflow: hidden;
    transition: .25s linear;
}

.news_button:hover {
    transition: .25s linear;
}

.news_button:after {
    left: 0;
    top: 42px;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(5 5 5 / 5%);
    transition: .25s linear;
}

.news_button:hover:after{
    left: 0;
    top: 0;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(5 5 5 / 3%);
    transition: .25s linear;
}

.news_up {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.news_info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 6px 8px;
}

.news_title {
    font-size: 22px;
    font-weight: 800;
}

.news_text {
    font-size: 14px;
    max-height: 110px;
    overflow: auto;
}

.hr_news,
.news_footer {
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
}

.hr_news {
    height: 1px;
    position: absolute;
    bottom: 36px;
    margin-left: 0;
}

.news_footer {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 6px;
}

.news_footer svg {
    width: 13px;
}

.news_footer_date,
.news_footer_visits {
    display: flex;
    align-items: center;
}

.news_footer_date {
    gap: 7px;
}

.news_footer_visits {
    gap: 5px;
}

@media (max-width: 576px) {
    .news_block {
        flex: auto;
        width: 100%;
    }

    .news_inside {
        flex-direction: row;
        height: 90px;
        gap: 4px;
    }
    
    .news_up {
        justify-content: flex-start;
        height: 100%;
    }

    .news_up img {
        height: inherit;
        width: 110px;
    }

    .news_button {
        font-size: 9px;
        padding: 4px 10px;
        bottom: -8px;
        left: 0;
        right: 0;
        text-align: center;
    }

    .news_info {
        position: relative;
        gap: 2px;
        margin: 4px;
        width: 100%;
    }

    .news_title {
        font-size: 14px;
    }

    .news_text {
        font-size: 9px;
        max-height: 28px;
    }

    .hr_news {
        display: none;
    }

    .news_footer {
        font-size: 9px;
        left: 0;
        bottom: 0;
    }

    .news_footer svg {
        width: 11px;
    }

    .btn_main_news {
        padding: 5px 10px;
        font-size: 9px;
    }
}
