/* ==========================================================
   해아림한의원 신촌점 - 공통 스타일시트
   ========================================================== */

:root {
  --color-primary: #1C6E78;      /* 로고 청록-블루 톤 */
  --color-primary-dark: #0D3A42; /* 프리미엄 딥 네이비 */
  --color-primary-light: #3A8F9A;
  --color-accent: #F0913E;       /* 오렌지 포인트 */
  --color-accent-light: #FEF0E6;
  --color-accent-deep: #C16E1F;
  --color-bg: #FFFFFF;           /* 클린 화이트 */
  --color-bg-alt: #F4F6F7;       /* 쿨 라이트 그레이 */
  --color-text: #111827;         /* 딥 블랙 */
  --color-text-light: #4B5563;   /* 미드 그레이 */
  --color-border: #E5E7EB;       /* 얇고 선명한 테두리 */
  --color-white: #FFFFFF;
  --max-width: 1120px;
  --radius: 10px;                /* 크리스프, 절제된 radius */
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06); /* 선명한 레이어 그림자 */
  --color-text-muted: #6B7280;   /* --color-text-light 보다 연한 보조 텍스트 */
  --color-bg-card: #F9FAFB;      /* 카드 배경 */
  --color-heading: var(--color-primary-dark); /* 제목 기본색 */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-accent);
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
}

.nav-cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--color-primary-dark);
}

/* ── nav 로그인 / 사용자 영역 ── */
#nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary) !important;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  flex-shrink: 0;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}
.nav-login-btn:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}
.nav-user-name {
  font-size: 0.875rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  white-space: nowrap;
}
.nav-logout-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  white-space: nowrap;
}
.nav-logout-btn:hover {
  color: var(--color-primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
}

/* ---------------- Nav dropdown ---------------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font: inherit;
  font-weight: 500;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--color-primary);
}

.nav-dropdown .caret {
  font-size: 0.7em;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  min-width: 160px;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: var(--color-accent-light);
  color: var(--color-primary);
}

/* ---------------- Conditions dropdown (wide) ---------------- */
.nav-dropdown-menu--wide {
  min-width: 220px;
  max-height: 75vh;
  overflow-y: auto;
}
.nav-dd-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 8px 12px 3px;
  pointer-events: none;
}
.nav-dd-divider {
  height: 1px;
  background: var(--color-border);
  margin: 6px 10px;
}
.nav-dropdown-menu a.nav-dd-major {
  color: var(--color-accent-deep);
  font-weight: 600;
}
.nav-dropdown-menu a.nav-dd-major:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
}
.nav-dropdown-toggle.is-current {
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/hero-bg.png?v=2') center 38% / cover no-repeat;
  position: relative;
  overflow: hidden;
}
/* 이미지 하단 (원본 텍스트/로고) 페이드 아웃 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(240,235,228,0.55) 72%,
    rgba(240,235,228,0.96) 88%
  );
  pointer-events: none;
  z-index: 0;
}


/* 장식 원 — 대나무로 대체하여 제거 */
.hero::before, .hero::after { display: none; }

/* 반딧불이 캔버스 */
#firefly-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 대나무 SVG 배경 */

.hero .container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* eyebrow */
.hero-eyebrow {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
/* ── 시(詩) 형태 hero ── */
.hero-poem-center {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.hero-poem-center p,
.hero-poem-center h1 {
  text-align: center;
  width: 100%;
}

.hero-poem-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  font-family: 'Nanum Myeongjo', 'Noto Serif KR', serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: #5a5048;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-poem-eyebrow::before,
.hero-poem-eyebrow::after {
  content: '';
  display: block;
  width: clamp(2rem, 5vw, 4rem);
  height: 1px;
  background: var(--color-primary);
  opacity: 0.5;
  flex-shrink: 0;
}

.hero-poem-text {
  font-family: 'Nanum Myeongjo', 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: clamp(2rem, 3.8vw, 4.6rem);
  font-weight: 400;
  color: #2c2520;
  line-height: 1.55;
  letter-spacing: 0.04em;
  list-style: none;
}

.hero-poem-text span {
  display: block;
}

.hero-poem-actions {
  margin-top: 3rem;
  justify-content: center;
}

.hero-poem-sub {
  display: block;
  text-align: center;
  margin-top: 2.2rem;
  font-family: 'Gowun Batang', 'Nanum Myeongjo', serif;
  font-size: clamp(0.88rem, 1.3vw, 1.05rem);
  font-weight: 400;
  color: #6b5f56;
  letter-spacing: 0.12em;
  line-height: 2.0;
}

/* ── 진료 철학 섹션 ── */
.hero-philosophy-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-philosophy-section .container {
  position: relative;
  z-index: 1;
}

.philosophy-content {
  max-width: 640px;
  margin: 0 auto;
}

.philo-sub {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2.2rem;
  letter-spacing: 0.01em;
}

.philo-body {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 2.2;
  color: var(--color-text);
  margin-bottom: 0;
}

/* 첫 단락 — 보통 */
.philo-body--1 {
  font-weight: 700;
  color: var(--color-text-light);
}

/* 구분선 */
.philo-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin: 2.4rem 0;
  color: var(--color-primary);
  opacity: 0.5;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
}
.philo-separator::before,
.philo-separator::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: currentColor;
}

