.blog_inner_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;

    & li {
        max-width: 445px;
        padding-left: 0;

        &::after {
            content: none;
        }
    }

    &:has(+ *) {
        margin-bottom: 30px;
    }
}

.blog_items {
    position: relative;
    max-width: 650px;

    &>a {
        border-radius: 20px;
    }
}

.product_name {
    position: absolute;
    left: -1px;
    top: 30px;
    font-size: 13px;
    letter-spacing: 0.26px;
    line-height: 17px;
    height: 33px;
    color: var(--primary);
    background-color: #fff;
    clip-path: polygon(100% 0, 93% 49%, 100% 100%, 0% 100%, 0 48%, 0% 0%);
    display: inline-flex;
    text-transform: capitalize;
    align-items: center;
    padding: 8px 21px 8px 13px;
    font-weight: bold;
}

.blog-img {
    max-width: 650px;
    overflow: hidden;
    background-color: var(--darkblue);
    border-radius: 20px 20px 0 0;
    position: relative;

    &:before {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: transparent linear-gradient(127deg, #000000 0%, #00000000 100%) 0% 0% no-repeat padding-box;
        border-radius: 20px 20px 0 0;
        z-index: 1;
        transition: all 0.5s ease-in-out;
        -webkit-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
    }
}

.blog-img>img {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    -webkit-transition: 0.5s ease-out;
    -o-transition: 0.5s ease-out;
    transition: 0.5s ease-out;
}

.blog-post {
    background-color: var(--white);
    position: relative;
    padding: 25px 25px 30px 25px;
    border: 1px solid rgb(112, 112, 112, 30%);
    border-top: none;
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}

.blog-post.side-line:before {
    content: "";
    position: absolute;
    top: 63px;
    left: 0;
    width: 2px;
    height: 44px;
    background-color: var(--darkblue);
}

.post_title {
    font-size: 16px;
    line-height: 30px;
    letter-spacing: 0.32px;
    font-weight: normal;
    color: var(--darkblue);
}

.date_type_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
    row-gap: 8px;
    position: relative;
}

.type_date_left_block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date {
    white-space: nowrap;
    color: var(--blue);
}

.type_info {
    background: #efefef 0% 0% no-repeat padding-box;
    border-radius: 3px;
    padding: 4.5px 10px;
    width: max-content;

    & a {
        text-decoration: none;

        &:hover {
            color: var(--darkblue) !important;
            text-decoration: none;
        }
    }
}

.date,
.type_info p {
    font-size: 12px;
    letter-spacing: 0.24px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    color: #030202;
}

.post-tags {
    & span {
        font-weight: 500;
        margin-right: 5px;
    }

    & a {
        background: #e5e5e5;
        border-radius: 3px 0 0 3px;
        color: #353535;
        display: inline-block;
        font-size: 14px;
        height: 23px;
        line-height: 1.5;
        padding: 0 15px 0 15px;
        position: relative;
        margin: 0 5px 0px 0;
        text-decoration: none;
        -webkit-transition: color 0.2s;

        &::before {
            content: '';
            position: absolute;
            width: 5px;
            height: 5px;
            left: 6px;
            top: 9px;
            background: #fff;
            border-radius: 10px;
            box-shadow: inset 0 1px rgba(0, 0, 0, 0.25);
        }

        &::after {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            background: #fff;
            border-bottom: 13px solid transparent;
            border-left: 10px solid #e5e5e5;
            border-top: 10px solid transparent;
        }


        &:hover {
            background-color: var(--darkblue);
            color: white;

            &::after {
                border-left-color: var(--darkblue);
            }
        }
    }
}

.post_detail.heading-24 {
    font-family: var(--sitefonts);
    font-size: 24px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 0;
    color: #030202;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    height: 28px;
    margin-bottom: 10px;
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
}

.blog-post>p {
    color: #464646;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    height: 45px;
    margin-bottom: 20px;
}

.blog_items>a:hover .blog-post {
    border-color: var(--darkblue);
}

.blog_items>a:hover .blog-img:before {
    opacity: 0.7;
}

.blog_items>a:hover .blog-img>img {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 0.8;
}

.btn-read-more {
    background: transparent;
    border: none;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0.32px;
    color: #464646;
    padding: 0;
    min-height: 25px;
    text-transform: capitalize;
    transition: all 0.3s linear;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    -ms-transition: all 0.3s linear;
    position: relative;
    overflow: visible;
    min-width: auto;
    height: auto;
}

