/* =========================================================
   Tin tức – nhutin.com
   Trình bày kiểu trang tin, theo màu và chữ của web (Be Vietnam Pro, xanh rêu, cam).
   ========================================================= */
.nw { --ink: #0b1f1b; --ink2: rgba(11, 31, 27, .74); --mute: rgba(11, 31, 27, .55); --line: rgba(11, 31, 27, .1); --soft: #eef6f3; }

.nw-head { padding: 132px 0 0; }
.nw-crumb { font-size: 13.5px; color: var(--mute); margin-bottom: 16px; }
.nw-crumb a { color: var(--mute); text-decoration: none; }
.nw-crumb a:hover { color: var(--deep); }
.nw-crumb span { margin: 0 8px; opacity: .6; }
.nw-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--deep); margin: 0 0 10px; }
.nw-head .nw-intro { font-size: 16px; line-height: 1.7; color: var(--ink2); max-width: 64ch; margin: 0; }

.nw-tabs { display: flex; gap: 26px; flex-wrap: wrap; margin: 30px 0 36px; border-bottom: 1px solid var(--line); }
.nw-tabs a { padding: 0 0 13px; margin-bottom: -1px; font-size: 14.5px; font-weight: 600; color: var(--mute); text-decoration: none; border-bottom: 2px solid transparent; }
.nw-tabs a:hover { color: var(--ink); }
.nw-tabs a[aria-current="page"] { color: var(--deep); border-bottom-color: var(--primary); }
.nw-tabs small { font-weight: 500; margin-left: 4px; opacity: .7; }

.nw-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; text-decoration: none; }
.nw-meta { font-size: 13.5px; color: var(--mute); }
.nw-meta span + span::before { content: "·"; margin: 0 8px; opacity: .7; }

.nw-img { display: block; overflow: hidden; border-radius: 14px; background: var(--soft); }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nw-link { display: block; color: inherit; text-decoration: none; }
.nw-link:hover .nw-img img { transform: scale(1.03); }
.nw-link:hover h2, .nw-link:hover h3 { color: var(--primary); }
.nw-link:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 14px; }

.nw-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.nw-lead .nw-img { aspect-ratio: 16 / 10; }
.nw-lead h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--ink); margin: 0 0 14px; transition: color .15s; }
.nw-lead p { font-size: 16.5px; line-height: 1.7; color: var(--ink2); margin: 0 0 18px; }

.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.nw-card .nw-img { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.nw-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; color: var(--ink); margin: 0 0 10px; transition: color .15s; }
.nw-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink2); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nw-pager { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.nw-pager a, .nw-pager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink2); text-decoration: none; background: #fff; }
.nw-pager [aria-current="page"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.nw-empty { padding: 48px 0 24px; color: var(--mute); }

/* ---------- Trang đọc bài ---------- */
.nw-article-wrap { padding: 132px 0 80px; }
.nw-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.nw-article { max-width: 740px; }
.nw-article h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.18; color: var(--ink); margin: 0 0 16px; }
.nw-dek { font-size: 18.5px; line-height: 1.65; color: var(--ink2); font-weight: 500; margin: 0 0 22px; }
.nw-byline { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.nw-byline b { color: var(--ink); font-weight: 700; }
.nw-share { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.nw-share a, .nw-share button { color: var(--deep); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; }
.nw-share a:hover, .nw-share button:hover { color: var(--primary); }
.nw-figure { margin: 0 0 34px; }
.nw-figure img { width: 100%; height: auto; border-radius: 16px; display: block; }

.nw-body { font-size: 17.5px; line-height: 1.8; color: rgba(11, 31, 27, .86); }
.nw-body > *:first-child { margin-top: 0; }
.nw-body p { margin: 0 0 20px; }
.nw-body h2 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); margin: 42px 0 14px; }
.nw-body h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.nw-body ul, .nw-body ol { margin: 0 0 22px; padding-left: 22px; }
.nw-body li { margin-bottom: 8px; padding-left: 4px; }
.nw-body li::marker { color: var(--primary); }
.nw-body a { color: var(--deep); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 90, 31, .5); text-underline-offset: 3px; }
.nw-body strong, .nw-body b { color: var(--ink); }
.nw-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.nw-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.nw-body blockquote { margin: 28px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--primary); color: var(--ink2); font-size: 18.5px; }
.nw-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 0 0 24px; display: block; overflow-x: auto; }
.nw-body th, .nw-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.nw-body th, .nw-body thead td { background: var(--soft); font-weight: 700; color: var(--ink); }
.nw-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; margin: 8px 0 24px; }
.nw-end { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14.5px; }
.nw-end a { color: var(--deep); font-weight: 700; text-decoration: none; }
.nw-end a:hover { color: var(--primary); }

.nw-aside { position: sticky; top: 110px; }
.nw-aside h4 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; border-bottom: 2px solid var(--deep); margin: 0 0 4px; }
.nw-mini { list-style: none; margin: 0 0 32px; padding: 0; }
.nw-mini li { border-bottom: 1px solid var(--line); }
.nw-mini a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px 0; color: inherit; text-decoration: none; }
.nw-mini .nw-img { aspect-ratio: 16 / 11; border-radius: 10px; }
.nw-mini b { font-size: 14.5px; font-weight: 700; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
.nw-mini a:hover b { color: var(--primary); }
.nw-help { background: var(--deep); color: #fff; border-radius: 18px; padding: 24px; }
.nw-help h4 { color: #fff; border: 0; padding: 0; margin: 0 0 8px; }
.nw-help p { font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, .8); margin: 0 0 14px; }
.nw-help .nw-phone { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-decoration: none; margin-bottom: 16px; }
.nw-help .btn { width: 100%; justify-content: center; }

.nw-more { margin-top: 64px; padding-top: 28px; border-top: 2px solid var(--deep); }
.nw-more h2 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 24px; }

@media (max-width: 1023px) {
  .nw-cols { grid-template-columns: 1fr; gap: 48px; }
  .nw-aside { position: static; }
  .nw-lead { grid-template-columns: 1fr; gap: 20px; }
  .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nw-head, .nw-article-wrap { padding-top: 104px; }
  .nw-grid { grid-template-columns: 1fr; gap: 32px; }
  .nw-tabs { gap: 18px; }
  .nw-body { font-size: 17px; }
  .nw-dek { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .nw-img img { transition: none; } }
.nw-article .nw-crumb { margin-bottom: 22px; }
.nw-lead.nw-solo { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.nw-body figure { margin: 30px 0; }
.nw-body figure img { margin: 0; width: 100%; }
.nw-body figcaption { font-size: 14px; line-height: 1.55; color: var(--mute); margin-top: 10px; }