/* 두 번째 단락 — 궁서체 계열, 굵게 */
.philo-body--2 {
  font-family: 'Gowun Batang', 'Noto Serif KR', serif;
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.philo-specialty {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2.8rem;
}

/* 復 한자 — 중앙 배치 */
.section-kanji--center {
  left: 50%;
  right: auto;
  bottom: -5rem;
  top: auto;
  transform: translateX(-50%);
  opacity: 0.05;
}


/* H1 */
.hero h1 {
  margin-bottom: 28px;
  line-height: 1.35;
  text-align: center;
}

/* 줄1: 핵심 철학 문구 */
.h1-tagline {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

/* 줄2: 한의원명 */
.h1-clinic {
  display: block;
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.04em;
}

/* "스스로 회복하는 힘" — 오렌지 색상 강조 */
.hero-key {
  position: relative;
  display: inline-block;
  color: var(--color-accent-deep);
  font-size: 1.12em;
  font-weight: 900;
}
.hero-key::after {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: -5px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-accent-deep) 0%, var(--color-accent) 100%);
  opacity: 0.55;
}

/* "스스로 회복하는 힘" — SVG 붓터치 밑줄 */
.hero-key {
  position: relative;
  display: inline;
}
.hero-key::after {
  content: '';
  position: absolute;
  left: -5px;
  right: -5px;
  bottom: -6px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18'%3E%3Cellipse cx='150' cy='12' rx='153' ry='7' fill='%23F0913E' opacity='0.2'/%3E%3Cpath d='M8,11 C55,6 110,15 160,10 C210,5 260,13 294,10' stroke='%23F0913E' stroke-width='3.5' fill='none' stroke-linecap='round' opacity='0.45'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

.hero-branch {
  color: var(--color-primary-light);
  font-weight: 500;
  font-size: 0.82em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.85;
  margin-top: 20px;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-philosophy {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.96rem;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent-light);
  padding-left: 16px;
  margin-top: 24px;
  margin-bottom: 32px;
  max-width: 400px;
}
.philosophy-accent {
  color: var(--color-accent-deep);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  border: 1px solid var(--color-border);
}

.hero-visual h3 {
  margin-bottom: 18px;
}

.trust-title-eyebrow {
  display: block;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.brand-accent {
  color: var(--color-accent-deep);
}

.site-footer .brand-accent {
  color: var(--color-accent);
}

.trust-title-main {
  display: block;
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.hero-visual ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.hero-visual li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--color-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-visual li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.hero-visual li:first-child {
  padding-top: 0;
}

.hero-visual li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 800;
  flex-shrink: 0;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
}

.trust-list li:first-child {
  padding-top: 0;
}

.trust-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.trust-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-label {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 18px rgba(28, 110, 120, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #071e24 100%);
  box-shadow: 0 8px 28px rgba(28, 110, 120, 0.44);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(28, 110, 120, 0.45);
  color: var(--color-text-light);
  background: transparent;
  font-family: 'Noto Serif KR', serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 11px 22px;
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(28, 110, 120, 0.05);
}

.btn-filled {
  background: var(--color-primary-dark);
  color: var(--color-white);
  border: none;
  font-family: 'Noto Serif KR', serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  padding: 13px 26px;
}
.btn-filled:hover {
  background: var(--color-primary);
}

.btn-naver {
  background: #03C75A;
  color: #fff;
  border-color: #03C75A;
}
.btn-naver:hover { background: #02a84b; border-color: #02a84b; }

.btn-kakao {
  background: #FEE500;
  color: #191919;
  border-color: #FEE500;
}
.btn-kakao:hover { background: #e6cf00; border-color: #e6cf00; }

.btn-booking {
  background: #C16E1F;
  color: #fff;
  border-color: #C16E1F;
}
.btn-booking:hover { background: #a35a17; border-color: #a35a17; }

/* ---------------- Section ---------------- */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-eyebrow {
  color: var(--color-accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.section-head p {
  color: var(--color-text-light);
  font-size: 1rem;
}

/* ---------------- Condition Cards (6 Major, 3×2) ---------------- */
.major-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ---------------- Director / 원장 소개 Section ---------------- */
.director-wrap {
  display: flex;
  gap: 48px;
  align-items: center;
}
.director-photo {
  flex-shrink: 0;
}
.director-photo .img-placeholder {
  border-radius: 50%;
}
.director-info { flex: 1; }
.director-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  margin-top: 8px;
}
.director-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.director-spec {
  font-size: 0.92rem;
  color: var(--color-accent-deep);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.director-career {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.director-career li {
  font-size: 0.92rem;
  color: var(--color-text);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.director-career li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

@media (max-width: 640px) {
  .director-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .director-career li {
    text-align: left;
  }
}

/* ---------------- Book / 저서 Section ---------------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.book-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.book-cover {
  width: 88px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.book-info { flex: 1; min-width: 0; }
.book-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.book-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 10px; }
.book-desc { font-size: 0.88rem; line-height: 1.8; color: var(--color-text); }

.major-card {
  background: rgba(28,110,120,0.06);
  border: none;
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: none;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.major-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(28,110,120,0.16), 0 4px 12px rgba(0,0,0,0.06);
}

.major-card .tag {
  display: inline-block;
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}

.major-card .icon {
  font-size: 2rem;
}

.major-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.major-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  flex-grow: 1;
}

.major-card .more {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------------- Top highlight cards ---------------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 5개 카드: 3+2 레이아웃 */
.highlight-grid-5 {
  grid-template-columns: repeat(6, 1fr);
}
.highlight-grid-5 .highlight-card:nth-child(-n+3) { grid-column: span 2; }
.highlight-grid-5 .highlight-card:nth-child(4) { grid-column: 2 / span 2; }
.highlight-grid-5 .highlight-card:nth-child(5) { grid-column: 4 / span 2; }

/* 신뢰 섹션 — 배경 한자 解 */
.trust-section { position: relative; overflow: hidden; }
.why-healim-section { position: relative; overflow: hidden; }
.why-healim-section .section-kanji {
  left: auto;
  right: 3rem;
  bottom: -2rem;
}
.trust-section .section-kanji {
  right: 3rem;
  bottom: -2rem;
}
.why-healim-section .container { position: relative; z-index: 1; }
.section-kanji {
  position: absolute;
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 26rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  opacity: 0.07;
  right: -3rem;
  bottom: -2rem;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}
.trust-section .container { position: relative; z-index: 1; }

/* 철학 섹션 — 智(좌상단) / 仁(우하단) */
.hero-philosophy-section .section-kanji--zhi {
  right: auto !important;
  left: 3rem !important;
  top: -3rem !important;
  bottom: auto !important;
  opacity: 0.07;
}
.hero-philosophy-section .section-kanji--ren {
  left: auto !important;
  right: 3rem !important;
  bottom: -1rem !important;
  opacity: 0.07;
}

.highlight-card {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s, box-shadow 0.22s;
}
.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(28,110,120,0.16), 0 4px 12px rgba(0,0,0,0.06);
}

.highlight-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 12px;
}

.highlight-tag {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.highlight-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.highlight-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
}
.highlight-card .more {
  display: block;
  margin-top: 12px;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.highlight-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--color-primary);
}

.highlight-icon svg {
  width: 30px;
  height: 30px;
}

/* ---------------- Diff-grid icon badge ---------------- */
.diff-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin: 0 auto 4px;
}

.diff-icon svg {
  width: 24px;
  height: 24px;
}

/* ---------------- Highlighted text ---------------- */
.highlight-text {
  color: var(--color-primary-dark);
  font-weight: 800;
  background: linear-gradient(transparent 65%, var(--color-accent-light) 65%);
  padding: 0 2px;
}

@media (max-width: 900px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- Differentiator cards ---------------- */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .diff-grid { grid-template-columns: 1fr; }
}

.diff-grid .major-card h3 {
  font-size: 1.16rem;
  line-height: 1.4;
}

.title-accent {
  color: var(--color-accent-deep);
  background: linear-gradient(transparent 60%, var(--color-accent-light) 60%);
  padding: 0 3px;
  border-radius: 2px;
}

.diff-grid .major-card p {
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------------- Sub conditions chips ---------------- */
.chip-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chip-group {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.chip-group h4 {
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 1rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--color-text);
}

/* ---------------- About / Steps ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid img,
.img-placeholder {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  text-align: center;
  padding: 20px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  text-align: center;
}

.step .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}

.step h4 {
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.step p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------------- Content cards (columns/videos) ---------------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.content-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 800;
}

.content-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.content-card .meta {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.content-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary-dark);
}

.content-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  flex-grow: 1;
}

/* ── 칼럼 카드 (비디오 카드와 동일 구조) ── */
.thumb--column {
  background: linear-gradient(135deg, var(--color-primary) 0%, #27756a 100%);
  position: relative;
  overflow: hidden;
}
.thumb--column .col-bg-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  text-align: center;
}
.type-badge--column {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.24);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 4px;
}

/* ── 칼럼 상세 페이지 ── */
.col-meta {
  font-size: 0.82rem;
  color: var(--color-text-light);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}
.col-article-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #27756a 100%);
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 3px 14px rgba(0,0,0,.1);
}
.col-article-banner .col-badge-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(255,255,255,0.22);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.col-article-banner .col-banner-tag {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
/* 요약 박스 */
.col-summary-box {
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-alt);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.col-summary-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 7px;
}
.col-summary {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
}
.col-body {
  max-width: 800px;
  margin: 0 auto 32px;
}
.col-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 1.4em;
}

.content-card .read-more {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.88rem;
}

/* ---------------- Filter bar (columns/videos) ---------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.content-card .type-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.55);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.content-card .thumb {
  position: relative;
}

.content-card.is-hidden {
  display: none;
}

.empty-state {
  text-align: center;
  color: var(--color-text-light);
  padding: 40px 0;
  display: none;
}

.empty-state.show {
  display: block;
}

/* ---------------- FAQ ---------------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
  background: var(--color-white);
}

.faq-item h4 {
  color: var(--color-primary-dark);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 1rem;
}

.faq-item p {
  color: var(--color-text-light);
  font-size: 0.94rem;
}

/* ---------------- Location ---------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.info-table th {
  width: 110px;
  color: var(--color-primary);
  font-weight: 800;
}

/* ── 의료 감수 배너 ── */
.review-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin: 20px 0 0;
}
.review-banner .review-label {
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}
.review-banner a {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(13,58,66,0.3);
  text-underline-offset: 2px;
}
.review-banner a:hover {
  color: var(--color-primary);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #DDE6DD;
  padding: 48px 0 28px;
  margin-top: 40px;
}

.footer-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  margin-bottom: 28px;
}

.footer-info {
  font-size: 0.84rem;
  color: #BFD0BF;
  line-height: 1.9;
}
.footer-info strong {
  display: block;
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.footer-grid h4 + h4 {
  margin-top: 20px;
}

.footer-conditions {
  columns: 3;
  column-gap: 8px;
}
.footer-conditions p {
  break-inside: avoid;
  margin: 0;
  line-height: 1.65;
}

.footer-grid p,
.footer-grid a {
  color: #BFD0BF;
  font-size: 0.87rem;
  line-height: 1.75;
}

.footer-grid a:hover {
  color: var(--color-white);
}

.footer-policy-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
}
.footer-policy-bar a {
  color: #DDE6DD;
  text-decoration: none;
}
.footer-policy-bar a:hover { color: #fff; }
.footer-policy-bar a strong { font-weight: 800; }
.footer-policy-bar span { color: rgba(255,255,255,0.25); }
.footer-admin-link {
  margin-left: auto;
  color: rgba(255,255,255,0.25) !important;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.footer-admin-link:hover { color: rgba(255,255,255,0.55) !important; }


.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8FA68F;
  text-align: center;
}

/* ---------------- Page header (sub pages) ---------------- */
.page-hero {
  padding: 48px 0;
  background: var(--color-accent-light);
  text-align: center;
}

.page-hero .breadcrumb {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero h1 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary-dark);
}

.page-hero h1 .accent {
  color: var(--color-primary);
  font-size: 1.18em;
  font-weight: 900;
}

.why-brand {
  font-size: 1.35em;
  font-weight: 900;
  line-height: 1.2;
  display: inline-block;
}

.page-hero p {
  color: var(--color-text-light);
  margin-top: 10px;
}

/* ---------------- Feature blocks (why-healim) ---------------- */
.feature-block {
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}

.feature-block:first-of-type {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.feature-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px; /* icon center = 3+28=31px ≈ h2 center 30.5px */
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-heading > div {
  flex: 1;
  position: relative;
  padding-top: 8px;
}

.feature-block p {
  line-height: 1.9;
  margin-bottom: 16px;
}

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

/* 진료 프로세스 단계 */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 18px 0 28px;
}
.process-step {
  background: var(--color-accent-light);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  position: relative;
  white-space: nowrap;
  margin-right: 20px;
  margin-bottom: 10px;
}
.process-step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-size: 0.9rem;
}
.process-step:last-child::after { display: none; }
.process-step:last-child { margin-right: 0; }

/* 자격증 썸네일 */
.cert-thumb-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  cursor: pointer;
}
.cert-thumb {
  width: 160px;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: box-shadow 0.2s;
  cursor: pointer;
}
.cert-thumb:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.cert-thumb-label {
  font-size: 0.82rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 라이트박스 */
.cert-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cert-lightbox.active { display: flex; }
.cert-lightbox-inner {
  position: relative;
  max-width: 540px;
  width: 100%;
}
.cert-lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  display: block;
}
.cert-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1;
}

