/**
 * Gospel News Module — starter styles
 * All classes prefixed 'gospel_news_' to avoid collisions with the theme.
 *
 * This is a functional starting point on the site's purple palette
 * (#5021A6 / #6643A5). Adjust to match the final site style direction.
 *
 * Layout: 3 columns desktop -> 2 columns tablet -> 2 columns mobile.
 * Cards with no artwork render text-only (see .gospel_news_article--noimg).
 */

.gospel_news_container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.gospel_news_masthead {
    font-size: 22px;
    font-weight: 700;
    color: #5021A6;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5021A6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.gospel_news_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gospel_news_article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    transition: box-shadow .3s ease, transform .3s ease;
    display: flex;
    flex-direction: column;
    border-top: 3px solid #5021A6;
}
.gospel_news_article:hover {
    box-shadow: 0 4px 14px rgba(80,33,166,.20);
    transform: translateY(-2px);
}

.gospel_news_imagelink { display: block; line-height: 0; }

.gospel_news_image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #efeaf7; /* light purple tint while lazy-loading */
}

/* Text-only cards get a little more breathing room up top. */
.gospel_news_article--noimg .gospel_news_content { padding-top: 22px; }

.gospel_news_content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.gospel_news_badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: #6643A5;
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.gospel_news_title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px;

    /* keep multi-column cards visually even */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gospel_news_title a { color: #2a1148; text-decoration: none; }
.gospel_news_title a:hover { color: #5021A6; text-decoration: underline; }

.gospel_news_description {
    font-size: 14px;
    color: #555;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gospel_news_link {
    color: #5021A6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-top: auto;
}
.gospel_news_link:hover { text-decoration: underline; }

/* ---- Tablet / narrow desktop: 3-up gets tight, drop to 2 ---- */
@media (max-width: 1024px) {
    .gospel_news_grid  { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .gospel_news_title { font-size: 16px; }
    .gospel_news_image { height: 180px; }
}

/* ---- Mobile: 2 columns ---- */
@media (max-width: 768px) {
    .gospel_news_container { padding: 12px 0; }
    .gospel_news_masthead  { font-size: 18px; margin-bottom: 12px; }

    .gospel_news_grid  { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gospel_news_image { height: 130px; }
    .gospel_news_content { padding: 12px; }

    .gospel_news_badge { font-size: 10px; margin-bottom: 8px; }

    .gospel_news_title {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    /* At ~165px per card the excerpt costs more height than it earns.
       Title + link is the whole value proposition on a phone. */
    .gospel_news_description { display: none; }

    .gospel_news_link { font-size: 12px; }
}

/* ---- Very small phones: keep 2-up but tighten ---- */
@media (max-width: 400px) {
    .gospel_news_grid  { gap: 10px; }
    .gospel_news_image { height: 110px; }
    .gospel_news_title { font-size: 13px; }
    .gospel_news_content { padding: 10px; }
}
