/* ==========================================================
   Posts Split Grid
   ========================================================== */
.posts-split-grid{
    width: 100%;
}

/* Layout: 2 columns x 2 rows
   Row 1 = featured image + small cards (small cards define the height)
   Row 2 = featured card text (does not affect the image height) */
.posts-split-grid .posts-split-layout {
    display: grid;
    grid-template-columns: 56.410% 1fr;
    column-gap: 24px;
    align-items: stretch;
}

/* Make wrappers transparent so their children become grid items */
.posts-split-grid .featured-post,
.posts-split-grid .featured-article {
    display: contents;
}

/* Featured image box: row 1, column 1 */
.posts-split-grid .featured-media {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    overflow: hidden;
    min-height: 240px; /* Safety minimum when there are very few small cards */
}

/* Image is absolutely positioned so it never pushes the row height;
   it simply fills the height defined by the small cards column */
.posts-split-grid .featured-media a {
    position: absolute;
    inset: 0;
    display: block;
}

.posts-split-grid .featured-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Featured text: row 2, column 1 */
.posts-split-grid .featured-body {
    grid-column: 1;
    grid-row: 2;
    margin-top: 17px;
}

/* Small cards column: row 1, column 2 */
.posts-split-grid .small-cards {
    grid-column: 2;
    grid-row: 1;
}

/* Author */
.posts-split-grid .post-author {
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
}

/* Excerpt */
.posts-split-grid .post-excerpt {
    color: #53775F;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

/* Content Style */
.posts-split-grid .post-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 0 !important;
}

.posts-split-grid .small-cards .post-title {
    font-size: 12px;
    line-height: 20px;
}

.posts-split-grid .small-cards img {
    width: 166px;
    height: 100px;
}

/* Image overlay gradient */
.posts-split-grid .post-media {
    position: relative;
}

.posts-split-grid .post-media:after {
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 45%, rgba(0, 0, 0, 0.56) 70%, rgba(8, 12, 10, 0.80) 100%);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    border-radius: 10px;
    pointer-events: none; /* Keep the image link clickable */
}
.posts-split-grid  .small-cards article {
    align-items: flex-start;
}

.posts-split-grid  .small-cards{
    max-width: 358px;
}

.posts-split-layout .post-author a{
   color: #336844 !important;
   font-size: 10px;
   line-height: 16px;
   font-weight: 700;
}
/* Mobile / tablet: stack everything in one column */
@media (max-width: 991.98px) {
    .posts-split-grid {
        width: 100% !important;
    }

    .posts-split-grid .posts-split-layout {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .posts-split-grid .featured-media {
        grid-column: 1;
        grid-row: 1;
        height: 240px;
        min-height: 0;
    }

    .posts-split-grid .featured-body {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 20px;
    }

    .posts-split-grid .small-cards {
        grid-column: 1;
        grid-row: 3;
    }
    .posts-split-grid  .small-cards{
    max-width: 100%;
    }
}