.article-detail-page {
  background: #f7fbf8;
}

.article-layout,
.article-detail-layout,
.vn-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.article-hero {
  border-bottom: 1px solid #dfece4;
  background:
    linear-gradient(135deg, rgba(4, 101, 49, 0.08), rgba(236, 28, 36, 0.035)),
    #ffffff;
  padding: 34px 0 30px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  color: #687d8e;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 500;
}

.breadcrumb svg,
.article-meta-row svg {
  width: 15px;
  height: 15px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.article-tag svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.tag-blue {
  background: #eef7ff;
  color: #12609e;
}

.tag-green {
  background: #edf8f2;
  color: var(--green);
}

.tag-pink {
  background: #fff2f3;
  color: #b9151d;
}

.tag-red {
  background: #fff2f3;
  color: var(--red);
}

.article-hero h1 {
  max-width: 820px;
  margin-top: 14px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
}

.article-excerpt {
  max-width: 760px;
  margin-top: 12px;
  color: #506779;
  font-size: 16px;
  line-height: 1.65;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: #63788a;
  font-size: 13px;
}

.article-meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-detail-section {
  padding: 34px 0 48px;
}

.article-detail-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.article-detail-main,
.sidebar-card,
.sidebar-cta,
.related-grid article {
  overflow: hidden;
  border: 1px solid #dfece4;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.article-detail-main {
  padding: 24px;
}

.article-cover {
  margin: 0 0 22px;
}

.article-cover img {
  aspect-ratio: 16 / 8.5;
  border-radius: 8px;
  object-fit: cover;
}

.article-cover figcaption {
  margin-top: 8px;
  color: #6f8191;
  font-size: 12.5px;
}

.article-summary-box {
  border: 1px solid #dce8df;
  border-radius: 10px;
  background: #f7fbf8;
  padding: 16px;
}

.article-summary-box b {
  display: block;
  color: #173044;
  font-size: 15px;
}

.article-summary-box ol {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--green);
  font-size: 14px;
}

.article-summary-box a {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.article-summary-box a:hover {
  color: var(--red);
}

.article-summary-box .toc-level-3 {
  margin-left: 16px;
  font-size: 13.5px;
}

.article-detail-main .lead {
  margin-top: 22px;
  color: #31485a;
  font-size: 16px;
  line-height: 1.75;
}

.article-detail-main h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  color: #102938;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.36;
}

.article-detail-main p,
.article-detail-main li {
  color: #41566a;
  font-size: 15px;
  line-height: 1.78;
}

.article-detail-main p + p {
  margin-top: 12px;
}

.article-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  overflow: hidden;
  border: 1px solid #dce8df;
  border-radius: 10px;
  font-size: 14px;
}

.article-table-wrap th,
.article-table-wrap td {
  border-bottom: 1px solid #e7f0eb;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.article-table-wrap th {
  background: #edf8f2;
  color: #173044;
  font-weight: 600;
}

.article-table-wrap tr:last-child td {
  border-bottom: 0;
}

.article-note,
.article-promo-banner,
.article-consult-box {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  border-radius: 10px;
  padding: 18px;
}

.article-note {
  grid-template-columns: 38px minmax(0, 1fr);
  border: 1px solid rgba(4, 101, 49, 0.18);
  background: #f3fbf6;
}

.article-note > svg,
.article-note > i {
  grid-column: 1;
  grid-row: 1;
}

.article-note > :not(svg):not(i) {
  grid-column: 2;
  min-width: 0;
}

.article-note svg,
.sidebar-cta > svg,
.doctor-avatar svg {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(4, 101, 49, 0.12);
  border-radius: 10px;
  background: radial-gradient(circle at 76% 20%, rgba(236, 28, 36, 0.12), transparent 34%), var(--green-soft);
  color: var(--green);
  padding: 8px;
}

.article-note b {
  display: block;
  margin-bottom: 4px;
  color: #173044;
}

.article-check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.article-check-list li {
  display: flex;
  gap: 9px;
}

.article-check-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--green);
  margin-top: 4px;
}

.article-promo-banner {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(236, 28, 36, 0.18);
  background:
    radial-gradient(circle at 94% 12%, rgba(236, 28, 36, 0.09), transparent 30%),
    #fff8f8;
}

.article-promo-banner span,
.article-consult-box span {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.article-promo-banner h3,
.article-consult-box h3 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.35;
}

.article-promo-banner p,
.article-consult-box p {
  margin-top: 6px;
  font-size: 14px;
}

.article-consult-box {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 22px;
  border: 1px solid rgba(4, 101, 49, 0.18);
  background: #f3fbf6;
}

.article-consult-box > div:nth-of-type(2),
.article-consult-box div:has(> .btn) {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px;
  align-items: center;
  justify-content: end;
  min-width: max-content;
}

.article-consult-box > div:nth-of-type(2) br,
.article-consult-box div:has(> .btn) br {
  display: none;
}

.article-consult-box .btn {
  min-width: 112px;
  justify-content: center;
  white-space: nowrap;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  border-top: 1px solid #e7f0eb;
  padding-top: 18px;
  color: #617689;
  font-size: 13px;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dce8df;
  border-radius: 999px;
  background: #ffffff;
  color: #244154;
  padding: 7px 11px;
  font-weight: 500;
}

.article-share svg {
  width: 15px;
  height: 15px;
}

.article-detail-sidebar,
.sidebar,
.article-sidebar {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
}

