section.custom_posts .customfield_image {
    position: relative;
}

section.custom_posts .image {
    overflow: hidden;
    height: 100%;
    max-height: 320px;
}

section.custom_posts .large_content .content p img {
    display: none;
}

section.custom_posts .customfield_image span.date {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 70px;
    padding: 15px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: #1c1c1c;
    text-align: center;
    font-family: var(--Verdana);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    border-radius: 8px;
    overflow: hidden;
    background: #FFF;
}

section.custom_posts .main_content .post-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

section.custom_posts .small_content .post-info p,
section.custom_posts .large_content .post-info p {
    color: var(--ColorLightGray);
    font-family: var(--Inter);
    font-style: normal;
    font-weight: 700;
    line-height: 130%;
    text-transform: capitalize;
    margin-bottom: 0;
}

section.custom_posts .content p img {
    display: none;
}

section.custom_posts .main_content {
    display: grid;
    max-width: 100%;
    grid-template-columns: 49% calc(49%);
    grid-template-rows: minmax(auto, auto);
    gap: 26px;
}

section.custom_posts .large_content {
    grid-column: span 1;
    grid-row: span 2;
}


section.custom_posts p.date {
    color: #6A6A6A;
    font-family: var(--Verdana);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

section.custom_posts .link-more {
    margin-top: auto;
}

ul.nav-tabs li.nav-item:first-child {
    border-right: 1px rgba(33, 33, 33, 0.15) solid;
    padding-right: 50px;
    margin-right: 50px;
}


ul.nav-tabs {
    border-bottom: 0;
}


li.nav-item a {
    display: flex;
    height: 45px;
    padding: 15px 30px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1 0 0;
    width: 200px;
}

ul.nav-tabs li.nav-item .nav-link.active {
    color: #212121;
    font-family: var(--Verdana);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;

    border-radius: 10px;
    border: 1px solid #018750;
    background: #FFF;
}

ul.nav-tabs li.nav-item .nav-link {
    color: #FFF;
    font-family: var(--Verdana);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    border-radius: 10px;
    background: #018750;
}

section.custom_posts .main_content .large_content {
    cursor: pointer;
    border-radius: 30px;
    border: 1px solid rgba(33, 33, 33, 0.15);
    overflow: hidden;
    background-color: #FFF;
    transition: var(--transition3);
    -webkit-transition: var(--transition3);
    -moz-transition: var(--transition3);
    -ms-transition: var(--transition3);
    -o-transition: var(--transition3);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    position: relative;
}

section.custom_posts .main_content .large_content:hover,
section.custom_posts .main_content .small_content:hover {
    border: 1px solid #018750;
    box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.15);
    transition: var(--transition3);
    -webkit-transition: var(--transition3);
    -moz-transition: var(--transition3);
    -ms-transition: var(--transition3);
    -o-transition: var(--transition3);
}



/* section.custom_posts .large_content .customfield_image {
    overflow: hidden;
} */

/* section.custom_posts .large_content:hover img {
    transition: var(--transition5);
    transform: scale(1.2);
} */

/* section.custom_posts .small_content:hover img {
    transition: var(--transition5);
    transform: scale(1.2);
} */

section.custom_posts .large_content:hover .read-more,
section.custom_posts .small_content:hover .read-more {
    transition: var(--transition5);
    border: 1px solid #018750;
    gap: 0 15px;
}

section.custom_posts .large_content:hover h3,
section.custom_posts .small_content:hover h3 {
    transition: background 0.5s ease all;
    background: #FFF;
    background-clip: text;
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
}

section.custom_posts .main_content>div:hover a {
    transition: var(--transition5);
    background: #FFF;
    background-clip: text;
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    gap: 0 15px;
}

section.custom_posts .main_content>div:hover a path {
    transition: var(--transition5);
    fill: #FFF;
}

section.custom_posts .large_content img {
    height: 400px;
    max-height: 100%;
    width: 100%;
    object-fit: cover;
}

section.custom_posts .header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

section.custom_posts .header h2 {
    max-width: 800px;
}

section.custom_posts .header a.text-uppercase.goldbtn {
    padding: 15px 38px;
}

section.custom_posts .small_content {
    border-radius: 30px;
    border: 1px solid rgba(33, 33, 33, 0.15);
    overflow: hidden;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
    position: relative;
}
section.custom_posts .large_content .content{
    height: 100%;
}
section.custom_posts .large_content .content,
section.custom_posts .small_content .content {
    padding: 30px;
    gap: 16px 0;
    display: flex;
    flex-direction: column;
}

section.custom_posts .large_content .content>*,
section.custom_posts .small_content .content>* {
    margin-bottom: 0;
}

section.custom_posts .large_content .content h3,
section.custom_posts .small_content .content h3 {
    color: #018750;
    font-family: var(--Verdana);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

section.custom_posts .large_content .content h3 {
    -webkit-line-clamp: 1;
}

section.custom_posts .small_content .content h3 {
    -webkit-line-clamp: 2;
}

section.custom_posts .large_content .content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 5;
}

section.custom_posts .small_content .content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
}

section.custom_posts .small_content .content p.bottom-link {
    display: flex;
    align-items: center;
}

section.custom_posts .small_content .content .post-info p {
    color: white;
}

section.custom_posts .content span {
    color: #fff;
    font-family: var(--Inter);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
}

section.custom_posts .small_content img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 313px;
    max-width: 313px;
}


@media (max-width: 1366px) {

    section.custom_posts .main_content {
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
}

@media (max-width: 1199px) {
    section.blog_banner .content {
        max-width: 100%;
    }

    section.custom_posts .large_content img,
    section.custom_posts .small_content img {
        min-height: auto;
    }

    section.custom_posts .header {
        justify-content: center;
        align-items: center;
        gap: 40px;
    }

    section.custom_posts .large_content .content,
    section.custom_posts .small_content .content {
        padding: 20px;
    }
}

@media (max-width: 991px) {
    section.custom_posts .main_content {
        display: flex;
        flex-direction: column;
    }

    section.custom_posts .large_content img {
        min-height: 360px;
        max-height: 480px;
    }

    section.custom_posts .small_content img {
        min-height: 360px;
        max-height: 480px;
    }

}

@media(max-width: 767px) {
    section.custom_posts .header {
        gap: 30px;
    }

    section.blog_banner.d-flex.align-items-center {
        text-align: center;
    }

    section.custom_posts.pt-0 ul.nav-tabs {
        width: 100%;
        justify-content: center;

    }

    section.custom_posts .small_content {
        display: flex;
        flex-direction: column;
    }

    section.custom_posts .small_content .content {
        padding: 20px 20px 30px;
    }

    section.custom_posts .large_content img,
    section.custom_posts .small_content img {
        max-width: 100%;
        width: 100%;
        max-height: 320px;
    }

}

@media (max-width: 575px) {
    section.custom_posts .header {
        flex-direction: column;
    }

    ul.nav-tabs li.nav-item:first-child {
        padding-right: 0;
        margin-right: 0;

    }

    section.custom_posts.pt-0 ul.nav-tabs {
        justify-content: center;
        gap: 30px;
    }

    section.custom_posts .large_content img,
    section.custom_posts .small_content img {
        max-height: 240px;
        min-height: unset;
    }

    section.custom_posts p.date,
    section.custom_posts .link-more {
        font-size: 14px;
    }
}

@media (max-width: 425px) {

    ul.nav-tabs li.nav-item:first-child {
        border-right: 0;
        padding-right: 0;
        margin-right: 0;
    }
}