
/* Equal-height cards in Gutenberg Query Loops */

.wp-block-post-template.is-layout-grid > li.wp-block-post {
    display: flex !important;
    flex-direction: column !important;
}

.wp-block-post-template.is-layout-grid > li.wp-block-post > .wp-block-group {
    flex: 1 !important;
    width: 100%;
    box-sizing: border-box;
}


/* Newest articles: individual white cards */
.newest-articles-cards .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each article */
.newest-articles-cards .wp-block-post {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Keep images neatly inside the cards */
.newest-articles-cards .wp-block-post-featured-image {
    margin: 0;
}

.newest-articles-cards .wp-block-post-featured-image img {
    border-radius: 6px;
}

/* Mobile spacing */
@media (max-width: 767px) {
    .newest-articles-cards .wp-block-post {
        padding: 15px;
    }
}


/* Unified card design for all homepage Query Loops */
.home .wp-block-query .wp-block-post-template {
    gap: 20px;
}

/* White rounded cards */
.home .wp-block-query .wp-block-post-template > .wp-block-post {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Rounded featured images */
.home .wp-block-query .wp-block-post-featured-image img {
    border-radius: 6px;
}

/* Consistent spacing inside cards */
.home .wp-block-query .wp-block-post-title {
    margin-top: 0;
}

/* Slightly stronger shadow on hover */
@media (hover: hover) {
    .home .wp-block-query .wp-block-post-template > .wp-block-post {
        transition: box-shadow 0.2s ease;
    }

    .home .wp-block-query .wp-block-post-template > .wp-block-post:hover {
        box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
    }
}

/* Mobile spacing */
@media (max-width: 767px) {
    .home .wp-block-query .wp-block-post-template > .wp-block-post {
        padding: 15px;
    }
}

