/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  font-size: var(--text-body-min, 1rem);
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
  line-height: var(--line-height-body, 1.65);
}

/* 스크린리더 전용 (공통 — 헤더 빈 버튼·폼 label) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 본문 바로가기 (C-12) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10000;
  padding: 10px 16px;
  background: #193860;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid #009DDA;
  outline-offset: 2px;
}

/* ── pathbar: GNB 직하 · 히어로 위 ───────────────────────────── */
.jh-pathbar {
  background: #1e293b;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.jh-pathbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  box-sizing: border-box;
}
.jh-pathbar-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 42px;
}
.jh-pathbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #94a3b8;
}
.jh-pathbar-sep {
  display: inline-block;
  margin: 0 10px;
  color: #64748b;
  font-weight: 500;
  user-select: none;
}
.jh-pathbar-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: -4px;
  color: #ffffff !important;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.jh-pathbar-home:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  opacity: 1;
}
.jh-pathbar-home i,
.jh-pathbar-home .fa-house,
.jh-pathbar-home .fa-solid {
  font-size: 0.85rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  opacity: 1;
}
.jh-pathbar-link,
.jh-pathbar-text {
  color: #cbd5e1;
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.15s ease;
}
.jh-pathbar-link:hover {
  color: #fff;
}
.jh-pathbar-item.is-current .jh-pathbar-current {
  color: #fff;
  font-weight: 700;
  padding: 4px 2px;
}
@media screen and (max-width: 960px) {
  .jh-pathbar-inner {
    padding: 0 16px;
  }
  .jh-pathbar-list {
    min-height: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .jh-pathbar-sep {
    margin: 0 8px;
  }
}

/* 공통 브레드크럼 (C-04) — 레거시 인라인용 */
.jh-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}
.jh-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jh-breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  opacity: 0.45;
  font-weight: 500;
}
.jh-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}
.jh-breadcrumb a:hover {
  color: #009DDA;
}
.jh-breadcrumb-item.is-current span {
  color: #193860;
  font-weight: 800;
}

/* 히어로 내부 하단 앵커 — 부모 래퍼 폭을 따르고 이중 padding 제거 */
.mc-hero .jh-breadcrumb,
.dr-hero .jh-breadcrumb,
.snuh-sub-header .jh-breadcrumb,
.subpage-hero-section .jh-breadcrumb {
  max-width: none;
  width: 100%;
  margin: 20px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(25, 56, 96, 0.1);
  box-sizing: border-box;
}

/* au 기능 화면(예약·로그인 등): 흰 띠 없이 wash 히어로 한 덩어리 */
.au-hero .jh-breadcrumb {
  max-width: none;
  width: 100%;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid rgba(25, 56, 96, 0.1);
  box-sizing: border-box;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.au-hero .jh-breadcrumb a {
  color: #64748b;
}
.au-hero .jh-breadcrumb a:hover {
  color: #009DDA;
}
.au-hero .jh-breadcrumb-item.is-current span {
  color: #193860;
  font-weight: 700;
}

/* fullbleed: 본문 위 얇은 크럼 바 (프래그먼트 히어로와 분리) */
.jh-breadcrumb-fullbleed-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 0;
}
.jh-breadcrumb-fullbleed-bar .jh-breadcrumb {
  max-width: none;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(25, 56, 96, 0.08);
}

/* ── 브레드크럼 시안: 히어로 바닥 밀착 ───────────────────────── */
.mc-hero.mc-hero--bc-flush {
  display: flex;
  flex-direction: column;
  min-height: clamp(280px, 38vw, 360px);
  padding-bottom: 0;
  box-sizing: border-box;
}
.mc-hero.mc-hero--bc-flush .mc-wrap {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 0;
}
.mc-hero.mc-hero--bc-flush .jh-breadcrumb {
  margin-top: auto;
  margin-bottom: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(25, 56, 96, 0.1);
}