.btn-read-more::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #707070;
    bottom: 3px;
    left: 0;
    position: absolute;
    transform: scaleX(1);
    transform-origin: right center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0, 1);
    pointer-events: none;
}

.blog_items>a:hover .blog-post .btn-read-more {
    color: var(--darkblue);
    background-color: transparent;
}

.blog_items>a:hover .blog-post .btn-read-more::after {
    background-color: var(--darkblue);
}

.blog_items>a:hover .blog-post .post_detail.heading-24 {
    color: var(--darkblue);
}

.view_more_wrapper .btn-theme {
    text-transform: capitalize;
}

/* ------------------- BLOG  DETAIL SECTION ------------------- */
.blog_detail_wrapper .half-section .left-side {
    width: calc(100% - 400px);
    padding-right: 70px;

    & ul {
        /* margin-bottom: 0; */
    }
}

.blog_detail_wrapper .half-section .right-side {
    max-width: 400px;
}

.blog-intro-title .heading-36 {
    margin-bottom: 10px;
}

.blog-intro-title .date_type_title {
    margin-bottom: 0;
}

.blog-intro-title {
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(112, 112, 112, 10%);
    margin-bottom: 30px;
}

.blog-img-wrap:has(+ *),
.blog-listing:has(+ *) {
    margin-bottom: 25px;
}

.next-previous-wrap {
    margin-top: 45px;
    display: flex;
    justify-content: space-between;
}

.arrow-button {
    font-family: var(--sitefonts);
    display: inline-flex;
    align-items: center;
    column-gap: 10px;
    color: var(--darkgrey);
    font-weight: 600;
    text-decoration: underline;
    text-transform: capitalize;
}

.arrow-button:hover {
    color: var(--darkblue);
}

.arrow-button>img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(197deg) brightness(102%) contrast(102%);
    transition: 0.5s ease-in-out;
}

.arrow-button:hover img {
    filter: brightness(0) saturate(100%) invert(13%) sepia(37%) saturate(7455%) hue-rotate(225deg) brightness(79%) contrast(111%);
}

.light-blue-bg {
    background-color: #DBEAF3;
}

.blog-listing {
    padding: 35px 50px 50px;
}

.recent_blog_sec {
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.recent_blog_sec .recent_blog_list:not(:last-of-type) {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgb(112, 112, 112, 10%);
}

.recent_blog_list {
    display: flex;
    gap: 20px;
}

.recent_blog_img {
    min-width: 81px;
    height: 81px;
    background-color: var(--darkblue);
}

.recent_blog_title {
    font-family: var(--sitefonts);
    font-size: 16px;
    line-height: 1.1;
    font-weight: bold;
    letter-spacing: 0;
    color: #030202;
    text-transform: uppercase;
    margin-bottom: 12px;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}

.recent_blog_list:hover .recent_blog_content .recent_blog_title {
    color: var(--darkblue);
}

.recent_blog_list:hover .recent_blog_content .btn-read-more {
    color: var(--darkblue);
}

.recent_blog_list:hover .recent_blog_content .btn-read-more::after {
    background-color: var(--darkblue);
}

.recent_blog_list:hover .recent_blog_img>img {
    opacity: 0.8;
}

.blog-cta {
    height: 475px;
    max-width: 400px;
    padding: 30px;
    z-index: 1;
}

.blog-cta .heading-30 {
    font-family: var(--sitefonts);
    font-weight: bold;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: 0.2px;
    margin-bottom: 12px;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
}

.blog-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent linear-gradient(211deg, #00000000 0%, #000000d9 100%) 0% 0% no-repeat padding-box;
    z-index: -1;
}

.blog-img-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    text-align: center;
    padding-inline: 60px;


    & .btnlist {
        justify-content: center;
    }
}

ul.main-menu .submenu>ul.sublink>li:has(.menu-item-hover) .submenu.menu_level2 {
    opacity: 1;
    visibility: visible;
}


/* ------------------------||pagination design start||------------------------------- */
.blog-section .btnlist {
    display: flex;
    justify-content: center;
    gap: 10px
}

.blog-section .btnlist .page-numbers {
    font-family: var(--font-head-family);
    font-size: 16px;
    font-weight: 500;
    color: #000;
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
    border: 2px solid #444
}

.blog-section .btnlist .page-numbers:hover,
.blog-section .btnlist span.current {
    font-size: 16px;
    font-weight: 500;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
    background: var(--darkblue);
    border-color: var(--darkblue);
    color: #fff
}

