/* ==========================================================================
   NLICT Clinic
   Mực xanh rêu + xanh ngọc, nền trắng ngà. Lora cho tiêu đề, Be Vietnam Pro
   cho nội dung. Yếu tố nhận diện: thẻ chuyên gia lặp lại khắp site.
   ========================================================================== */

:root {
  --ink:      #17332c;
  --ink-2:    #2f4f45;
  --ink-soft: #557065;
  --muted:    #7d928a;
  --paper:    #ffffff;
  --page:     #fbfcfb;
  --surface:  #eef3f0;
  --line:     #dce5e0;
  --jade:     #1e7f63;
  --jade-dk:  #14614a;
  --warn:     #a4562a;

  --radius:   12px;
  --radius-lg:18px;

  --serif: "Lora", Georgia, serif;
  --sans:  "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1140px;
  --side: 300px;
}

/* --- Nền tảng --- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
iframe, video, embed, object { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  margin: 0 0 .5em;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 2px;
  border-radius: 4px;
}

.nlc-sr {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.nlc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 18px;
}
.nlc-skip:focus { left: 0; }

.nlc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.nlc-main { padding-bottom: 64px; }

.nlc-cols { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 40px; align-items: start; }
.nlc-cols--gap { margin-top: 44px; }
.nlc-side { position: sticky; top: 24px; display: grid; gap: 20px; }

/* --- Đầu trang --- */
.nlc-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nlc-header__in { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.nlc-logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.nlc-logo__mark { color: var(--jade); display: grid; place-items: center; }
.nlc-logo__name { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }

.nlc-nav { margin-left: auto; }
.nlc-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nlc-nav a { font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 4px 0; border-bottom: 2px solid transparent; }
.nlc-nav a:hover { color: var(--jade-dk); border-bottom-color: var(--jade); }

.nlc-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: none; border-radius: 10px; cursor: pointer; }
.nlc-burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; }

.nlc-search { position: relative; width: 260px; flex: none; }
.nlc-search input {
  width: 100%; height: 42px; padding: 0 42px 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-family: var(--sans); font-size: 14.5px; color: var(--ink);
}
.nlc-search input::placeholder { color: var(--muted); }
.nlc-search input:focus { background: var(--paper); }
.nlc-search button {
  position: absolute; right: 5px; top: 5px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: var(--jade); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}

/* Thanh chuyên khoa — điều hướng chính của site, nên nằm ngay dưới header */
.nlc-specs { background: var(--page); border-bottom: 1px solid var(--line); }
.nlc-specs__in { display: flex; gap: 20px; overflow-x: auto; padding: 12px 20px; scrollbar-width: none; }
.nlc-specs__in::-webkit-scrollbar { display: none; }
.nlc-spec {
  flex: none; font-size: 14.5px; color: var(--ink-soft);
  padding-bottom: 3px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.nlc-spec:hover { color: var(--ink); }
.nlc-spec.is-on { color: var(--jade-dk); border-bottom-color: var(--jade); font-weight: 600; }

/* --- Hero --- */
.nlc-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 62px 0 54px; }
.nlc-hero__in { max-width: 760px; }
.nlc-hero h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.02em; margin: 0 0 16px; }
.nlc-hero p { font-size: 17.5px; color: var(--ink-soft); margin: 0 0 28px; max-width: 60ch; }

.nlc-hero__search { display: flex; gap: 10px; flex-wrap: wrap; }
.nlc-hero__search input {
  flex: 1; min-width: 240px; height: 54px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px; background: var(--page); color: var(--ink);
}
.nlc-hero__search button {
  height: 54px; padding: 0 30px; border: 0; border-radius: var(--radius);
  background: var(--jade); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer;
}
.nlc-hero__search button:hover { background: var(--jade-dk); }

.nlc-hero__docs { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.nlc-hero__faces { display: flex; }
.nlc-hero__faces img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--paper); margin-left: -12px;
}
.nlc-hero__faces img:first-child { margin-left: 0; }
.nlc-hero__count { font-size: 14.5px; color: var(--ink-soft); }

