.news-catalog {
    padding-bottom: 10rem
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3.75rem 3.125rem
}

.news-card {
    /* border: 1px solid #dfe2e7; */
    border-radius: 3.125rem;
    overflow: hidden;
    padding: 1.25rem
}

.news-card>a {
    display: flex;
    flex-direction: column;
    height: 100%
}

.news-card img {
    width: 100%;
    height: 16.25rem;
    object-fit: cover;
    border-radius: 1.25rem
}

.news-card h3 {
    font-size: 1.65rem;
    font-weight: 400;
    color: #222;
    line-height: 1.4;
    margin: 3rem .375rem 2rem;
    min-height: 7rem
}

.news-card__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem .375rem .5rem;
    min-height: 6rem
}

.news-card time {
    font-size: 1.125rem;
    color: #b1b1b1
}

.news-card__arrow {
    border-radius: 100%;
    background: var(--purple);
    color: #fff;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    opacity: 0
}

.news-card:hover {
    box-shadow: 0 1rem 4rem #3f327918
}

.news-card:hover .news-card__arrow {
    opacity: 1;
}

.pagination {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 5rem
}

.pagination button {
    display: grid;
    place-items: center;
    background: #f5f7fb;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100%;
    color: var(--purple);
    font-size: 1.375rem
}

.pagination button[aria-current=page] {
    color: #fff;
    background: var(--purple)
}

.news-page-status {
    text-align: center
}

.news-search-empty {
    grid-column: 1/-1
}

@media(max-width:640px) {
    .news-catalog {
        padding-bottom: 64px
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .news-card {
        padding: 12px;
        border-radius: 22px
    }

    .news-card img {
        height: 185px;
        border-radius: 14px
    }

    .news-card h3 {
        font-size: 18px;
        line-height: 1.6;
        margin: 22px 6px 10px;
        min-height: 0
    }

    .news-card__bottom {
        padding: 14px 6px 4px;
        min-height: 50px
    }

    .news-card time {
        font-size: 12px
    }

    .news-card__arrow {
        width: 36px;
        height: 36px;
        opacity: 1
    }

    .pagination {
        gap: 10px;
        margin-top: 30px
    }

    .pagination button {
        width: 36px;
        height: 36px;
        font-size: 14px
    }
}