/* ============================================
   news.css
   — News Index (Listing) Page
   — News Article Page
   ============================================ */

/* ── News Index Hero ─────────────────────────────────────────── */
.news-index-hero {
    background: linear-gradient(135deg, #C9920A 0%, #E8AE1A 50%, #F5C518 100%);
    border-radius: var(--radius);
    padding: 28px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-md);
}

.nih-left h1 {
    font-family: 'Lora', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.nih-left p {
    font-size: 13px;
    color: rgba(255,255,255,.85);
    max-width: 480px;
    line-height: 1.6;
}

.nih-live-rate {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    min-width: 160px;
}

.nih-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 4px;
}

.nih-price {
    font-family: 'Lora', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.nih-chg {
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
    color: #fff;
}

/* ── News Cards ──────────────────────────────────────────────── */
.news-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    transition: all .2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-border);
}

.news-card-featured {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
}

.nc-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.nc-badge.up {
    background: var(--green-bg);
    color: var(--green);
}

.nc-badge.dn {
    background: var(--red-bg);
    color: var(--red);
}

.nc-title {
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-h);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card:not(.news-card-featured) .nc-title {
    font-size: 15px;
}

.nc-excerpt {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nc-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.nc-meta i {
    margin-right: 3px;
}

.nc-rate {
    background: var(--gold-pale);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
}

.nc-read-more {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}

/* ── News Grid ───────────────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* ── Rate Snapshot Bar ───────────────────────────────────────── */
.news-rate-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.nrb-item {
    padding: 14px 16px;
    border-right: 1px solid var(--border-soft);
    text-align: center;
}

.nrb-item:last-child { border-right: none; }

.nrb-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 4px;
}

.nrb-val {
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-h);
}

.nrb-chg { font-size: 11px; font-weight: 700; margin-top: 3px; }
.nrb-chg.up { color: var(--green); }
.nrb-chg.dn { color: var(--red); }

/* ── Article Wrapper ─────────────────────────────────────────── */
.news-article-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 24px;
    background: var(--gold-pale);
    border-bottom: 1px solid var(--gold-border);
    flex-wrap: wrap;
}

.news-tag {
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.news-date,
.news-read {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Article Body ────────────────────────────────────────────── */
.news-article-body {
    padding: 28px 30px;
    line-height: 1.8;
}

.news-article-body h2 {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-h);
    line-height: 1.35;
    margin-bottom: 18px;
}

.news-article-body h3 {
    font-family: 'Lora', serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-h);
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
}

.news-article-body p {
    font-size: 15px;
    color: var(--text-p);
    line-height: 1.85;
    margin-bottom: 16px;
}

.news-article-body ul {
    margin: 8px 0 16px 20px;
}

.news-article-body ul li {
    font-size: 15px;
    color: var(--text-p);
    line-height: 1.8;
    margin-bottom: 6px;
    list-style: disc;
}

.news-article-body strong {
    color: var(--text-h);
    font-weight: 700;
}

.news-article-body a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-article-body a:hover { color: var(--gold-light); }

/* AEO Featured Snippet Box */
.news-article-body .quick-answer {
    background: var(--gold-pale);
    border-left: 4px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.news-article-body .quick-answer p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-h);
    line-height: 1.7;
}

/* ── Article Footer ──────────────────────────────────────────── */
.news-article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
    gap: 8px;
}

.naf-sources { font-size: 11px; color: var(--text-muted); }

.naf-updated {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
    .news-rate-bar { grid-template-columns: repeat(3, 1fr); }
    .news-rate-bar .nrb-item:nth-child(3) { border-right: none; }
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .news-index-hero { flex-direction: column; padding: 20px 16px; gap: 16px; }
    .nih-left h1 { font-size: 20px; }
    .nih-live-rate { width: 100%; }

    .news-rate-bar { grid-template-columns: repeat(2, 1fr); }
    .news-rate-bar .nrb-item:nth-child(2n) { border-right: none; }
    .news-rate-bar .nrb-item:nth-child(5) { grid-column: 1 / -1; border-right: none; }

    .news-article-body { padding: 18px 16px; }
    .news-article-body h2 { font-size: 18px; }
    .news-article-body h3 { font-size: 15px; }
    .news-article-body p,
    .news-article-body ul li { font-size: 14px; }

    .news-article-meta { padding: 10px 16px; gap: 10px; }
    .news-article-footer { flex-direction: column; align-items: flex-start; padding: 12px 16px; }

    .nc-title { font-size: 15px !important; }
    .news-grid { grid-template-columns: 1fr; }
}


/* Add this to your news.css — intro paragraph on news index page */

.news-intro-para {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    box-shadow: var(--shadow);
}

.news-intro-para p {
    font-size: 14.5px;
    color: var(--text-p);
    line-height: 1.8;
    margin: 0;
}

.news-intro-para a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-intro-para a:hover {
    color: var(--gold-light);
}




/* ============================================
   NEWS ARTICLE & INDEX — Blue Underlined Links
   Add this to news.css
   ============================================ */

/* Links inside article body */
.news-article-body a {
    color: #1a6db5 !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.news-article-body a:hover {
    color: #0d4f8a !important;
    text-decoration-thickness: 2px;
}

/* Links inside the intro paragraph on news/index.php */
.news-intro-para a {
    color: #1a6db5 !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.news-intro-para a:hover {
    color: #0d4f8a !important;
}











/* ── Pagination — add to news.css ── */

.news-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
}

.npag-info {
    font-size: 12px;
    color: var(--text-muted);
}

.npag-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.npag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-p);
    background: var(--bg);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .18s;
    cursor: pointer;
}

.npag-btn:hover {
    background: var(--gold-pale);
    border-color: var(--gold-border);
    color: var(--gold);
}

.npag-btn.npag-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.npag-btn.npag-disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

.npag-dots {
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 4px;
}

@media (max-width: 600px) {
    .news-pagination {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .npag-btns { gap: 4px; }
    .npag-btn  { min-width: 32px; height: 32px; font-size: 12px; padding: 0 10px; }
}