/* =====================================================
   빛한의원 공통 스타일시트
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600;700&family=Noto+Sans+KR:wght@300;400;500&display=swap');

/* =====================================================
   CSS 변수
   ===================================================== */
:root {
  --primary:       #3d6b4f;
  --primary-light: #5a8a6b;
  --primary-dark:  #2d5140;
  --primary-bg:    #eef4f0;
  --gold:          #b5975a;
  --gold-light:    #cdb07a;

  --bg:       #faf8f5;
  --bg-alt:   #f2ede6;
  --white:    #ffffff;

  --text:       #2c2c2c;
  --text-light: #666666;
  --text-muted: #999999;
  --border:     #e0dbd4;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --font-serif: 'Noto Serif KR', 'Georgia', serif;
  --font-sans:  'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;

  --container:  1100px;
  --nav-height: 70px;
  --transition: all 0.3s ease;
}

/* =====================================================
   리셋 & 기본
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; transition: var(--transition); }
ul   { list-style: none; }

/* =====================================================
   공통 레이아웃
   ===================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 20px;
  word-break: keep-all;
}
.section-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.9;
  word-break: keep-all;
}
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto;
}

/* =====================================================
   버튼
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-gold:hover {
  background: #9e8248;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-white:hover {
  background: var(--bg);
  transform: translateY(-2px);
  color: var(--primary);
}
.btn-kakao {
  background: #fee500;
  color: #3a1d1d;
}
.btn-kakao:hover {
  background: #e8d100;
  color: #3a1d1d;
  transform: translateY(-2px);
}

/* =====================================================
   네비게이션
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(250,248,245,0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.navbar.hero-nav .logo-main { color: var(--white); }
.navbar.hero-nav .logo-sub  { color: rgba(255,255,255,0.65); }

.nav-menu { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}
.navbar.hero-nav .nav-links a { color: rgba(255,255,255,0.9); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.navbar.hero-nav .nav-links a::after { background: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.85rem; }

/* 햄버거 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.navbar.hero-nav .hamburger span { background: var(--white); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu .nav-links { flex-direction: column; gap: 0; margin-bottom: 20px; }
.mobile-menu .nav-links a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text);
}
.mobile-menu .nav-links a::after { display: none; }
.mobile-menu .btn { width: 100%; justify-content: center; }

/* =====================================================
   히어로 섹션
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #24412f 0%, #3d6b4f 45%, #4d7e60 75%, #5c9070 100%);
  padding: 120px 24px 100px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(181,151,90,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 75%, rgba(255,255,255,0.04) 0%, transparent 55%);
}
.hero-deco {
  position: absolute;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.04;
  pointer-events: none;
}
.hero-deco-1 { width: 700px; height: 700px; top: -250px; right: -200px; }
.hero-deco-2 { width: 500px; height: 500px; bottom: -150px; left: -150px; }

.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-block;
  background: rgba(181,151,90,0.2);
  border: 1px solid rgba(181,151,90,0.45);
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 30px;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 24px;
  word-break: keep-all;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 52px;
  line-height: 1.9;
  word-break: keep-all;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  animation: scrollBounce 2.5s infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.35);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   왜 빛한의원인가
   ===================================================== */
.why { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-card {
  text-align: center;
  padding: 52px 32px 44px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}
.why-icon {
  width: 72px; height: 72px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.9rem;
  transition: var(--transition);
}
.why-card:hover .why-icon { background: var(--primary); }
.why-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.why-card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.95;
  word-break: keep-all;
}

/* =====================================================
   진료 항목
   ===================================================== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.service-icon { font-size: 2.4rem; margin-bottom: 20px; }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.service-card p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
  word-break: keep-all;
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}
.service-more:hover { color: var(--primary); }

/* =====================================================
   원장 소개
   ===================================================== */
.doctor { background: var(--white); }
.doctor-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.doctor-image-wrap { position: relative; }
.doctor-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #d4e8db 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px dashed rgba(61,107,79,0.25);
  color: var(--primary);
}
.doctor-img-placeholder .placeholder-icon { font-size: 3.5rem; opacity: 0.4; }
.doctor-img-placeholder p {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  opacity: 0.55;
  text-align: center;
  line-height: 1.6;
}

/* 사진이 있을 때 사용할 스타일 */
.doctor-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.doctor-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  color: var(--white);
  padding: 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.doctor-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.doctor-badge span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  opacity: 0.85;
}
.doctor-content .section-header { text-align: left; margin-bottom: 28px; }
.doctor-content .divider { margin: 16px 0; }
.doctor-desc {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 2.1;
  margin-bottom: 20px;
  word-break: keep-all;
}
.doctor-career {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-bottom: 36px;
}
.doctor-career li {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-light);
  padding: 7px 0;
}
.doctor-career li::before {
  content: '— ';
  color: var(--primary);
}

/* =====================================================
   진료 시간 & 연락처
   ===================================================== */
