.columns-design {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
    /* makes all cells the same height */
}

.columns-design.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.columns-design.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.columns-design.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.latest-posts-inner {
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    /* fills the full grid cell height */
    display: flex;
    flex-direction: column;
    /* stacks image on top of body */
}

.latest-posts-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    /* keeps images uniform without stretching */
}

.latest-posts-body {
    flex: 1;
    /* pushes to fill remaining card height */
    display: flex;
    flex-direction: column;
    padding: 1rem;
    /* breathing room around title and read more */
}

.latest-posts-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
    /* reset heading margins so spacing is controlled here */
}

.latest-posts-title a {
    color: #333;
    text-decoration: none;
}

.latest-posts-title a:hover {
    text-decoration: underline;
}

.latest-posts-read-more {
    margin-top: auto;
    /* pins Read More to the bottom of every card */
    display: inline-block;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.latest-posts-none {
    text-align: center;
    color: #666;
}

.latest-posts-body h3 {
    font-size: 20px;
    line-height: 26px;
}

.latest-posts-body h3 a {
    color: #333;
}

/* SEE ALL BAR — row that holds both buttons */
.latest-posts-see-all-bar {
    display: flex;
    justify-content: flex-end;
    /* pins buttons to the top right */
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* CATEGORIES BUTTON */
.latest-posts-see-all-categories-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.latest-posts-see-all-categories-btn:hover {
    opacity: 0.85;
}

/* TAGS BUTTON */
.latest-posts-see-all-tags-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.latest-posts-see-all-tags-btn:hover {
    opacity: 0.85;
}