/* =============================
   한의원 홈페이지 - 메인 스타일
   ============================= */

:root {
  --primary: #acd8ea;
  --primary-light: #d4edf7;
  --primary-dark: #7ab9ce;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg-light: #f6fafe;
  --bg-section: #f3f9fd;
  --text-dark: #1e2d3d;
  --text-muted: #5a7080;
  --white: #ffffff;
  --border: #deeef8;
  --font-main: 'Nanum Gothic', 'Apple SD Gothic Neo', sans-serif;
  --font-serif: 'Nanum Gothic', 'Apple SD Gothic Neo', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ========= 공통 ========= */
section {
  padding: 120px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .badge-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: rgba(45, 106, 79, 0.1);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.divider {
  width: 44px;
  height: 3px;
  background: var(--primary);
  margin: 18px auto 0;
  border-radius: 2px;
}

/* ========= 네비게이션 ========= */
#mainNav {
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}

#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

#mainNav .navbar-brand {
  text-decoration: none;
}

#mainNav .brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  transition: color 0.35s;
  letter-spacing: -0.01em;
}

#mainNav.scrolled .brand-name {
  color: var(--text-dark);
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.8) !important;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 13px !important;
  transition: color 0.2s;
}

#mainNav.scrolled .nav-link {
  color: #445d6b !important;
}

#mainNav .nav-link:hover {
  color: rgba(255,255,255,1) !important;
}

#mainNav.scrolled .nav-link:hover {
  color: var(--text-dark) !important;
}

#mainNav .nav-link-reserve {
  font-weight: 600;
  color: rgba(255,255,255,0.9) !important;
  transition: color 0.2s, transform 0.2s;
}

#mainNav.scrolled .nav-link-reserve {
  color: #141f2d !important;
}

#mainNav.scrolled .nav-link-reserve:hover {
  transform: translateX(3px);
}

/* ========= 히어로 배너 ========= */
#hero {
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 72px;
  min-height: 100vh;
  padding: 120px 0 80px;
}

.hero-text {
  flex: 0 0 52%;
}

.hero-photo {
  flex: 1;
  overflow: hidden;
}

.hero-photo-placeholder {
  aspect-ratio: 4/5;
  background: #dce5e9;
  width: 100%;
}

.hero-photo-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 78% 50%;
  display: block;
  transform: scale(1.08);
  transform-origin: 78% 20%;
}

.hero-greeting {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 28px;
  white-space: nowrap;
}
@media (max-width: 991px) {
  .hero-greeting { white-space: normal; word-break: keep-all; }
}

.hero-title {
  font-size: clamp(2.5rem, 4.5vw, 3.375rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 32px;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.hero-desc {
  font-size: 1.06rem;
  color: #34383a;
  margin: 0;
  max-width: 480px;
  line-height: 1.8;
  font-weight: 400;
  word-break: keep-all;
}

.hero-book-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.hero-book-arrow {
  display: inline-block;
  color: #9aadba;
  transition: transform 0.22s ease, color 0.22s;
}

.hero-book-link:hover {
  color: var(--primary-dark);
}

.hero-book-link:hover .hero-book-arrow {
  transform: translateX(5px);
  color: var(--primary-dark);
}

@media (max-width: 991px) {
  .hero-inner {
    flex-direction: column;
    gap: 56px;
    min-height: auto;
    padding: 100px 0 72px;
  }
  .hero-text { flex: none; width: 100%; }
  .hero-photo { width: 100%; }
  .hero-photo-placeholder { aspect-ratio: 3/2; }
  .hero-photo-img { aspect-ratio: 3/2; object-position: 50% 65%; }
}

@media (max-width: 767px) {
  .hero-title { font-size: clamp(2.25rem, 8vw, 2.625rem); }
}

/* ========= 네비 — 드롭다운 ========= */
#mainNav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px 0;
  min-width: 160px;
}

#mainNav .dropdown-item {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 9px 18px;
  transition: color 0.2s, background 0.2s;
}

#mainNav .dropdown-item:hover,
#mainNav .dropdown-item:focus {
  color: var(--text-dark);
  background: rgba(0,0,0,0.04);
}

/* MENU 토글 텍스트 */
.nav-menu-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  transition: color 0.35s;
}

#mainNav.scrolled .nav-menu-label {
  color: var(--text-dark);
}

/* 모바일 연락처 블록 */
.nav-mobile-contacts {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  padding-top: 12px;
  padding-bottom: 8px;
}

.nav-mobile-contact-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted) !important;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.2s;
}

.nav-mobile-contact-link:last-child {
  border-bottom: none;
}

.nav-mobile-contact-link:hover {
  color: var(--text-dark) !important;
}

@media (max-width: 991px) {
  .nav-mobile-contacts {
    display: flex;
  }
}

/* ========= 흰 배경 히어로 페이지 네비 ========= */
.white-hero #mainNav {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 0;
}
.white-hero #mainNav .brand-name        { color: #141f2d; }
.white-hero #mainNav .nav-link          { color: #445d6b !important; }
.white-hero #mainNav .nav-link:hover    { color: var(--text-dark) !important; }
.white-hero #mainNav .nav-link-reserve  { color: #141f2d !important; font-weight: 600; }
.white-hero #mainNav .nav-link-reserve:hover { transform: translateX(3px); }
.white-hero #mainNav .nav-menu-label    { color: var(--text-dark); }

/* ========= 통계 바 ========= */
#stats {
  background: var(--primary-dark);
  padding: 50px 0;
}

/* 통계 섹션 숫자 강조 */
#stats .stat-item .number span {
  color: var(--accent-light);
}

.stat-item {
  text-align: center;
  padding: 10px 0;
}

.stat-item .number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .number span {
  color: var(--accent-light);
}

.stat-item .label {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  margin: auto;
}

/* ========= 한의원 소개 ========= */
#about {
  background: var(--white);
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 460px;
  background: #d4eef8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-placeholder {
  font-size: 6rem;
  opacity: 0.35;
}

.about-tag {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--primary);
  color: white;
  border-radius: 14px;
  padding: 16px 22px;
}

.about-tag .num {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
}

.about-tag .txt {
  font-size: 0.8rem;
  opacity: 0.85;
}

.about-content {
  padding-left: 50px;
}