/* ── 브레드크럼 시안: 히어로 밖 바 ───────────────────────────── */
.jh-bc-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.jh-bc-bar .mc-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 28px;
  box-sizing: border-box;
}
.jh-bc-bar .jh-breadcrumb {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.jh-bc-bar--before-hero {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.jh-bc-bar--after-hero {
  background: #fff;
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
}

/* 시안 페이지 라벨 */
.jh-bc-mock-banner {
  position: sticky;
  top: 100px;
  z-index: 50;
  background: #193860;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  text-align: center;
  letter-spacing: -0.02em;
}
.jh-bc-mock-banner a {
  color: #7dd3fc;
  margin: 0 8px;
  text-decoration: underline;
}
.jh-bc-mock-banner a:hover {
  color: #fff;
}

/* Keyboard focus ring (보바스 가독 토큰). mouse click 은 :focus-visible 만 적용. */
:focus-visible {
  outline: var(--focus-ring-width, 3px) solid var(--color-focus-ring, rgba(0, 157, 218, 0.55));
  outline-offset: var(--focus-ring-offset, 2px);
}

/* Optional: 본문 블록에 명시적으로 가독 힌트를 줄 때 */
.text-readable {
  font-size: max(1rem, 1em);
  line-height: 1.75;
  color: var(--color-text-primary);
}

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

/* Glassmorphic GNB Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: rgba(250, 251, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none !important; /* Removed gray border-bottom line */
  z-index: 100;
  transition: all 0.3s ease;
}

.header.scrolled {
  height: 70px;
  background: rgba(250, 251, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.logo-symbol {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.2rem;
}

.logo-text span {
  font-weight: 300;
  color: var(--color-text-primary);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  padding: 10px 0;
  transition: color 0.2s;
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 250px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 15px;
  z-index: 110;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-column h3 {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 5px;
}

.dropdown-column ul {
  list-style: none;
}

.dropdown-column li {
  margin: 8px 0;
}

.dropdown-column a {
  font-size: 0.95rem;
  transition: color 0.2s;
}

.dropdown-column a:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-pill.primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-pill.primary:hover {
  background: var(--color-primary-hover);
}

.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text-primary);
  transition: background 0.2s;
}

.btn-ghost:hover {
  background: rgba(0, 157, 218, 0.1);
  color: var(--color-primary);
}

/* Spacer */
.header-spacer {
  height: 90px;
}

/* Hero Section */
.hero {
  position: relative;
  height: calc(100vh - 90px);
  background: linear-gradient(135deg, #0b0f19 0%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
}

/* ==========================================================================
   Care curve divider (사전질의서 §10 — 보이는 은은함)
   부드러운 한 획 곡선. 브랜드 그래픽으로 읽히고, 관심 시선엔 익투스 잔상.
   메인 Brand Story · 정체성 페이지 등에서만 사용. 십자가·성구 아님.
   ========================================================================== */
.jh-care-curve {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0 4px;
  pointer-events: none;
  user-select: none;
}
.jh-care-curve svg {
  width: min(220px, 42vw);
  height: 28px;
  overflow: visible;
}
.jh-care-curve path {
  fill: none;
  stroke: var(--care-curve, #009DDA);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 157, 218, 0.15);
  color: var(--color-accent-teal);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-title span {
  color: var(--color-accent-teal);
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.8), 0 0 30px rgba(0, 180, 216, 0.4);
  animation: glow-pulse 2s infinite alternate;
  display: inline-block;
}

@keyframes glow-pulse {
  from {
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.6), 0 0 20px rgba(0, 180, 216, 0.3);
    transform: scale(1);
  }
  to {
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.9), 0 0 40px rgba(0, 180, 216, 0.5), 0 0 50px rgba(0, 180, 216, 0.3);
    transform: scale(1.02);
  }
}

.hero-desc {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Quick Booking Widget */
.booking-widget {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
  gap: 15px;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.form-group input, .form-group select {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s;
  color: var(--color-text-primary);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--color-primary);
}

.form-group input:focus-visible,
.form-group select:focus-visible {
  outline: var(--focus-ring-width, 3px) solid var(--color-focus-ring, rgba(0, 157, 218, 0.55));
  outline-offset: var(--focus-ring-offset, 2px);
}

/* Dynamic waiting list status */
.queue-status-card {
  background: #f0f7fb;
  border: 1px solid rgba(0, 157, 218, 0.2);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.queue-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.queue-numbers {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Footer Easter Egg Style */
.footer {
  background: #f3f5f8;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
  color: var(--color-text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text-primary);
  margin-bottom: 10px;
}

.footer-info p {
  font-size: 0.85rem;
  margin: 4px 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Interactive Landing Page Components (Symptom, Timeline, Callback, Guide, etc.)
   ========================================================================== */

/* 1. Symptom-based Quick Menu Selector */
.symptom-selector-section {
  padding: 80px 0;
  background: var(--color-bg-main);
}

.symptom-selector-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.symptom-selector-desc {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.symptom-selector-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .symptom-selector-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

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

.symptom-card {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 30px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

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

.symptom-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-teal);
  box-shadow: 0 12px 24px rgba(0, 157, 218, 0.08);
}

.symptom-card.active {
  border-color: var(--color-primary);
  background: rgba(0, 157, 218, 0.03);
  box-shadow: 0 15px 30px rgba(0, 157, 218, 0.12);
}

.symptom-card.active::before {
  transform: scaleX(1);
}

.symptom-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: #f0f7fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.symptom-card.active .symptom-card-icon {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 157, 218, 0.4);
}

.symptom-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.symptom-card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 20px;
}

.symptom-card.active .symptom-card-tag {
  background: var(--color-accent-teal);
  color: #fff;
}

/* Slide-in Details container */
.symptom-detail-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  position: relative;
  min-height: 380px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.symptom-detail-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.symptom-detail-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.symptom-detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 15px;
  border-bottom: 2px solid #f0f7fb;
  padding-bottom: 15px;
}

.symptom-detail-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  margin-bottom: 25px;
}

.symptom-treatment-list {
  list-style: none;
  margin-bottom: 30px;
}

.symptom-treatment-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.symptom-treatment-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-teal);
  font-weight: bold;
}

