/*
  Zambia Air Force Centre of Advanced Learning — News & Events.
  Cards (news page and the home page strip) and the full-article view.
*/

.news-page {
    padding-bottom: 110px;
    background-color: var(--cal-tint, #f4f6fa);
}

.news-page .section-heading { margin-bottom: 50px; }

/* ---------- Home page strip ---------- */

section.home-news {
    padding-bottom: 100px;
    background-color: #fff;
}

section.home-news .main-button {
    margin-top: 40px;
    text-align: center;
}

/* ---------- Cards ---------- */

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--cal-line, #e3e7ee);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(23, 34, 56, 0.07);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--cal-navy-deep, #0c1228);
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 44px;
    color: var(--cal-gold);
}

/* the day of an event, pinned to the picture */
.news-date-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    min-width: 64px;
    padding: 8px 10px 7px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--cal-gold);
    border-radius: 4px;
}

.news-date-badge b {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 24px;
}

.news-meta {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--cal-muted, #5b6577);
}

.news-tag {
    display: inline-block;
    margin-right: 8px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--cal-ink, #172238);
    border: 1px solid rgba(23, 34, 56, 0.25);
}

.is-event .news-tag,
.news-article .news-tag {
    color: var(--cal-gold-text, #a86400);
    border-color: var(--cal-gold);
}

.news-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.news-card h3 a { color: var(--cal-ink, #172238); }
.news-card h3 a:hover { color: var(--cal-gold-text, #a86400); }

.news-where {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0 0 10px;
    font-size: 13px;
    color: #3a4458;
}

.news-where i,
.news-facts i {
    width: 16px;
    color: var(--cal-gold-text, #a86400);
}

.news-summary {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #3a4458;
}

.news-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--cal-gold-text, #a86400);
}

/* ---------- Full article ---------- */

.news-article,
.news-empty {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 70px;
}

.news-empty { text-align: center; }

.news-article h2,
.news-empty h2 {
    margin: 0 0 20px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--cal-ink, #172238);
}

.news-empty p { font-size: 15px; line-height: 28px; color: #3a4458; }
.news-empty .main-button { margin-top: 24px; }

.news-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0 0 28px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cal-ink, #172238);
    background-color: #fff;
    border: 1px solid var(--cal-line, #e3e7ee);
    border-left: 4px solid var(--cal-gold);
}

.news-article-image {
    display: block;
    width: 100%;
    max-height: 520px;
    margin-bottom: 30px;
    object-fit: cover;
    border-radius: 6px;
}

.news-lead {
    margin-bottom: 24px;
    font-size: 19px;
    font-weight: 600;
    line-height: 32px;
    color: var(--cal-ink, #172238);
}

.news-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 30px;
    color: #3a4458;
}

.news-article .main-button { margin-top: 20px; }

@media (max-width: 767px) {
    .news-article h2, .news-empty h2 { font-size: 26px; }
}