.about-content h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-content h2 em {
  font-style: normal;
  color: var(--primary);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.about-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.about-feature-item i {
  color: var(--primary);
  font-size: 1rem;
}

.btn-about {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-about:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

/* ========= 진료 과목 ========= */
#services {
  background: var(--bg-section);
}

.service-card {
  background: white;
  border-radius: 18px;
  padding: 36px 28px;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

a.service-card:hover {
  color: var(--text-dark);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(172,216,234,0.18);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(172,216,234,0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  font-size: 0.75rem;
  background: rgba(172,216,234,0.12);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: 18px;
  transition: gap 0.2s;
}

.service-link:hover {
  color: var(--primary-dark);
  gap: 10px;
}

/* ========= 진료 철학 (OUR APPROACH) ========= */
#approach {
  background: #fafaf8;
  padding: 88px 0;
}

.approach-header {
  margin-bottom: 48px;
}

.approach-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.approach-header h2 {
  font-size: clamp(1.75rem, 2.75vw, 2.0625rem);
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
  word-break: keep-all;
}

.approach-wrapper {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.approach-col {
  flex: 1;
  padding: 0 40px;
}

.approach-col:first-child {
  padding-left: 0;
}

.approach-col:last-child {
  padding-right: 0;
}

.approach-sep {
  width: 1px;
  background: #e4eaed;
  flex-shrink: 0;
  margin: 4px 0;
}

.approach-num {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

.approach-col h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.4;
  word-break: keep-all;
}

.approach-col p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

@media (max-width: 767px) {
  #approach {
    padding: 64px 0;
  }

  .approach-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .approach-sep {
    width: 100%;
    height: 1px;
    margin: 32px 0;
  }

  .approach-col {
    padding: 0;
  }
}

/* ========= 진료 분야 (OUR CARE) ========= */
#services {
  padding: 120px 0;
  background: white;
}

.care-header {
  margin-bottom: 64px;
}

.care-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.care-header h2 {
  font-size: clamp(2.25rem, 3.5vw, 2.625rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.care-header p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}

.care-row {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
}

.care-row-secondary {
  border-bottom: 1px solid #d0dae1;
  margin-top: 0;
}

.care-sep {
  width: 1px;
  background: #d0dae1;
  flex-shrink: 0;
}

.care-col {
  flex: 1;
  padding: 44px 36px;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.care-col:first-child {
  padding-left: 0;
}

.care-col:last-child {
  padding-right: 0;
}

.care-row-secondary .care-col {
  padding-top: 44px;
  padding-bottom: 44px;
}

.care-num {
  display: block;
  font-size: 0.813rem;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 14px;
}

.care-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.35;
  transition: color 0.2s;
}

.care-row-secondary .care-title {
  font-size: 1.75rem;
  font-weight: 600;
}

.care-arrow {
  font-size: 0.82rem;
  color: #9aadba;
  transition: transform 0.22s ease, color 0.22s;
  display: inline-block;
  flex-shrink: 0;
}

.care-col > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

.care-row-secondary .care-col > p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* hover */
.care-col:hover .care-title {
  color: var(--primary-dark);
}

.care-col:hover .care-arrow {
  transform: translate(4px, -4px);
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  #services {
    padding: 88px 0;
  }

  .care-row,
  .care-row-secondary {
    flex-direction: column;
  }

  .care-row-secondary {
    margin-top: 0;
    border-top: none;
  }

  .care-sep {
    width: 100%;
    height: 1px;
  }

  .care-col {
    padding: 36px 0;
  }

  .care-row-secondary .care-col {
    padding: 36px 0;
  }
}

/* ========= 한약 진료 (HERBAL MEDICINE) ========= */
#herbal {
  padding: 112px 0;
  background: #f7f5f2;
}

.herbal-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.herbal-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 28px;
}

.herbal-title {
  font-size: clamp(2.25rem, 3.8vw, 2.875rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 36px;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.herbal-desc {
  font-size: 1.1rem;
  color: #34383a;
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
}

.herbal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.herbal-link-arrow {
  display: inline-block;
  color: #9aadba;
  transition: transform 0.22s ease, color 0.22s;
}

.herbal-link:hover {
  color: var(--primary-dark);
}

.herbal-link:hover .herbal-link-arrow {
  transform: translateX(4px);
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  #herbal {
    padding: 88px 0;
  }
}

/* ========= 진료실 이야기 (FROM THE CLINIC) ========= */
#blog {
  padding: 120px 0;
  background: white;
}

.clinic-story-header {
  margin-bottom: 64px;
}

.clinic-story-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.clinic-story-header h2 {
  font-size: clamp(2.25rem, 3.5vw, 2.625rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.clinic-story-header p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}

.clinic-story-row {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
  margin-bottom: 64px;
}

.clinic-story-sep {
  width: 1px;
  background: #d0dae1;
  flex-shrink: 0;
}

.clinic-story-col {
  flex: 1;
  padding: 44px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.clinic-story-col:first-child {
  padding-left: 0;
}

.clinic-story-col:last-child {
  padding-right: 0;
}

.clinic-story-cat {
  display: block;
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.clinic-story-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 20px;
  transition: color 0.2s;
  word-break: keep-all;
}

.clinic-story-col > p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0 0 28px;
  flex: 1;
}

.clinic-story-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 400;
  color: #8fa5b2;
  margin-top: auto;
  transition: color 0.2s;
}

.clinic-story-read-arrow {
  display: inline-block;
  transition: transform 0.22s ease, color 0.22s;
}

.clinic-story-col:visited .clinic-story-title,
.clinic-story-col:focus .clinic-story-title,
.clinic-story-col:focus-visible .clinic-story-title {
  color: var(--text-dark);
}

.clinic-story-col:hover .clinic-story-title {
  color: var(--primary-dark);
}

.clinic-story-col:hover .clinic-story-read {
  color: var(--primary-dark);
}

.clinic-story-col:hover .clinic-story-read-arrow {
  transform: translate(3px, -3px);
}

.clinic-story-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.clinic-story-more-arrow {
  display: inline-block;
  color: #9aadba;
  transition: transform 0.22s ease, color 0.22s;
}

.clinic-story-more-link:hover {
  color: var(--primary-dark);
}

.clinic-story-more-link:hover .clinic-story-more-arrow {
  transform: translateX(4px);
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  #blog {
    padding: 88px 0;
  }

  .clinic-story-header {
    margin-bottom: 48px;
  }

  .clinic-story-row {
    flex-direction: column;
    margin-bottom: 40px;
  }

  .clinic-story-sep {
    width: 100%;
    height: 1px;
  }

  .clinic-story-col {
    padding: 36px 0;
  }
}

