.page-numbers[data-page="0"],
.page-numbers.current {
    pointer-events: none;
}

.page-template-template-blog .container,
.page-template-template-news .container,
.page-template-template-media .container {
    max-width: 1336px;
}

.blog-main {
    background-color: #f8f8f8;
    padding-top: 60px;
}

.blog-main .container {
    max-width: 1336px;
    padding-bottom: 58px;
}

.page-title-wrapper {
    margin-bottom: 32px;
}

.post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 60px 33px;
}

.post-list .post-item {
    width: calc((100% - 66px) / 3);
}

.post-list .post-item .item-inner {
    display: block;
    transition: transform 0.4s;
    padding-bottom: 5px;
    border: 1px solid #dbdbdb;
    background-color: #fff;
    position: relative;
}

.post-list .post-item .item-inner::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    content: "";
    display: block;
    z-index: 1;
    height: 5px;
    background-color: #de232b;
    transition: width 0.4s;
}

.post-list .post-item:hover .item-inner:before {
    width: 100%;
}

.post-list .image {
    padding-top: 66.09756097560976%;
    background-color: #de232b;
    margin-bottom: 27px;
    position: relative;
    overflow: hidden;
}

.post-list .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

.post-list .post-item .date {
    font-size: 15px;
    line-height: 18px;
    text-transform: uppercase;
    color: #4b4b4b;
    padding-left: 25px;
    padding-right: 25px;
    margin-bottom: 25px;
}

.post-list .post-item .title {
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 11px;
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-transform: capitalize;
    color: #4b4b4b;
    height: 121px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-nav {
    padding-top: 52px;
    padding-bottom: 52px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.pagination .page-numbers {
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #cfcfcf;
    border-color: #cfcfcf;
    font-family: "Inter", sans-serif;
}

.pagination .page-numbers.current {
    border-color: #de232b;
    background-color: #de232b;
    color: #fff;
    cursor: default;
}

.pagination .page-numbers:not(.current):not([data-page="0"]):hover {
    border-color: #de232b;
    color: #de232b;
}

.pagination .page-numbers::after {
    display: none;
}

.pagination .page-numbers[data-page="0"] {
    cursor: default;
}

.ldio div {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 60px;
    left: 20px;
    box-sizing: content-box;
}
.ldio div:nth-child(1) {
    background: #de232b;
    animation: ldio 1s linear infinite;
    animation-delay: -0.5s;
}
.ldio div:nth-child(2) {
    background: #000000;
    animation: ldio 1s linear infinite;
    animation-delay: 0s;
}
.ldio div:nth-child(3) {
    background: #de232b;
    animation: ldio-o 1s linear infinite;
    animation-delay: -0.5s;
}
.loadingio-spinner-dual-ball {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
}
.ldio {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

.ajax-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.ajax-loading.show {
    display: flex;
}

@media (min-width: 768px) {
    .post-list .post-item:hover .image img {
        transform: scale(1.2);
    }

    .post-list .post-item:hover .item-inner {
        transform: translateY(-30px);
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .post-list {
        gap: 60px 20px;
    }

    .post-list .post-item {
        width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 767.98px) {
    .blog-main .container {
        padding-bottom: 48px;
    }

    .post-list {
        gap: 24px;
        justify-content: center;
    }

    .post-list .post-item {
        width: 100%;
        max-width: 400px;
    }

    .page-title-wrapper {
        margin-top: 25px;
        margin-bottom: 20px;
    }

    .blog-main {
        padding-top: 47px;
    }

    .post-list .post-item .date {
        font-size: 14px;
        line-height: 20px;
        letter-spacing: -0.02em;
        padding-left: 20px;
        padding-right: 20px;
        margin-bottom: 12px;
    }

    .post-list .image {
        padding-top: 65.71428571428571%;
        margin-bottom: 24px;
    }

    .post-list .post-item .title {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 16px;
        line-height: 24px;
        letter-spacing: -0.02em;
        height: 109px;
        padding-bottom: 13px;
        -webkit-line-clamp: 4;
    }

    .page-nav {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .pagination {
        gap: 12.37px;
    }

    .pagination .page-numbers {
        font-size: 14px;
        line-height: 17px;
        width: 24px;
        height: 24px;
    }
}

@keyframes ldio-o {
    0% {
        opacity: 1;
        transform: translate(0 0);
    }
    49.99% {
        opacity: 1;
        transform: translate(80px, 0);
    }
    50% {
        opacity: 0;
        transform: translate(80px, 0);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}
@keyframes ldio {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(80px, 0);
    }
    100% {
        transform: translate(0, 0);
    }
}