.feature-block ul {
  margin-top: 20px;
  padding-left: 4px;
  list-style: none;
}

.feature-block ul li {
  margin-bottom: 14px;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.feature-block ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.feature-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 28px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--color-accent-light);
}

.feature-tag {
  position: absolute;
  top: -6px;
  left: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  line-height: 1;
}

.feature-heading h2 {
  margin: 0 !important;
  font-size: 2.1rem !important;
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-primary-dark);
}

/* ---------------- Table of contents ---------------- */
.toc {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.toc-title {
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  font-size: 1rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

.toc ol li {
  counter-increment: toc-counter;
  font-size: 0.94rem;
}

.toc ol li a {
  color: var(--color-text);
  transition: color 0.15s;
}

.toc ol li a::before {
  content: counter(toc-counter) ". ";
  color: var(--color-accent);
  font-weight: 800;
}

.toc ol li a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr;
  }

  .feature-heading h2 {
    font-size: 1.7rem !important;
  }

  .feature-icon {
    width: 48px !important;
    height: 48px !important;
  }

  .feature-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ---------------- Article ---------------- */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article h2 {
  color: var(--color-primary-dark);
  font-size: 1.4rem;
  font-weight: 800;
  margin: 32px 0 14px;
}

.article h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 24px 0 10px;
}