/* ========= 진료하는 사람들 (PEOPLE) ========= */
#doctor { padding: 120px 0; background: white; }
.people-header { margin-bottom: 64px; }
.people-label { display: block; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary-dark); font-weight: 600; margin-bottom: 14px; }
.people-header h2 { font-size: clamp(2.25rem, 3.5vw, 2.625rem); font-weight: 500; color: var(--text-dark); margin: 0; }
.people-row { display: flex; flex-direction: row; gap: 20px; }
/* button reset + existing layout */
.people-item { background: none; border: none; padding: 0; text-align: left; flex: 1; text-decoration: none; color: inherit; display: flex; flex-direction: column; cursor: pointer; }
.people-photo-wrap { overflow: hidden; margin-bottom: 0; position: relative; width: 100%; aspect-ratio: 2/3; flex-shrink: 0; }
.people-photo { width: 100%; height: 100%; display: block; background: #e2eaef; object-fit: cover; object-position: center top; }
.people-photo-jeon { object-position: center top; }
.people-photo-park { object-position: center top; }
.people-photo-lee  { object-position: center top; }
.people-info { padding-top: 20px; }
.people-name-row { display: flex; align-items: baseline; }
.people-name { font-size: 1.2rem; font-weight: 600; color: var(--text-dark); transition: color 0.2s; }
.people-specialty { display: block; font-size: 0.875rem; color: var(--text-muted); margin-top: 5px; }
.people-item:hover .people-name,
.people-item:focus-visible .people-name { color: var(--primary-dark); }
.people-item:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 4px; border-radius: 2px; }

/* 약력 오버레이 */
.people-bio-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.88);
  display: flex; flex-direction: column;
  padding: 28px 22px 24px;
  opacity: 0; transition: opacity 0.25s ease;
  pointer-events: none; overflow-y: auto;
  box-sizing: border-box;
}
/* 데스크톱 hover (실제 포인터 기기에만) */
@media (hover: hover) {
  .people-item:hover .people-bio-overlay { opacity: 1; pointer-events: auto; }
}
/* 키보드 focus, JS 토글 */
.people-item:focus-visible .people-bio-overlay,
.people-item.people-bio--open .people-bio-overlay { opacity: 1; pointer-events: auto; }

