/* ==========================================================
   BƯỚC 5 · ĐỘI NGŨ BÁC SĨ — 3 options, under header-3 + hero-6 + why-2 + services-1
   Doctor names/credentials are SAMPLES (mẫu); portraits are AI (Codex), demo only.
   ========================================================== */
.doc { position: relative; padding: clamp(96px, 11vw, 160px) 24px; }
.doc__wrap { max-width: 1240px; margin: 0 auto; }
.doc__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(48px, 6vw, 80px); }
.doc__head > div { max-width: 640px; }
.doc__title {
  margin: 0; font-family: var(--font-accent); font-weight: 300;
  font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.5rem); line-height: 1.08; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144; text-wrap: balance;
}
.doc__intro { margin: 20px 0 0; font-size: 1.0625rem; font-weight: 300; line-height: 1.7; }
.doc__name { margin: 0; font-family: var(--font-accent); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.01em; }
.doc__role { margin: 6px 0 0; font-size: .9375rem; font-weight: 500; }
.doc__meta { margin: 6px 0 0; font-size: .875rem; line-height: 1.5; }
.sample {
  display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 6px; vertical-align: middle;
  font-family: var(--font); font-size: .6875rem; font-weight: 500; letter-spacing: .01em;
  border: 1px dashed currentColor; opacity: .7;
}
.doc-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ==========================================================
   OPTION 1 · Portrait grid, light; hover reveals summary + CTA
   ========================================================== */
.doc1 { background: #F4F1EE; color: var(--ink); }
.doc1 .doc__intro, .doc1 .doc__meta { color: var(--ink-soft); }
.doc1__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.doc1__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #E6DED4; }
.doc1__reveal {
  position: absolute; inset: auto 0 0 0; padding: 22px 20px 20px;
  background: linear-gradient(0deg, rgba(23, 22, 20, .9) 0%, rgba(23, 22, 20, .65) 70%, rgba(23, 22, 20, 0) 100%);
  color: var(--on-dark); font-size: .875rem; line-height: 1.55;
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.doc1__reveal a { display: inline-flex; margin-top: 12px; font-weight: 500; color: var(--sand); }
.doc1__item:hover .doc1__reveal, .doc1__item:focus-within .doc1__reveal { opacity: 1; transform: none; }
.doc1__info { padding: 20px 4px 0; }
@media (hover: none) {   /* touch screens: show the summary below the photo instead */
  .doc1__reveal { position: static; opacity: 1; transform: none; background: none; color: var(--ink-soft); padding: 12px 4px 0; }
  .doc1__reveal a { color: #6E553A; }
}
@media (max-width: 1024px) { .doc1__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 520px)  { .doc1__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .doc1__reveal { transition: none; } }

/* ==========================================================
   OPTION 2 · One featured doctor + selectable row (dark)
   ========================================================== */
.doc2 { background: var(--night-deep); color: var(--on-dark); border-top: 1px solid var(--glass-line); }
.doc2 .doc__intro, .doc2 .doc__meta { color: var(--on-dark-soft); }
.doc2__feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.doc2__feature[hidden] { display: none; }
.doc2__photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; }
.doc2 .doc__name { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); font-weight: 300; }
.doc2 .doc__role { color: var(--sand); font-size: 1rem; }
.doc2__bio { margin: 24px 0 0; max-width: 54ch; font-size: 1.0625rem; font-weight: 300; line-height: 1.75; color: var(--on-dark-soft); }
.doc2__creds { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--glass-line); }
.doc2__creds li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--glass-line); font-size: .9375rem; color: var(--on-dark); }
.doc2__creds .ico { color: var(--sand); }
.doc2__creds .ico svg { width: 20px; height: 20px; }
.doc2__quote {
  margin: 32px 0 0; padding-left: 20px; border-left: 2px solid var(--sand);
  font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 1.25rem; line-height: 1.5; color: var(--on-dark);
}
.doc2__feature .hero__actions { margin-top: 32px; }

.doc2__row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--glass-line);
}
.doc2__pick {
  display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; text-align: left;
  border: 1px solid transparent; background: none; color: var(--on-dark-soft); cursor: pointer;
  font: inherit; transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s;
}
.doc2__pick:hover { background: rgba(254, 248, 231, .05); color: var(--on-dark); }
.doc2__pick[aria-pressed="true"] { border-color: rgba(213, 193, 169, .5); background: rgba(254, 248, 231, .06); color: var(--on-dark); }
.doc2__thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.doc2__pick b { display: block; font-weight: 500; font-size: .9375rem; }
.doc2__pick span span { font-size: .8125rem; color: var(--taupe); }

