.featured-grid {
    display: flex;
    flex-direction: column;
    background-color: var(--wp--preset--color--green-black);
    padding-left: 90px;
    padding-right: 90px;
}

.featured-grid .featured-grid-title {
    color: white;
    margin: 0;
    padding-top: 40px;
    border-bottom: 1px solid white;
    padding-bottom: 40px;
}

.featured-grid .featured-grid-items {
    display: flex;
    flex-wrap: wrap;
    padding-top: 40px;
    padding-bottom: 60px;
}

.featured-grid .featured-grid-items .featured-grid-col {
    flex: 1;
    height: fit-content;
}

.featured-grid .featured-grid-items .featured-grid-col.left-column {
    border-right: 1px solid white;
    padding-right: 30px;
}

.featured-grid .featured-grid-items .featured-grid-col.right-column {
    padding-left: 30px;
}

.featured-grid .featured-grid-items .featured-grid-col .featured-col-group {
    display: flex;
    flex-direction: column;
}

.featured-grid .featured-grid-items .featured-grid-col .featured-col-group.only-mobile .grid-post-card {
    padding-top: 20px;
    margin-top: 20px;
}

.featured-grid .grid-post-card {
    border-bottom: 1px solid white;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.featured-grid .grid-post-card .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 11px;
}

.featured-grid .grid-post-card .post-tags .tag-pill {
    font-weight: 600;
    border-radius: 100px;
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 100%;
    text-transform: uppercase;
}

.featured-grid .grid-post-card .card-title {
    color: white;
    text-decoration: none;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-grid .grid-post-card .post-meta {
    color: var(--wp--preset--color--acid-green);
    font-size: 16px;
    line-height: 100%;
    gap: 10px;
    display: flex;
    font-weight: 400;
    margin: 0;
    flex: 1;
    align-items: flex-end;
}

.featured-grid .grid-post-card a {
    text-decoration: none;
    gap: 30px;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

.featured-grid .grid-post-card .post-card-col {
    width: 50%;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    box-sizing: border-box;
    flex-direction: column;
}

.featured-grid .grid-post-card .post-card-col img.grid-thumb {
    width: 100%;
    height: 194px;
    object-fit: cover;
    border-radius: 10px;
    overflow: hidden;
}

.featured-grid .grid-post-card-row {
    flex-direction: row;
    display: flex;
    border-bottom: 1px solid white;
    gap: 35px;
    padding-bottom: 30px;
    justify-content: space-between;
}

.featured-grid .grid-post-card-row .grid-post-card {
    margin: 0;
    border: none;
    padding-bottom: 0;
    width: calc(50% - 15px);
}

.featured-grid .grid-post-card-row .grid-post-card .card-title {
    margin-bottom: 15px;
}

.featured-grid .grid-post-card-row .grid-post-card:first-child {
    border-right: 1px solid white;
    padding-right: 9px;
}

.featured-grid .grid-post-card-row:last-child {
    border-bottom: none;
}

/* Light theme variant */
.featured-grid.light {
    background-color: white;
}

.featured-grid.light .featured-grid-title {
    color: var(--wp--preset--color--green-black);
    border-bottom: 1px solid var(--wp--preset--color--green-black);
    border-top: 1px solid var(--wp--preset--color--green-black);
}

.featured-grid.light .featured-grid-col.left-column {
    border-right: 1px solid var(--wp--preset--color--green-black);
}


.featured-grid.light .grid-post-card-row .grid-post-card {
    border-bottom: none;
}
.featured-grid.light .grid-post-card {
    border-bottom: 1px solid var(--wp--preset--color--green-black);
}

.featured-grid.light .grid-post-card .tag-pill {
    color: var(--wp--preset--color--green-black);
    border: 1px solid var(--wp--preset--color--green-black);
}

.featured-grid.light .grid-post-card .card-title {
    color: var(--wp--preset--color--green-black);
}

.featured-grid.light .grid-post-card .post-meta {
    color: var(--wp--preset--color--dark-gray);
}

.featured-grid.light .grid-post-card-row .grid-post-card:first-child {
    border-right: 1px solid var(--wp--preset--color--green-black);
}

/* Responsive */
@media screen and (max-width: 800px) {
    .featured-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .featured-grid .featured-grid-title {
        font-size: 32px;
        padding-bottom: 22px;
        padding-top: 25px;
    }

    .featured-grid .featured-grid-items .featured-grid-col .featured-col-group.only-mobile .grid-post-card {
        margin-top: 0;
        margin-bottom: 30px;
        padding-bottom: 30px;
        padding-top: 0;
        border-bottom: 1px solid white;
    }
    .featured-grid .featured-grid-items .featured-grid-col .featured-col-group.only-mobile .grid-post-card:last-of-type{
        border-bottom: none;
    }

    .featured-grid .featured-grid-items .featured-grid-col .grid-post-card a {
        gap: 13px;
    }

    .featured-grid .featured-grid-items .featured-grid-col.left-column,
    .featured-grid .featured-grid-items .featured-grid-col.right-column {
        border: none;
        padding: 0;
    }

    .featured-grid .grid-post-card .card-title {
        font-size: 19px;
        line-height: 26px;
    }

    .featured-grid .grid-post-card .post-meta {
        font-size: 12px;
        margin-top: 15px;
    }

    .featured-grid .grid-post-card .post-img.post-card-col {
        width: 111px;
        max-width: 111px;
    }

    .featured-grid .grid-post-card .post-img.post-card-col img.grid-thumb {
        height: 115px;
    }

    .featured-grid.light .featured-grid-items .featured-grid-col .featured-col-group.only-mobile .grid-post-card {
        border-bottom: 1px solid var(--wp--preset--color--green-black);
    }
}