/* 2. Dr. Yoo's 20-Year Story Section */
.story-section {
  background: #FCFAF6;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(140, 118, 92, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.story-left {
  position: relative;
}

.story-title-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: #8C765C;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.story-title-main {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.35;
  color: #2D251D;
  margin-bottom: 30px;
}

.story-title-main span {
  color: #C5A880;
}

/* Fancy Quote Layout */
.story-quote-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(140, 118, 92, 0.05);
  border-left: 6px solid #C5A880;
  margin-bottom: 30px;
  z-index: 2;
}

.story-quote-card::after {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 8rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(197, 168, 128, 0.08);
  pointer-events: none;
}

.story-quote-text {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.7;
  color: #2D251D;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  word-break: keep-all;
}

.story-quote-author {
  font-size: 1rem;
  color: #8C765C;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-quote-author::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #8C765C;
}

.story-philosophy-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #5D544C;
  word-break: keep-all;
}

/* Parallax Timeline */
.story-right {
  position: relative;
  padding-left: 40px;
}

.story-right::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #C5A880 0%, #E6DFD5 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

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

.timeline-dot {
  position: absolute;
  left: -49px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #C5A880;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.3);
  transition: all 0.3s ease;
  z-index: 2;
}

.timeline-item:hover .timeline-dot {
  background: #C5A880;
  transform: scale(1.2);
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: 800;
  color: #C5A880;
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #5D544C;
  font-weight: 600;
}

/* 3. Sticky Bottom Callback Bar & KakaoTalk consultation banner */
.sticky-callback-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
  border-top: 3px solid var(--color-primary);
  z-index: 999;
  padding: 18px 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.sticky-callback-bar.show {
  transform: translateY(0);
  opacity: 1;
}

.callback-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.callback-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.callback-bar-tag {
  background: rgba(0, 157, 218, 0.1);
  color: var(--color-primary);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.callback-bar-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.callback-bar-form {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
  justify-content: flex-end;
}

.callback-bar-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.callback-bar-group label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.callback-bar-input {
  height: 52px;
  padding: 0 16px;
  border: 2px solid #CBD5E1;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  width: 180px;
  color: var(--color-text-primary);
  outline: none;
  transition: all 0.2s;
}

.callback-bar-input::placeholder {
  color: #94A3B8;
}

.callback-bar-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 157, 218, 0.15);
}