.people-bio-name { display: block; font-size: 1.06rem; font-weight: 700; color: #1e2d3d; margin-bottom: 14px; letter-spacing: -0.01em; }
.people-bio-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.people-bio-list li { font-size: 0.8125rem; color: #444; line-height: 1.6; padding-left: 13px; position: relative; word-break: keep-all; }
.people-bio-list li::before { content: '–'; position: absolute; left: 0; color: #c0c8ce; }

@media (max-width: 767px) {
  #doctor { padding: 88px 0; }
  .people-row { flex-direction: column; gap: 48px; }
  .people-photo-wrap { aspect-ratio: 4/5; }
  .people-bio-overlay { padding: 22px 18px 20px; }
  .people-bio-name { font-size: 1rem; margin-bottom: 10px; }
  .people-bio-list li { font-size: 0.8rem; }
}

/* ========= 오시는 길 (VISIT) ========= */
#visit { padding: 120px 0 80px; background: #fafaf8; }
.visit-header { margin-bottom: 64px; }
.visit-label { display: block; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--primary-dark); font-weight: 600; margin-bottom: 14px; }
.visit-header h2 { font-size: clamp(2.25rem, 3.5vw, 2.625rem); font-weight: 400; color: var(--text-dark); margin: 0; letter-spacing: -0.01em; }
.visit-body { display: flex; flex-direction: row; gap: 64px; align-items: flex-start; }
.visit-map-col { flex: 0 0 55%; }
.visit-map-wrap { aspect-ratio: 4/3; width: 100%; position: relative; overflow: hidden; background: #dde4e8; }
.visit-map-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.visit-map-fallback { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: #f0f3f5; }
.visit-map-fallback.visible { display: flex; }
.visit-map-fallback-text { font-size: 0.9rem; color: var(--text-muted); }
.visit-map-fallback-link { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.2s; }
.visit-map-fallback-link:hover { color: var(--primary-dark); }
.visit-map-link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; margin-top: 14px; transition: color 0.2s; }
.visit-map-link:hover { color: var(--primary-dark); }
.visit-map-link-arrow { display: inline-block; font-size: 0.78rem; color: #9aadba; transition: transform 0.22s ease, color 0.22s; }
.visit-map-link:hover .visit-map-link-arrow { transform: translate(3px, -3px); color: var(--primary-dark); }
.visit-info-col { flex: 1; min-width: 0; }

/* 정보 행 */
.visit-row { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid #d0dae1; align-items: flex-start; }
.visit-row:first-child { border-top: none; padding-top: 0; }
.visit-row-label { flex: 0 0 52px; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--primary-dark); font-weight: 700; padding-top: 3px; word-break: keep-all; line-height: 1.5; }
.visit-row-content { flex: 1; display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.visit-row-content--col { flex-direction: column; gap: 6px; }
.visit-row-inline { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.visit-row-text { font-size: 0.975rem; color: var(--text-dark); line-height: 1.65; word-break: keep-all; }
.visit-row-link { text-decoration: none; transition: color 0.2s; }
.visit-row-link:hover { color: var(--primary-dark); }
.visit-row-sub { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; word-break: keep-all; margin: 0; }
.visit-copy-btn { background: none; border: none; padding: 4px 6px; cursor: pointer; color: #aabcc8; flex-shrink: 0; display: flex; align-items: center; margin-left: auto; transition: color 0.2s; }
.visit-copy-btn:hover { color: var(--primary-dark); }
.visit-copy-feedback { display: block; font-size: 0.8rem; color: var(--primary-dark); max-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.3s ease, max-height 0.3s ease; pointer-events: none; }
.visit-copy-feedback.visible { max-height: 2em; opacity: 1; margin-top: 4px; }
.visit-icon-link { color: #aabcc8; display: flex; align-items: center; flex-shrink: 0; margin-left: auto; padding: 4px 6px; transition: color 0.2s; }
.visit-icon-link:hover { color: var(--primary-dark); }
.visit-hours-grid { display: grid; grid-template-columns: max-content 1fr; column-gap: 16px; row-gap: 8px; margin-bottom: 10px; }
.visit-hours-grid span { font-size: 0.975rem; color: var(--text-dark); line-height: 1.5; }

/* Quick Actions */
.visit-qa { display: flex; margin-top: 52px; border-top: 1px solid #d0dae1; border-bottom: 1px solid #d0dae1; }
.visit-qa-item { flex: 1; display: flex; align-items: center; gap: 14px; padding: 28px 20px; text-decoration: none; color: var(--text-dark); border-right: 1px solid #d0dae1; transition: background 0.18s ease; }
.visit-qa-item:last-child { border-right: none; }
.visit-qa-item:hover { background: #f4f7f9; }
.visit-qa-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--text-muted); }
.visit-qa-icon--naver { font-size: 1.15rem; font-weight: 800; font-style: italic; color: #03c75a; }
.visit-qa-icon--kakao { color: #3d2a14; }
.visit-qa-label { flex: 1; font-size: 0.975rem; font-weight: 500; color: var(--text-dark); }
.visit-qa-arrow { font-size: 0.8rem; color: #9aadba; display: inline-block; transition: transform 0.22s ease; }
.visit-qa-item:hover .visit-qa-arrow { transform: translate(3px, -3px); color: var(--primary-dark); }

@media (max-width: 991px) {
  #visit { padding: 88px 0 60px; }
  .visit-body { flex-direction: column; gap: 48px; }
  .visit-map-col { flex: none; width: 100%; }
  .visit-qa { flex-direction: column; }
  .visit-qa-item { border-right: none; border-top: 1px solid #d0dae1; padding: 22px 0; }
  .visit-qa-item:first-child { border-top: none; }
}
@media (max-width: 767px) {
  .visit-row-label { flex: 0 0 46px; font-size: 0.7rem; }
  .visit-hours-grid { column-gap: 14px; }
}

/* ========= 치료 특징 ========= */
#features {
  background: white;
}

.feature-row {
  align-items: center;
}

.feature-img {
  background: #96c8dc;
  border-radius: 20px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  opacity: 0.5;
  position: relative;
  overflow: hidden;
}

.feature-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: rgba(58, 157, 197, 0.15);
}

.feature-list {
  padding-left: 50px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(172,216,234,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ========= 의료진 ========= */
#doctor {
  background: var(--bg-section);
}

.doctor-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.doctor-img {
  background: #d4eef8;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7rem;
  opacity: 0.5;
}

.doctor-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.doctor-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.doctor-position {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 24px;
}

.doctor-career {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.doctor-career li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.doctor-career li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.doctor-quote {
  background: rgba(172,216,234,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.75;
}

/* ========= 후기 ========= */
#reviews {
  background: #7ab9ce;
  padding: 90px 0;
}

#reviews .section-title .badge-label {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
}

#reviews .section-title h2 {
  color: white;
}

#reviews .section-title p {
  color: rgba(255,255,255,0.6);
}

#reviews .divider {
  background: var(--accent-light);
}

.review-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 30px;
  height: 100%;
}

.review-stars {
  color: var(--accent-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.review-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 1rem;
}

.review-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.review-author-info {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ========= 공지 & 칼럼 ========= */
#news {
  background: white;
}

.news-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.93rem;
  padding: 10px 22px;
  border-radius: 25px;
  border: none;
  transition: all 0.2s;
}

.news-tabs .nav-link.active {
  background: var(--primary);
  color: white;
}

.news-list {
  border-top: 2px solid var(--primary);
  margin-top: 24px;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}

.news-item:hover {
  padding-left: 8px;
}

.news-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(172,216,234,0.12);
  color: var(--primary);
}

.news-title-text {
  flex: 1;
  font-size: 0.93rem;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-item:hover .news-title-text {
  color: var(--primary);
}

/* ========= 예약 CTA ========= */
#cta {
  background: #96c8dc;
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

#cta h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}

#cta p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}

.btn-cta-primary {
  background: white;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-primary:hover {
  background: var(--bg-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-cta-secondary {
  background: transparent;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.97rem;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  color: white;
}

.cta-info-row {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.cta-info-item {
  text-align: center;
  color: rgba(255,255,255,0.8);
}

.cta-info-item .ci-label {
  font-size: 0.77rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.cta-info-item .ci-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: white;
}

/* ========= 푸터 ========= */
footer {
  background: #2d2b28;
  padding: 60px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-clinic-name {
  font-size: 1.06rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-address {
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.58);
  font-style: normal;
}

.footer-links-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.footer-links-wrap a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links-wrap a:hover {
  color: rgba(255,255,255,0.78);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.44);
}

.footer-policy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.44);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-policy:hover {
  color: rgba(255,255,255,0.55);
}

.footer-contact-link {
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: rgba(255,255,255,0.78);
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links-wrap {
    align-items: flex-start;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ========= 플로팅 버튼 ========= */
#floatBtns {
  position: fixed;
  bottom: 30px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

#floatBtns.visible {
  opacity: 1;
  transform: translateY(0);
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-kakao {
  background: #fee500;
  color: #3a1d1d;
}

.float-call {
  background: var(--primary);
  color: white;
}

.float-top {
  background: rgba(255,255,255,0.9);
  color: var(--text-dark);
}

/* ========= 서브페이지 공통 ========= */

/* 서브페이지에서 nav는 처음부터 흰색 고정 */
.sub-page #mainNav {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 14px 0;
}
.sub-page #mainNav .brand-name       { color: #141f2d; }
.sub-page #mainNav .nav-link         { color: #445d6b !important; }
.sub-page #mainNav .nav-link:hover   { color: var(--text-dark) !important; }
.sub-page #mainNav .nav-link-reserve { color: #141f2d !important; font-weight: 600; }
.sub-page #mainNav .nav-link-reserve:hover { transform: translateX(3px); }
.sub-page .navbar-toggler i          { color: var(--text-dark) !important; }

/* 페이지 상단 헤더 (서브페이지 히어로) */
.page-hero {
  background: #acd8ea;
  padding: 120px 0 56px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.page-hero .page-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
}
.page-hero .breadcrumb {
  justify-content: center;
  margin: 0;
}
.page-hero .breadcrumb-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.page-hero .breadcrumb-item.active { color: white; }
.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

/* 일반 콘텐츠 카드 */
.content-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  height: 100%;
}

/* 단계(Step) 뱃지 */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* 아이콘 박스 */
.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(172,216,234,0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

/* 예약 폼 */
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(172,216,234,0.2);
}
.btn-primary-custom {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* 진료 시간표 */
.time-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.time-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.9rem;
}
.time-table td {
  padding: 11px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}
.time-table tr:last-child td { border-bottom: none; }
.time-table tr:nth-child(even) td { background: var(--bg-light); }
.time-off { color: #e74c3c; font-weight: 600; }

/* 후기 카드 (서브페이지용 더 큰 버전) */
.review-card-lg {
  background: white;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid var(--border);
  height: 100%;
  transition: box-shadow 0.25s;
}
.review-card-lg:hover {
  box-shadow: 0 8px 30px rgba(172,216,234,0.2);
}
.review-card-lg .review-stars { color: #f59e0b; margin-bottom: 12px; }
.review-card-lg .review-text  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.85; margin-bottom: 20px; }
.review-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: rgba(172,216,234,0.12);
  color: var(--primary-dark);
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* 오시는 길 지도 자리 */
.map-placeholder {
  background: var(--bg-section);
  border-radius: 16px;
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 2px dashed var(--border);
  font-size: 0.95rem;
}
.map-placeholder i { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; }

/* ========= 반응형 ========= */
@media (max-width: 991.98px) {
  section { padding: 70px 0; }
  .about-content { padding-left: 0; margin-top: 30px; }
  .feature-list { padding-left: 0; margin-top: 30px; }
  .doctor-card { flex-direction: column; }
  .hero-deco { display: none; }
}

@media (max-width: 767.98px) {
  section { padding: 56px 0; }
  .hero-title { font-size: 2rem; }
  .section-title h2 { font-size: 1.65rem; }
  .stat-divider { display: none; }
  .cta-info-row { gap: 20px; }
  .about-features { grid-template-columns: 1fr; }
  #mainNav .navbar-brand .brand-sub { display: none; }
}

/* ========= 교통사고 진료 페이지 (traffic.html) ========= */

/* 현재 페이지 nav 링크 */
.nav-link-current {
  color: var(--text-dark) !important;
}

/* Traffic Intro */
#tr-intro {
  padding: 160px 0 120px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.tr-intro-inner {
  max-width: 660px;
}

.tr-intro-title {
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.tr-intro-desc {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.9;
  margin-bottom: 40px;
  word-break: keep-all;
}

/* 공통 섹션 헤더 */
.tr-header { margin-bottom: 64px; }

.tr-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 14px;
}

.tr-header h2 {
  font-size: clamp(2.25rem, 3.5vw, 2.625rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.35;
  word-break: keep-all;
}

.tr-header p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
}

/* AFTER THE ACCIDENT - 증상 */
#tr-symptoms { background: white; }

.tr-symptom-grid .care-row:last-child {
  border-bottom: 1px solid #d0dae1;
}

.tr-symptom-col h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

/* HOW WE SEE */
#tr-howwesee {
  padding: 140px 0;
  background: #f7f5f2;
}

/* OUR PROCESS - 4열 */
#tr-process { background: #fafaf8; }

.tr-process-wrap {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.tr-process-col {
  flex: 1;
  padding: 0 32px;
}

.tr-process-col:first-child { padding-left: 0; }
.tr-process-col:last-child  { padding-right: 0; }

.tr-process-sep {
  width: 1px;
  background: #d8dfe4;
  flex-shrink: 0;
  margin: 4px 0;
}

.tr-process-col h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.45;
  word-break: keep-all;
}

.tr-process-col p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

/* TREATMENT - 사진 + 텍스트 */
#tr-treatment { background: white; }

.tr-feature-block {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
  margin-top: 40px;
}

.tr-feature-block--reverse {
  flex-direction: row-reverse;
}

.tr-feature-img {
  flex: 0 0 52%;
  overflow: hidden;
  background: #dde4e8;
}

.tr-feature-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 480px;
}

.tr-feature-placeholder {
  width: 100%;
  min-height: 480px;
  background: #dde4e8;
}

.tr-feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}

.tr-feature-item h3 {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 16px;
  word-break: keep-all;
}

.tr-feature-divider {
  border: none;
  border-top: 1px solid #d0dae1;
  margin: 36px 0;
}

.tr-feature-item p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

/* TREATMENT — list + single photo layout */
.tr-treatment-layout {
  display: flex;
  flex-direction: row;
  gap: 72px;
  align-items: flex-start;
}
.tr-treatment-list {
  flex: 1;
}
.tr-treatment-item {
  padding: 28px 0;
  border-bottom: 1px solid #d0dae1;
}
.tr-treatment-item:first-child {
  border-top: 1px solid #d0dae1;
}
.tr-treatment-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  margin-top: 10px;
  line-height: 1.45;
  word-break: keep-all;
}
.tr-treatment-item p {
  font-size: 1rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}
.tr-treatment-photo-wrap {
  flex: 0 0 40%;
  overflow: hidden;
  position: sticky;
  top: 100px;
  align-self: flex-start;
}
.tr-treatment-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 58% center;
  display: block;
}

/* AUTOMOBILE INSURANCE */
#tr-insurance { background: #f3f9fd; padding: 160px 0; }

.tr-insurance-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-top: 56px;
  border-top: 1px solid #d0dae1;
}

.tr-insurance-col-label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 18px;
}

.tr-insurance-col p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.85;
  margin-bottom: 0;
  word-break: keep-all;
}

.tr-insurance-phone {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* FAQ */
#tr-faq { background: white; }

.tr-faq-list { border-top: 1px solid #d0dae1; }

.tr-faq-item { border-bottom: 1px solid #d0dae1; }

.tr-faq-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 28px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.06rem;
  font-weight: 400;
  color: var(--text-dark);
  gap: 20px;
  transition: color 0.2s;
  line-height: 1.5;
}

.tr-faq-btn:hover { color: var(--primary-dark); }

.tr-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-style: normal;
  color: #9aadba;
  transition: transform 0.25s ease, color 0.25s;
  line-height: 1;
}

.tr-faq-btn[aria-expanded="true"] .tr-faq-icon {
  transform: rotate(45deg);
  color: var(--primary-dark);
}

.tr-faq-body {
  padding: 0 56px 32px 0;
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.85;
  word-break: keep-all;
}

/* FINAL CTA */
#tr-final-cta {
  padding: 160px 0;
  background: white;
  border-top: 1px solid var(--border);
  text-align: center;
}

.tr-cta-title {
  font-size: clamp(2.25rem, 3.8vw, 2.875rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 56px;
  letter-spacing: -0.015em;
  word-break: keep-all;
}

.tr-cta-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}

/* HERO — centered */
#tr-intro .tr-intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
#tr-intro .tr-intro-desc {
  margin-bottom: 0;
}

/* SYMPTOMS — 4-column */
.tr-symptom-4col {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
  border-bottom: 1px solid #d0dae1;
}
.tr-symptom-4col .care-col {
  cursor: default;
}
.tr-symptom-4col h3 {
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}

/* HERBAL — 교통사고 한약 */
#tr-herbal {
  background: #f7f5f2;
}
.tr-herbal-inner {
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: center;
}
.tr-herbal-text {
  flex: 1;
}
.tr-herbal-title {
  font-size: clamp(2rem, 3.5vw, 2.625rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.tr-herbal-desc {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.85;
  margin-bottom: 20px;
  word-break: keep-all;
}
.tr-herbal-desc:last-child {
  margin-bottom: 0;
}
.tr-herbal-img {
  flex: 0 0 44%;
  overflow: hidden;
}
.tr-herbal-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #dde4e8;
}
.tr-herbal-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 57% center;
  display: block;
}

/* INSURANCE — 3-step flow */
.tr-ins-steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding-top: 56px;
  border-top: 1px solid #d0dae1;
}
.tr-ins-step {
  flex: 1;
  padding: 0 36px;
}
.tr-ins-step:first-child {
  padding-left: 0;
}
.tr-ins-step:last-child {
  padding-right: 0;
}
.tr-ins-step-num {
  display: block;
  font-size: 0.813rem;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 16px;
}
.tr-ins-step-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  word-break: keep-all;
}
.tr-ins-step-desc {
  font-size: 1rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}
