/* ============================================================
   Medi Pharma — Trang tin tức (list + detail)
   Đồng bộ font Nunito Sans + design tokens với home
   ============================================================ */

:root {
  --mp-blue:    #1e88a8;
  --mp-cyan:    #0891b2;
  --mp-green:   #14b8a6;
  --mp-ink:     #0f172a;
  --mp-slate:   #475569;
  --mp-slate-2: #64748b;
  --mp-slate-3: #94a3b8;
  --mp-bg:      #f1f7fb;
  --mp-card:    #ffffff;
  --mp-border:  #e2e8f0;
  --mp-radius:  14px;
}

.news-wrap, .news-wrap *,
.news-detail-wrap, .news-detail-wrap * {
  font-family: 'Nunito Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Anti-underline cho mọi link/card */
.news-wrap a, .news-wrap a:hover, .news-wrap a:focus,
.news-wrap button, .news-wrap button:hover,
.news-detail-wrap a, .news-detail-wrap a:hover, .news-detail-wrap a:focus,
.news-detail-wrap button, .news-detail-wrap button:hover {
  text-decoration: none !important;
}
/* Riêng link trong nội dung bài viết — giữ underline cho accessibility */
.nd-content a, .nd-content a:hover {
  text-decoration: underline !important;
}

.news-wrap { background: var(--mp-bg); padding: 22px 0 60px; min-height: 60vh; }

/* ── Breadcrumb ── */
.news-breadcrumb {
  font-size: .76rem; font-weight: 700; color: var(--mp-slate-2);
  margin-bottom: 16px;
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.news-breadcrumb a { color: var(--mp-cyan); text-decoration: none; }
.news-breadcrumb a:hover { color: var(--mp-blue); text-decoration: underline; }
.news-breadcrumb .sep { color: var(--mp-slate-3); }

/* ── Page header ── */
.news-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 22px 26px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.news-eyebrow {
  font-size: .68rem; font-weight: 800; color: var(--mp-cyan);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.news-title {
  margin: 0; font-size: 1.6rem; font-weight: 900; color: var(--mp-ink);
  line-height: 1.2;
}
.news-subtitle {
  margin: 8px 0 0; font-size: .88rem; font-weight: 600; color: var(--mp-slate-2);
}

/* ── Search bar ── */
.news-search-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.news-search-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.news-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--mp-slate-3); font-size: .9rem; pointer-events: none; z-index: 1;
}
.news-search-input {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 999px;
  border: 1.5px solid var(--mp-border); background: #fff;
  font-size: .92rem; font-weight: 600; color: var(--mp-ink);
  transition: border-color .14s, box-shadow .14s;
}
.news-search-input:focus {
  outline: 0; border-color: var(--mp-cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, .12);
}
.news-search-btn {
  height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  color: #fff; font-weight: 800; font-size: .82rem; cursor: pointer;
  transition: transform .14s, filter .14s;
  display: inline-flex; align-items: center; gap: 6px;
}
.news-search-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* ── Category pills ── */
.news-cat-pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px;
}
.news-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: var(--mp-slate);
  background: #fff; border: 1.5px solid var(--mp-border);
  text-decoration: none; transition: all .14s;
}
.news-cat-pill:hover {
  border-color: var(--mp-cyan); color: var(--mp-blue); background: #f0fbfd;
}
.news-cat-pill.is-active {
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px rgba(8, 145, 178, .3);
}