.article p {
  margin-bottom: 14px;
  color: var(--color-text);
}

.article ul {
  margin: 0 0 14px 20px;
  color: var(--color-text);
}

.article ul li {
  margin-bottom: 6px;
}

.callout {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 0.94rem;
}

.disclaimer {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 32px;
}

/* ---------------- Symptom list (condition pages) ---------------- */
.symptom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 8px;
}

.symptom-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.94rem;
  display: flex;
  gap: 10px;
}

.symptom-item::before {
  content: "•";
  color: var(--color-accent);
  font-weight: 900;
}

/* ---------------- Related conditions nav ---------------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.related-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-weight: 800;
  color: var(--color-primary-dark);
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---------------- Review cards (자필 치료후기) ---------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review-card .scan {
  aspect-ratio: 3/4;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.review-card .scan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.review-card .meta {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 800;
}

.review-card .transcript {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.7;
  white-space: pre-line;
}

.review-card .patient {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

/* 치료후기 필터 바 */
.review-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.review-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.review-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-light);
  pointer-events: none;
}
.review-search-input {
  width: 100%;
  padding: 10px 36px 10px 38px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border 0.2s;
  background: var(--color-white);
}
.review-search-input:focus { border-color: var(--color-accent); }
.review-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  font-size: 1.1rem;
  color: var(--color-text-light);
  cursor: pointer;
  line-height: 1;
}
.review-filter-select {
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--color-white);
  outline: none;
  cursor: pointer;
  min-width: 140px;
  transition: border 0.2s;
}
.review-filter-select:focus { border-color: var(--color-accent); }
.review-count {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 16px;
  display: none;
}
.review-empty {
  text-align: center;
  padding: 48px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* 이미지 업로드 치료후기 */
.review-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 0 16px 10px;
  margin: 0;
}

