.main-row {
    margin-top: 30px;
    align-items: flex-start;
}

.main-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    padding: 40px 20px;
    background: #ececec;
    box-shadow: inset 0 -12px 22px -7px #00000012;
}

.posts {
    display: flex;
    width: 70%;
    flex-wrap: wrap;
}

.post-article {
    box-shadow: 0 3px 20px -12px black;
    transition: .4s;
    margin: 0 15px 30px 15px;
    width: calc(50% - 30px);
}

.post-article:hover {
    box-shadow: 0 8px 27px -12px #000000ad;
}

.sidebar-wrp {
    align-self: normal;
}

.post-article-img {
    overflow: hidden;
    display: block;
}

.post-article img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: .4s;
    display: block;
}

.post-article img:hover {
    transform: scale(1.1);
}

.post-article .post-titles {
    padding: 5px 15px;
}

.post-article .post-excerpt {
    font-size: 18px;
    font-family: 'OpenSans', sans-serif;
}

.posts .category-item {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 9px 15px;
}

.pagination {
    width: 100%;
    display: flex;
    margin-right: 15px;
    align-items: flex-end;
}

.pagination * {
    position: relative;
    display: block;
    padding: 7px 13px;
    line-height: 1.25;
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: .4s;
}

.page-numbers:hover {
    background-color: #dee2e6;
}

.pagination .current {
    z-index: 1;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}


@media (max-width: 1200px) {
    .main-title {
        font-size: 38px;
        padding: 23px 15px;
    }

    .post-article {
        margin: 0 15px 15px 15px;
        width: calc(50% - 30px);
    }

    .post-article img {
        height: 185px;
    }

    .post-article .post-excerpt {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .main-row {
        flex-direction: column-reverse;
    }

    .posts {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .next.page-numbers, .prev.page-numbers {
        display: none;
    }

    .pagination * {
        font-size: 17px;
        padding: 5px 11px;
    }

    .main-title {
        font-size: 30px;
        padding: 23px 15px;
    }

    .post-article {
        width: 100%;
        margin: 10px 15px;
    }

    .pagination {
        margin-top: 15px;
    }

    .post-article img {
        height: auto;
        max-height: 230px;
    }
}