/* ── Featured posts (top 3) ── */
.news-featured {
  display: grid; gap: 16px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-bottom: 28px;
}
.news-featured-card {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.news-featured-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 145, 178, .3);
  box-shadow: 0 16px 30px rgba(8, 145, 178, .14);
  color: inherit; text-decoration: none;
}
.news-featured-card.is-hero { grid-row: span 2; }
.news-featured-card .news-featured-img-wrap {
  position: relative; overflow: hidden; background: #f8fafc;
}
.news-featured-card.is-hero .news-featured-img-wrap { aspect-ratio: 16/12; }
.news-featured-card:not(.is-hero) .news-featured-img-wrap { aspect-ratio: 16/10; }
.news-featured-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
  position: absolute; inset: 0;
}
.news-featured-card:hover .news-featured-img { transform: scale(1.04); }
.news-featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 23, 42, .82) 100%);
}
.news-featured-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 6px;
  font-size: .65rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  box-shadow: 0 4px 10px rgba(239, 68, 68, .32);
}
.news-featured-body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 16px 18px; color: #fff;
}
.news-featured-cat {
  font-size: .65rem; font-weight: 800; color: #14b8a6;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px;
}
.news-featured-title {
  font-size: .98rem; font-weight: 800; line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-featured-card.is-hero .news-featured-title { font-size: 1.3rem; line-height: 1.25; }
.news-featured-meta {
  font-size: .72rem; font-weight: 700; color: rgba(255, 255, 255, .82);
  text-transform: uppercase; letter-spacing: .04em;
}

/* ── Posts grid ── */
.news-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.news-card {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 145, 178, .3);
  box-shadow: 0 16px 30px rgba(8, 145, 178, .14);
  color: inherit; text-decoration: none;
}
.news-card-img-wrap {
  position: relative; aspect-ratio: 16/9; background: #f8fafc;
  overflow: hidden;
}
.news-card-img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform .35s;
}
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card-cat {
  font-size: .65rem; font-weight: 800; color: var(--mp-cyan);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
}
.news-card-title {
  font-size: 1rem; font-weight: 800; color: var(--mp-ink);
  line-height: 1.4; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.8em;
}
.news-card:hover .news-card-title { color: var(--mp-blue); }
.news-card-summary {
  font-size: .82rem; font-weight: 600; color: var(--mp-slate-2);
  line-height: 1.6; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 700; color: var(--mp-slate-3);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: auto; padding-top: 10px;
  border-top: 1px dashed var(--mp-border);
}
.news-card-meta i { color: var(--mp-cyan); margin-right: 4px; font-size: .68rem; }

/* ── Layout 2-col (main + sidebar) ── */
.news-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
}

/* ── Sidebar ── */
.news-sidebar {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 90px;
  align-self: start;
}
.news-sidebar-card {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}
.news-sidebar-title {
  font-size: .8rem; font-weight: 900; color: var(--mp-ink);
  text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--mp-cyan);
  display: inline-flex; align-items: center; gap: 8px;
}
.news-sidebar-title i { color: var(--mp-cyan); }
.news-sidebar-list { list-style: none; padding: 0; margin: 0; }
.news-sidebar-list li {
  padding: 8px 0; border-bottom: 1px dashed var(--mp-border);
}
.news-sidebar-list li:last-child { border-bottom: 0; }
.news-sidebar-list a {
  display: flex; gap: 10px; text-decoration: none; color: inherit;
  align-items: flex-start;
}
.news-sidebar-list a:hover .news-sidebar-item-title { color: var(--mp-blue); }
.news-sidebar-thumb {
  width: 70px; height: 56px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; background: #f8fafc;
}
.news-sidebar-item-title {
  font-size: .82rem; font-weight: 700; color: var(--mp-ink);
  line-height: 1.4; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .14s;
}
.news-sidebar-item-meta {
  font-size: .68rem; font-weight: 700; color: var(--mp-slate-3);
  text-transform: uppercase; letter-spacing: .03em;
}

/* ── Pagination ── */
.news-pager {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin-top: 26px; flex-wrap: wrap;
}
.news-pager a, .news-pager span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1.5px solid var(--mp-border);
  font-size: .85rem; font-weight: 700; color: var(--mp-slate);
  text-decoration: none; transition: all .14s;
}
.news-pager a:hover { border-color: var(--mp-cyan); color: var(--mp-blue); }
.news-pager .active {
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-cyan));
  border-color: transparent; color: #fff;
}
.news-pager .disabled { opacity: .4; pointer-events: none; }