.review-card--image .review-img-wrap {
  width: 100%;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.review-card--image .review-img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 500px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.review-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent);
  background: var(--color-accent-light, #e8f5f1);
  border-radius: 999px;
  padding: 3px 10px;
}
.review-meta {
  font-size: 0.78rem;
  color: var(--color-text-light);
}
.review-body {
  padding: 0 16px 16px;
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.75;
  border-left: 3px solid var(--color-border);
  margin-left: 16px;
}

/* 카드형 링크 후기 */
.review-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}
.review-card--link:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}
.review-preview {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  padding: 8px 16px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-read-more {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  padding: 10px 16px 14px;
}

/* 후기 상세 페이지 제목 */
.review-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.45;
  margin: 0 0 20px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-accent);
}

/* 후기 상세 페이지 본문 */
.review-detail-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
  white-space: pre-line;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 28px 32px;
}

/* ---------------- Form (온라인 상담) ---------------- */
.consult-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-bg);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.form-consent input {
  margin-top: 3px;
}

.form-submit {
  width: 100%;
  border: none;
}

.consult-alt {
  text-align: center;
  margin-top: 20px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------------- Sticky CTA bar ---------------- */
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 14px 0;
  font-weight: 700;
  z-index: 90;
}

.sticky-cta a {
  color: var(--color-white);
  text-decoration: underline;
}

.sticky-cta-note {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.85em;
}

/* ---------------- Quick Links (상시 바로가기 배너) ---------------- */
.quick-links {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 110;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-links::-webkit-scrollbar {
  display: none;
}

.quick-links a {
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  padding: 10px 4px 8px;
  font-size: 0.68rem;
  transition: box-shadow 0.18s, transform 0.18s;
}
.quick-links a:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.16);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-primary);
}

/* 아이콘 공통 */
.ql-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ql-icon svg {
  width: 22px;
  height: 22px;
}

