/* =========================================================
   BLOG + PAGELET
========================================================= */
.textMain .blog-posts,
.textMain .pagelet-posts {
    margin: 0;
    padding: 0;
    list-style: none;
}
.textMain .blog-posts ul,
.textMain .blog-posts li,
.textMain .pagelet-posts ul,
.textMain .pagelet-posts li {
    margin: 0;
    padding: 0;
    background: none;
    list-style: none;
}
/* Remove empty/generated content */
.textMain p:empty,
.textMain .post-excerpt,
.textMain .post-meta-entry {
    display: none;
}
/* =========================================================
   POST CARD
========================================================= */
.textMain .blog-posts > li {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    align-items: stretch;
    margin-bottom: 30px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.textMain .pagelet-posts > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    margin-bottom: 30px;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.textMain .blog-posts > li:hover,
.textMain .pagelet-posts > li:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
/* =========================================================
   POST IMAGE
========================================================= */
.textMain .post-image {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    background: #f2f2f2;
}
.textMain .post-image > a {
    display: block;
    width: 100%;
    height: 100%;
}
.textMain .post-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.textMain .blog-posts > li:hover .post-image img,
.textMain .pagelet-posts > li:hover .post-image img {
    transform: scale(1.04);
}
.textMain .post-featured-image {
    float: right !important;
    margin: 15px 0px 10px 15px !important;
}
/* =========================================================
   POST CONTENT
========================================================= */
.textMain .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 30px;
}
/* =========================================================
   POST TITLE
========================================================= */
.textMain .blog-posts li h3,
.textMain .pagelet-posts li h3 {
    margin: 0;
    padding: 0 0 15px;
    font: 600 24px/32px var(--headingFont);
}
.textMain .blog-posts li h3 a,
.textMain .pagelet-posts li h3 a {
    color: var(--fontDark);
    text-decoration: none;
    transition: color 0.25s ease;
}
.textMain .blog-posts li h3 a:hover,
.textMain .pagelet-posts li h3 a:hover {
    color: var(--themeOneBg);
    text-decoration: underline;
    text-underline-offset: 4px;
}
/* =========================================================
   POST DESCRIPTION
========================================================= */
.textMain .blog-posts li p,
.textMain .pagelet-posts li p {
    margin: 0 !important;
    padding: 0 0 20px !important;
    font: 400 16px/28px var(--siteFont);
}
/* =========================================================
   KNOW MORE
========================================================= */
.textMain .blog-posts li .read-more,
.textMain .pagelet-posts li .read-more {
    display: inline-block;
    align-self: flex-start;
    margin: 5px 0 0 !important;
    padding: 0 !important;
}
.textMain .blog-posts li .read-more a,
.textMain .pagelet-posts li .read-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 20px;
    border: 2px solid var(--themeOneBg);
    border-radius: 8px;
    background: transparent;
    color: var(--themeOneBg);
    font: 500 15px/24px var(--siteFont);
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}
.textMain .blog-posts li .read-more a:hover,
.textMain .pagelet-posts li .read-more a:hover {
    background: var(--themeOneBg);
    color: #fff;
    transform: translateY(-2px);
}
/* =========================================================
   ACCESSIBILITY - KEYBOARD FOCUS
========================================================= */
.textMain .post-image a:focus-visible,
.textMain .post-title a:focus-visible,
.textMain .read-more a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}
/* =========================================================
   TABLET
========================================================= */
@media only screen and (max-width: 1024px) {
    .textMain .blog-posts > li,
    .textMain .pagelet-posts > li {
        grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    }
    .textMain .post-content {
        padding: 25px;
    }
    .textMain .blog-posts li h3,
    .textMain .pagelet-posts li h3 {
        font-size: 21px;
        line-height: 29px;
    }
}
@media only screen and (max-width: 900px) {
    .textMain .post-featured-image {
        float: none !important;
        margin: 15px 0px 10px 0px !important;
    }
}
/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */
@media only screen and (max-width: 767px) {
    .textMain .blog-posts > li,
    .textMain .pagelet-posts > li {
        display: block;
        margin-bottom: 25px;
        border-radius: 12px;
    }
    .textMain .post-image {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
    .textMain .post-image img {
        width: 100%;
        height: 100%;
        min-height: 0;
    }
    .textMain .post-content {
        padding: 22px;
    }
    .textMain .blog-posts li h3,
    .textMain .pagelet-posts li h3 {
        padding-bottom: 12px;
        font-size: 20px;
        line-height: 28px;
    }
    .textMain .blog-posts li p,
    .textMain .pagelet-posts li p {
        padding-bottom: 18px !important;
        font-size: 15px;
        line-height: 26px;
    }
}
/* =========================================================
   SMALL MOBILE
========================================================= */
@media only screen and (max-width: 480px) {
    .textMain .blog-posts > li,
    .textMain .pagelet-posts > li {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    .textMain .post-content {
        padding: 18px;
    }
    .textMain .blog-posts li h3,
    .textMain .pagelet-posts li h3 {
        font-size: 18px;
        line-height: 26px;
    }
    .textMain .blog-posts li p,
    .textMain .pagelet-posts li p {
        font-size: 15px;
        line-height: 25px;
    }
    .textMain .blog-posts li .read-more a,
    .textMain .pagelet-posts li .read-more a {
        min-height: 44px;
        padding: 8px 18px;
    }
}