.hours-section { background: var(--bg); }
.hours-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hours-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  height: 100%;
}
.hours-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--bg-alt); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: 14px 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.hours-table td:first-child { color: var(--text-light); width: 48%; }
.hours-table td:last-child  { color: var(--text); font-weight: 500; }
.hours-badge {
  display: inline-block;
  background: #fff3f3;
  color: #c0392b;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.hours-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--primary-bg);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.83rem;
  color: var(--primary-dark);
  line-height: 1.8;
}

.contact-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.contact-icon { font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.contact-text { font-family: var(--font-sans); }
.contact-text strong {
  display: block;
  font-size: 0.76rem;
  opacity: 0.7;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.contact-text span, .contact-text a {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--white);
}
.contact-text a:hover { opacity: 0.85; }
.contact-buttons { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-naver  { background: #03c75a; color: #fff; }
.btn-naver:hover  { background: #02a34c; color: #fff; transform: translateY(-2px); }
.btn-kakao-c { background: #fee500; color: #3a1d1d; }
.btn-kakao-c:hover { background: #e8d100; color: #3a1d1d; transform: translateY(-2px); }
.btn-call   { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-call:hover { background: rgba(255,255,255,0.22); color: #fff; transform: translateY(-2px); }

/* =====================================================
   미디어 출연 & 저서
   ===================================================== */
.media-section { background: var(--bg); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.media-item { display: flex; flex-direction: column; gap: 14px; }
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.media-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: center;
  font-weight: 500;
}
.book-row { display: flex; justify-content: center; }
.book-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(158,130,72,0.2);
  border-radius: 12px;
  padding: 24px 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.book-icon { font-size: 2.4rem; }
.book-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.book-meta {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =====================================================
   CTA 배너
   ===================================================== */
.cta-banner {
  background: linear-gradient(135deg, #9e8248 0%, var(--gold) 50%, #b89555 100%);
  padding: 90px 24px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 14px;
  word-break: keep-all;
}
.cta-banner p {
  font-family: var(--font-sans);
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 44px;
  word-break: keep-all;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-banner .btn-white { font-size: 0.95rem; padding: 15px 38px; }

/* =====================================================
   푸터
   ===================================================== */
footer { background: #1a2d22; color: rgba(255,255,255,0.72); padding: 64px 0 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 52px;
}
.footer-brand .logo-main {
  display: block;
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.footer-brand .logo-sub {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  margin-bottom: 20px;
}
.footer-brand p {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  opacity: 0.65;
  line-height: 1.9;
  word-break: keep-all;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 20px;
  opacity: 0.9;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a,
.footer-col ul li span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  opacity: 0.65;
  transition: var(--transition);
}
.footer-col ul li a:hover { opacity: 1; color: var(--white); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  opacity: 0.45;
}

/* =====================================================
   페이드인 애니메이션
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* =====================================================
   내부 페이지 헤더
   ===================================================== */
.page-header {
  background: linear-gradient(155deg, #24412f, #3d6b4f);
  color: var(--white);
  padding: 150px 24px 80px;
  text-align: center;
}
.page-header .section-label { color: var(--gold-light); }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: 16px;
  word-break: keep-all;
}
.page-header p {
  font-family: var(--font-sans);
  font-size: 1rem;
  opacity: 0.82;
  max-width: 500px;
  margin: 0 auto;
  word-break: keep-all;
}

/* =====================================================
   about.html 전용
   ===================================================== */
.about-story { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary-bg), #d4e8db);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(61,107,79,0.25);
  color: var(--primary);
}
.about-img-placeholder .placeholder-icon { font-size: 3rem; opacity: 0.4; }
.about-img-placeholder p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  opacity: 0.5;
}
.about-text p {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 2.1;
  margin-bottom: 20px;
  word-break: keep-all;
}
.values-section { background: var(--bg); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-item {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.value-number {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-bg);
  margin-bottom: 14px;
  line-height: 1;
  -webkit-text-stroke: 1px var(--primary-light);
}
.value-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.value-item p {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 2;
  word-break: keep-all;
}
.doctor-full { background: var(--white); }
.doctor-full-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

/* =====================================================
   programs.html 전용
   ===================================================== */
.programs-section { background: var(--bg); }
.program-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 110px 1fr;
  transition: var(--transition);
}
.program-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.program-icon-col {
  background: var(--primary-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
}
.program-icon-col .icon { font-size: 2.6rem; }
.program-icon-col span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 500;
  text-align: center;
  word-break: keep-all;
}
.program-content { padding: 36px 40px; }
.program-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}
.program-content p {
  font-family: var(--font-sans);
  font-size: 0.91rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 10px;
  word-break: keep-all;
}
.program-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
}
.tag-gold { background: #fdf3e3; color: var(--gold); }

/* =====================================================
   location.html 전용
   ===================================================== */
.map-section { background: var(--white); }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}
.map-wrap iframe { display: block; width: 100%; height: 450px; border: none; }
.map-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.map-actions .btn { padding: 12px 24px; font-size: 0.88rem; }
.location-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.location-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.location-card .icon { font-size: 2rem; margin-bottom: 14px; }
.location-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}
.location-card p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.85;
  word-break: keep-all;
}
.transit-section { background: var(--bg); }
.transit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.transit-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.transit-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.transit-item ul li {
  font-family: var(--font-sans);
  font-size: 0.87rem;
  color: var(--text-light);
  padding: 9px 0;
  border-bottom: 1px solid var(--bg-alt);
  word-break: keep-all;
  line-height: 1.7;
}
.transit-item ul li:last-child { border-bottom: none; }

/* =====================================================
   for-ai.html 전용
   ===================================================== */
.ai-page { background: var(--white); }
.ai-content { max-width: 800px; margin: 0 auto; }
.ai-content h2 {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary);
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-bg);
}
.ai-content h2:first-child { margin-top: 0; }
.ai-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}
.ai-content p {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 14px;
  word-break: keep-all;
}
.ai-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}
.ai-content ul li {
  font-family: var(--font-sans);
  font-size: 0.91rem;
  color: var(--text-light);
  padding: 5px 0;
  line-height: 1.8;
}
.faq-list { margin-top: 20px; }
.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 14px;
}
.faq-q {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.faq-q::before { content: 'Q.'; color: var(--primary); flex-shrink: 0; }
.faq-a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.9;
  word-break: keep-all;
  padding-left: 28px;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.info-table th {
  background: var(--primary-bg);
  color: var(--primary-dark);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  width: 30%;
}
.info-table td {
  padding: 12px 16px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.info-table tr:last-child td { border-bottom: none; }

/* =====================================================
   원내 갤러리 캐러셀
   ===================================================== */
.gallery-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
  aspect-ratio: 4 / 3;
}
.gallery-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding: 40px 18px 16px;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.gallery-btn:hover { background: var(--white); box-shadow: var(--shadow); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.gallery-dot.active {
  background: var(--white);
  transform: scale(1.35);
}

/* =====================================================
   반응형
   ===================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .doctor-inner { gap: 48px; }
  .doctor-full-inner { grid-template-columns: 300px 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .why-grid,
  .hours-inner,
  .doctor-inner,
  .doctor-full-inner,
  .about-grid,
  .media-grid,
  .values-grid,
  .location-info,
  .transit-grid,
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .doctor-badge {
    position: static;
    display: inline-flex;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
  }
  .doctor-badge strong { display: inline; font-size: 1.1rem; }
  .program-item { grid-template-columns: 1fr; }
  .program-icon-col {
    padding: 20px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }
  .program-content { padding: 24px; }
  .hours-card, .contact-card { padding: 32px 24px; }
  .footer-inner { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .map-actions { flex-direction: column; }
  .map-actions .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-buttons, .cta-buttons { flex-direction: column; align-items: center; }
  .btn { max-width: 320px; width: 100%; justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  .location-info { grid-template-columns: 1fr; }
}

/* =====================================================
   블로그 — 목록 페이지
   ===================================================== */

.blog-section {
  padding: 80px 0 100px;
  background: var(--bg);
}

.blog-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.blog-stats strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-badge {
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
}

.blog-card-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}

.blog-card-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  /* 3줄 클램프 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-more {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 80px 0;
  font-size: 1rem;
}

/* =====================================================
   블로그 — 개별 포스트 페이지
   ===================================================== */

.blog-post-wrap {
  background: var(--bg);
  padding: 60px 0 100px;
}

.blog-post-inner {
  max-width: 760px;
  margin: 0 auto;
}

.back-to-blog {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  margin-bottom: 28px;
  transition: opacity 0.2s;
}

.back-to-blog:hover { opacity: 0.7; }

.post-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-meta span { display: flex; align-items: center; gap: 4px; }

/* 본문 스타일 */
.post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 56px;
}

.post-body h2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}

.post-body h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

.post-body p {
  margin: 0 0 20px;
}

.post-body ul, .post-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* CTA 박스 */
.post-cta-box {
  background: var(--primary-bg);
  border: 1px solid rgba(61,107,79,0.15);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 48px;
}

.post-cta-box p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.post-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* 이전/다음 포스트 */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav-link {
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
  max-width: 48%;
  line-height: 1.4;
  transition: opacity 0.2s;
}

.post-nav-link:hover { opacity: 0.7; }
.post-nav-link.next { text-align: right; margin-left: auto; }

/* =====================================================
   블로그 반응형
   ===================================================== */

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

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 1.5rem; }
  .post-cta-box { padding: 24px 20px; }
  .post-cta-buttons { flex-direction: column; }
  .post-cta-buttons .btn { width: 100%; justify-content: center; }
}
