.post_item, .post_item a {
    color: white;
}

.all-news-container {
    display: flex;
    flex-direction: column;
    padding: 0 4%;
    width: 100%;
}

.all-news-title {
    display: flex;
    justify-content: center;
    color: white;
    font-size: 64px;
    border-bottom: solid 1px rgba(255, 255, 255, .2);
    margin: 0 0 25px 0;
}

.all-news-title p {
    margin: 25px 0;
}

.all-news-content {
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    overflow: hidden;
}

.all-news-content li {
    width: 427px;
    height: 248px;
    overflow: hidden;
    position: relative;
}

.all-news-content li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.all-news-cat-title-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.all-news-item-title {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    line-height: 1.3;
    color: black;
    background-color: rgba(245, 245, 250, .8);
}

.all-news-date {
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(7, 21, 52, 1);
    color: white;
    padding: 4px 10px;
    margin: 0;
}

.all-news-category a span {
    text-transform: uppercase;
    color: white;
    background: linear-gradient(153deg, rgba(34, 123, 173, 0.95) 0%, rgba(83, 73, 194, 0.95) 100%);
    padding: 4px 16px;
    margin: 0;
    font-size: 15px;
}

.all-news-category a,
.all-news-item-title,
.all-news-date,
.news-pagination a {
    text-decoration: none;
}

.all-news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0 0 0;
    height: 90px;
}

.news-pagination a img {
    margin-top: -13px;
}

.news-pagination .pages {
    color: white;
    width: 28px;
    height: 30px;
    padding: 20px 29px;
    font-size: 31px;
}

.news-pagination .active {
    background-color: rgba(245, 245, 250, .2);
    border-radius: 50%;
}


@media all and (max-width: 2000px) {
    .news-pagination .pages {
        width: 25px;
        height: 25px;
        padding: 17px 25px;
        font-size: 25px;
    }

    .news-pagination a img {
        width: 32px;
    }
}

@media all and (max-width: 1920px) {
    .all-news-content {
        grid-template-columns: auto auto auto;
    }

    .all-news-content li {
        width: 508px;
        height: 295px;
    }
}

@media all and (max-width: 1700px) {
    .all-news-content li {
        width: 447px;
        height: 260px;
    }
}

@media all and (max-width: 1500px) {
    .all-news-content li {
        width: 386px;
        height: 225px;
    }

    .all-news-item-title {
        font-size: 14px;
    }
}

@media all and (max-width: 1400px) {
    .all-news-title {
        font-size: 60px;
        margin-top: 20px;
    }
}

@media all and (max-width: 1300px) {
    .all-news-content {
        grid-template-columns: auto auto;
    }

    .all-news-content li {
        width: 496px;
        height: 285px;
    }
}

@media all and (max-width: 1100px) {
    .all-news-content li {
        width: 404px;
        height: 235px;
    }
}

@media all and (max-width: 900px) {
    .all-news-pagination {
        margin: 0;
    }

    .news-pagination .pages {
        width: 22px;
        height: 22px;
        padding: 15px 22px;
        font-size: 21px;
    }

    .news-pagination a img {
        width: 28px;
        margin-top: -9px;
    }

    .all-news-content li {
        width: 336px;
        height: 195px;
    }

    .all-news-category a span {
        font-size: 14px;
    }

    .all-news-item-title {
        font-size: 12px;
    }
}

@media all and (max-width: 750px) {
    .all-news-content {
        grid-template-columns: auto;
    }
    
    .all-news-content li {
        width: 552px;
        height: 321px;
    }

    .all-news-item-title {
        font-size: 15px;
    }
}

@media all and (max-width: 700px) {
    .all-news-title {
        font-size: 55px;
    }

    .news-pagination .pages {
        width: 20px;
        height: 20px;
        padding: 13px 20px;
    }
}

@media all and (max-width: 600px) {
    .all-news-title {
        font-size: 50px;
    }

    .all-news-content li {
        width: 460px;
        height: 268px;
    }
    
    .all-news-category a span {
        font-size: 13px;
    }
}

@media all and (max-width: 500px) {
    .all-news-title {
        font-size: 45px;
    }

    .news-pagination .pages {
        width: 17px;
        height: 17px;
        padding: 11px 17px;
    }

    .all-news-content li {
        width: 414px;
        height: 241px;
    }

    .all-news-item-title {
        font-size: 14px;
    }
}

@media all and (max-width: 450px) {
    .all-news-content li {
        width: 368px;
        height: 214px;
    }

    .all-news-item-title {
        font-size: 13px;
    }

    .all-news-category a span {
        font-size: 12px;
    }
}

@media all and (max-width: 400px) {
    .all-news-title {
        font-size: 40px;
    }

    .all-news-content li {
        width: 322px;
        height: 188px;
    }

    .all-news-item-title {
        font-size: 12px;
    }
}

@media all and (max-width: 350px) {
    .all-news-content li {
        width: 293px;
        height: 171px;
    }

    .all-news-item-title {
        font-size: 10px;
    }
}

