/* Shared styles for news listing (category / subcategory / date / tag / location / search) and details pages.
   --np-ac is set inline from the theme colour (see frontend/partials/np_assets). */
.np { --np-ac: #c4161c; --np-text: #1f2328; --np-muted: #667085; --np-line: #e7e9ee; --np-soft: #f6f7f9; --np-card: #fff; padding-bottom: 36px; color: var(--np-text); }
html[data-theme="dark"] .np { --np-text: #e6e8eb; --np-muted: #9aa3ad; --np-line: #2c323a; --np-soft: #1b2027; --np-card: #161a20; }
.np a { color: inherit; text-decoration: none; }
.np a:hover h1, .np a:hover h2, .np a:hover h3 { color: var(--np-ac); }
.np h1, .np h2, .np h3 { transition: color .2s; }

/* ---------- section heading ---------- */
.np-head { margin: 20px 0 22px; }
.np-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--np-muted); margin-bottom: 8px; }
.np-crumb a:hover { color: var(--np-ac); }
.np-crumb .fa { font-size: 11px; opacity: .7; }
.np-head h1 { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 30px; font-weight: 700; line-height: 1.3; color: var(--np-text); }
.np-head h1 .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--np-ac); transform: rotate(45deg); flex: 0 0 auto; }
.np-head .np-sub { margin: 6px 0 0; font-size: 15px; color: var(--np-muted); }
.np-head-line { height: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--np-ac) 0 70px, var(--np-line) 70px); border-radius: 2px; }

/* ---------- thumbs / meta ---------- */
.np-thumb { position: relative; display: block; overflow: hidden; border-radius: 8px; background: var(--np-soft); aspect-ratio: 16 / 9; }
.np-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.np a:hover .np-thumb img { transform: scale(1.05); }
.np-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--np-muted); }
.np-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--np-ac); margin-bottom: 6px; }