/* ── Empty state ── */
.news-empty {
  background: #fff; border: 1px dashed var(--mp-border); border-radius: var(--mp-radius);
  padding: 60px 20px; text-align: center;
}
.news-empty i { font-size: 3rem; color: var(--mp-slate-3); margin-bottom: 14px; display: block; }
.news-empty h3 { font-size: 1.1rem; font-weight: 800; color: var(--mp-ink); margin: 0 0 6px; }
.news-empty p { font-size: .88rem; color: var(--mp-slate-2); margin: 0; }

/* ============================================================
   News detail page
   ============================================================ */
.news-detail-wrap { background: var(--mp-bg); padding: 22px 0 60px; min-height: 70vh; }

.nd-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 28px;
}

.nd-article {
  background: var(--mp-card); border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius); overflow: hidden;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
}
.nd-cover-wrap {
  position: relative; aspect-ratio: 16/9; background: #0f172a;
  overflow: hidden;
}
.nd-cover { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.nd-body { padding: 32px 38px; }

.nd-cat {
  display: inline-block;
  font-size: .68rem; font-weight: 800; color: var(--mp-cyan);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}
.nd-title {
  font-size: 1.85rem; font-weight: 900; color: var(--mp-ink);
  line-height: 1.2; margin: 0 0 14px;
}
.nd-meta {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  font-size: .78rem; font-weight: 700; color: var(--mp-slate-2);
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px dashed var(--mp-border);
}
.nd-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.nd-meta-item i { color: var(--mp-cyan); font-size: .82rem; }
.nd-meta-author { font-weight: 800; color: var(--mp-ink); }

.nd-summary {
  font-size: 1.02rem; font-weight: 600; color: var(--mp-slate);
  line-height: 1.7; margin: 0 0 22px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(8, 145, 178, .06), rgba(20, 184, 166, .06));
  border-left: 4px solid var(--mp-cyan);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.nd-content { font-size: 1rem; line-height: 1.8; color: var(--mp-slate); }
.nd-content h2 {
  font-size: 1.3rem; font-weight: 900; color: var(--mp-ink);
  margin: 28px 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--mp-cyan);
  display: inline-block;
}
.nd-content h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--mp-ink);
  margin: 22px 0 10px;
}
.nd-content p { margin: 0 0 16px; }
.nd-content a { color: var(--mp-cyan); font-weight: 700; text-decoration: underline; }
.nd-content a:hover { color: var(--mp-blue); }
.nd-content ul, .nd-content ol { padding-left: 22px; margin-bottom: 16px; }
.nd-content li { margin-bottom: 6px; }
.nd-content blockquote {
  border-left: 4px solid var(--mp-green);
  padding: 12px 18px; margin: 18px 0;
  background: #f0fdfa;
  border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--mp-slate);
}
.nd-content img {
  max-width: 100%; height: auto; border-radius: 12px;
  margin: 16px 0; box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}