.blog-section .btnlist .page-numbers.next:hover,
.blog-section .btnlist .page-numbers.prev:hover {
    background: #fff0;
    width: unset;
    height: unset;
    color: var(--darkblue);
}

.blog-section .btnlist a.prev,
.blog-section .btnlist a.next {
    width: auto;
    height: auto;
    background: none;
    border: none
}

.blog-section .btnlist a.next img {
    margin-left: 15px
}

.blog-section .btnlist a.prev img {
    margin-right: 15px
}

/* ------------------------||pagination design end||------------------------------- */



.post_thumb img {
    border-radius: 10px;
}

img.attachment-full.size-full.wp-post-image {
    border-radius: 10px;
}

.blog-cta img {
    border-radius: 10px;
}

.blog-cta::after {
    border-radius: 10px;
}

.recent_blog_img {
    border-radius: 10px;
}

.recent_blog_img img {
    border-radius: 10px;
}



/* ------------- RESPONSIVENES STARTS HERE ------------ */
@media (max-width: 1599.99px) {
    .blog_inner_grid {
        gap: 20px;

        & li {
            max-width: 410px;
        }
    }
}

@media (max-width: 1439.99px) {
    .blog_inner_grid {

        & li {
            max-width: 364px;
        }
    }

    /* ------------------- BLOG  DETAIL SECTION ------------------- */
    .blog_detail_wrapper .half-section .left-side {
        width: calc(100% - 350px);
        padding-right: 40px;
    }

    .blog_detail_wrapper .half-section .right-side {
        max-width: 350px;
    }

    .recent_blog_sec {
        padding: 25px;
    }

    .recent_blog_sec .recent_blog_list:not(:last-of-type) {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .blog-cta .heading-30 {
        font: normal normal bold 24px / 33px var(--sitefonts);
    }
}

@media (max-width: 1199.99px) {
    .blog_inner_grid {
        & li {
            max-width: 295px;
        }
    }

}

@media (max-width: 991.99px) {
    .blog_inner_grid {
        gap: 15px;
    }

    .blog_detail_wrapper .half-section .left-side {
        width: 100%;
        margin-bottom: 30px;
        padding-right: 0;
    }

    .blog_detail_wrapper .half-section .right-side {
        width: 100%;
        max-width: 100%;
        display: inline-flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 20px;
    }

    .recent_blog_sec {
        padding: 20px;
        max-width: none;
        margin-bottom: 0;
        flex: 1;
    }

    .blog-cta {
        width: auto;
        flex: 1;
    }

    .blog-post {
        padding: 15px 15px 15px 15px;
    }

    .date_type_title {
        margin-bottom: 8px;
    }

    .post_detail.heading-24 {
        font: normal normal bold 24px/28px var(--sitefonts);
    }

    .blog-post>p {
        margin-bottom: 10px;
        height: 50px;
    }

    .blog-intro-title {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .blog-img-wrapper {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        padding: 0 30px;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .blog-cta .header-right {
        margin-right: 0px;
        justify-content: center;
    }

    .blog-cta .heading-30 {
        text-align: center;
    }

    .blog-listing {
        padding: 25px 25px;
    }
}

@media (max-width: 767.99px) {
    .blog_inner_grid {
        & li {
            max-width: 247px;
        }
    }

    .post_detail.heading-24 {
        font: normal normal bold 18px / 24px var(--sitefonts);
        height: 24px;
        margin-bottom: 5px;
    }

    .blog_detail_wrapper .half-section .right-side {
        flex-wrap: wrap;
    }

    .recent_blog_sec {
        flex: unset;
        width: 100%;
    }

    .blog-cta {
        max-width: 100%;
    }

    .blog-cta::after {
        background: transparent linear-gradient(211deg, #000000a1 0%, #000000e6 100%) 0% 0% no-repeat padding-box;
    }
}

@media (max-width: 575.99px) {
    .blog_inner_grid {
        & li {
            max-width: 100%;
        }
    }

    .blog-cta {
        height: 400px;
    }

    .blog_inner_grid li {
        margin: auto;
    }

    .blog-cta .header-right .btnlist {
        column-gap: 15px;
    }

    .blog-cta .header-right .btnlist a {
        width: 120px;
    }

    .blog-post.side-line:before {
        top: 40px;
        height: 33px;
    }

    .blog-post>p {
        margin-bottom: 5px;
        height: 45px;
    }

    .post-tags {
        & span {
            font-weight: 500;
            margin-right: 5px;
        }

        & a {
            margin: 0 7px 10px 0;
        }
    }
}