.tr-ins-arrow {
  flex-shrink: 0;
  padding: 0 12px;
  font-size: 1.25rem;
  color: #9aadba;
  align-self: center;
  margin-top: -8px;
}

/* MAP + CTA */
#tr-map-cta {
  padding: 120px 0 0;
  background: white;
  border-top: 1px solid var(--border);
}
.tr-map-header {
  margin-bottom: 48px;
}
.tr-map-heading {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.02em;
  word-break: keep-all;
  margin: 0;
}
.tr-map-cta-desc {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.8;
  margin-bottom: 28px;
  word-break: keep-all;
}
.tr-map-wrap {
  display: flex;
  flex-direction: row;
  min-height: 560px;
}
.tr-map-placeholder {
  flex: 0 0 55%;
  background: #dde4e8;
  min-height: 480px;
}
.tr-map-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  gap: 52px;
}
.tr-map-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tr-map-info-row {
  display: flex;
  gap: 20px;
}
.tr-map-info-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-dark);
  font-weight: 700;
  flex-shrink: 0;
  width: 68px;
  padding-top: 2px;
}
.tr-map-info-val {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  word-break: keep-all;
}
.tr-map-cta-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.tr-map-cta-actions {
  display: flex;
  align-items: center;
  gap: 36px;
}
.tr-map-btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--text-dark);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.tr-map-btn:hover {
  opacity: 0.82;
  color: #ffffff;
}
.tr-map-secondary {
  font-size: 0.94rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.tr-map-secondary:hover {
  color: var(--text-dark);
}

/* ── 상세페이지 공통 예약 CTA ── */
#tr-visit-cta {
  padding: 80px 0 100px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.tr-visit-cta-inner {
  max-width: 600px;
}

.tr-visit-cta-title {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 20px;
  word-break: keep-all;
}

.tr-visit-cta-desc {
  font-size: 1.05rem;
  color: #34383a;
  line-height: 1.85;
  margin-bottom: 36px;
  word-break: keep-all;
}

.tr-visit-cta-links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.tr-visit-link {
  font-size: 1rem;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  padding: 4px 0;
}

.tr-visit-link:hover {
  color: var(--text-dark);
}

@media (max-width: 575.98px) {
  #tr-visit-cta {
    padding: 60px 0 80px;
  }

  .tr-visit-cta-links {
    flex-direction: column;
    gap: 20px;
  }

  .tr-visit-link {
    font-size: 1.05rem;
  }
}