/* ---------- lead story (overlay card) ---------- */
.np-lead { position: relative; display: block; border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.np-lead .np-thumb { border-radius: 0; aspect-ratio: 16 / 8.2; }
.np-lead-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 22px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.88) 100%); color: #fff; }
.np-lead-body h2 { font-size: 28px; line-height: 1.38; font-weight: 700; margin: 0 0 8px; color: #fff !important; }
.np-lead-body p { font-size: 15.5px; line-height: 1.65; margin: 0 0 10px; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-lead-body .np-meta { color: rgba(255,255,255,.75); }
.np-lead-body .np-tag { background: var(--np-ac); color: #fff; padding: 2px 10px; border-radius: 3px; }

/* ---------- list rows ---------- */
.np-list { list-style: none; margin: 0; padding: 0; }
.np-row { border-bottom: 1px dashed var(--np-line); }
.np-row:last-child { border-bottom: 0; }
.np-row > a { display: grid; grid-template-columns: 1fr 230px; gap: 20px; padding: 20px 0; align-items: center; }
.np-row h3 { font-size: 20px; line-height: 1.45; font-weight: 600; margin: 0 0 8px; color: var(--np-text); }
.np-row p { font-size: 15px; line-height: 1.7; color: var(--np-muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-empty { margin: 20px 0; padding: 46px 20px; text-align: center; color: var(--np-muted); font-size: 17px; background: var(--np-soft); border-radius: 10px; }
.np-empty .fa { display: block; font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* ---------- pager ---------- */
.np-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 30px 0 8px; padding: 0; list-style: none; }
.np-pager a, .np-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 20px; font-size: 15px; color: var(--np-text); background: var(--np-soft); }
.np-pager a:hover { background: var(--np-ac); color: #fff; }
.np-pager .active span { background: var(--np-ac); color: #fff; font-weight: 600; }
.np-pager .disabled span { opacity: .4; }
.np-pager .np-more a { padding: 0 20px; border: 1px solid var(--np-ac); background: transparent; color: var(--np-ac); font-weight: 600; }
.np-pager .np-more a:hover { background: var(--np-ac); color: #fff; }

/* ---------- sidebar ---------- */
.np-side { margin-top: 20px; position: sticky; top: 80px; }
.np-box { background: var(--np-card); border: 1px solid var(--np-line); border-radius: 10px; overflow: hidden; margin-bottom: 22px; }
.np-tabs { display: flex; margin: 0; padding: 4px; list-style: none; background: var(--np-soft); gap: 4px; }
.np-tabs li { flex: 1; }
.np-tabs a { display: block; text-align: center; padding: 9px 6px; font-size: 16px; font-weight: 600; border-radius: 7px; color: var(--np-muted) !important; }
.np-tabs a.active { background: var(--np-card); color: var(--np-ac) !important; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.np-box-title { margin: 0; padding: 12px 16px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--np-line); }
.np-box-title::before { content: ""; display: inline-block; width: 4px; height: 16px; margin-right: 8px; border-radius: 2px; background: var(--np-ac); vertical-align: -2px; }
.np-rank { list-style: none; margin: 0; padding: 4px 14px; counter-reset: np; }
.np-rank li { border-bottom: 1px solid var(--np-line); }
.np-rank li:last-child { border-bottom: 0; }
.np-rank a { display: flex; gap: 12px; align-items: center; padding: 11px 0; }
.np-rank .n { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; background: var(--np-soft); color: var(--np-ac); }
.np-rank li:nth-child(-n+3) .n { background: var(--np-ac); color: #fff; }
.np-rank h3 { font-size: 15.5px; line-height: 1.5; font-weight: 500; margin: 0; color: var(--np-text); }
.np-mini { list-style: none; margin: 0; padding: 4px 14px; }
.np-mini li { border-bottom: 1px solid var(--np-line); }
.np-mini li:last-child { border-bottom: 0; }
.np-mini a { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; padding: 11px 0; }
.np-mini .np-thumb { border-radius: 6px; }
.np-mini h3 { font-size: 15px; line-height: 1.5; font-weight: 500; margin: 0; color: var(--np-text); }

/* ---------- article ---------- */
.np-article { padding-top: 20px; }
.np-article .np-crumb { margin-bottom: 12px; }
.np-article .np-cat { display: inline-block; padding: 3px 12px; border-radius: 3px; background: var(--np-ac); color: #fff !important; font-size: 13px; font-weight: 600; }
.np-title { font-size: 34px; line-height: 1.4; font-weight: 700; margin: 0 0 12px; color: var(--np-text); }
.np-lede { font-size: 18px; line-height: 1.7; color: var(--np-muted); margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--np-ac); }
.np-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--np-line); border-bottom: 1px solid var(--np-line); margin-bottom: 20px; }
.np-author { display: flex; align-items: center; gap: 12px; }
.np-author img, .np-author .ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--np-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--np-ac); font-size: 20px; }
.np-author strong { display: block; font-size: 16px; color: var(--np-text); }
.np-author-link:hover { color: var(--np-ac) !important; text-decoration: underline !important; }
.np-author .np-desig { display: block; font-size: 13.5px; font-weight: 600; color: var(--np-ac); margin-top: 1px; }
.np-author small { display: block; font-size: 13px; color: var(--np-muted); margin-top: 2px; }
.np-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.np-tools a, .np-tools button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--np-line); background: var(--np-card); color: var(--np-text); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer; padding: 0; transition: all .2s; }
.np-tools a:hover, .np-tools button:hover { background: var(--np-ac); border-color: var(--np-ac); color: #fff; }
.np-tools .fb:hover { background: #1877f2; border-color: #1877f2; }
.np-tools .wa:hover { background: #25d366; border-color: #25d366; }
.np-tools .tw:hover { background: #111; border-color: #111; }
.np-tools .txt { width: auto; padding: 0 10px; border-radius: 18px; font-size: 13px; font-weight: 600; }
.np-figure { margin: 0 0 22px; }
.np-figure img { width: 100%; height: auto; border-radius: 10px; display: block; }
.np-figure figcaption { font-size: 14px; color: var(--np-muted); padding: 8px 2px 0; line-height: 1.6; }
.np-figure figcaption .fa { margin-right: 5px; }
.np-body { font-size: 19px; line-height: 1.9; color: var(--np-text); word-wrap: break-word; }
.np-body p { margin: 0 0 1.1em; text-align: justify; }
.np-body img { max-width: 100%; height: auto; border-radius: 8px; }
.np-body iframe { max-width: 100%; }
.np-body h2, .np-body h3, .np-body h4 { font-size: 1.1em; font-weight: 700; margin: 1.4em 0 .6em; }
.np-body blockquote { margin: 1.3em 0; padding: 14px 18px; background: var(--np-soft); border-left: 4px solid var(--np-ac); border-radius: 0 8px 8px 0; font-style: normal; }
.np-body a { color: var(--np-ac); text-decoration: underline; }
.np-body.fs-1 { font-size: 17px; } .np-body.fs-3 { font-size: 21px; } .np-body.fs-4 { font-size: 23px; }
.np-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 22px; border-radius: 10px; overflow: hidden; background: #000; }
.np-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.np-audio { margin: 0 0 22px; padding: 14px; border-radius: 10px; background: var(--np-soft); }
.np-audio audio { width: 100%; }
.np-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--np-line); }
.np-tags .lbl { font-weight: 700; margin-right: 4px; }
.np-tags a { padding: 5px 14px; border-radius: 18px; background: var(--np-soft); font-size: 14px; }
.np-tags a:hover { background: var(--np-ac); color: #fff; }
.np-section-title { display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; font-size: 22px; font-weight: 700; }
.np-section-title::after { content: ""; flex: 1; height: 2px; background: var(--np-line); }
.np-section-title::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--np-ac); transform: rotate(45deg); }
.np-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.np-grid h3 { font-size: 16.5px; line-height: 1.5; font-weight: 600; margin: 10px 0 0; color: var(--np-text); }
.np-comments { margin-top: 10px; padding: 18px; border: 1px solid var(--np-line); border-radius: 10px; }

@media (max-width: 991px) {
  .np-side { position: static; margin-top: 30px; }
}
@media (max-width: 767px) {
  .np-head h1 { font-size: 24px; }
  .np-lead .np-thumb { aspect-ratio: 4 / 3; }
  .np-lead-body { padding: 50px 16px 16px; }
  .np-lead-body h2 { font-size: 20px; }
  .np-lead-body p { display: none; }
  .np-row > a { grid-template-columns: 1fr 120px; gap: 12px; padding: 14px 0; }
  .np-row h3 { font-size: 16.5px; margin-bottom: 4px; }
  .np-row p { display: none; }
  .np-title { font-size: 25px; }
  .np-lede { font-size: 16px; }
  .np-body { font-size: 17.5px; }
  .np-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .np-grid h3 { font-size: 15px; }
}