/* --- Tiêu đề khối --- */
.nlc-section { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 44px 0 20px; }
.nlc-section h2 { font-size: 25px; margin: 0; padding-bottom: 7px; border-bottom: 3px solid var(--jade); display: inline-block; }
.nlc-section__more { font-size: 14.5px; font-weight: 600; color: var(--jade-dk); white-space: nowrap; }
.nlc-section__more:hover { text-decoration: underline; }

/* --- Thẻ chuyên gia: yếu tố nhận diện --- */
.nlc-doc { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.nlc-doc__face { position: relative; flex: none; }
.nlc-doc__face img { border-radius: 50%; object-fit: cover; background: var(--surface); }

.nlc-doc--sm .nlc-doc__face img { width: 38px; height: 38px; }
.nlc-doc--lg .nlc-doc__face img { width: 68px; height: 68px; }

.nlc-doc__check {
  position: absolute; right: -2px; bottom: -2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--jade); color: #fff;
  display: grid; place-items: center; border: 2px solid var(--paper);
}
.nlc-doc--lg .nlc-doc__check { width: 22px; height: 22px; }

.nlc-doc__text { display: grid; gap: 1px; min-width: 0; }
.nlc-doc__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.nlc-doc--lg .nlc-doc__name { font-family: var(--serif); font-size: 19px; }
.nlc-doc__meta { font-size: 13px; color: var(--muted); line-height: 1.35; }
a.nlc-doc:hover .nlc-doc__name { color: var(--jade-dk); }

/* Hộp duyệt chuyên môn ở đầu bài */
.nlc-reviewed {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--surface); border-left: 3px solid var(--jade);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin: 22px 0 0;
}
.nlc-reviewed__note { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* --- Dòng thông tin --- */
.nlc-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.nlc-meta__tag { color: var(--jade-dk); font-weight: 600; }
.nlc-meta__tag:hover { text-decoration: underline; }

/* --- Danh sách bài viết --- */
.nlc-list { display: grid; gap: 26px; }

.nlc-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.nlc-card__media { display: block; aspect-ratio: 8 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.nlc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nlc-card__body h3 { font-size: 20px; margin: 0 0 8px; line-height: 1.35; }
.nlc-card:hover h3 { color: var(--jade-dk); }
.nlc-card__sum { color: var(--ink-soft); font-size: 15px; margin: 0 0 12px; }

.nlc-thumb-empty { display: block; width: 100%; height: 100%; background: var(--surface); }

/* --- Lưới video --- */
.nlc-vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.nlc-vgrid--wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.nlc-vcard__media {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: var(--ink);
}
.nlc-vcard__media img { width: 100%; height: 100%; object-fit: cover; }
.nlc-vcard__play {
  position: absolute; left: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center;
}
.nlc-vcard:hover .nlc-vcard__play { background: var(--jade); color: #fff; }
.nlc-vcard__len {
  position: absolute; right: 10px; bottom: 12px;
  background: rgba(23,51,44,.86); color: #fff;
  font-size: 12px; padding: 2px 7px; border-radius: 5px;
}
.nlc-vcard__body { padding-top: 12px; display: grid; gap: 10px; }
.nlc-vcard__body h3 { font-size: 16.5px; line-height: 1.4; margin: 0; }
.nlc-vcard:hover h3 { color: var(--jade-dk); }

/* --- Lưới phòng khám --- */
.nlc-cgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.nlc-ccard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.nlc-ccard__media { display: block; aspect-ratio: 16 / 9; background: var(--surface); }
.nlc-ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.nlc-ccard__body { padding: 16px 18px 18px; }
.nlc-ccard__body h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.35; }
.nlc-ccard:hover h3 { color: var(--jade-dk); }
.nlc-ccard__where { font-size: 13.5px; color: var(--jade-dk); margin: 0 0 4px; }
.nlc-ccard__addr { font-size: 14px; color: var(--muted); margin: 0 0 10px; }

.nlc-score { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.nlc-score b { font-family: var(--serif); font-size: 24px; color: var(--jade-dk); line-height: 1; }
.nlc-score span { font-size: 13px; color: var(--muted); }
.nlc-score--big b { font-size: 40px; }
.nlc-score--big { margin-top: 16px; align-items: baseline; }

/* --- Bảng khu vực --- */
.nlc-areas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.nlc-areas a {
  font-size: 14.5px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
}
.nlc-areas a:hover { border-color: var(--jade); color: var(--jade-dk); }
.nlc-areas span { color: var(--muted); font-size: 13px; }

/* --- Bài viết --- */
.nlc-article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 40px 36px; }
.nlc-article h1 { font-size: clamp(27px, 3.6vw, 38px); letter-spacing: -.02em; margin: 6px 0 14px; }
.nlc-lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 4px; max-width: 62ch; }

.nlc-cover { margin: 26px 0; }
.nlc-cover img { width: 100%; border-radius: var(--radius); }

.nlc-prose { margin-top: 26px; font-size: 17px; line-height: 1.78; }
.nlc-prose > * { max-width: 70ch; }
.nlc-prose > figure, .nlc-prose > table, .nlc-prose > .wp-block-image { max-width: none; }
.nlc-prose p { margin: 0 0 1.15em; }
.nlc-prose h2 { font-size: 25px; margin: 1.7em 0 .5em; }
.nlc-prose h3 { font-size: 20px; margin: 1.5em 0 .4em; }
.nlc-prose a { color: var(--jade-dk); text-decoration: underline; text-underline-offset: 3px; }
.nlc-prose ul, .nlc-prose ol { margin: 0 0 1.15em; padding-left: 1.3em; }
.nlc-prose li { margin-bottom: .4em; }
.nlc-prose img { border-radius: var(--radius); }
.nlc-prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--jade);
  font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-2);
}
.nlc-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.nlc-prose th, .nlc-prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.nlc-prose th { background: var(--surface); font-weight: 600; }