/* 채널별 아이콘 색상 */
.ql-naver  { background: #03c75a; color: #fff; }
.ql-kakao  { background: #fee500; color: #3c1e1e; }
.ql-youtube { background: #ff0000; color: #fff; }
.ql-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }

/* 365일 뱃지 */
.ql-badge {
  position: absolute;
  bottom: -5px;
  right: -6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.4;
}

/* 라벨 */
.ql-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
}

/* 햄버거 전환 시점(≤880px) — 아이콘만 남기고 작게 */
@media (max-width: 880px) {
  .quick-links {
    right: 8px;
    gap: 6px;
  }
  .quick-links a {
    width: 48px;
    padding: 7px 2px 6px;
    border-radius: 10px;
    gap: 4px;
  }
  .ql-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .ql-icon svg {
    width: 15px;
    height: 15px;
  }
  .ql-label {
    display: none;
  }
  .ql-badge {
    font-size: 0.42rem;
    padding: 1px 3px;
    bottom: -4px;
    right: -5px;
  }
}

/* 매우 좁은 화면에서 배너 숨김 */
@media (max-width: 440px) {
  .quick-links {
    display: none;
  }
}

/* ======================================================
   모바일 네비게이션 (≤880px)
   ====================================================== */
@media (max-width: 880px) {
  /* ── 패널 ── */
  .nav-links {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--color-white);
    border-top: 3px solid var(--color-primary);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 12px 20px;
    box-shadow: 0 8px 32px rgba(28,110,120,0.13);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.is-open {
    display: flex;
  }

  /* ── 공통 항목 ── */
  .nav-links > a,
  .nav-dropdown-toggle {
    width: 100%;
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background 0.15s, color 0.15s;
  }
  .nav-links > a:hover,
  .nav-links > a:active,
  .nav-dropdown-toggle:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
  }
  .nav-links > a.active {
    color: var(--color-primary);
    font-weight: 700;
  }

  /* ── 드롭다운 토글 & 캐럿 ── */
  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-dropdown .caret {
    display: inline-block;
    font-size: 0.8em;
    opacity: 0.55;
    transition: transform 0.22s ease, opacity 0.15s;
  }
  .nav-dropdown.is-open .caret {
    transform: rotate(180deg);
    opacity: 1;
  }

  /* ── 서브메뉴 ── */
  .nav-dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 2px 0 8px 0;
    margin: 0 0 4px 14px;
    border-left: 2px solid var(--color-border);
    background: transparent;
    max-height: none;
    overflow-y: visible;
    border-radius: 0;
    flex-direction: column;
    gap: 0;
  }
  .nav-dropdown-menu a {
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--color-text-light);
    border-radius: 6px;
    white-space: normal;
  }
  .nav-dropdown-menu a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
  }
  .nav-dropdown-menu a.nav-dd-major {
    font-size: 0.91rem;
    font-weight: 600;
  }
  .nav-dropdown-menu--wide { grid-template-columns: 1fr; min-width: unset; }
  .nav-dd-label { grid-column: 1 / -1; padding-left: 14px; }
  .nav-dd-divider { grid-column: 1 / -1; margin: 4px 14px; }

  /* ── CTA 버튼 (진료 예약 문의) ── */
  .nav-links .nav-cta {
    display: block;
    width: auto;
    text-align: center;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    border-radius: 10px;
    padding: 15px 20px;
    margin-top: 12px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 3px 12px rgba(28,110,120,0.22);
    transition: background 0.15s, transform 0.1s;
  }
  .nav-links .nav-cta:hover {
    background: var(--color-primary-dark) !important;
    color: var(--color-white) !important;
    transform: translateY(-1px);
  }

  /* ── 기타 레이아웃 ── */
  .menu-toggle { display: block; }
  .major-grid { grid-template-columns: repeat(2, 1fr); }
  .director-wrap { flex-direction: column; align-items: center; text-align: center; gap: 24px; }
  .director-career li { text-align: left; }
  .books-grid { grid-template-columns: 1fr; }
}

/* ======================================================
   데스크톱 드롭다운 호버 (≥641px)
   ====================================================== */
@media (min-width: 641px) {
  /* 버튼~메뉴 사이 gap 브릿지 (커서가 끊기지 않도록) */
  .nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 18px;
  }
  /* 호버로 열기 */
  .nav-dropdown:hover > .nav-dropdown-menu { display: flex; }
  .nav-dropdown:hover > .nav-dropdown-menu--wide { display: grid; }
  .nav-dropdown:hover > .nav-dropdown-toggle { color: var(--color-primary); }
  /* 넓은 2열 조건 드롭다운 */
  .nav-dropdown-menu--wide {
    display: none;
    grid-template-columns: 1fr 1fr;
    min-width: 320px;
    gap: 0;
  }
  .nav-dropdown.is-open > .nav-dropdown-menu--wide { display: grid; }
  .nav-dd-label,
  .nav-dd-divider { grid-column: 1 / -1; }
}

/* 활성 메뉴 색상 통일 */
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown-toggle.is-current {
  color: var(--color-primary);
}

