.custom-posts-container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

.custom-posts-container .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 30px;
    grid-auto-columns: minmax(150px, 1fr);
    padding-top: 15px;
}

.custom-posts-container .post-item-first,
.post-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;

}

.custom-posts-container .post-item-first {
    grid-column: span 3;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

/* .custom-posts-container .post-item-first:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
} */

.custom-posts-container .post-item {
    grid-column: auto;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

/* .custom-posts-container .post-item:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
} */

.custom-posts-container .post-item-first .post-item__img {
    width: 65%;
    margin-right: 25px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.custom-posts-container .post-item-first .post-item__img:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.custom-posts-container .post-item .post-item__img {
    margin-bottom: 20px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.custom-posts-container .post-item .post-item__img:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.custom-posts-container .post-item-first .post-item__img img {
    width: 100%;
    max-height: 344px;
    -o-object-fit: cover;
    object-fit: cover;
}

.custom-posts-container .post-item-first .post-item__info-wrap {
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin-top: 10px;
    width: 35%;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.custom-posts-container .post-item-first .post-item__info-wrap:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.custom-posts-container .post-item .post-item__info-wrap {
    width: 100%;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.custom-posts-container .post-item .post-item__info-wrap:hover {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.custom-posts-container .post-item__info-wrap p {
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
    font-size: 16px;
}

.custom-posts-container .post-item__info-wrap .post-item__date {
    position: relative;
    padding-left: 15px;
    font-size: 14px;
}

.custom-posts-container .post-item__info-wrap .post-item__date::after {
    position: absolute;
    display: block;
    content: '';
    width: 7px;
    height: 7px;
    background-color: var(--c-main);
    border-radius: 50%;
    top: 6px;
    left: 0;
}

.custom-posts-container .post-item__info-wrap h1 {
    font-size: 37px;
    line-height: 100%;
}

.custom-posts-container .post-item__info-wrap h2 {
    font-size: 24px;
}

.custom-posts-container .post-item__info-wrap h2,
.custom-posts-container .post-item__info-wrap h1 {
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
    margin-bottom: 15px;
}

.custom-posts-container .post-item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 370px;
    width: 100%;

}

.custom-posts-container .post-item__img img {
    max-height: 244px;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
}

.custom-posts-container .post-item-first .post-item__arrow,
.custom-posts-container .post-item .post-item__arrow {
    text-align: right;
    margin-top: auto;
}


.custom-posts-container .custom-posts-paginate {
    text-align: center;
}

@media (max-width: 840px) {
    .custom-posts-container .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-posts-container .post-item-first {
        grid-column: span 2;
    }

    .custom-posts-container .post-item__info-wrap h1 {
        font-size: 30px;
        line-height: 100%;
    }

    .custom-posts-container .post-item__info-wrap h2 {
        font-size: 20px;
    }

    .custom-posts-container .post-item-first .post-item__img {
        margin-right: 15px;
    }
}

@media (max-width: 575px) {
    .custom-posts-container .container {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
        gap: 40px 20px;
    }

    .custom-posts-container .post-item-first {
        grid-column: span 1;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        max-width: 370px;
        width: 100%;
    }

    .custom-posts-container .post-item-first .post-item__img {
        width: 100%;
        margin-right: 0;
    }

    .custom-posts-container .post-item-first .post-item__info-wrap {
        width: 100%;
    }
}

.custom-posts-container .custom-posts-paginate {
    margin-top: 80px;
    margin-bottom: 100px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.custom-posts-container .custom-posts-paginate .page-numbers {
    font-size: 16px;
    color: #546B7E;
    padding: 10px;
}

.custom-posts-container .custom-posts-paginate .page-numbers.current {

    color: var(--c-main);
}

.custom-posts-container .custom-posts-paginate .prev.page-numbers {
    background-color: var(--c-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 20px;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.custom-posts-container .custom-posts-paginate .next.page-numbers {
    background-color: var(--c-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 20px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
}

.custom-posts-container .custom-posts-paginate .pagination-arrow {
    color: #fff;
    width: 20px;
    height: 20px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}