.custom-posts-container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
}

.custom-posts-container .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 70px 40px;
    padding-top: 15px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

}

.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 {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    grid-column: 1 / -1;
    width: 100%;
    -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 .posts-wrap {
    display: grid;
    grid-template-columns: repeat(2, 400px);
    gap: 40px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.custom-posts-container .post-item {

    -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: 51%;
    margin-right: 40px;
    -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;
}

/*
.cus tom-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: 360px;
    -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-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -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,
.custom-posts-container .post-item:hover{
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    transform: translateY(-3px);
}

/*
.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(--primary);
    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:hover {
    color: var(--primary);
}

.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 {
    grid-column: span 1;
    justify-self: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 400px;
    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 .posts-wrap {
        grid-template-columns: repeat(2, auto);
        gap: 20px;

    }

    /* .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 .posts-wrap {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .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: 400px;
        width: 100%;
        gap: 20px;
    }

    .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(--primary);
}

.custom-posts-container .custom-posts-paginate .prev.page-numbers {
    background-color: var(--primary);
    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(--primary);
    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;
}
.custom-posts-container p{
	overflow-wrap: break-word;
}



.post-item-first {
    border: 1px solid #D9EDFF;
    background: white;
    border-radius: 0.58rem;
    padding: 0.85rem;
}

.custom-posts-container .post-item-first .post-item__info-wrap {
    justify-content: start;
}

.custom-posts-container .post-item-first .post-item__img {
    border-radius: 0.85rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-item-first svg,
.post-item svg {
    width: 24px;
    height: 24px;
    fill: #0d95e8;
}

.read_item {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 0.5rem;
}

#blog {
    background-image: url('/wp-content/themes/theme/assets/images/advbg.png');
}

.post-item {
    border: 1px solid #D9EDFF;
    background: white;
    border-radius: 0.58rem;
    padding: 0.85rem;
}

.custom-posts-container .posts-wrap {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
}
.page-title{
    padding-top: 1rem;
}



@media (max-width: 960px) {
    .custom-posts-container .posts-wrap {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 30px;
    }

}