.callback-bar-submit {
  height: 52px;
  padding: 0 32px;
  background: var(--color-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0, 157, 218, 0.2);
  white-space: nowrap;
}

.callback-bar-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* Floating Yellow KakaoTalk Banner */
.floating-kakao-banner {
  position: fixed;
  right: 30px;
  bottom: 100px;
  background: #FEE500;
  color: #191919;
  border-radius: 50px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(254, 229, 0, 0.4);
  z-index: 998;
  font-weight: 800;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
}

.floating-kakao-banner:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(254, 229, 0, 0.5);
}

.floating-kakao-icon {
  width: 24px;
  height: 24px;
  fill: #191919;
}

@media (max-width: 992px) {
  .callback-bar-container {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  .callback-bar-title {
    text-align: center;
  }
  .callback-bar-form {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sticky-callback-bar {
    padding: 15px 10px;
  }
  .callback-bar-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .callback-bar-group {
    width: 100%;
  }
  .callback-bar-input {
    width: 100%;
    height: 48px;
    font-size: 1.05rem;
  }
  .callback-bar-submit {
    height: 48px;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
  }
  .floating-kakao-banner {
    right: 20px;
    bottom: 220px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* 4. Subway & Parking Guides */
.guide-section {
  padding: 80px 0;
  background: var(--color-bg-main);
}

.guide-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.guide-tab-btn {
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.01);
}

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

.guide-tab-btn.active {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 157, 218, 0.2);
}

.guide-panel {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.guide-panel.active {
  display: grid;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guide-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 35px 30px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  transition: all 0.3s;
  position: relative;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border-color: var(--color-accent-teal);
}

.guide-step-badge {
  display: inline-block;
  background: rgba(0, 157, 218, 0.1);
  color: var(--color-primary);
  padding: 4px 14px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.guide-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 12px;
}

.guide-card-desc {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* 5. Equipment Tab Grid Styles */
.equipment-section {
  padding: 80px 0;
  background: #ffffff;
}

.equipment-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
}

.equipment-tab-btn {
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg-main);
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
}

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

.equipment-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(0, 157, 218, 0.2);
}

.equipment-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.equipment-grid.active {
  display: grid;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.equipment-card {
  background: var(--color-bg-main);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.01);
  transition: all 0.3s;
}

.equipment-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  border-color: var(--color-primary);
}

.equipment-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f7fb 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.equipment-card-info {
  padding: 24px;
}

.equipment-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.equipment-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ==========================================================================
   Jointheal GNB Floating Glassmorphic Header
   ========================================================================== */
#header .hd_inner {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 90px !important;
  background: rgba(250, 251, 255, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: none !important; /* Removed border line */
  z-index: 9999 !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: none !important; /* Removed box shadow line */
}

/* Scrolled slim header disabled */
#header.scrolled .hd_inner {
  height: 100px !important; /* Keep original 100px height */
  background: rgba(250, 251, 255, 0.92) !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

#header .hd_content_wrap {
  height: 100% !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Megamenu dropdown alignment under glassmorphic header */
.gnb_depth2_bg {
  top: 90px !important; /* Positioned exactly at 90px to preventSpacingGap */
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#header.scrolled .gnb_depth2_bg {
  top: 90px !important;
}

/* Online Booking Button - Pill shape */
#header .header-auth-actions a[href*="reservation"] {
  border-radius: var(--radius-pill, 100px) !important;
  background: var(--color-primary, #009DDA) !important;
  transition: all 0.3s ease !important;
  font-weight: 700 !important;
  white-space: nowrap !important; /* Force single line text rendering */
}

#header .header-auth-actions a[href*="reservation"]:hover {
  background: var(--color-primary-hover, #0085ba) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 15px rgba(0, 157, 218, 0.25) !important;
}


/* ==========================================================================
   Deep Luxury Dark Footer Styles
   ========================================================================== */