@media (max-width: 960px) {
  .doc2__feature { grid-template-columns: 1fr; }
  .doc2__photo { max-width: 460px; }
  .doc2__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .doc2__row { grid-template-columns: 1fr; } }

/* ==========================================================
   OPTION 3 · Profiles with specialty filter (stone surface)
   ========================================================== */
.doc3 { background: #EDE6DD; color: var(--ink); }
.doc3 .doc__intro, .doc3 .doc__meta { color: var(--ink-soft); }
.doc3__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.doc3__filter {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid #CFC3B5;
  background: transparent; color: var(--ink); font: 500 .9375rem var(--font); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.doc3__filter:hover { border-color: var(--ink); }
.doc3__filter[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--sand); }

.doc3__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.doc3__card {
  display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center;
  padding: 24px; border-radius: 18px; background: #FBF8F4; border: 1px solid #E2DBD3;
}
.doc3__card[hidden] { display: none; }
.doc3__photo { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; }
.doc3 .doc__role { color: #6E553A; }
.doc3__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-soft); }
.doc3__facts li { display: inline-flex; align-items: center; gap: 6px; }
.doc3__facts .ico svg { width: 16px; height: 16px; stroke-width: 1.75; color: #8B6F4E; }
.doc3__cta { display: inline-flex; margin-top: 14px; font-weight: 500; font-size: .9375rem; color: var(--ink); border-bottom: 1px solid rgba(33, 32, 30, .3); padding-bottom: 2px; }
.doc3__cta:hover { border-bottom-color: var(--ink); }
.doc3__empty { margin: 8px 0 0; color: var(--ink-soft); }

@media (max-width: 900px) { .doc3__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .doc3__card { grid-template-columns: 1fr; text-align: left; }
  .doc3__photo { width: 88px; height: 88px; }
}

/* ==========================================================
   Brief 12/11 lần 2 (đề Sếp): name in a bold weight, roomy spacing.
   Options 4–6 keep option 1's light, portrait-led feel.
   ========================================================== */
.doc__strong { margin: 0; font-family: var(--font); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; }
.doc__deg { margin: 6px 0 0; font-size: .9375rem; font-weight: 500; }
.doc__exp { margin: 4px 0 0; font-size: .875rem; }

/* ---------- OPTION 4 · Doctor cards: portrait + bold name + small certificate icons (flat, bright) ---------- */
.doc4 { background: #FAF8F5; color: var(--ink); }
.doc4 .doc__intro, .doc4 .doc__exp { color: var(--ink-soft); }
.doc4__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.doc4__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #E9E2D9; }
.doc4__reveal {
  position: absolute; inset: auto 0 0 0; padding: 22px 20px 20px;
  background: linear-gradient(0deg, rgba(23, 22, 20, .88) 0%, rgba(23, 22, 20, .6) 70%, rgba(23, 22, 20, 0) 100%);
  color: var(--on-dark); font-size: .875rem; line-height: 1.55;
  opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.doc4__reveal a { display: inline-flex; margin-top: 10px; font-weight: 500; color: var(--sand); }
.doc4__item:hover .doc4__reveal, .doc4__item:focus-within .doc4__reveal { opacity: 1; transform: none; }
.doc4__body { padding: 22px 2px 0; }
.doc4 .doc__deg { color: #6E553A; }
.doc4__certs { display: flex; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px solid #E5DED5; }
.doc4__certs li { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #F1EBE3; color: #8B6F4E; }
.doc4__certs svg { width: 17px; height: 17px; stroke-width: 1.75; }
@media (hover: none) {
  .doc4__reveal { position: static; opacity: 1; transform: none; background: none; color: var(--ink-soft); padding: 12px 2px 0; }
  .doc4__reveal a { color: #6E553A; }
}
@media (max-width: 1024px) { .doc4__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; } }
@media (max-width: 520px)  { .doc4__grid { grid-template-columns: 1fr; } }

/* ---------- OPTION 5 · Circle avatars, medical-green ring, everything centred ---------- */
.doc5 { --med: #1F8A78; background: #F4F1EE; color: var(--ink); text-align: center; }
.doc5 .doc__head { justify-content: center; }
.doc5 .doc__head > div { margin-inline: auto; }
.doc5 .doc__intro, .doc5 .doc__exp { color: var(--ink-soft); }
.doc5__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 40px; margin: 0; padding: 0; list-style: none; }
.doc5__ring {
  width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto 28px; padding: 6px; border-radius: 50%;
  border: 3px solid var(--med); background: #fff;
  transition: box-shadow .3s var(--ease);
}
.doc5__ring .doc-img { border-radius: 50%; object-position: 50% 22%; }
.doc5__item:hover .doc5__ring { box-shadow: 0 0 0 8px rgba(31, 138, 120, .12); }
.doc5 .doc__deg { color: var(--med); }
.doc5__cta { display: inline-flex; margin-top: 16px; font-weight: 500; font-size: .9375rem; color: var(--ink); border-bottom: 1px solid rgba(33, 32, 30, .3); padding-bottom: 2px; }
.doc5__cta:hover { border-bottom-color: var(--ink); }
@media (max-width: 1024px) { .doc5__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .doc5__grid { grid-template-columns: 1fr; gap: 48px; } .doc5__ring { width: 200px; } }

/* ---------- OPTION 6 · Editorial: staggered photos, floating info card + quote ---------- */
.doc6 { background: #EFEAE3; color: var(--ink); }
.doc6 .doc__intro { color: var(--ink-soft); }
.doc6__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 clamp(48px, 7vw, 120px); margin: 0; padding: 0; list-style: none; }   /* start: items keep their own height so cards stay on their photo */
.doc6__item { position: relative; padding-bottom: clamp(120px, 12vw, 160px); }
.doc6__item:nth-child(even) { margin-top: clamp(80px, 12vw, 180px); }      /* stagger */
.doc6__photo { width: 78%; aspect-ratio: 4 / 5; border-radius: 4px 120px 4px 4px; overflow: hidden; }
.doc6__item:nth-child(even) .doc6__photo { margin-left: auto; border-radius: 120px 4px 4px 4px; }
.doc6__card {
  position: absolute; right: 0; bottom: clamp(40px, 5vw, 64px); width: 62%; padding: 28px 28px 26px;
  border-radius: 14px; background: #FFFDFA;
  box-shadow: 0 2px 6px rgba(33, 32, 30, .05), 0 24px 56px rgba(33, 32, 30, .14);
}
.doc6__item:nth-child(even) .doc6__card { right: auto; left: 0; }
.doc6 .doc__strong { font-size: 1.375rem; }
.doc6 .doc__deg { color: #6E553A; }
.doc6 .doc__exp { color: var(--ink-soft); }
.doc6__quote {
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #E5DED5;
  font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 1.125rem; line-height: 1.5; color: var(--ink);
}
@media (max-width: 900px) {
  .doc6__grid { grid-template-columns: 1fr; }
  .doc6__item:nth-child(even) { margin-top: 0; }
}
@media (max-width: 560px) {
  .doc6__item { padding-bottom: 0; margin-bottom: 56px; }
  .doc6__photo, .doc6__item:nth-child(even) .doc6__photo { width: 86%; margin-left: 0; }
  .doc6__item:nth-child(even) .doc6__photo { margin-left: auto; }
  .doc6__card, .doc6__item:nth-child(even) .doc6__card { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -64px 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .doc4__reveal { transition: none; } }

/* ==========================================================
   Options 7–9 · editorial direction of option 6, with fuller doctor profiles
   ========================================================== */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 28px 0 0; }
.facts div { padding-top: 12px; border-top: 1px solid #DDD4C9; }
.facts dt { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: #8B6F4E; }
.facts dd { margin: 4px 0 0; font-size: .9375rem; line-height: 1.55; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 6px 12px; border-radius: 999px; background: #F1EBE3; border: 1px solid #E3D9CC; font-size: .8125rem; color: #5E4A33; }

/* ---------- OPTION 7 · Alternating full-width profile spreads ---------- */
.doc7 { background: #F6F2ED; color: var(--ink); }
.doc7 .doc__intro { color: var(--ink-soft); }
.doc7__list { display: grid; gap: clamp(96px, 12vw, 176px); margin: 0; padding: 0; list-style: none; }
.doc7__spread { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); align-items: center; }
.doc7__spread:nth-child(even) .doc7__media { order: 2; }
.doc7__media { position: relative; }
.doc7__media::before {          /* offset sand block behind the photo */
  content: ""; position: absolute; inset: 36px -24px -24px 36px; z-index: 0;
  border-radius: 4px 140px 4px 4px; background: #E3D6C5;
}
.doc7__spread:nth-child(even) .doc7__media::before { inset: 36px 36px -24px -24px; border-radius: 140px 4px 4px 4px; }
.doc7__photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 4px 140px 4px 4px; overflow: hidden; }
.doc7__spread:nth-child(even) .doc7__photo { border-radius: 140px 4px 4px 4px; }
.doc7 .doc__strong { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.15; }
.doc7 .doc__deg { margin-top: 10px; font-size: 1rem; color: #6E553A; }
.doc7__quote {
  margin: 28px 0 0; font-family: var(--font-accent); font-style: italic; font-weight: 300;
  font-size: clamp(1.375rem, 1.1rem + .8vw, 1.875rem); line-height: 1.35; letter-spacing: -.01em; color: var(--ink);
}
.doc7__bio { margin: 22px 0 0; max-width: 58ch; font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--ink-soft); }
.doc7 .tags { margin-top: 26px; }
.doc7__cta { margin-top: 32px; }
@media (max-width: 900px) {
  .doc7__spread { grid-template-columns: 1fr; }
  .doc7__spread:nth-child(even) .doc7__media { order: 0; }
  .doc7__media { max-width: 420px; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- OPTION 8 · Option 6 layout + slide-in full profile ---------- */
.doc8 .doc6__card { padding-bottom: 22px; }
.doc8__open {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 .9375rem var(--font); color: #6E553A; border-bottom: 1px solid rgba(110, 85, 58, .35); padding-bottom: 2px;
}
.doc8__open:hover { color: var(--ink); border-bottom-color: var(--ink); }
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; overflow-y: auto;
  background: #FBF8F4; color: var(--ink); box-shadow: -24px 0 60px rgba(0, 0, 0, .25);
}
.drawer::backdrop { background: rgba(23, 22, 20, .55); }
.drawer[open] { animation: drawer-in .35s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__photo { aspect-ratio: 16 / 11; overflow: hidden; }
.drawer__body { padding: 32px clamp(24px, 4vw, 44px) 44px; }
.drawer .doc__strong { font-size: 1.75rem; }
.drawer .doc__deg { color: #6E553A; }
.drawer__bio { margin: 18px 0 0; font-size: 1rem; font-weight: 300; line-height: 1.75; color: var(--ink-soft); }
.drawer h4 { margin: 28px 0 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; color: #8B6F4E; }
.drawer__creds { margin: 0; padding: 0; list-style: none; }
.drawer__creds li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E5DED5; font-size: .9375rem; }
.drawer__creds svg { width: 18px; height: 18px; color: #8B6F4E; flex-shrink: 0; margin-top: 2px; }
.drawer__close {
  position: sticky; top: 14px; float: right; z-index: 2; margin: 14px 14px -58px 0;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(23, 22, 20, .7); color: #fff; font-size: 1.375rem; line-height: 1;
}
.drawer .hero__actions { margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }

/* ---------- OPTION 9 · Horizontal editorial strip with scroll-snap ---------- */
.doc9 { background: #EFEAE3; color: var(--ink); overflow: hidden; }
.doc9 .doc__intro { color: var(--ink-soft); }
.doc9__nav { display: flex; gap: 10px; }
.doc9__btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid #CFC3B5; background: transparent; cursor: pointer;
  font-size: 1.25rem; color: var(--ink); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.doc9__btn:hover { background: var(--night); color: var(--sand); border-color: var(--night); }
.doc9__btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ink); border-color: #CFC3B5; }
.doc9__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 400px); gap: 32px;
  margin: 0 -24px; padding: 4px 24px 24px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: thin;
}
.doc9__card { scroll-snap-align: start; display: flex; flex-direction: column; }
.doc9__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 4px 100px 4px 4px; overflow: hidden; }
.doc9__photo blockquote {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 60px 24px 22px;
  background: linear-gradient(0deg, rgba(23, 22, 20, .85) 0%, rgba(23, 22, 20, 0) 100%);
  font-family: var(--font-accent); font-style: italic; font-weight: 300; font-size: 1.125rem; line-height: 1.45; color: #F6F2EC;
}
.doc9__body { padding: 24px 4px 0; }
.doc9 .doc__deg { color: #6E553A; }
.doc9 .facts { grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 20px; }
.doc9 .tags { margin-top: 18px; }
.doc9 .doc5__cta { margin-top: 20px; }
