/* NextOne SEO Studio — khối bài viết (docs/20). Nạp bởi studio/article.php trên bài có .nxa. */
.nxa {
  --nxa-red: var(--hvn-red, #ea4445);
  --nxa-red-dark: var(--hvn-red-dark, #c93939);
  --nxa-tint: var(--hvn-red-tint, #fdecec);
  --nxa-ink: var(--hvn-ink, #333);
  --nxa-muted: var(--hvn-gray-600, #595959);
  --nxa-line: var(--hvn-gray-300, #dcdcdc);
  --nxa-surface: var(--hvn-surface, #f5f5f5);
  color: var(--nxa-ink);
}
.nxa .nxa-sapo {
  font-size: 1.12em;
  line-height: 1.7;
  font-weight: 500;
}
.nxa .nxa-box-title,
.nxa .nxa-cta-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.02em;
}
.nxa .nxa-summary,
.nxa .nxa-verdict,
.nxa .nxa-prepare,
.nxa .nxa-tip,
.nxa .nxa-answer,
.nxa .nxa-definition {
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--nxa-line);
  background: var(--nxa-surface);
}
.nxa .nxa-summary {
  border-left: 4px solid var(--nxa-red);
  background: #fff;
}
.nxa .nxa-summary ul,
.nxa .nxa-verdict ul,
.nxa .nxa-prepare ul {
  margin: 0;
  padding-left: 20px;
}
.nxa .nxa-summary li,
.nxa .nxa-verdict li,
.nxa .nxa-prepare li {
  margin: 6px 0;
}
.nxa .nxa-verdict {
  background: var(--nxa-tint);
  border-color: #f6c7c8;
}
.nxa .nxa-definition {
  font-size: 1.08em;
  background: #fff;
  border: 2px solid var(--nxa-red);
}
.nxa .nxa-tip--warning {
  background: var(--hvn-warning-tint, #fff6dd);
  border-color: #f3d98a;
}
.nxa .nxa-tip--tip {
  background: var(--hvn-info-tint, #e4f4f7);
  border-color: #b8e1e9;
}
.nxa .nxa-answer {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
}
.nxa .nxa-answer p {
  margin: 0;
}
.nxa .nxa-answer-badge {
  flex: none;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--nxa-muted);
}
.nxa .nxa-answer--co .nxa-answer-badge {
  background: var(--hvn-success, #28a745);
}
.nxa .nxa-answer--khong .nxa-answer-badge {
  background: var(--nxa-red);
}
.nxa .nxa-table {
  margin: 20px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.nxa .nxa-table table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95em;
}
.nxa .nxa-table th,
.nxa .nxa-table td {
  padding: 10px 12px;
  border: 1px solid var(--nxa-line);
  text-align: left;
  vertical-align: top;
}
.nxa .nxa-table thead th {
  background: var(--nxa-surface);
  font-weight: 700;
}
.nxa .nxa-table .is-hl {
  background: var(--nxa-tint);
}
.nxa .nxa-table thead th.is-hl {
  background: var(--nxa-red);
  color: #fff;
}
.nxa .nxa-table tr.is-strong th,
.nxa .nxa-table tr.is-strong td {
  font-weight: 700;
}
.nxa .nxa-note {
  font-size: 0.9em;
  color: var(--nxa-muted);
}
.nxa .nxa-proscons,
.nxa .nxa-grid {
  display: grid;
  gap: 16px;
  margin: 20px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nxa .nxa-grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.nxa .nxa-proscons-col,
.nxa .nxa-card {
  padding: 16px 18px;
  border: 1px solid var(--nxa-line);
  border-radius: 14px;
  background: #fff;
}
.nxa .nxa-card h3,
.nxa .nxa-proscons-col h3 {
  margin: 0 0 8px;
  font-size: 1.05em;
}
.nxa .nxa-card p {
  margin: 0;
}
.nxa .nxa-pros-title {
  color: var(--hvn-success, #28a745);
  font-weight: 700;
  margin: 8px 0 4px;
}
.nxa .nxa-cons-title {
  color: var(--nxa-red);
  font-weight: 700;
  margin: 8px 0 4px;
}
.nxa .nxa-audience,
.nxa .nxa-checklist {
  padding-left: 0;
  list-style: none;
}
.nxa .nxa-audience li,
.nxa .nxa-checklist li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--nxa-line);
}
.nxa .nxa-audience li::before {
  content: '→';
  position: absolute;
  left: 4px;
  color: var(--nxa-red);
  font-weight: 700;
}
.nxa .nxa-checklist li::before {
  content: '✓';
  position: absolute;
  left: 4px;
  color: var(--hvn-success, #28a745);
  font-weight: 700;
}
.nxa .nxa-steps {
  list-style: none;
  padding: 0;
  counter-reset: none;
}
.nxa .nxa-step {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--nxa-line);
  border-radius: 14px;
}
.nxa .nxa-step h3 {
  margin: 0 0 8px;
}
.nxa .nxa-step-num {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--nxa-red);
  color: #fff;
  font-size: 0.8em;
  vertical-align: middle;
}
.nxa .nxa-level {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 700;
}
.nxa .nxa-level--thap {
  background: var(--hvn-success-tint, #e7f6ec);
  color: #1e7b34;
}
.nxa .nxa-level--trung_binh {
  background: var(--hvn-warning-tint, #fff6dd);
  color: #8a6400;
}
.nxa .nxa-level--cao {
  background: var(--nxa-tint);
  color: var(--nxa-red-dark);
}
.nxa .nxa-flow {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.nxa .nxa-flow-step {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--nxa-line);
}
.nxa .nxa-flow-step p:last-child {
  margin-bottom: 0;
}
.nxa .nxa-flow--wrong {
  background: var(--nxa-tint);
}
.nxa .nxa-flow--solution {
  background: var(--hvn-success-tint, #e7f6ec);
}
.nxa .nxa-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(234, 68, 69, 0.45) 0%, rgba(234, 68, 69, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 60%),
    linear-gradient(135deg, #0b1220 0%, #111a2e 55%, #1a1630 100%);
  box-shadow:
    0 18px 40px -18px rgba(11, 18, 32, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* Lưới công nghệ mờ dần + vệt sáng quét ngang. */
.nxa .nxa-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 75%);
}
.nxa .nxa-cta::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 100%
  );
  animation: nxa-cta-sweep 6s ease-in-out infinite;
}
@keyframes nxa-cta-sweep {
  0%,
  35% {
    left: -40%;
  }
  100% {
    left: 120%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nxa .nxa-cta::after {
    animation: none;
    display: none;
  }
}
/* Chữ trắng: thắng màu chữ đoạn văn của theme. */
body .nxa .nxa-cta,
body .nxa aside.nxa-cta p,
body .nxa aside.nxa-cta li,
body .nxa aside.nxa-cta span,
body .nxa aside.nxa-cta strong,
body .nxa aside.nxa-cta .nxa-cta-title {
  color: #fff !important;
}
.nxa .nxa-cta .nxa-cta-title {
  font-size: 1.15em;
  letter-spacing: 0.01em;
}
.nxa .nxa-cta p {
  margin: 0 0 10px;
  opacity: 0.92;
}
body .nxa aside.nxa-cta a:not(.nxa-cta-btn) {
  color: #fff !important;
  text-decoration: underline;
}
.nxa .nxa-cta-plans {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.nxa .nxa-cta-plans li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.nxa .nxa-cta-plans li::before {
  content: none;
}
.nxa .nxa-cta-name {
  font-weight: 600;
}
.nxa .nxa-cta-price {
  font-size: 1.25em;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(234, 68, 69, 0.55);
}
body .nxa aside.nxa-cta .nxa-cta-term {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.9em;
}
.nxa .nxa-cta .nxa-cta-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nxa-red), var(--nxa-red-dark));
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 22px -8px rgba(234, 68, 69, 0.8);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.nxa .nxa-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(234, 68, 69, 0.95);
}
/* Báo giá / tư vấn: ánh xanh, nút trắng. */
.nxa .nxa-cta--quote {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, 0.35) 0%, rgba(56, 189, 248, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(234, 68, 69, 0.25) 0%, rgba(234, 68, 69, 0) 60%),
    linear-gradient(135deg, #0b1220 0%, #0f1d33 55%, #13233d 100%);
}
.nxa .nxa-cta.nxa-cta--quote .nxa-cta-btn {
  background: #fff;
  color: var(--nxa-red-dark) !important;
  box-shadow: 0 8px 22px -10px rgba(255, 255, 255, 0.6);
}
.nxa .nxa-figure {
  margin: 22px 0;
}
.nxa .nxa-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.nxa .nxa-figure figcaption {
  margin-top: 8px;
  font-size: 0.9em;
  color: var(--nxa-muted);
  text-align: center;
}
.nxa .nxa-faq h3 {
  margin: 14px 0 0;
  padding: 12px 16px 0;
  border: 1px solid var(--nxa-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  font-size: 1.02em;
}
.nxa .nxa-faq h3 + p {
  margin: 0;
  padding: 6px 16px 12px;
  border: 1px solid var(--nxa-line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.nxa .nxa-sources ol {
  font-size: 0.92em;
}
.nxa .nxa-updated {
  font-size: 0.88em;
  color: var(--nxa-muted);
}
@media (max-width: 720px) {
  .nxa .nxa-proscons,
  .nxa .nxa-grid,
  .nxa .nxa-grid--6 {
    grid-template-columns: minmax(0, 1fr);
  }
  .nxa .nxa-answer {
    flex-direction: column;
  }
}