#footer {
  background: #0b0f19 !important; /* Premium Dark Navy */
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Subtle Aurora Gradient Background in Footer */
#footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 157, 218, 0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: aurora-glow 15s infinite linear;
  z-index: 1;
}

@keyframes aurora-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.footer-container {
  position: relative;
  z-index: 2;
}

.footer-contact-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: var(--radius-card, 12px) !important;
}

.footer-contact-card:hover {
  border-color: rgba(0, 157, 218, 0.2) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
}




/* ==========================================================================
   Responsive Mobile & Tablet Tuning Rules
   ========================================================================== */
@media screen and (max-width: 1024px) {
  /* Adjust container paddings */
  .container, .main3-container, .footer-container, .header-container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* 10 Major Centers Grid for Tablet */
  .main3-centers-grid-10 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .main3-centers-grid-10 .center-card.double-width {
    grid-column: span 2 !important;
  }

  /* Brand story flex to column for tablet */
  .main3-brand-story-flex {
    flex-direction: column !important;
    gap: 40px !important;
  }
  .main3-brand-doctor-card, .main3-brand-history-card {
    width: 100% !important;
  }

  /* Map flex to column for tablet */
  .main3-map-flex {
    flex-direction: column !important;
    gap: 30px !important;
  }
  .main3-map-badges {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 15px !important;
  }
  .main3-badge-btn {
    width: calc(50% - 10px) !important;
    margin: 0 !important;
  }
  .main3-map-frame-box {
    width: 100% !important;
  }
}

@media screen and (max-width: 768px) {
  /* Hero Section fonts */
  .main3-hero-title {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
  }
  .main3-hero-subtitle {
    font-size: 1.05rem !important;
  }
  .main3-hero-metrics {
    flex-direction: column !important;
    gap: 15px !important;
    align-items: flex-start !important;
  }

  /* Quick menu row adjustments */
  .main3-quick-row-large {
    grid-template-columns: 1fr !important;
  }
  .main3-quick-row-small {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 10 Major Centers Grid for Mobile */
  .main3-centers-grid-10 {
    grid-template-columns: 1fr !important;
  }
  .main3-centers-grid-10 .center-card.double-width {
    grid-column: span 1 !important;
  }

  /* Doctors grid to column */
  .main3-doctors-grid {
    grid-template-columns: 1fr !important;
  }
  .doctor-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .doc-avatar-box {
    width: 100% !important;
    max-width: 200px !important;
    margin-bottom: 20px !important;
  }

  /* Map badges for mobile */
  .main3-badge-btn {
    width: 100% !important;
  }
  
  /* Map frame box layout */
  .main3-map-frame-box {
    flex-direction: column !important;
  }
  .main3-map-address-card {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
  .main3-map-holder {
    height: 250px !important;
  }

  /* Subpage Card padding for Mobile */
  .subpage-modern-card {
    padding: 30px 20px !important;
    border-radius: 16px !important;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   큰글씨 모드 토글 (헤더 유틸)
   rem 스케일은 tokens.css 의 html.large-type. 버튼 외형만 여기서 맞춤.
   ───────────────────────────────────────────────────────────────────────── */
.header-large-type-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1.5px solid rgba(0, 157, 218, 0.35);
  color: var(--color-text-primary, #3A3A3C);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-large-type-toggle:hover {
  color: var(--color-primary, #009DDA);
  border-color: var(--color-primary, #009DDA);
  background: rgba(0, 157, 218, 0.06);
}

.header-large-type-toggle[aria-pressed="true"] {
  color: #ffffff;
  background: var(--color-primary, #009DDA);
  border-color: var(--color-primary, #009DDA);
}

.header-large-type-toggle[aria-pressed="true"]:hover {
  background: var(--color-primary-hover, #0085ba);
  border-color: var(--color-primary-hover, #0085ba);
  color: #ffffff;
}

/* 모바일 드로어 안 — 터치 타깃 확대 */
.mobile_user_section .header-large-type-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
}

@media screen and (min-width: 961px) {
  #header .header-auth-actions .header-large-type-toggle {
    flex-shrink: 0;
  }
}
