/* =========================================
   BLOG + HEALTHCARE NEWS MAIN
========================================= */
.blogMain {
    width: 100%;
}

/* =========================================
   BLOG GRID
========================================= */
.blogMain .blog-posts,
.blogMain .pagelet-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* =========================================
   BLOG CARD
========================================= */
.blogMain .blog-posts > li,
.blogMain .pagelet-posts > li {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 410px;
    margin: 0;
    padding: 32px 32px 30px;
    box-sizing: border-box;
    border: 1px solid #e5e1d6;
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

/* =========================================
   DIFFERENT CARD BACKGROUNDS
========================================= */
.blogMain .blog-posts > li:nth-child(4n + 1),
.blogMain .pagelet-posts > li:nth-child(4n + 1) {
    background: #fbfaf6;
}

.blogMain .blog-posts > li:nth-child(4n + 2),
.blogMain .pagelet-posts > li:nth-child(4n + 2) {
    background: #f4f7f1;
}

.blogMain .blog-posts > li:nth-child(4n + 3),
.blogMain .pagelet-posts > li:nth-child(4n + 3) {
    background: #f4f7f9;
}

.blogMain .blog-posts > li:nth-child(4n + 4),
.blogMain .pagelet-posts > li:nth-child(4n + 4) {
    background: #faf4f1;
}

/* =========================================
   HOVER EFFECT
========================================= */
.blogMain .blog-posts > li:hover,
.blogMain .pagelet-posts > li:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 30px rgba(30, 40, 35, 0.09);
}

/* =========================================
   GOLD BOTTOM LINE
========================================= */
.blogMain .blog-posts > li::after,
.blogMain .pagelet-posts > li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #b29452;
    transform: scaleX(0.15);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.blogMain .blog-posts > li:hover::after,
.blogMain .pagelet-posts > li:hover::after {
    transform: scaleX(1);
}

/* =========================================
   RESET ELEMENTS
========================================= */
.blogMain .blog-posts li,
.blogMain .pagelet-posts li {
    list-style: none;
}

.blogMain .blog-posts li p:empty,
.blogMain .pagelet-posts li p:empty,
.blogMain .blog-posts li .post-meta-entry,
.blogMain .pagelet-posts li .post-meta-entry {
    display: none;
}

/* =========================================
   TITLE
========================================= */
.textMain .blogMain .blog-posts li h3,
.textMain .blogMain .pagelet-posts li h3 {
    margin: 0 0 18px;
    padding: 0;
    font: 600 25px/35px var(--headingFont);
}

.blogMain .blog-posts li h3 a,
.blogMain .pagelet-posts li h3 a {
    color: #18302f;
    text-decoration: none;
    transition: color 0.25s ease;
}

.blogMain .blog-posts li h3 a:hover,
.blogMain .pagelet-posts li h3 a:hover {
    color: #a48645;
}

/* =========================================
   SOURCE
========================================= */
.blogMain .pagelet-posts li .post-meta-entry {
    margin-bottom: 15px;
}

/* =========================================
   KNOW MORE
========================================= */
.blogMain .blog-posts li .read-more,
.blogMain .pagelet-posts li .read-more {
    display: block;
    margin-top: auto;
    padding-top: 28px;
}

.blogMain .blog-posts li .read-more a,
.blogMain .pagelet-posts li .read-more a {
    color: #9b7a35;
    text-decoration: underline;
    text-underline-offset: 5px;
    transition: color 0.25s ease;
}

.blogMain .blog-posts li .read-more a:hover,
.blogMain .pagelet-posts li .read-more a:hover {
    color: #18302f;
    transform: translateX(4px);
}

/* =========================================
   BLOG PAGINATION
========================================= */
.blog-pagination,
.pagelet-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #ddd8ca;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #222;
}

/* =========================================
   PAGINATION LINKS
========================================= */
.blog-pagination a,
.pagelet-pagination a {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #d9cfbc;
    border-radius: 10px;
    background: #fff;
    color: #18302f;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* =========================================
   HOVER
========================================= */
.blog-pagination a:hover,
.pagelet-pagination a:hover {
    background: #a9833c;
    color: #fff;
    border-color: #a9833c;
    transform: translateY(-2px);
}

/* =========================================
   CURRENT PAGE
========================================= */
/* CMS may use span / strong / b for current page */
.blog-pagination strong,
.blog-pagination b,
.blog-pagination span.current,
.pagelet-pagination strong,
.pagelet-pagination b,
.pagelet-pagination span.current {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #a9833c;
    border-radius: 10px;
    background: #a9833c;
    color: #fff;
    font-weight: 600;
}

/* =========================================
   PLAIN PAGINATION TEXT
========================================= */
.blog-pagination,
.pagelet-pagination {
    line-height: 42px;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 600px) {

    .blog-pagination,
    .pagelet-pagination {
        gap: 7px;
        margin-top: 30px;
        padding-top: 20px;
        font-size: 14px;
    }

    .blog-pagination a,
    .pagelet-pagination a,
    .blog-pagination strong,
    .blog-pagination b,
    .blog-pagination span.current,
    .pagelet-pagination strong,
    .pagelet-pagination b,
    .pagelet-pagination span.current {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        border-radius: 8px;
    }
}

/* =========================================
   REMOVE OLD LI BORDER
========================================= */
.blogMain .blog-posts > li,
.blogMain .pagelet-posts > li {
    border-bottom: 0;
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 900px) {

    .blogMain .blog-posts,
    .blogMain .pagelet-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .blogMain .blog-posts > li,
    .blogMain .pagelet-posts > li {
        min-height: 390px;
        padding: 27px 25px 27px;
    }

   
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 767px) {

    .blogMain .blog-posts,
    .blogMain .pagelet-posts {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .blogMain .blog-posts > li,
    .blogMain .pagelet-posts > li {
        min-height: auto;
        padding: 26px 24px 28px;
    }

    .blogMain .blog-posts li h3,
    .blogMain .pagelet-posts li h3 {
        margin-bottom: 14px;
    }

    .blogMain .blog-posts li .read-more,
    .blogMain .pagelet-posts li .read-more {
        padding-top: 24px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */
@media (max-width: 480px) {

    .blogMain .blog-posts > li,
    .blogMain .pagelet-posts > li {
        padding: 23px 20px 25px;
    }

}
