/* Original Joomla news listing, shared by the Query Loop editor and the site. */
.wp-block-query.is-style-news {
    width: 100%;
    max-width: none;
    margin: 0 auto 35px;
}

.wp-block-query.is-style-news > .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.wp-block-query.is-style-news > .wp-block-post-template > .wp-block-post {
    min-width: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    overflow-wrap: anywhere;
}

.wp-block-query.is-style-news .wp-block-post > .wp-block-group {
    width: 100%;
    margin: 15px 0 0;
    padding: 20px !important;
    border-radius: 5px;
    background: #e1e7df;
}

.wp-block-query.is-style-news .wp-block-post-title {
    margin: 5px 0 15px;
    padding: 0;
    background: none;
    color: #555;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
}

.wp-block-query.is-style-news .wp-block-post-title a { color: inherit; }
.wp-block-query.is-style-news .wp-block-post-title a:hover { color: #238351; }

.wp-block-query.is-style-news .wp-block-post-excerpt {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.7;
}

.wp-block-query.is-style-news .wp-block-post-excerpt p { margin: 0; }
.wp-block-query.is-style-news .wp-block-post-featured-image { margin: 0 0 15px; }
.wp-block-query.is-style-news .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.wp-block-query.is-style-news .wp-block-read-more {
    display: inline-block;
    margin: 10px 0 0;
    padding: 6px 15px;
    border-radius: 3px;
    background: #238351;
    color: #fff;
    font-size: 17px;
    line-height: 1.5;
    text-decoration: none;
}

.wp-block-query.is-style-news .wp-block-read-more:hover { background: #000; }

@media (max-width: 1150px) {
    .wp-block-query.is-style-news,
    .wp-block-query.is-style-news > .wp-block-post-template { width: 100%; }
    .wp-block-query.is-style-news > .wp-block-post-template { grid-template-columns: minmax(0, 1fr); }
    .wp-block-query.is-style-news .wp-block-post > .wp-block-group {
        width: 100%;
        margin: 15px 0 0;
    }
}
