.news-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.news-intro {
    margin-bottom: 18px;
}

.news-intro h1 {
    margin: 0 0 8px;
}

.news-intro p {
    margin: 8px 0;
    line-height: 1.6;
}

.news-scope {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.92rem;
}

/* ==========================================================
   LOCAL NEWS / SAFETY NAVIGATION
   ========================================================== */

.news-local-nav {
    margin: 18px 0 22px;
    padding: 12px;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    background: #f8fafc;
    box-sizing: border-box;
}

.news-local-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 2px 4px 8px;
    color: #1e293b;
}

.news-local-nav-title span {
    font-size: 1.15rem;
}

.news-local-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.news-local-nav-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 9px 10px;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.25;
    box-sizing: border-box;
    transition: background-color .15s ease, border-color .15s ease;
}

.news-local-nav-grid a:hover {
    background: #f1f5f9;
}

.news-local-nav-grid a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

.news-local-nav-grid a.news-local-nav-active {
    background: #e2e8f0;
    border-color: #94a3b8;
    font-weight: 700;
}

.news-local-nav-icon {
    flex: 0 0 auto;
    font-size: 1.05rem;
}

/* ==========================================================
   HUB CARDS
   ========================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    padding: 18px;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    background: #fff;
    box-sizing: border-box;
}

.news-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.news-card p {
    margin: 0 0 14px;
    line-height: 1.5;
    color: #475569;
}

.news-card a {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    background: #f1f5f9;
}

.news-saps {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    background: #f8fafc;
}

.news-saps h2 {
    margin-top: 0;
}

.news-saps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.news-station {
    padding: 16px;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    background: #fff;
}

.news-station h3 {
    margin: 0 0 8px;
}

.news-station p {
    margin: 5px 0;
    line-height: 1.5;
}

.news-official {
    margin-top: 14px;
    font-size: 0.9rem;
    color: #475569;
}

.news-submit {
    margin-top: 24px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #dbe3ea;
    background: #fff;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-local-nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (max-width: 700px) {
    .news-page {
        padding: 12px;
    }

    .news-intro {
        margin-bottom: 12px;
    }

    .news-intro h1 {
        font-size: 1.55rem;
    }

    .news-intro p {
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .news-local-nav {
        margin: 12px 0 16px;
        padding: 9px;
        border-radius: 12px;
    }

    .news-local-nav-title {
        margin-bottom: 8px;
        padding: 2px 3px 7px;
        font-size: 0.95rem;
    }

    .news-local-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .news-local-nav-grid a {
        min-height: 48px;
        padding: 8px 8px;
        border-radius: 9px;
        font-size: 0.82rem;
    }

    .news-local-nav-icon {
        font-size: 0.95rem;
    }

    .news-grid,
    .news-saps-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        min-height: auto;
        padding: 15px;
    }

    .news-saps,
    .news-submit {
        padding: 15px;
    }
}

@media (max-width: 420px) {
    .news-local-nav-grid a {
        font-size: 0.78rem;
        gap: 6px;
    }

    .news-local-nav-icon {
        font-size: 0.9rem;
    }
}

/*
 * NEWS-160 — LIVE SAPS ARTICLE DISPLAY
 */

.news-saps-articles {
    margin-top: 2rem;
}

.news-saps-articles-heading {
    margin-bottom: 1rem;
}

.news-saps-articles-heading h3 {
    margin-bottom: 0.4rem;
}

.news-saps-articles-heading p {
    margin: 0;
}

.news-saps-article-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.news-saps-article {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 0.75rem;
    background: #fff;
}

.news-saps-article h4 {
    margin: 0;
    line-height: 1.35;
}

.news-saps-article p {
    margin: 0;
    line-height: 1.6;
}

.news-saps-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    font-size: 0.85rem;
}

.news-saps-badge {
    font-weight: 700;
}

.news-saps-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 0.85rem;
}

.news-saps-article-footer a {
    font-weight: 700;
}

