/* ============================================================
   ARTICLE CONTENT FORMATTING
   Scoped to .news-content-inner — styles rich-text HTML from CMS editor
   ============================================================ */

.news-content-inner {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    color: #1a2535;
    word-break: break-word;
}

/* ── Headings ───────────────────────────────────────────────── */

.news-content-inner h1,
.news-content-inner h2,
.news-content-inner h3,
.news-content-inner h4,
.news-content-inner h5,
.news-content-inner h6 {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #0a1a2e;
    margin: 1em 0 0.3em;
}

.news-content-inner h1 { font-size: 1.75em; }
.news-content-inner h2 { font-size: 1.4em;  }
.news-content-inner h3 { font-size: 1.15em; }
.news-content-inner h4 { font-size: 1em;    letter-spacing: 0.04em; text-transform: uppercase; }
.news-content-inner h5 { font-size: 0.9em;  letter-spacing: 0.04em; text-transform: uppercase; }
.news-content-inner h6 { font-size: 0.82em; letter-spacing: 0.04em; text-transform: uppercase; color: #556; }

/* First heading needs no top margin */
.news-content-inner > h1:first-child,
.news-content-inner > h2:first-child,
.news-content-inner > h3:first-child,
.news-content-inner > h4:first-child,
.news-content-inner > h5:first-child,
.news-content-inner > h6:first-child {
    margin-top: 0;
}

/* ── Paragraphs ─────────────────────────────────────────────── */

.news-content-inner p {
    margin: 0 0 0.6em;
}

.news-content-inner p:last-child {
    margin-bottom: 0;
}

/* ── Lists ──────────────────────────────────────────────────── */

.news-content-inner ul,
.news-content-inner ol {
    margin: 0.3em 0 0.6em 1.3em;
    padding: 0;
}

.news-content-inner ul {
    list-style: disc;
}

.news-content-inner ol {
    list-style: decimal;
}

.news-content-inner li {
    margin-bottom: 0.15em;
    line-height: 1.55;
}

.news-content-inner li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
.news-content-inner ul ul,
.news-content-inner ol ol,
.news-content-inner ul ol,
.news-content-inner ol ul {
    margin: 0.15em 0 0.15em 1.1em;
}

/* ── Blockquote ─────────────────────────────────────────────── */

.news-content-inner blockquote {
    margin: 0.8em 0;
    padding: 0.5em 1em;
    border-left: 3px solid #00579d;
    background: rgba(0, 87, 157, 0.04);
    color: #2a3a50;
    font-style: italic;
}

.news-content-inner blockquote p {
    margin: 0;
}

/* ── Inline elements ────────────────────────────────────────── */

.news-content-inner strong,
.news-content-inner b {
    font-weight: 700;
    color: #0a1a2e;
}

.news-content-inner em,
.news-content-inner i {
    font-style: italic;
}

.news-content-inner u {
    text-underline-offset: 2px;
}

.news-content-inner s,
.news-content-inner del {
    opacity: 0.55;
}

.news-content-inner a {
    color: #00579d;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}

.news-content-inner a:hover {
    color: #003f75;
}

.news-content-inner code {
    font-family: 'Courier New', monospace;
    font-size: 0.88em;
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}

.news-content-inner pre {
    background: #0a1a2e;
    color: #e0e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.86em;
    line-height: 1.6;
    padding: 1em 1.2em;
    overflow-x: auto;
    margin: 1em 0;
}

.news-content-inner pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

/* ── Horizontal rule ────────────────────────────────────────── */

.news-content-inner hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 1em 0;
}

/* ── Tables ─────────────────────────────────────────────────── */

.news-content-inner table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
    margin: 0.6em 0;
}

.news-content-inner th {
    background: #0a1a2e;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 6px 10px;
}

.news-content-inner td {
    padding: 5px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.news-content-inner tr:last-child td {
    border-bottom: none;
}

.news-content-inner tr:nth-child(even) td {
    background: rgba(0, 87, 157, 0.03);
}

/* ── Images inside content ──────────────────────────────────── */

.news-content-inner img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.6em auto;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .news-content-inner {
        font-size: 14px;
    }

    .news-content-inner h1 { font-size: 1.45em; }
    .news-content-inner h2 { font-size: 1.2em;  }
    .news-content-inner h3 { font-size: 1.05em; }

    .news-content-inner table {
        font-size: 0.82em;
    }

    .news-content-inner th,
    .news-content-inner td {
        padding: 6px 8px;
    }
}