.nlc-disclaimer {
  margin: 30px 0 0; padding: 14px 18px;
  background: var(--surface); border-radius: var(--radius);
  font-size: 14px; color: var(--ink-soft);
}

/* Hộp tác giả cuối bài */
.nlc-author { margin-top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.nlc-author p { font-size: 15px; color: var(--ink-soft); margin: 14px 0 0; }
.nlc-author__focus { margin: 12px 0 16px; padding-left: 1.1em; font-size: 15px; color: var(--ink-soft); }
.nlc-author__focus li { margin-bottom: 3px; }

/* --- Hồ sơ phòng khám --- */
.nlc-clinic__head { border-bottom: 1px solid var(--line); padding-bottom: 22px; }

.nlc-facts { display: grid; gap: 0; margin: 26px 0 0; }
.nlc-facts div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nlc-facts dt { color: var(--muted); font-size: 14.5px; }
.nlc-facts dd { margin: 0; font-size: 15.5px; }
.nlc-facts a { color: var(--jade-dk); }

.nlc-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0; }
.nlc-pc__box { padding: 18px 20px; border-radius: var(--radius); }
.nlc-pc__box h3 { font-size: 16.5px; margin: 0 0 10px; }
.nlc-pc__box ul { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-soft); }
.nlc-pc__box li { margin-bottom: 6px; }
.nlc-pc__box--pro { background: #edf5f1; }
.nlc-pc__box--con { background: #f7f1ec; }

/* Bảng giá trong hồ sơ */
.nlc-svc { margin-top: 34px; }
.nlc-svc h2 { font-size: 22px; }
.nlc-svc__wrap { overflow-x: auto; }
.nlc-svc__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.nlc-svc__table th {
  text-align: left; padding: 11px 14px; background: var(--surface);
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.nlc-svc__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.nlc-svc__price { font-weight: 600; white-space: nowrap; }
.nlc-svc__date { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.nlc-svc__date.is-stale { color: var(--warn); }
.nlc-svc__note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

.nlc-docs { margin-top: 34px; }
.nlc-docs h2 { font-size: 22px; }
.nlc-docs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }

/* --- Hồ sơ bác sĩ --- */
.nlc-drhead { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.nlc-drhead__face img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--surface); }
.nlc-drhead h1 { font-size: clamp(25px, 3.2vw, 34px); margin: 0 0 6px; }
.nlc-drhead__role { font-size: 16px; color: var(--jade-dk); margin: 0 0 10px; }
.nlc-drhead__bits { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.nlc-drhead__verify { margin: 12px 0 0; font-size: 14px; }
.nlc-drhead__verify a { color: var(--jade-dk); text-decoration: underline; }

.nlc-drblock { margin-top: 30px; }
.nlc-drblock h2 { font-size: 21px; }
.nlc-drblock ul { margin: 0; padding-left: 1.1em; font-size: 16px; color: var(--ink-soft); }
.nlc-drblock li { margin-bottom: 7px; }
.nlc-drblock__edu { list-style: none; padding-left: 0; }
.nlc-drblock__edu li { padding-left: 18px; border-left: 2px solid var(--line); padding-bottom: 4px; }

/* --- Cột phải --- */
.nlc-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.nlc-panel__title { font-size: 17px; margin: 0 0 16px; }
.nlc-panel__docs { display: grid; gap: 15px; }
.nlc-panel__more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--jade-dk); }
.nlc-panel__more:hover { text-decoration: underline; }

.nlc-termdesc { background: var(--surface); padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-size: 15px; color: var(--ink-soft); }

/* --- Nút --- */
.nlc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--jade); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer;
}
.nlc-btn:hover { background: var(--jade-dk); }
.nlc-btn--quiet { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.nlc-btn--quiet:hover { background: var(--surface); color: var(--ink); }

/* --- Phân trang --- */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); font-size: 15px; color: var(--ink-2);
}
.pagination .page-numbers.current { background: var(--jade); border-color: var(--jade); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--jade); color: var(--jade-dk); }