/* 반응형 - traffic.html */
@media (max-width: 991px) {
  #tr-intro { padding: 120px 0 80px; }

  .tr-feature-block,
  .tr-feature-block--reverse {
    flex-direction: column;
    margin-top: 0;
  }

  .tr-feature-img {
    flex: none;
    width: 100%;
  }

  .tr-feature-placeholder,
  .tr-feature-photo {
    min-height: 320px;
  }

  .tr-feature-text {
    padding: 48px 0;
  }

  #tr-insurance { padding: 100px 0; }

  .tr-treatment-layout {
    flex-direction: column;
    gap: 40px;
  }

  .tr-treatment-photo-wrap {
    flex: none;
    width: 100%;
    position: static;
  }

  .tr-treatment-photo {
    aspect-ratio: 16 / 9;
  }

  .tr-herbal-inner {
    flex-direction: column-reverse;
    gap: 48px;
  }

  .tr-herbal-img {
    flex: none;
    width: 100%;
  }

  .tr-ins-steps {
    gap: 0;
  }

  .tr-map-wrap {
    flex-direction: column;
    min-height: auto;
  }

  .tr-map-placeholder {
    flex: none;
    width: 100%;
    min-height: 320px;
  }

  .tr-map-side {
    padding: 64px 0;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .tr-header { margin-bottom: 48px; }

  #tr-intro { padding: 100px 0 64px; }

  .tr-symptom-4col {
    flex-wrap: wrap;
    border-bottom: none;
  }

  .tr-symptom-4col .care-col {
    flex: 0 0 calc(50% - 0.5px);
    padding: 32px 20px;
  }

  .tr-symptom-4col .care-col:first-child,
  .tr-symptom-4col .care-col:nth-child(3) {
    padding-left: 0;
  }

  .tr-symptom-4col .care-col:nth-child(2),
  .tr-symptom-4col .care-col:last-child {
    padding-right: 0;
  }

  .tr-symptom-4col .care-sep {
    display: none;
  }

  .tr-symptom-4col .care-col:nth-child(n+3) {
    border-top: 1px solid #d0dae1;
  }

  .tr-symptom-4col .care-col:nth-child(2) {
    border-left: 1px solid #d0dae1;
  }

  .tr-symptom-4col .care-col:last-child {
    border-left: 1px solid #d0dae1;
    border-bottom: 1px solid #d0dae1;
  }

  .tr-symptom-4col .care-col:nth-child(3) {
    border-bottom: 1px solid #d0dae1;
  }

  .tr-feature-placeholder,
  .tr-feature-photo { min-height: 260px; }

  .tr-treatment-photo {
    aspect-ratio: 3 / 2;
  }

  #tr-herbal { padding: 88px 0; }
  #tr-insurance { padding: 72px 0; }

  .tr-ins-steps {
    flex-direction: column;
    gap: 0;
    padding-top: 40px;
  }

  .tr-ins-step {
    padding: 32px 0;
    border-bottom: 1px solid #d0dae1;
  }

  .tr-ins-step:last-child {
    border-bottom: none;
  }

  .tr-ins-arrow {
    display: none;
  }

  .tr-map-side {
    padding: 56px 0;
    gap: 36px;
  }

  .tr-map-cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .tr-map-btn {
    width: 100%;
    text-align: center;
    padding: 18px 36px;
  }
}

/* 교통사고 — 데스크톱 이미지 wrapper 위치 보정 (transform만 적용) */
@media (min-width: 1024px) {
  .tr-treatment-photo-wrap {
    transform: translateX(35px);
  }

  .tr-herbal-img {
    transform: translateX(45px);
  }
}

/* ========= 다이어트 진료 페이지 (diet.html) ========= */

/* INTRO */
#dt-intro {
  padding: 160px 0 120px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

/* MY CONCERN */
#dt-concern { background: white; }

.dt-concern-grid .care-row:last-child {
  border-bottom: 1px solid #d0dae1;
}

/* HOW WE SEE */
#dt-howwesee {
  padding: 140px 0;
  background: #f7f5f2;
}