/* ── 영상 콘텐츠 페이지 ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.video-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.video-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.video-play-overlay span {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
  padding-left: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.video-card:hover .video-play-overlay { background: rgba(0,0,0,0.35); }
.video-card:hover .video-play-overlay span { transform: scale(1.1); }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.video-thumb iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}

.video-info {
  padding: 18px 20px 22px;
}
.video-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-accent-light);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.video-info h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 8px;
  color: var(--color-text);
}
.video-info p {
  font-size: 0.87rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
}
.video-info .read-more {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* ── 메인 홈 영상 카드 ── */
.content-card--video .thumb,
.thumb--video {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.thumb--video svg {
  opacity: 0.85;
  transition: transform 0.2s;
}
.content-card--video:hover .thumb--video svg {
  transform: scale(1.15);
}
.type-badge--video {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff3c3c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── 보조 버튼 (칼럼 전체보기) ── */
.btn-secondary {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ── 영상 스크립트 접이식 ── */
.video-script {
  border-top: 1px solid var(--color-border);
  margin-top: 14px;
}
.video-script summary {
  font-size: 0.8rem;
  color: var(--color-text-light);
  padding: 10px 0 6px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.video-script summary::-webkit-details-marker { display: none; }
.video-script[open] summary { color: var(--color-primary); }
.video-script-body {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-text);
  padding: 10px 0 14px;
  white-space: pre-wrap;
}

/* ── footer-inner 4단 레이아웃 (videos, sitemap 등) ── */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
.footer-brand strong {
  display: block;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-brand p,
.footer-links p,
.footer-links a,
.footer-contact p,
.footer-legal p,
.footer-legal a {
  color: #BFD0BF;
  font-size: 0.88rem;
  line-height: 1.9;
  text-decoration: none;
}
.footer-links a:hover,
.footer-legal a:hover { color: var(--color-white); }
.footer-legal {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 24px;
}
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-legal {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 16px;
    grid-column: 1 / -1;
  }
}
@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── 오시는 길 섹션 ── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 8px;
}
.location-info-block {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.location-info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.location-info-row:last-child { border-bottom: none; }
.loc-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.location-info-row strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.location-info-row p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}
.loc-tel {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}
.loc-tel:hover { text-decoration: underline; }
.location-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.location-map {
  position: sticky;
  top: 80px;
}
.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f2f4;
  border-radius: var(--radius);
  border: 2px dashed var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #999;
}
@media (max-width: 780px) {
  .location-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .location-map { position: static; }
}

/* ==========================================================
   스크롤 Reveal + 카드 Lift 애니메이션
   ========================================================== */

/* --- Reveal 기본 상태 (초기: 아래에서 페이드인) --- */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 순차 딜레이 (형제 요소들 순서대로 등장) --- */
.js-reveal:nth-child(2) { transition-delay: 0.07s; }
.js-reveal:nth-child(3) { transition-delay: 0.14s; }
.js-reveal:nth-child(4) { transition-delay: 0.21s; }
.js-reveal:nth-child(5) { transition-delay: 0.28s; }
.js-reveal:nth-child(6) { transition-delay: 0.35s; }

/* --- 카드 Lift: 향상된 hover 효과 --- */
.major-card,
.related-card,
.review-card--link,
.video-card,
.video-card--link,
.cond-card,
.card,
.highlight-card,
.ai-card,
.bk-card,
.content-card,
.cert-thumb {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.major-card:ho
/* ==========================================================
   프리미엄 모던 + 백록담 참고 — 역동·고급 강화
   ========================================================== */

/* --- 섹션 eyebrow: 양쪽 accent 라인 --- */
.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: none;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  opacity: 0.8;
}

/* --- 섹션 제목: gradient text --- */
.section-head h2 {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- section-alt: 미세 gradient --- */
.section-alt {
  background: linear-gradient(180deg, #F4F7F8 0%, #E9EFF2 100%);
}

/* --- 히어로 여백 더 넓게 (백록담 스타일) --- */
.hero {
  padding: 108px 0 80px;
}

/* --- 버튼 transition 개선 --- */
.btn-primary {
  transition: all 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- prefers-reduced-motion 예외 처리 --- */
@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
  .section-head h2 { -webkit-text-fill-color: unset; }
}
                                                           

/* ═══════════════════════════════════════
   Hero 순차 애니메이션
═══════════════════════════════════════ */

/* 공통 */
@keyframes hiFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hiSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 시 줄 사이 구분선 */
.poem-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.05rem auto;
  width: 100%;
  color: rgba(44, 37, 32, 0.42);
  font-size: 0.38rem;
  letter-spacing: 0;
  opacity: 0;
  animation: hiFade 0.8s ease 1.5s both;
}
.poem-sep:last-of-type {
  animation-delay: 3.2s;
}
/* 양쪽 그라디언트 선 */
.poem-sep::before,
.poem-sep::after {
  content: '';
  display: block;
  height: 1px;
  width: clamp(2rem, 4vw, 3.4rem);
}
.poem-sep::before {
  background: linear-gradient(to right, transparent, rgba(44, 37, 32, 0.36));
}
.poem-sep::after {
  background: linear-gradient(to left,  transparent, rgba(44, 37, 32, 0.36));
}

/* eyebrow */
.hero-poem-eyebrow {
  animation: hiFade 0.8s ease 0.2s both;
  /* override base opacity so animation fills-back to 0 */
}

/* 시 3줄 */
.poem-line { opacity: 0; display: block; }

/* 헤아리고 → 먹이 번지듯 */
.poem-line--1 {
  animation: hiInkSpread 1.5s ease-out 0.5s both;
}
@keyframes hiInkSpread {
  0%   { opacity: 0; filter: blur(14px); letter-spacing: 0.16em; }
  40%  { opacity: 0.88; filter: blur(4px); }
  100% { opacity: 1;  filter: blur(0);    letter-spacing: 0.04em; }
}

/* 담아내고 → 먹선이 이어지듯 */
.poem-line--2 {
  animation: hiInkSlide 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.9s both;
}
@keyframes hiInkSlide {
  0%   { opacity: 0; transform: translateX(-6px); filter: blur(5px); }
  40%  { opacity: 0.6; }
  100% { opacity: 1; transform: translateX(0);    filter: blur(0); }
}

/* 다시 피어내다 → 연꽃 피듯 */
.poem-line--3 {
  animation: hiInkBloom 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.0s both;
}
@keyframes hiInkBloom {
  0%   { opacity: 0; transform: scale(0.94) translateY(8px); filter: blur(6px); }
  50%  { opacity: 0.7; filter: blur(2px); }
  100% { opacity: 1; transform: scale(1)    translateY(0);   filter: blur(0); }
}

/* 부제 "마음을 헤아리고..." */
.poem-sub--anim {
  animation: hiSlideUp 1.2s ease 4.3s both;
}

/* "한방신경정신과 전문의" */
.hero-poem-spec {
  display: block;
  text-align: center;
  margin-top: 0.55rem;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: clamp(0.68rem, 0.92vw, 0.80rem);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.22em;
  animation: hiFade 0.8s ease 3.8s both;
}

/* 버튼 */
.hero-btn--anim {
  animation: hiSlideUp 0.8s ease 4.1s both;
}

/* ── why-healim 제목: 신촌점 주황 + 방점 강조 ── */
.sinchon-accent {
  color: var(--color-accent-deep);
  -webkit-text-fill-color: var(--color-accent-deep);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-emphasis: filled dot var(--color-accent);
  text-emphasis: filled dot var(--color-accent);
  -webkit-text-emphasis-position: over right;
  text-emphasis-position: over right;
}

/* ── 대표원장 소개 strong 마커 ── */
#director strong {
  font-weight: 800;
  background: rgba(28,110,120,0.10);
  border-radius: 4px;
  padding: 1px 5px;
  margin: 0 -2px;
  color: var(--color-primary-dark);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* btn-ghost: btn-primary와 동일 타이포, 투명 배경 + 테두리 */
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(28,110,120,0.06);
  border-color: var(--color-primary-dark);
}


/* ══════════════════════════════════════════════════════
   동양적 디자인 요소 — 전체 사이트 공통
   기존 규칙 무변경 / 파일 끝에 추가만
   ══════════════════════════════════════════════════════ */

/* ① 텍스트 선택 색 — 먹물 청록 */
::selection      { background: rgba(28,110,120,0.18); color: var(--color-primary-dark); }
::-moz-selection { background: rgba(28,110,120,0.18); color: var(--color-primary-dark); }

/* ② section-alt 배경 — 한지 미세 노이즈 위에 기존 그라데이션 유지 */
.section-alt {
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(28,110,120,0.03) 0px,
      rgba(28,110,120,0.03) 1px,
      transparent 1px,
      transparent 10px
    ),
    linear-gradient(180deg, #F4F7F8 0%, #E9EFF2 100%);
}

/* ③ 카드 호버 — 먹물 번짐 (::before 미사용 카드만 대상) */
.highlight-card,
.major-card,
.faq-item {
  position: relative;
}
.highlight-card::before,
.major-card::before,
.faq-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 55%, rgba(28,110,120,0.13) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}
.highlight-card:hover::before,
.major-card:hover::before,
.faq-item:hover::before {
  opacity: 1;
}
.highlight-card > *,
.major-card > *,
.faq-item > * {
  position: relative;
  z-index: 1;
}