/* --- 404 --- */
.nlc-404 { text-align: center; padding: 60px 24px; margin-top: 40px; }
.nlc-404 h1 { font-size: 30px; }
.nlc-404 .nlc-search { margin: 20px auto 0; width: min(100%, 400px); }

/* --- Chân trang --- */
.nlc-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 0; margin-top: 60px; }

.nlc-emergency {
  background: #f7f1ec; border-left: 3px solid var(--warn);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.5px; color: var(--ink-2); margin: 0 0 32px;
}

.nlc-footer__cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-bottom: 30px; }
.nlc-footer__cols h3 { font-size: 19px; margin: 0 0 10px; }
.nlc-footer__cols p { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 46ch; }
.nlc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nlc-footer ul a { font-size: 15px; color: var(--ink-soft); }
.nlc-footer ul a:hover { color: var(--jade-dk); }
.nlc-footer__bar { border-top: 1px solid var(--line); padding: 18px 0 30px; margin: 0; font-size: 13.5px; color: var(--muted); }

.nlc-embed { margin: 0 0 24px; }

/* --- Màn hình nhỏ --- */
@media (max-width: 1024px) {
  .nlc-cols { grid-template-columns: minmax(0, 1fr); }
  .nlc-side { position: static; }
  .nlc-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nlc-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nlc-search { width: 200px; }
}

@media (max-width: 860px) {
  .nlc-nav ul { display: none; }
  .nlc-burger { display: block; order: 3; }
  .nlc-nav { position: static; }
  .nlc-nav.is-open ul {
    display: grid; gap: 4px; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 20px; z-index: 40;
  }
  .nlc-nav.is-open ul a { display: block; padding: 9px 0; }
  .nlc-header { position: relative; }
  .nlc-article { padding: 24px 22px 28px; }
  .nlc-facts div { grid-template-columns: 1fr; gap: 2px; }
  .nlc-docs__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nlc-header__in { flex-wrap: wrap; gap: 12px; min-height: 0; padding: 14px 0; }
  .nlc-search { order: 4; width: 100%; }
  .nlc-card { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .nlc-card__body h3 { font-size: 17px; }
  .nlc-card__sum { display: none; }
  .nlc-vgrid, .nlc-cgrid { grid-template-columns: 1fr; }
  .nlc-pc { grid-template-columns: 1fr; }
  .nlc-drhead { grid-template-columns: 1fr; gap: 16px; }
  .nlc-drhead__face img { width: 96px; height: 96px; }
  .nlc-hero { padding: 40px 0 34px; }
  .nlc-footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .nlc-reviewed { flex-direction: column; align-items: flex-start; gap: 10px; }
}
