/* ==========================================
   NEWS LIST (ROBUST / GUTENBERG SAFE)
========================================== */

.wp-block-query.news-list {
    width: 100%;
}

.wp-block-query.news-list .wp-block-post-template {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.wp-block-post {
    margin: 0;
    padding: 0;
}

.wp-block-query.news-list .wp-block-query-pagination {
    margin: 3rem 0;
}


/* ==========================================
   CARD
========================================== */

.news-card {
    border-radius: 24px;
    overflow: hidden;
    background-color: rgba(66, 71, 83, 0.08);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
}


/* ==========================================
   IMAGE
========================================== */

.wp-block-post-featured-image.news-image {
    overflow: hidden;
}

.wp-block-post-featured-image.news-image img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    transition: transform .4s ease;
}

.wp-block-post-featured-image img {
    object-fit: cover;
}

@media (hover: hover) {
    .news-card:hover .wp-block-post-featured-image img {
        transform: scale(1.05);
    }
}


/* ==========================================
   CONTENT
========================================== */

.news-card-content {
    padding: var(--wp--preset--spacing--20);
}

.news-card h2 {
    margin: 0 0 .6rem;
    line-height: 1.3;
    text-align: center;
}

.wp-block-post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.8rem;
}

.news-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--wp--preset--font-color--primary);
}

.wp-block-post-excerpt__more-link {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--wp--preset--color--primary);
    padding-bottom: 2px;
}

.wp-block-post-excerpt__more-link:hover {
    color: var(--wp--preset--color--primary);
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .wp-block-post-featured-image.news-image img {
        max-height: 150px;
    }

    .news-card-content {
        padding: 1.2rem;
    }

    .news-card h2 {
        font-size: 20px;
    }

}