@media (max-width: 700px) {
    .news-saps-article-grid {
        grid-template-columns: 1fr;
    }
}


/* NEWS-163 — INTERNAL ARTICLE DETAIL */

.news-article-page {
    max-width: 1000px;
    margin: 0 auto;
}

.news-article {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    font-size: .9rem;
}

.news-article h1 {
    margin: 0 0 12px;
    line-height: 1.25;
}

.news-article-location {
    margin-bottom: 24px;
    font-size: .95rem;
    opacity: .8;
}

.news-article-content {
    line-height: 1.75;
    white-space: normal;
    overflow-wrap: anywhere;
}

.news-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.news-article-not-found {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

@media (max-width: 700px) {

    .news-article {
        padding: 20px;
    }

    .news-article h1 {
        font-size: 1.45rem;
    }

    .news-article-footer {
        flex-direction: column;
    }

}

/* NEWS-163 — INTERNAL ARTICLE DETAIL */

.news-article-page {
    max-width: 1000px;
    margin: 0 auto;
}

.news-article {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    font-size: .9rem;
}

.news-article h1 {
    margin: 0 0 12px;
    line-height: 1.25;
}

.news-article-location {
    margin-bottom: 24px;
    font-size: .95rem;
    opacity: .8;
}

.news-article-content {
    line-height: 1.75;
    white-space: normal;
    overflow-wrap: anywhere;
}

.news-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.news-article-not-found {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

@media (max-width: 700px) {

    .news-article {
        padding: 20px;
    }

    .news-article h1 {
        font-size: 1.45rem;
    }

    .news-article-footer {
        flex-direction: column;
    }

}

/* NEWS-163 — INTERNAL ARTICLE DETAIL */

.news-article-page {
    max-width: 1000px;
    margin: 0 auto;
}

.news-article {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    font-size: .9rem;
}

.news-article h1 {
    margin: 0 0 12px;
    line-height: 1.25;
}

.news-article-location {
    margin-bottom: 24px;
    font-size: .95rem;
    opacity: .8;
}

.news-article-content {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.news-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.news-article-not-found {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

@media (max-width: 700px) {

    .news-article {
        padding: 20px;
    }

    .news-article h1 {
        font-size: 1.45rem;
    }

    .news-article-footer {
        flex-direction: column;
    }

}

/* NEWS-163 — INTERNAL ARTICLE DETAIL */

.news-article-page {
    max-width: 1000px;
    margin: 0 auto;
}

.news-article {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    font-size: .9rem;
}

.news-article h1 {
    margin: 0 0 12px;
    line-height: 1.25;
}

.news-article-location {
    margin-bottom: 24px;
    font-size: .95rem;
    opacity: .8;
}

.news-article-content {
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.news-article-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.news-article-not-found {
    background: #fff;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
}

@media (max-width: 700px) {

    .news-article {
        padding: 20px;
    }

    .news-article h1 {
        font-size: 1.45rem;
    }

    .news-article-footer {
        flex-direction: column;
    }

}

/*
 * ==========================================================
 * NEWS-212 — TAB-STYLE LOCAL NEWS NAVIGATION
 * ==========================================================
 *
 * Existing URLs and PHP navigation remain unchanged.
 * Desktop: compact tab/grid navigation.
 * Mobile: horizontally scrollable tab strip.
 */

.news-local-nav {
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.news-local-nav-title {
    margin-bottom: 9px;
}

.news-local-nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.news-local-nav-grid a {
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d7e0e8;
    font-size: 0.88rem;
    white-space: nowrap;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.news-local-nav-grid a:hover {
    background: #f1f5f9;
    border-color: #b8c5d1;
    transform: translateY(-1px);
}

.news-local-nav-grid a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .25);
    outline-offset: 2px;
}

.news-local-nav-grid a.news-local-nav-active {
    background: #e2e8f0;
    border-color: #94a3b8;
    font-weight: 700;
}

.news-local-nav-icon {
    font-size: 1rem;
}

/*
 * Mobile:
 * Keep the tabs compact and allow horizontal scrolling
 * instead of stacking a large 2-column menu.
 */

@media (max-width: 700px) {

    .news-local-nav {
        padding: 8px;
        border-radius: 13px;
    }

    .news-local-nav-title {
        margin-bottom: 7px;
        padding-bottom: 6px;
    }

    .news-local-nav-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 7px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .news-local-nav-grid a {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 999px;
        font-size: 0.81rem;
    }

    .news-local-nav-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {

    .news-local-nav-grid {
        gap: 6px;
    }

    .news-local-nav-grid a {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 0.77rem;
    }

    .news-local-nav-icon {
        font-size: 0.86rem;
    }
}

/* ============================================================
   NEWS-214 — MUNICIPAL INFORMATION VISUAL REFINEMENT
   CSS ONLY — DOES NOT ALTER SAPS COMPONENTS
   ============================================================ */

.news-municipal {
    margin-top: 2rem;
}

.news-municipal > .news-saps-articles-heading {
    margin-bottom: 1.25rem;
}

.news-municipal > .news-saps-articles-heading h2 {
    margin-bottom: 0.45rem;
}

.news-municipal > .news-saps-articles-heading p {
    margin-top: 0;
}

/* Individual municipal subsections */
.news-municipal-alerts,
.news-municipal-services,
.news-municipal-roads,
.news-municipal-tembisa {
    margin: 1.5rem 0;
    padding: 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.news-municipal-alerts h3,
.news-municipal-services h3,
.news-municipal-roads h3,
.news-municipal-tembisa h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    line-height: 1.35;
}

/* Give municipal cards a little more breathing room */
.news-municipal .news-saps-article-grid {
    margin-top: 0;
}

.news-municipal .news-saps-article {
    height: 100%;
}

/* Municipal links */
.news-municipal .news-saps-article-footer a {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

/* Empty-state messages */
.news-municipal-alerts > p,
.news-municipal-roads > p {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
    line-height: 1.55;
}

/* Tembisa subsection */
.news-municipal-tembisa {
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 700px) {
    .news-municipal {
        margin-top: 1.5rem;
    }

    .news-municipal-alerts,
    .news-municipal-services,
    .news-municipal-roads,
    .news-municipal-tembisa {
        margin: 1rem 0;
        padding: 0.9rem;
        border-radius: 12px;
    }

    .news-municipal-alerts h3,
    .news-municipal-services h3,
    .news-municipal-roads h3,
    .news-municipal-tembisa h3 {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }

    .news-municipal .news-saps-article-grid {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .news-municipal-alerts,
    .news-municipal-services,
    .news-municipal-roads,
    .news-municipal-tembisa {
        padding: 0.75rem;
        border-radius: 10px;
    }
}



/* ============================================================
   NEWS-215 — LIVE WEATHER
   ============================================================ */

.news-weather {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.news-weather-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-weather-kicker {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.news-weather h2 {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
}

.news-weather-header p {
    margin: 0;
    line-height: 1.5;
}

.news-weather-status {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
}

.news-weather-current {
    min-height: 92px;
    margin-bottom: 1rem;
}

.news-weather-current-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-weather-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.news-weather-temperature {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.news-weather-condition {
    margin-top: 0.35rem;
    font-weight: 600;
}

.news-weather-range {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.75;
}

.news-weather-forecast {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
}

.news-weather-day {
    min-width: 0;
    padding: 0.75rem 0.45rem;
    text-align: center;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.035);
}

.news-weather-day-name {
    font-size: 0.78rem;
    font-weight: 700;
}

.news-weather-day-icon {
    margin: 0.35rem 0;
    font-size: 1.35rem;
}

.news-weather-day-temp {
    font-size: 0.85rem;
    font-weight: 600;
}

.news-weather-day-low {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    opacity: 0.65;
}

.news-weather-source {
    margin: 0.9rem 0 0;
    font-size: 0.72rem;
    opacity: 0.6;
}

.news-weather-loading,
.news-weather-error {
    padding: 0.9rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
}

@media (max-width: 700px) {
    .news-weather {
        margin: 1.25rem 0 1.5rem;
        padding: 0.95rem;
        border-radius: 13px;
    }

    .news-weather-header {
        flex-direction: column;
        gap: 0.65rem;
    }

    .news-weather-status {
        align-self: flex-start;
    }

    .news-weather-forecast {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.3rem;
        scrollbar-width: thin;
    }

    .news-weather-day {
        flex: 0 0 78px;
    }
}

@media (max-width: 420px) {
    .news-weather h2 {
        font-size: 1.2rem;
    }

    .news-weather-temperature {
        font-size: 1.75rem;
    }
}


/* ============================================================
   NEWS-218 — COMMUNITY NEWS VISUAL REFINEMENT
   Scoped to the Community News section only.
   ============================================================ */

.news-community-notices {
    margin: 1.5rem 0 2rem;
    padding: 1.15rem;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.news-community-notices > .news-saps-articles-heading {
    margin-bottom: 1.25rem;
}

.news-community-notices > .news-saps-articles-heading h2 {
    margin-bottom: .45rem;
}

.news-community-notices > .news-saps-articles-heading p {
    margin-top: 0;
}

.news-community-notices .news-saps-article-grid {
    margin-top: 0;
}

.news-community-notices .news-saps-article {
    height: 100%;
}

.news-community-notices .news-saps-badge {
    font-weight: 700;
}

.news-community-event {
    margin-top: .85rem;
    padding: .75rem .9rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, .035);
    line-height: 1.5;
}

.news-community-event strong {
    display: block;
    margin-bottom: .2rem;
}

.news-community-notices .news-saps-article-footer {
    margin-top: auto;
}

.news-community-notices .news-saps-article-footer a {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
}

.news-community-notices .news-saps-article-footer a:hover {
    text-decoration: underline;
}

.news-community-empty {
    margin: 0;
    padding: .9rem 1rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, .035);
    line-height: 1.55;
}

@media (max-width: 700px) {
    .news-community-notices {
        margin: 1.25rem 0 1.5rem;
        padding: .9rem;
        border-radius: 12px;
    }

    .news-community-notices > .news-saps-articles-heading {
        margin-bottom: 1rem;
    }

    .news-community-event {
        padding: .7rem .8rem;
    }
}

@media (max-width: 420px) {
    .news-community-notices {
        padding: .75rem;
        border-radius: 10px;
    }

    .news-community-event {
        padding: .65rem .7rem;
    }
}


/* NEWS-219 — EXTERNAL COMMUNITY SOURCE */
.news-community-external {
    margin: 1.5rem 0 2rem;
    padding: 1.15rem;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.news-community-external > .news-saps-articles-heading {
    margin-bottom: 1.25rem;
}

.news-community-external > .news-saps-articles-heading h2 {
    margin-bottom: .45rem;
}

.news-community-external > .news-saps-articles-heading p {
    margin-top: 0;
}

.news-community-external-card {
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.news-community-external-content {
    padding: 1.1rem 1.15rem;
}

.news-community-external-content h3 {
    margin: .75rem 0 .5rem;
}

.news-community-external-content p {
    margin: 0;
    line-height: 1.55;
}

.news-community-external-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(0, 0, 0, .08);
}

.news-community-external-footer span {
    line-height: 1.4;
}

.news-community-external-footer a {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
}

.news-community-external-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .news-community-external {
        margin: 1.25rem 0 1.5rem;
        padding: .9rem;
        border-radius: 12px;
    }

    .news-community-external > .news-saps-articles-heading {
        margin-bottom: 1rem;
    }

    .news-community-external-content {
        padding: .9rem;
    }

    .news-community-external-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .65rem;
    }
}

@media (max-width: 420px) {
    .news-community-external {
        padding: .75rem;
        border-radius: 10px;
    }

    .news-community-external-content {
        padding: .8rem;
    }
}


/* NEWS-221E — MOBILE FRIENDLY LAYOUT */

.news-page,
.news-page * {
    box-sizing: border-box;
}

.news-page {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: hidden;
}

.news-page img {
    max-width: 100%;
    height: auto;
}

.news-page h1,
.news-page h2,
.news-page h3,
.news-page p,
.news-page a {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {

    .news-page {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .news-grid,
    .news-saps-grid,
    .news-saps-article-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: 1fr;
    }

    .news-card,
    .news-station,
    .news-saps-article {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .news-weather {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .news-weather-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-weather-forecast {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        max-width: 100%;
        gap: 8px;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .news-weather-day {
        flex: 0 0 76px;
        min-width: 76px;
    }

    .news-local-nav {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .news-local-nav-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100%;
        max-width: 100%;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .news-local-nav-grid > a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .news-municipal,
    .news-municipal-alerts,
    .news-municipal-services,
    .news-municipal-roads,
    .news-municipal-tembisa {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .news-municipal .news-saps-article-grid {
        grid-template-columns: 1fr;
    }

    .news-saps,
    .news-saps-articles,
    .news-submit {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .news-saps-article-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 420px) {

    .news-page {
        padding-left: 8px;
        padding-right: 8px;
    }

    .news-grid,
    .news-saps-grid,
    .news-saps-article-grid {
        gap: 10px;
    }

    .news-weather-day {
        flex-basis: 70px;
        min-width: 70px;
    }

    .news-local-nav-grid > a {
        font-size: .86rem;
        padding-left: 9px;
        padding-right: 9px;
    }
}


/*
 * NEWS-UI-REDESIGN-20260926
 * Mobile-first scrolling presentation layer.
 *
 * Presentation only.
 * No database/query/import changes.
 */

/* ------------------------------------------------------------
   NEWS CATEGORY NAVIGATION
   ------------------------------------------------------------ */

.news-category-nav {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 4px 2px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.news-category-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    box-sizing: border-box;
}

.news-category-nav a:hover {
    text-decoration: none;
}

.news-category-nav a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   MAIN NEWS CARDS
   ------------------------------------------------------------ */

.news-grid {
    scrollbar-width: thin;
}

.news-card {
    box-sizing: border-box;
}

/* ------------------------------------------------------------
   SAPS ARTICLE RAIL
   ------------------------------------------------------------ */

.news-saps-article-grid {
    scrollbar-width: thin;
}

/* ------------------------------------------------------------
   MUNICIPAL ARTICLE RAIL
   ------------------------------------------------------------ */

.news-municipal .news-saps-article-grid {
    scrollbar-width: thin;
}

/* ------------------------------------------------------------
   TABLET
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .news-category-nav {
        margin-bottom: 20px;
    }

    .news-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 4px 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .news-grid .news-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .news-saps-article-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 4px 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .news-saps-article-grid .news-saps-article {
        flex: 0 0 calc(50% - 8px);
        min-width: 0;
        scroll-snap-align: start;
        box-sizing: border-box;
    }

    .news-municipal .news-saps-article-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 4px 14px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .news-municipal .news-saps-article-grid .news-saps-article {
        flex: 0 0 72%;
        min-width: 0;
        scroll-snap-align: start;
    }
}

/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 700px) {

    .news-category-nav {
        gap: 8px;
        margin-bottom: 18px;
        padding: 3px 2px 11px;
    }

    .news-category-nav a {
        min-height: 44px;
        padding: 10px 14px;
    }

    .news-grid {
        gap: 12px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .news-grid .news-card {
        flex: 0 0 88%;
    }

    .news-saps-article-grid {
        gap: 12px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .news-saps-article-grid .news-saps-article {
        flex: 0 0 88%;
    }

    .news-municipal .news-saps-article-grid {
        gap: 12px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .news-municipal .news-saps-article-grid .news-saps-article {
        flex: 0 0 88%;
    }

    .news-card a,
    .news-saps-article-footer a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /*
     * Keep long article previews readable while allowing
     * users to scan several cards horizontally.
     */
    .news-saps-article p {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ------------------------------------------------------------
   SMALL PHONES
   ------------------------------------------------------------ */

@media (max-width: 420px) {

    .news-category-nav a {
        padding-left: 13px;
        padding-right: 13px;
    }

    .news-grid .news-card,
    .news-saps-article-grid .news-saps-article,
    .news-municipal .news-saps-article-grid .news-saps-article {
        flex-basis: 92%;
    }
}


/*
 * NEWS-UI-TABS-20260926
 * Compact horizontal navigation for the Local News & Safety hub.
 * Presentation only.
 */

/* Main navigation container */
.news-local-nav {
    margin: 0 0 24px;
    padding: 12px 14px 10px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

/* Navigation title */
.news-local-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 15px;
}

.news-local-nav-title-icon {
    font-size: 18px;
}

/* Horizontal tab rail */
.news-local-nav-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 9px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

/* Tabs */
.news-local-nav-scroll a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #dbe3ec;
    border-radius: 999px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-sizing: border-box;
    scroll-snap-align: start;
}

.news-local-nav-scroll a:hover {
    text-decoration: none;
}

.news-local-nav-scroll a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.news-local-nav-scroll a.news-local-nav-active {
    font-weight: 800;
    border-width: 2px;
}

/* Icons */
.news-local-nav-icon {
    font-size: 16px;
    line-height: 1;
}

/* Scroll hint */
.news-local-nav-hint {
    margin-top: 1px;
    text-align: right;
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

/* Keep anchor targets from hiding beneath sticky browser/header areas */
#saps-tembisa,
#municipal-heading {
    scroll-margin-top: 90px;
}

/* Tablet */
@media (max-width: 900px) {
    .news-local-nav {
        margin-bottom: 20px;
        padding: 11px 12px 9px;
    }

    .news-local-nav-scroll a {
        min-height: 42px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .news-local-nav {
        margin-left: -2px;
        margin-right: -2px;
        margin-bottom: 18px;
        padding: 10px 10px 8px;
        border-radius: 12px;
    }

    .news-local-nav-title {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .news-local-nav-scroll {
        gap: 7px;
        padding-bottom: 9px;
    }

    .news-local-nav-scroll a {
        min-height: 44px;
        padding: 10px 13px;
        font-size: 13px;
    }

    .news-local-nav-hint {
        font-size: 10px;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .news-local-nav-scroll a {
        padding-left: 12px;
        padding-right: 12px;
    }
}


/*
 * NEWS-CONTENT-SHELVES-20260926
 *
 * Presentation-only redesign.
 * Converts the long SAPS and Municipal article collections
 * into horizontally scrollable content shelves.
 *
 * NO PHP / DATABASE / IMPORTER CHANGES.
 */

/* ============================================================
   SAPS ARTICLE SHELF
   ============================================================ */

.news-saps-articles .news-saps-article-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 6px 4px 18px;
    margin: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.news-saps-articles .news-saps-article-grid::-webkit-scrollbar {
    height: 9px;
}

.news-saps-articles .news-saps-article-grid::-webkit-scrollbar-track {
    border-radius: 999px;
}

.news-saps-articles .news-saps-article-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
}

.news-saps-articles .news-saps-article-grid .news-saps-article {
    flex: 0 0 calc(33.333% - 12px) !important;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
}

/* ============================================================
   MUNICIPAL ARTICLE SHELVES
   ============================================================ */

.news-municipal .news-saps-article-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 18px;
    overflow-x: auto !important;
    overflow-y: hidden;
    padding: 6px 4px 18px;
    margin: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.news-municipal .news-saps-article-grid::-webkit-scrollbar {
    height: 9px;
}

.news-municipal .news-saps-article-grid::-webkit-scrollbar-track {
    border-radius: 999px;
}

.news-municipal .news-saps-article-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
}

.news-municipal .news-saps-article-grid .news-saps-article {
    flex: 0 0 calc(33.333% - 12px) !important;
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
}

/* ============================================================
   MUNICIPAL SECTION SPACING
   ============================================================ */

.news-municipal-alerts,
.news-municipal-services,
.news-municipal-roads,
.news-municipal-tembisa {
    margin-top: 22px;
}

.news-municipal h3 {
    margin-bottom: 12px;
}

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

@media (max-width: 900px) {

    .news-saps-articles .news-saps-article-grid .news-saps-article,
    .news-municipal .news-saps-article-grid .news-saps-article {
        flex-basis: 68% !important;
    }
}

@media (max-width: 700px) {

    .news-saps-articles .news-saps-article-grid,
    .news-municipal .news-saps-article-grid {
        gap: 14px;
        padding: 4px 2px 16px;
        scroll-padding-left: 2px;
    }

    .news-saps-articles .news-saps-article-grid .news-saps-article,
    .news-municipal .news-saps-article-grid .news-saps-article {
        flex-basis: 86% !important;
    }

    .news-municipal-alerts,
    .news-municipal-services,
    .news-municipal-roads,
    .news-municipal-tembisa {
        margin-top: 18px;
    }
}

@media (max-width: 420px) {

    .news-saps-articles .news-saps-article-grid .news-saps-article,
    .news-municipal .news-saps-article-grid .news-saps-article {
        flex-basis: 91% !important;
    }
}


/* ============================================================
   NEWS-MUNICIPAL-TABS-20260926
   Municipal information section navigation.
   Anchor navigation only — no JavaScript.
   ============================================================ */

.news-municipal-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    margin: 0 0 20px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.news-municipal-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.news-municipal-tabs a:hover {
    text-decoration: none;
}

.news-municipal-tabs a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.news-municipal-tabs a:active {
    transform: translateY(1px);
}

#municipal-alerts,
#municipal-services,
#municipal-roads,
#municipal-tembisa {
    scroll-margin-top: 90px;
}

@media (max-width: 700px) {
    .news-municipal-tabs {
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .news-municipal-tabs a {
        min-height: 46px;
        padding: 10px 14px;
    }
}


/* ============================================================
   NEWS-SAPS-TABS-20260926
   SAPS information section navigation.
   Anchor navigation only — no JavaScript.
   ============================================================ */

.news-saps-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 12px;
    margin: 0 0 20px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.news-saps-tabs a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #1e293b;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
    box-sizing: border-box;
}

.news-saps-tabs a:hover {
    text-decoration: none;
}

.news-saps-tabs a:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 2px;
}

.news-saps-tabs a:active {
    transform: translateY(1px);
}

#saps-stations,
#saps-latest {
    scroll-margin-top: 90px;
}

@media (max-width: 700px) {
    .news-saps-tabs {
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .news-saps-tabs a {
        min-height: 46px;
        padding: 10px 14px;
    }
}


/* ============================================================
   NEWS-MAIN-CATEGORY-SHELF-20260926
   Main Local News & Safety category shelf.
   Presentation only — existing cards and links unchanged.
   ============================================================ */

.news-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto !important;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 20px;
    padding: 6px 4px 18px;
    box-sizing: border-box;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.news-grid::-webkit-scrollbar {
    height: 10px;
}

.news-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e2e8f0;
}

.news-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #94a3b8;
}

.news-grid .news-card {
    flex: 0 0 calc(33.333% - 11px) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 170px;
    box-sizing: border-box;
    scroll-snap-align: start;
}

@media (max-width: 900px) {
    .news-grid .news-card {
        flex-basis: 68% !important;
    }
}

@media (max-width: 700px) {
    .news-grid {
        gap: 14px;
        padding: 4px 2px 16px;
        scroll-padding-left: 2px;
    }

    .news-grid .news-card {
        flex-basis: 86% !important;
        min-height: 165px;
    }
}

@media (max-width: 420px) {
    .news-grid .news-card {
        flex-basis: 91% !important;
    }
}