.dt-howwesee-photos {
  display: flex;
  gap: 36px;
  margin-top: 72px;
}

.dt-howwesee-fig {
  flex: 1;
  margin: 0;
}

.dt-howwesee-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dt-howwesee-cap {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  word-break: keep-all;
}

.dt-howwesee-cap strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 5px;
}

/* NUBEBE GAMBI */
#dt-gambi { background: #fafaf8; }

.dt-gambi-intro {
  display: flex;
  align-items: center;
  gap: 72px;
  margin-bottom: 64px;
}

.dt-gambi-text { flex: 1; }

.dt-gambi-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 14px 0 22px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.dt-gambi-text p {
  font-size: 1.06rem;
  color: var(--text-muted);
  line-height: 1.75;
  word-break: keep-all;
  margin: 0;
}

.dt-gambi-photo {
  flex: 0 0 420px;
  margin: 0;
}

.dt-gambi-img {
  max-width: 100%;
  max-height: 490px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.dt-gambi-cap {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: keep-all;
  text-align: center;
}

.dt-gambi-items {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
  margin-top: 40px;
}

.dt-gambi-sep {
  width: 1px;
  background: #d0dae1;
  flex-shrink: 0;
}

.dt-gambi-item {
  flex: 1;
  padding: 44px 32px;
}

.dt-gambi-item:first-child { padding-left: 0; }
.dt-gambi-item:last-child  { padding-right: 0; }

.dt-gambi-item h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 16px;
  word-break: keep-all;
}

.dt-gambi-item p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

/* DIET PROCESS */
#dt-process { background: white; }

.dt-process-row {
  display: flex;
  flex-direction: row;
  gap: 0;
}

.dt-process-sep {
  width: 1px;
  background: #d8dfe4;
  flex-shrink: 0;
  margin: 4px 0;
}

.dt-process-col {
  flex: 1;
  padding: 0 32px;
}

.dt-process-col:first-child { padding-left: 0; }
.dt-process-col:last-child  { padding-right: 0; }

.dt-process-row-sep {
  border: none;
  border-top: 1px solid #d0dae1;
  margin: 56px 0;
}

.dt-process-col h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 14px;
  margin-top: 16px;
  line-height: 1.45;
  word-break: keep-all;
}

.dt-process-col p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

.dt-process-col p + p { margin-top: 16px; }

.dt-process-note {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  line-height: 1.65;
  margin-top: 14px !important;
  word-break: keep-all;
}

/* 원장 진료 사진 */
.dt-process-photo {
  margin: 56px 0;
  margin-inline: 0;
}

.dt-process-photo-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 43%;
  display: block;
}

/* PROGRAM */
#dt-program { background: #f3f9fd; }

.dt-program-grid {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
  margin-top: 40px;
}

.dt-program-sep {
  width: 1px;
  background: #d0dae1;
  flex-shrink: 0;
}

.dt-program-item {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.dt-program-item:first-child { padding-left: 0; }
.dt-program-item:last-child  { padding-right: 0; }

.dt-program-period {
  display: block;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.dt-program-body {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.85;
  margin-bottom: 20px;
  word-break: keep-all;
  flex: 1;
}

/* 가격 영역 — 포인트 컬러는 --primary-dark 변수 사용 (추후 삼화수성 2121C 값으로 교체 가능) */
.dt-program-price-wrap {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #d0dae1;
}

.dt-program-price-amount {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.dt-program-price-note {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.dt-program-composition {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  word-break: keep-all;
}

.dt-program-footnote {
  margin-top: 36px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  word-break: keep-all;
}

/* 팻아웃 */
#dt-fatout {
  background: #fafaf8;
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dt-fatout-inner { max-width: 600px; }

.dt-fatout-desc {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.8;
  margin: 18px 0 10px;
  word-break: keep-all;
}

.dt-fatout-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  word-break: keep-all;
}

/* SUPPORT */
#dt-support { background: white; }

.dt-support-items {
  display: flex;
  flex-direction: row;
  border-top: 1px solid #d0dae1;
  margin-top: 40px;
}

.dt-support-sep {
  width: 1px;
  background: #d0dae1;
  flex-shrink: 0;
}

.dt-support-item {
  flex: 1;
  padding: 44px 32px;
}

.dt-support-item:first-child { padding-left: 0; }
.dt-support-item:last-child  { padding-right: 0; }

.dt-support-item h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  margin-top: 16px;
  word-break: keep-all;
}

.dt-support-item p {
  font-size: 1.06rem;
  color: #34383a;
  line-height: 1.75;
  margin: 0;
  word-break: keep-all;
}

.dt-support-footnote {
  margin-top: 32px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.75;
  word-break: keep-all;
}

/* FAQ */
#dt-faq { background: #fafaf8; }

/* MAP + CTA (diet) */
#dt-map-cta {
  padding: 120px 0 0;
  background: white;
  border-top: 1px solid var(--border);
}

/* FINAL CTA */
#dt-final-cta {
  padding: 160px 0;
  background: white;
  border-top: 1px solid var(--border);
}

.dt-final-cta-inner { max-width: 680px; }

.dt-final-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.dt-final-cta-desc {
  font-size: 1.06rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 48px;
  word-break: keep-all;
}

.dt-final-cta-actions {
  display: flex;
  align-items: center;
  gap: 36px;
}

.dt-cta-btn {
  display: inline-block;
  padding: 16px 36px;
  background: var(--text-dark);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}

.dt-cta-btn:hover {
  opacity: 0.82;
  color: #ffffff;
}