.nd-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: .9rem;
}
.nd-content table th, .nd-content table td {
  border: 1px solid var(--mp-border); padding: 10px 12px;
}
.nd-content table th { background: #f8fafc; font-weight: 800; }

/* ── Tags ── */
.nd-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px dashed var(--mp-border);
}
.nd-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: #f0fbfd; color: var(--mp-blue);
  border: 1px solid rgba(8, 145, 178, .25);
  text-decoration: none; transition: all .14s;
}
.nd-tag:hover { background: var(--mp-cyan); color: #fff; }
.nd-tag i { font-size: .65rem; opacity: .8; }

/* ── Share buttons ── */
.nd-share {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--mp-border);
}
.nd-share-label {
  font-size: .72rem; font-weight: 800; color: var(--mp-slate-2);
  text-transform: uppercase; letter-spacing: .04em; margin-right: 4px;
}
.nd-share-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: .92rem; color: #fff;
  transition: transform .14s, filter .14s;
}
.nd-share-btn:hover { transform: translateY(-2px); filter: brightness(1.06); color: #fff; }
.nd-share-fb { background: #1877f2; }
.nd-share-tw { background: #1da1f2; }
.nd-share-zalo { background: #0068ff; }
.nd-share-copy { background: var(--mp-slate); }

/* ── Source link ── */
.nd-source {
  margin-top: 22px; padding: 12px 16px;
  background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b;
  border-radius: 8px;
  font-size: .82rem; color: #78350f;
}
.nd-source a { color: #92400e; font-weight: 700; }

/* ── Related posts ── */
.nd-related-title {
  font-size: 1.2rem; font-weight: 900; color: var(--mp-ink);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.nd-related-title i { color: var(--mp-cyan); }
.nd-related-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* ============================================================
   CTA Sidebar (.nd-cta) — bulletproof block layout, không có flex
   ============================================================ */
.nd-cta {
  display: block !important;
  background-color: #0891b2;
  background-image: linear-gradient(160deg, #0c4a6e 0%, #0891b2 50%, #14b8a6 100%);
  border-radius: 16px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(8, 145, 178, .26);
  text-align: left;
  overflow: hidden;
}
.nd-cta > * { color: #ffffff; }

.nd-cta-eyebrow {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5eead4;
  margin: 0 0 10px;
}
.nd-cta-eyebrow i { margin-right: 6px; }

.nd-cta .nd-cta-title {
  display: block;
  font-size: 17px; font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #ffffff !important;
}
.nd-cta .nd-cta-title i { margin-right: 6px; color: #5eead4; }

.nd-cta .nd-cta-desc {
  display: block;
  font-size: 13px; font-weight: 500;
  line-height: 1.55; margin: 0 0 14px;
  color: rgba(255, 255, 255, .9);
}

.nd-cta-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
}
.nd-cta-stat {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  min-width: 0;
}
.nd-cta-stat-num {
  display: block;
  font-size: 16px; font-weight: 900; line-height: 1.1;
  color: #ffffff;
}
.nd-cta-stat-lbl {
  display: block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  color: rgba(255, 255, 255, .8);
  margin-top: 3px;
}

.nd-cta .nd-cta-btn {
  display: block !important;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffffff;
  color: #0c4a6e !important;
  font-weight: 800; font-size: 14px; text-align: center;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .14s, box-shadow .14s;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
}
.nd-cta .nd-cta-btn i { margin-right: 6px; color: #0891b2; }
.nd-cta .nd-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
  color: #0c4a6e !important;
}

.nd-cta-trust {
  display: block;
  margin-top: 10px;
  font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, .82);
  text-align: center;
}
.nd-cta-trust i { color: #5eead4; margin-right: 5px; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .news-layout, .nd-layout { grid-template-columns: 1fr; }
  .news-sidebar { position: static; }
  .news-featured { grid-template-columns: 1fr 1fr; }
  .news-featured-card.is-hero { grid-column: span 2; grid-row: span 1; }
  .nd-body { padding: 24px 22px; }
  .nd-title { font-size: 1.45rem; }
  .news-head { padding: 18px; }
  .news-title { font-size: 1.3rem; }
}
@media (max-width: 576px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-card.is-hero { grid-column: span 1; }
  .nd-body { padding: 18px; }
  .nd-title { font-size: 1.2rem; }
  .nd-content { font-size: .92rem; }
  .news-card-summary { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .news-card, .news-featured-card, .nd-cta-btn { transition: none !important; }
}

/* ============================================================
   ENHANCEMENTS: Reading time, TOC, Author Bio, Reviewer, FAQ,
   CTA, Disclaimer, Cover caption — all using design tokens.
   ============================================================ */

/* ── Scroll progress bar (top of page) ── */
.nd-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 1050; pointer-events: none;
}
.nd-progress-bar {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--mp-cyan), var(--mp-green));
  transition: width .1s linear;
}

/* ── Reading time meta chip ── */
.nd-meta-item.nd-reading-time { color: var(--mp-cyan); font-weight: 700; }
.nd-meta-item.nd-reading-time i { color: var(--mp-cyan); }

/* ── Cover caption ── */
.nd-cover-caption {
  padding: 8px 14px; font-size: .82rem; color: var(--mp-slate-2);
  font-style: italic; text-align: center;
}

/* ── Reviewer banner (E-E-A-T) ── */
.nd-reviewer {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  border: 1px solid #67e8f9; border-radius: var(--mp-radius);
  padding: 14px 18px; margin: 18px 0;
}
.nd-reviewer-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 50%; background: var(--mp-cyan); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.nd-reviewer-label {
  font-size: .72rem; color: #0e7490; text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700;
}
.nd-reviewer-name { font-size: 1rem; color: #164e63; font-weight: 700; margin-top: 2px; }
.nd-reviewer-cred { color: #0e7490; font-weight: 500; }
.nd-reviewer-date { font-size: .76rem; color: var(--mp-slate); margin-top: 3px; }

/* ── Table of Contents ── */
.nd-toc {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #bae6fd; border-left: 4px solid var(--mp-cyan);
  border-radius: var(--mp-radius); padding: 14px 18px; margin: 18px 0;
}
.nd-toc-head {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; user-select: none;
}
.nd-toc-title {
  margin: 0; font-size: .9rem; font-weight: 800; color: var(--mp-ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.nd-toc-title i { color: var(--mp-cyan); }
.nd-toc-toggle { background: transparent; border: 0; color: var(--mp-cyan); cursor: pointer; }
.nd-toc-toggle .ic-down { transition: transform .2s; }
.nd-toc.is-collapsed .nd-toc-toggle .ic-down { transform: rotate(-90deg); }
.nd-toc.is-collapsed .nd-toc-list { display: none; }
.nd-toc-list { list-style: none; padding: 10px 0 0; margin: 0; }
.nd-toc-item { padding: 4px 0; }
.nd-toc-item.level-2 { padding-left: 0; }
.nd-toc-item.level-3 { padding-left: 18px; }
.nd-toc-link {
  color: var(--mp-slate); text-decoration: none; font-size: .88rem;
  display: flex; gap: 8px; padding: 4px 8px; border-radius: 6px; transition: all .15s;
}
.nd-toc-link:hover { background: rgba(8,145,178,.1); color: var(--mp-cyan); }
.nd-toc-link.is-active {
  background: var(--mp-cyan); color: #fff !important; font-weight: 700;
}
.nd-toc-link.is-active::before { content: ""; }
.nd-toc-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; padding: 0 4px; height: 18px; background: rgba(8,145,178,.15);
  color: var(--mp-cyan); font-size: .7rem; font-weight: 800;
  border-radius: 4px;
}
.nd-toc-link.is-active .nd-toc-num { background: rgba(255,255,255,.25); color: #fff; }

/* ── FAQ block ── */
.nd-faq {
  margin: 30px 0; padding: 22px 24px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d; border-radius: 16px;
}
.nd-faq-title {
  font-size: 1.15rem; color: #78350f; font-weight: 800; margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.nd-faq-title i { color: #d97706; }
.nd-faq-list { display: flex; flex-direction: column; gap: 8px; }
.nd-faq-item {
  background: #fff; border: 1px solid #fde68a; border-radius: 10px;
  overflow: hidden; transition: border-color .15s;
}
.nd-faq-item[open] { border-color: #d97706; }
.nd-faq-q {
  padding: 12px 16px; font-weight: 700; color: var(--mp-ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.nd-faq-q::after { content: '+'; color: #d97706; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.nd-faq-item[open] .nd-faq-q::after { content: '−'; }
.nd-faq-q::-webkit-details-marker { display: none; }
.nd-faq-a { padding: 0 16px 14px; color: var(--mp-slate); line-height: 1.7; font-size: .94rem; }

/* ============================================================
   CTA Block (in-article) — solid gradient, vertical layout
   ============================================================ */
.nd-cta-block {
  display: block;
  background-color: #0891b2;
  background-image: linear-gradient(135deg, #0c4a6e 0%, #0891b2 55%, #14b8a6 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 28px;
  margin: 32px 0;
  box-shadow: 0 18px 40px rgba(8, 145, 178, .28);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.nd-cta-block-shape {
  position: absolute; right: -120px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.nd-cta-block-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #ffffff;
  align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  position: relative;
}
.nd-cta-block-body { display: block; position: relative; }

.nd-cta-block-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.nd-cta-block-eyebrow i { margin-right: 5px; color: #fde68a; }

.nd-cta-block-title {
  display: block;
  font-size: 22px; font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -.2px;
}
.nd-cta-block-desc {
  display: block;
  font-size: 15px; font-weight: 500;
  line-height: 1.6;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .92);
  max-width: 560px;
}
.nd-cta-block-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.nd-cta-block-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800; font-size: 14px;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.nd-cta-block-btn--primary {
  background: #ffffff;
  color: #0c4a6e !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.nd-cta-block-btn--primary i { color: #0891b2; transition: transform .15s; }
.nd-cta-block-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .26);
  color: #0c4a6e !important;
}
.nd-cta-block-btn--primary:hover i { transform: translateX(3px); }
.nd-cta-block-trust {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .86);
}
.nd-cta-block-trust i { color: #5eead4; font-size: 14px; }

/* ── Disclaimer ── */
.nd-disclaimer {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff5f5; border: 1px solid #fca5a5; border-left: 4px solid #dc2626;
  border-radius: 10px; padding: 14px 18px; margin: 24px 0;
  font-size: .86rem; color: #7f1d1d;
}
.nd-disclaimer-icon {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%; background: #fee2e2; color: #b91c1c;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.nd-disclaimer-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  font-weight: 800; color: #991b1b; margin-bottom: 3px;
}
.nd-disclaimer-text { line-height: 1.6; }

/* ── Author Bio block (cuối bài, E-E-A-T) ── */
.nd-author-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--mp-card); border: 1px solid var(--mp-border); border-radius: var(--mp-radius);
  padding: 18px 20px; margin: 28px 0 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.04);
}
.nd-author-avatar {
  width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mp-blue), var(--mp-green)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; overflow: hidden;
}
.nd-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nd-author-body { flex: 1; min-width: 0; }
.nd-author-eyebrow {
  font-size: .72rem; color: var(--mp-slate-2); text-transform: uppercase;
  letter-spacing: .04em; font-weight: 700;
}
.nd-author-name {
  font-size: 1.05rem; color: var(--mp-ink); font-weight: 800; margin: 2px 0;
}
.nd-author-role { font-size: .85rem; color: var(--mp-slate); }
.nd-author-bio { font-size: .88rem; color: var(--mp-slate); margin-top: 6px; line-height: 1.55; }
.nd-author-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .78rem; color: var(--mp-slate-2); }
.nd-author-meta a { color: var(--mp-cyan); font-weight: 700; }

/* Mobile */
@media (max-width: 600px) {
  .nd-cta-block { flex-direction: column; padding: 22px 20px; gap: 16px; }
  .nd-cta-block-icon { width: 52px; height: 52px; flex: 0 0 52px; font-size: 1.35rem; }
  .nd-cta-block-title { font-size: 1.15rem; }
  .nd-cta-block-desc { font-size: .88rem; margin-bottom: 14px; }
  .nd-cta-block-actions { gap: 10px; }
  .nd-cta-block-btn { width: 100%; justify-content: center; }
  .nd-cta-block-trust { width: 100%; justify-content: center; }
  .nd-author-card { flex-direction: column; gap: 12px; }
  .nd-author-avatar { width: 56px; height: 56px; flex: 0 0 56px; }
}