/* section-eyebrow 양쪽 데코 라인 → 붓터ΰ 타입으로 */
.section-eyebrow::before,
.section-eyebrow::after {
  width: 44px !important;
  height: 3px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-accent) 25%,
    var(--color-accent) 75%,
    transparent 100%) !important;
  border-radius: 0 !important;
  opacity: 0.6 !important;
}

/* 섹션 h2 아래 붓터치 밑줄 */
.section-head h2 {
  position: relative;
  padding-bottom: 18px;
}
.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-primary) 20%,
    var(--color-primary) 80%,
    transparent 100%);
  border-radius: 2px;
  opacity: 0.45;
}

/* ── 네비게이션 드롭다운 확대 ── */
.nav-links {
  font-size: 1.03rem;
  gap: 32px;
}
.nav-dropdown-menu {
  padding: 10px;
  min-width: 180px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.11), 0 2px 8px rgba(0,0,0,0.06);
}
.nav-dropdown-menu a {
  padding: 11px 16px;
  border-radius: 9px;
  font-size: 1.0rem;
}
.nav-dropdown-menu--wide {
  min-width: 240px;
}
.nav-dd-label {
  font-size: 0.72rem;
  padding: 10px 14px 4px;
}
.nav-dd-divider {
  margin: 7px 12px;
}