.dt-cta-secondary {
  font-size: 0.94rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.dt-cta-secondary:hover { color: var(--text-dark); }

/* 반응형 - diet.html */
@media (max-width: 991px) {
  #dt-intro    { padding: 120px 0 80px; }
  #dt-howwesee { padding: 100px 0; }
  #dt-fatout   { padding: 60px 0; }

  .dt-howwesee-photos {
    flex-direction: column;
    gap: 40px;
    margin-top: 52px;
  }

  .dt-howwesee-img { height: 300px; }

  .dt-gambi-intro {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 48px;
  }

  .dt-gambi-photo {
    flex: none;
    width: 100%;
  }

  .dt-gambi-img {
    max-height: 360px;
    margin: 0 auto;
  }

  .dt-process-photo { margin: 40px 0; }

  .dt-process-photo-img { aspect-ratio: 3 / 2; object-position: center 35%; }

  .dt-gambi-items,
  .dt-support-items,
  .dt-program-grid {
    flex-direction: column;
  }

  .dt-gambi-sep,
  .dt-support-sep,
  .dt-program-sep {
    width: 100%;
    height: 1px;
  }

  .dt-gambi-item,
  .dt-support-item {
    padding: 36px 0;
  }

  .dt-program-item { padding: 40px 0; }

  .dt-process-row { flex-direction: column; }

  .dt-process-sep {
    width: 100%;
    height: 1px;
    margin: 40px 0;
  }

  .dt-process-col { padding: 0; }

  .dt-process-row-sep { margin: 40px 0; }
}

@media (max-width: 767px) {
  #dt-intro    { padding: 100px 0 64px; }
  #dt-howwesee { padding: 88px 0; }
  #dt-fatout   { padding: 48px 0; }
  #dt-final-cta { padding: 100px 0; }
  #dt-map-cta { padding: 88px 0 0; }

  .dt-gambi-item { padding: 44px 0; }

  .dt-howwesee-photos { gap: 36px; margin-top: 44px; }
  .dt-howwesee-img { height: auto; aspect-ratio: 4 / 3; }

  .dt-process-photo { margin: 32px 0; }
  .dt-process-photo-img { aspect-ratio: 3 / 2; object-position: center 35%; }

  .dt-concern-grid .care-row { flex-direction: column; }
  .dt-concern-grid .care-sep { width: 100%; height: 1px; }
  .dt-concern-grid .care-col { padding: 32px 0; }

  .dt-final-cta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .dt-cta-btn {
    width: 100%;
    text-align: center;
    padding: 18px 36px;
  }
}

/* =============================
   ABOUT 페이지 — 원장 카드
   ============================= */
.about-doctor-card {
  display: flex;
  gap: 64px;
  align-items: flex-start;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
.about-doctor-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.about-doctor-card--reverse {
  flex-direction: row-reverse;
}
.about-doctor-photo-wrap {
  flex: 0 0 260px;
}
.about-doctor-photo {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-doctor-info {
  flex: 1;
  padding-top: 8px;
}
.about-doctor-specialty {
  font-size: 0.8125rem;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.about-doctor-name {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.about-doctor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-doctor-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  word-break: keep-all;
}
.about-doctor-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

@media (max-width: 991px) {
  .about-doctor-card,
  .about-doctor-card--reverse {
    flex-direction: column;
    gap: 32px;
  }
  .about-doctor-photo-wrap {
    flex: none;
    width: 180px;
  }
  .about-doctor-card {
    margin-bottom: 56px;
    padding-bottom: 56px;
  }
}
@media (max-width: 767px) {
  #about-philosophy { padding: 88px 0; }
  #about-doctors { padding: 88px 0; }
  .about-doctor-photo-wrap { width: 140px; }
  .about-doctor-card { margin-bottom: 48px; padding-bottom: 48px; }
}

/* =============================
   ABOUT 페이지 — 인터뷰 카드 hover
   ============================= */
.about-doctor-photo-wrap { position: relative; }
.about-doctor-photo { transition: opacity 0.22s ease; }

.about-interview-hint {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

[data-interview] { cursor: pointer; }
[data-interview]:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 6px;
  border-radius: 2px;
}

@media (hover: hover) {
  [data-interview]:hover .about-doctor-photo { opacity: 0.85; }
  [data-interview]:hover .about-interview-hint { opacity: 1; }
}

/* =============================
   ABOUT 페이지 — 인터뷰 패널 (전체화면)
   ============================= */
.about-interview-panel {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: none;
}
.about-interview-panel.is-open { display: block; }

/* 상단 닫기 바 */
.about-interview-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 56px;
  display: flex;
  align-items: center;
}
.about-interview-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  padding: 8px 0;
  opacity: 0.6;
  transition: opacity 0.18s ease;
  font-family: inherit;
}
.about-interview-close:hover { opacity: 1; }
.about-interview-close:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  opacity: 1;
}

/* 인터뷰 콘텐츠 래퍼 */
.about-interview-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 40px 120px;
}

/* 인터뷰 헤더 — 데스크탑: 2열 그리드 */
.about-interview-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 64px;
  row-gap: 40px;
  align-items: start;
  margin-bottom: 72px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.about-interview-photo-wrap {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
}
.about-interview-photo {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-interview-meta {
  grid-column: 2;
  grid-row: 1;
  padding-top: 16px;
}
.about-interview-quote {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dark);
  border-left: 2px solid var(--primary-dark);
  padding-left: 20px;
  margin: 0;
  word-break: keep-all;
}

/* 인터뷰 메타 텍스트 */
.about-interview-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.about-interview-name-ko {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 4px;
}
.about-interview-name-en {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.about-interview-specialty {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Q&A 본문 */
.about-interview-body { margin-bottom: 80px; }
.about-interview-qa {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.about-interview-qa:first-child { padding-top: 0; }
.about-interview-qa:last-child { border-bottom: none; }
.about-interview-q {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
  margin: 0 0 12px;
}
.about-interview-q-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 24px;
  line-height: 1.65;
  word-break: keep-all;
}
.about-interview-a {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  word-break: keep-all;
}
.about-interview-a p { margin: 0 0 1.1em; }
.about-interview-a p:last-child { margin-bottom: 0; }

/* 프로필 섹션 */
.about-interview-profile {
  padding-top: 64px;
  border-top: 1px solid var(--border);
}
.about-interview-profile-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.about-interview-profile-name {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.about-interview-profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-interview-profile-list li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
  word-break: keep-all;
}
.about-interview-profile-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* 반응형 — 태블릿 */
@media (max-width: 991px) and (min-width: 768px) {
  .about-interview-header {
    grid-template-columns: 200px 1fr;
    column-gap: 40px;
  }
  .about-interview-content { padding: 56px 32px 100px; }
  .about-interview-bar { padding: 0 32px; }
}

/* 반응형 — 모바일 */
@media (max-width: 767px) {
  .about-interview-bar { padding: 0 20px; height: 48px; }
  .about-interview-content { padding: 40px 20px 100px; }
  .about-interview-header {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
    padding-bottom: 48px;
  }
  .about-interview-meta { order: 1; padding-top: 0; }
  .about-interview-photo-wrap { order: 2; width: 100%; }
  .about-interview-quote {
    order: 3;
    font-size: 0.9375rem;
  }
  .about-interview-a { font-size: 0.9375rem; line-height: 1.85; }
  .about-interview-q-text { font-size: 0.9375rem; }
  .about-interview-qa { padding: 36px 0; }
  .about-interview-body { margin-bottom: 64px; }
  .about-interview-profile { padding-top: 48px; }
}