.sidebar-card,
.sidebar-cta {
  padding: 18px;
}

.sidebar-card h3,
.sidebar-cta h3 {
  font-size: 18px;
  line-height: 1.35;
}

.doctor-card p,
.sidebar-cta p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

.doctor-avatar {
  display: inline-flex;
}

.sidebar-card > a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  border-top: 1px solid #e7f0eb;
  padding: 12px 0;
  color: #294457;
  font-size: 13.5px;
  line-height: 1.45;
}

.sidebar-card > a:first-of-type {
  margin-top: 10px;
}

.sidebar-card > a span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-list a {
  border: 1px solid #dce8df;
  border-radius: 999px;
  background: #fbfffd;
  color: #244154;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 500;
}

.sidebar-cta {
  background:
    radial-gradient(circle at 94% 12%, rgba(236, 28, 36, 0.12), transparent 30%),
    linear-gradient(180deg, #f3faf6, #ffffff);
}

.sidebar-cta .btn {
  width: 100%;
  margin-top: 14px;
}

.related-articles {
  background: #ffffff;
  padding: 42px 0 56px;
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.related-head h2 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.34;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-grid article {
  display: grid;
  grid-template-rows: 170px minmax(0, 1fr);
}

.related-grid img {
  height: 100%;
  object-fit: cover;
}

.related-grid article > div {
  padding: 16px;
}

.related-grid h3 {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.4;
}

/* ── .vn-article rich content typography (catalog-item: single test/package) ── */
.vn-article {
  padding: 30px 32px;
}

.vn-article > *:first-child {
  margin-top: 0;
}

.vn-article > *:last-child {
  margin-bottom: 0;
}

.vn-article h2 {
  margin: 30px 0 12px;
  color: #102938;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.36;
}

.vn-article h3 {
  margin: 24px 0 10px;
  color: #173044;
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.4;
}

.vn-article p {
  margin: 0 0 14px;
  color: #41566a;
  font-size: 15.5px;
  line-height: 1.78;
}

.vn-article ul:not(.vn-check-list),
.vn-article ol {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #41566a;
  font-size: 15.5px;
  line-height: 1.78;
}

.vn-article ul:not(.vn-check-list) li,
.vn-article ol li {
  margin-bottom: 7px;
}

.vn-article .vn-check-list {
  margin: 16px 0 22px;
}

.vn-article .vn-check-list li {
  font-size: 15.5px;
  line-height: 1.6;
  align-items: flex-start;
}

.vn-article .vn-check-list svg {
  margin-top: 2px;
}

.vn-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0 16px;
}

.vn-article a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vn-article a:hover {
  color: var(--red);
}

/* ── table styling inside rich content ── */
.vn-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  border: 1px solid #dce8df;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14.5px;
  background: #ffffff;
}

.vn-article thead th {
  background: linear-gradient(135deg, #046531, #023f21);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
}

.vn-article th,
.vn-article td {
  padding: 12px 16px;
  border-bottom: 1px solid #e7f0eb;
  border-right: 1px solid #eef4f0;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: #33495c;
}

.vn-article th:last-child,
.vn-article td:last-child {
  border-right: 0;
}

.vn-article tbody tr:nth-child(even) {
  background: #f6faf8;
}

.vn-article tbody tr:hover {
  background: #edf8f2;
}

.vn-article tbody tr:last-child td {
  border-bottom: 0;
}

.vn-article td strong {
  color: #102938;
}

.vn-table-scroll {
  overflow-x: auto;
  margin: 8px 0 22px;
  -webkit-overflow-scrolling: touch;
}

.vn-table-scroll table {
  margin: 0;
  min-width: 560px;
}

/* ── Catalog single (package / test) layout polish ── */
.vn-page-section .vn-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.vn-page-section .vn-content-card.vn-article {
  margin: 0;
}

/* sticky sidebar stack */
.vn-page-section .vn-side-stack {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

/* prominent price card */
.vn-price-card {
  overflow: hidden;
  border: 1px solid #d4e7dc !important;
  border-radius: 14px !important;
  padding: 0 !important;
  box-shadow: 0 18px 40px -24px rgba(4, 101, 49, 0.45) !important;
}

.vn-price-card {
  position: relative;
  background: #ffffff !important;
}

/* green gradient header that auto-fits the tag + title + price block */
.vn-price-head {
  background:
    radial-gradient(circle at 90% 8%, rgba(236, 28, 36, 0.28), transparent 42%),
    linear-gradient(135deg, #046531, #023f21);
  padding: 18px 20px 20px;
}

.vn-price-card .vn-price-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.vn-price-card .vn-price-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.34;
}

.vn-price-card .vn-price-head strong {
  display: block;
  margin: 6px 0 0;
  color: #ffffff !important;
  font-size: 30px !important;
  font-weight: 700;
}

.vn-price-card > p {
  margin: 16px 20px 0;
  color: #41566a;
  font-size: 13.5px;
  line-height: 1.6;
}

.vn-price-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 40px);
  margin: 12px 20px 0;
}

.vn-price-card .btn:last-child {
  margin-bottom: 20px;
}

.vn-price-card .btn-secondary {
  background: #ffffff;
  border: 1px solid #d4e7dc;
  color: var(--green);
}

@media (max-width: 1080px) {
  .vn-page-section .vn-article-layout {
    grid-template-columns: 1fr;
  }

  .vn-page-section .vn-side-stack {
    position: static;
  }
}
