/* ==============================================================================
   삼성엠알진단방사선과의원 월드클래스 디자인 시스템 (site.css)
   - 의료 전문 진단 의원 최고 등급 비주얼 아이덴티티
   - 스위스 국제주의 & 프리미엄 메디컬 아키텍처 타이포그래피
   - Zero-Pill 규율 준수, 비대칭 벤토 그리드, 고대비 WCAG AA 규격
   - 모바일 반응형, 웹 접근성, SEO/GEO 최적화
   ============================================================================== */

/* 1. 웹폰트: Pretendard 최신 경량 CDN 정식 임포트 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* 2. 전역 디자인 토큰 (Design Tokens) */
:root {
  /* 주조색: 깊고 신뢰감 있는 소버린 네이비 (Sovereign Deep Navy) */
  --primary-navy: #091e3a;
  --primary-navy-dark: #061529;
  --primary-navy-light: #0f2d57;

  /* 보조색: 정밀 영상의학을 상징하는 임상 메디컬 아주르 & 코발트 */
  --primary-blue: #0284c7;
  --primary-blue-hover: #0369a1;
  --primary-blue-light: #f0f7fe;
  --primary-blue-border: #bae6fd;
  --color-cobalt: #1d4ed8;

  /* 텍스트 계층 (Typographic Hierarchy) */
  --text-main: #0f172a;        /* 본문 주요 텍스트 (Deep Slate 900) */
  --text-muted: #334155;       /* 설명 및 리드 텍스트 (Slate 700) */
  --text-light: #64748b;       /* 메타데이터, 타임스탬프 (Slate 500) */
  --text-subtle: #94a3b8;      /* 힌트 및 비활성 텍스트 */

  /* 배경 표면 (Architectural Surface System) */
  --bg-canvas: #fcfcfd;        /* 최상위 캔버스 필드 */
  --bg-body: #ffffff;          /* 메인 본문 배경 */
  --bg-subtle: #f8fafc;        /* 서브 섹션 배경 (Cool Slate Tint) */
  --bg-card: #ffffff;          /* 카드 표면 */
  --bg-elevated: #ffffff;      /* 플로팅/모달 표면 */
  --bg-dark-surface: #091728;  /* 딥 네이비 다크 서피스 */

  /* 테두리 및 구분선 (Hairline Divider System) */
  --border-color: rgba(226, 232, 240, 0.85);
  --border-subtle: rgba(241, 245, 249, 0.9);
  --border-focus: #0284c7;

  /* 다층 유기적 앰비언트 그림자 (Natural Ambient Shadows) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 14px 32px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 22px 50px -12px rgba(15, 23, 42, 0.15);

  /* 모서리 곡률 (Strict Spatial Math: Outer 16px -> Inner 10px) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* 레이아웃 폭 */
  --container-max: 1200px;
}

/* 3. 기본 리셋 및 안티앨리어싱 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* 숫자/데이터 정밀 수직 정렬을 위한 타뷸라 수치 */
.tabular-num,
.post-card-date,
time,
.summary-dd {
  font-variant-numeric: tabular-nums;
}

/* 접근성 초점 링 (Focus Visible) */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

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

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

/* 4. 컨테이너 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* 5. 공통 버튼 컴포넌트 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -0.015em;
  position: relative;
}

.btn:active {
  transform: scale(0.98);
}

/* 주요 행동 버튼: 소버린 네이비 솔리드 */
.btn-primary {
  background: var(--primary-navy);
  color: #ffffff !important;
  border-color: var(--primary-navy-dark);
  box-shadow: 0 2px 6px rgba(9, 30, 58, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--primary-navy-light);
  box-shadow: 0 6px 18px rgba(9, 30, 58, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1.5px);
  color: #ffffff !important;
}

/* 네이버 블로그/예약 연동 버튼: 단정하고 절제된 의료 저널 스타일 */
.btn-secondary {
  background-color: #ffffff;
  color: #028a3e !important;
  border: 1.5px solid #03c75a;
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: #f0fdf4;
  border-color: #029443;
  color: #027334 !important;
  transform: translateY(-1.5px);
  box-shadow: var(--shadow-sm);
}

/* 화이트 솔리드 고대비 버튼 (다크 배경 및 CTA 배너용) */
.btn-white,
.cta-banner-actions .btn-primary,
.cta-banner-actions .btn-white {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--primary-navy) !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}
.btn-white:hover,
.btn-white:focus-visible,
.cta-banner-actions .btn-primary:hover,
.cta-banner-actions .btn-primary:focus-visible,
.cta-banner-actions .btn-white:hover,
.cta-banner-actions .btn-white:focus-visible {
  background: #f0f7fe !important;
  background-image: none !important;
  color: var(--primary-blue-hover) !important;
  border-color: #f0f7fe !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* 아웃라인 버튼 */
.btn-outline {
  background-color: #ffffff;
  color: var(--primary-navy);
  border: 1.5px solid #cbd5e1;
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--primary-blue-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue-hover);
  transform: translateY(-1.5px);
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.15rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* 6. 상단 고정 헤더 (Architectural Glassmorphism Header) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 12px rgba(9, 30, 58, 0.035);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-brand,
.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0;
  transition: opacity 0.15s ease;
  text-decoration: none;
}
.logo-brand:hover,
.logo-title:hover {
  opacity: 0.92;
}

.logo-brand-sub {
  color: var(--primary-blue);
  font-weight: 800;
  margin-left: 0.12rem;
}

.logo-sub {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 0.25rem 0;
}
.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
}
.nav-link:hover, .nav-link:focus-visible {
  color: var(--primary-navy);
  background-color: var(--bg-subtle);
}
.nav-link.active, .nav-link[aria-current="page"] {
  color: var(--primary-blue);
  font-weight: 700;
  background-color: var(--primary-blue-light);
}

.nav-tel-btn {
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
  flex-shrink: 0;
  font-weight: 700;
}

/* ==========================================================================
   드롭다운 내비게이션 (Smooth Cascading Navigation Dropdown)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-chevron {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  opacity: 0.6;
  line-height: 1;
}

.nav-item-dropdown:hover .dropdown-chevron,
.nav-item-dropdown:focus-within .dropdown-chevron,
.nav-item-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--primary-blue);
}

/* 마우스가 트리거에서 드롭다운으로 이동 시 틈새 닫힘 방지 브리지 포함 드롭다운 메뉴 */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 270px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.22s;
  pointer-events: none;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.16s ease, transform 0.16s ease, border-left-color 0.16s ease;
  white-space: normal;
  border-left: 3px solid transparent;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  background-color: var(--primary-blue-light);
  border-left-color: var(--primary-blue);
  transform: translateX(3px);
}

.dropdown-link-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.dropdown-link:hover .dropdown-link-title {
  color: var(--primary-blue-hover);
}

.dropdown-link-desc {
  font-size: 0.785rem;
  color: var(--text-light);
  line-height: 1.35;
  margin-top: 0.2rem;
}

.dropdown-link-all {
  border-top: 1px solid var(--border-color);
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  background-color: var(--bg-subtle);
}
.dropdown-link-all .dropdown-link-title {
  color: var(--primary-blue);
  font-weight: 800;
}

@media (min-width: 861px) {
  .nav-menu {
    overflow: visible;
  }
}

/* ==========================================================================
   모바일 내비게이션 & 3단 햄버거 바 시스템 (Mobile Nav Curtain & Cascading Accordions)
   ========================================================================== */
.mobile-header-actions {
  display: none;
}

.mobile-nav-curtain {
  display: none;
}

.mobile-nav-top-banner {
  display: none !important;
}

/* 1. 데스크톱 & 모니터 비율 (화면 너비 861px 이상) - 오직 원래 데스크톱 메뉴만 표시 */
@media (min-width: 861px) {
  .desktop-nav {
    display: flex !important;
    align-items: center;
  }
  .mobile-header-actions {
    display: none !important;
  }
  .mobile-nav-curtain {
    display: none !important;
  }
}

/* 2. 모바일 화면 비율 (스마트폰 및 소형 모바일 기기: 860px 이하) - 햄버거 메뉴바 활성화 */
@media (max-width: 860px) {
  .header-inner {
    height: 66px !important;
    gap: 0.5rem !important;
    justify-content: space-between !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-header-actions {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .mobile-quick-call {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    background-color: var(--primary-blue-light);
    color: var(--primary-blue) !important;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid rgba(2, 132, 199, 0.2);
    transition: all 0.15s ease;
    flex-shrink: 0 !important;
  }
  .mobile-quick-call:active {
    transform: scale(0.96);
    background-color: #dbeafe;
  }

  .mobile-hamburger-btn {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    z-index: 100001;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0 !important;
  }
  .mobile-hamburger-btn * {
    pointer-events: none;
  }
  .mobile-hamburger-btn:hover,
  .mobile-hamburger-btn:focus-visible {
    background-color: var(--bg-subtle);
    border-color: var(--primary-blue);
  }

  .hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.2s ease,
                background-color 0.2s ease;
  }

  /* 햄버거 -> X자 변형 모션 */
  .mobile-hamburger-btn.is-active .top-bar {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--primary-blue);
  }
  .mobile-hamburger-btn.is-active .middle-bar {
    opacity: 0;
    transform: scaleX(0);
  }
  .mobile-hamburger-btn.is-active .bottom-bar {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--primary-blue);
  }

  .site-header {
    z-index: 100000 !important;
    position: sticky !important;
    top: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #ffffff !important;
  }

  /* 슬라이드 다운 모바일 커튼 */
  .mobile-nav-curtain {
    display: none;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    max-height: calc(100dvh - 66px);
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(9, 30, 58, 0.16);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s;
  }

  .mobile-nav-curtain.is-open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  body.mobile-nav-locked {
    overflow: hidden !important;
  }

  .mobile-nav-inner {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 3rem;
  }

  .mobile-nav-top-banner {
    display: none !important;
  }

  .mobile-nav-clinic-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-nav-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.01em;
  }

  .mobile-nav-tel a {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-navy);
    text-decoration: none;
    letter-spacing: -0.02em;
  }

  .mobile-nav-call-btn {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 0.45rem 1rem !important;
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
  }

  .mobile-accordion-item {
    border-bottom: 1px solid #f1f5f9;
  }

  .mobile-accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
  }

  .mobile-accordion-trigger:hover,
  .mobile-accordion-trigger:focus-visible {
    background-color: #f8fafc;
  }

  .mobile-item-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.02em;
  }

  .mobile-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
  }

  .mobile-chevron {
    font-size: 0.8rem;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  }

  .mobile-accordion-item.is-open .mobile-chevron {
    transform: rotate(180deg) !important;
    color: var(--primary-blue) !important;
  }

  .mobile-accordion-content {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 0.85rem;
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
    gap: 0.25rem;
  }

  .mobile-accordion-item.is-open .mobile-accordion-content {
    display: flex !important;
  }

  .mobile-sub-link {
    display: flex;
    flex-direction: column;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }

  .mobile-sub-link:hover,
  .mobile-sub-link:active {
    background-color: #eef6ff;
    transform: translateX(3px);
  }

  .sub-link-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: -0.015em;
  }

  .sub-link-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.15rem;
  }

  .mobile-sub-link-all {
    margin-top: 0.35rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    background: #ffffff;
  }
  .mobile-sub-link-all .sub-link-title {
    color: var(--primary-blue);
    font-weight: 800;
  }

  .mobile-nav-direct-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease;
  }

  .mobile-nav-direct-link:hover,
  .mobile-nav-direct-link:active {
    background-color: #f8fafc;
  }

  .mobile-link-arrow {
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
  }

  .mobile-link-external {
    font-size: 0.785rem;
    font-weight: 700;
    color: #03c75a;
    background: #f0fdf4;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
  }

  .mobile-link-badge {
    font-size: 0.785rem;
    font-weight: 700;
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
  }

  .mobile-nav-footer {
    padding: 1.5rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .mobile-nav-footer-addr {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
  }

  .mobile-nav-footer-tel {
    color: #64748b;
  }
}

/* ==========================================================================
   7. 메인 히어로 섹션 (Prestige Medical Hero)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  background: radial-gradient(120% 100% at 50% 0%, #f4f8fc 0%, #ffffff 75%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* 언박스드 메타데이터 에디토리얼 키커 (Zero-Pill) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.04em;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.35rem, 4.6vw, 3.25rem);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-title-accent {
  color: var(--primary-blue);
  font-weight: 800;
}

.hero-title-tag {
  display: inline;
}

.hero-title-phrase {
  display: inline;
}

.hero-desktop-br {
  display: inline;
}

@media (max-width: 640px) {
  .hero-title-tag {
    display: block;
    margin-bottom: 0.15rem;
  }
  .hero-title-phrase {
    display: block;
  }
  .hero-desktop-br {
    display: none;
  }
}

.hero-lead,
.hero-body {
  font-size: 1.075rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.25rem;
  max-width: 600px;
  text-wrap: pretty;
}

.hero-subtitle {
  display: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-light);
  margin-left: 0.25rem;
  transition: color 0.15s ease;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero-subtle-link:hover {
  color: var(--primary-navy);
}

/* 히어로 MRI 프레임 & 앰비언트 모션 */
@keyframes mriLevitate {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0px); }
}

.hero-image-wrapper {
  position: relative;
  animation: mriLevitate 7s ease-in-out infinite;
}

.hero-image-wrapper .media-figure,
.hero-media-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: #f1f5f9;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-media-wrapper img,
.media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 고해상도 장비 캡션 바 (Authentic Equipment Metadata) */
.hero-media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 30, 58, 0.88) 100%);
  color: #ffffff;
  font-size: 0.785rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(4px);
}

.hero-mri-badge {
  display: none;
}

/* ==========================================================================
   8. 히어로 하단 4대 신뢰 지표 (Architectural Trust Pillars Grid)
   ========================================================================== */
.trust-pillars-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .trust-pillars-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 540px) {
  .trust-pillars-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
}

.trust-pillar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.trust-pillar-tag {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-pillar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.trust-pillar-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.quick-info-bar {
  display: none;
}

/* ==========================================================================
   9. 섹션 공통 스타일
   ========================================================================== */
.section-padding {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-kicker {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.45rem);
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.section-lead {
  font-size: 1.075rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
  text-wrap: pretty;
}

.caution-note {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-top: 0.5rem;
}

/* ==========================================================================
   10. 핵심 진단 역량 비대칭 벤토 그리드 (Asymmetric Bento Grid)
   ========================================================================== */
.services-bg {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.services-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.bento-marquee-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .bento-marquee-row {
    grid-template-columns: 1fr;
  }
}

.bento-card-marquee {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.bento-card-marquee:hover {
  border-color: var(--primary-blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bento-card-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--primary-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.bento-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento-card-marquee:hover .bento-card-title {
  color: var(--primary-blue-hover);
}

.bento-card-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.95rem;
}

.bento-card-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}

.bento-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.bento-tag-item {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
}

.bento-card-cta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, color 0.2s ease;
  margin-top: auto;
}
.bento-card-marquee:hover .bento-card-cta {
  color: var(--primary-blue);
  transform: translateX(4px);
}

.bento-supporting-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .bento-supporting-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .bento-supporting-row {
    grid-template-columns: 1fr;
  }
}

.bento-card-sub {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.bento-card-sub:hover {
  border-color: var(--primary-blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bento-sub-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bento-card-sub:hover .bento-sub-title {
  color: var(--primary-blue);
}

.bento-sub-desc {
  font-size: 0.885rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}

.cards-grid {
  display: none;
}
.service-card {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   11. 의료진 철학 & 원내 공간 쇼케이스 (Director Editorial Showcase)
   ========================================================================== */
.director-showcase-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .director-showcase-box {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
}

.media-aspect-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #e2e8f0;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.director-quote-kicker {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--primary-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.director-quote {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.45;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.director-prose {
  font-size: 1.025rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.director-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.director-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.director-creds {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ==========================================================================
   12. 검사 진행 5단계 파이프라인 (Milestone Pipeline Track)
   ========================================================================== */
.steps-container {
  margin-top: 3.5rem;
}

.steps-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.steps-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.workflow-pipeline,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

@media (max-width: 900px) {
  .workflow-pipeline,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .workflow-pipeline,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.step-badge {
  font-size: 0.825rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  display: block;
}

.step-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.55;
}

.steps-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1.5rem;
}

/* ==========================================================================
   13. 오시는 길 및 진료시간 섹션 (Location & Clinic Hours)
   ========================================================================== */
.location-section {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.map-frame-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.location-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .location-info-grid {
    grid-template-columns: 1fr;
  }
}

.location-details {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.info-list-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}
.info-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-key {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.info-val {
  font-size: 0.985rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.6;
}

.hours-highlight-box {
  background-color: var(--primary-blue-light);
  border: 1px solid var(--primary-blue-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 0.75rem 0;
}
.hours-highlight-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-cobalt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hours-highlight-sub {
  font-size: 0.825rem;
  color: #0369a1;
  margin-top: 0.2rem;
}

.region-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.region-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
  letter-spacing: -0.015em;
}

.region-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ==========================================================================
   14. FAQ 아코디언 섹션
   ========================================================================== */
.faq-section {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-summary {
  padding: 1.5rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color 0.15s ease;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary:hover {
  color: var(--primary-blue);
}

.faq-summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-summary::after {
  content: "−";
  color: var(--primary-blue);
}

.faq-content {
  padding-bottom: 1.5rem;
  font-size: 0.985rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ==========================================================================
   15. 푸터 (High-Class Dark Slate Footer)
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark-surface);
  color: #94a3b8;
  padding: 4.5rem 0 3.5rem;
  font-size: 0.925rem;
  line-height: 1.75;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-clinic-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.25rem 0;
}

@media (max-width: 700px) {
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-nav-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-nav-col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-col-list a {
  color: #94a3b8;
  transition: color 0.15s ease;
}
.footer-nav-col-list a:hover {
  color: #ffffff;
}

.footer-legal-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #cbd5e1;
  font-size: 0.85rem;
  transition: color 0.15s ease;
}
.footer-legal-link:hover {
  color: #ffffff;
}

.footer-legal-divider {
  color: rgba(255, 255, 255, 0.2);
}

.footer-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
}
.footer-meta-list a {
  color: #94a3b8;
  text-decoration: underline;
}

/* ==========================================================================
   16. 모바일 하단 고정 액션 바
   ========================================================================== */
.mobile-fixed-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fixed-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-color);
    z-index: 99;
    padding: 0 1rem;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  }

  .mobile-action-btn-tel {
    flex: 1.3;
    min-height: 44px;
    background: var(--primary-navy);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
  }

  .mobile-action-btn-map {
    flex: 1;
    min-height: 44px;
    background: #f1f5f9;
    color: var(--primary-navy);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
  }
}

/* 17. AI 챗봇 위젯 & 플로팅 버튼 */
#ai-chat-root {
  position: fixed;
  bottom: 74px;
  right: 28px;
  z-index: 1000;
  font-family: inherit;
}

.ai-floating-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #092347 0%, #0284c7 100%);
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 24px rgba(9, 35, 71, 0.28);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
  outline: none;
}

.ai-floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(9, 35, 71, 0.38);
}

.ai-floating-btn:active {
  transform: scale(0.95);
}

.ai-badge-text {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ai-sub-text {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.95;
  margin-top: 2px;
}

.ai-tooltip {
  position: absolute;
  bottom: 74px;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: bounceTooltip 2s infinite ease-in-out;
}

.ai-tooltip button {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

@keyframes bounceTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ai-chat-container {
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 590px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
  background: linear-gradient(135deg, #092347 0%, #10386b 100%);
  color: #ffffff;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ai-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-navy);
  font-weight: 800;
  font-size: 0.825rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.ai-header-title {
  font-size: 0.985rem;
  font-weight: 800;
}

.ai-header-status {
  font-size: 0.735rem;
  color: #7dd3fc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.ai-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0.8;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.ai-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

.ai-disclaimer-banner {
  background: #f0f7fe;
  border-bottom: 1px solid #e0f0fe;
  padding: 0.5rem 0.95rem;
  font-size: 0.775rem;
  color: #0369a1;
  text-align: center;
  line-height: 1.45;
}

.ai-chat-messages {
  flex: 1;
  padding: 1.15rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: #f8fafc;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-msg.bot {
  align-self: flex-start;
}

.msg-bubble {
  padding: 0.75rem 1.05rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.65;
  word-break: break-word;
}

.chat-msg.user .msg-bubble {
  background: linear-gradient(135deg, #10386b 0%, #092347 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.bot .msg-bubble {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.65rem 1rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}
.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingPulse 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

.ai-quick-chips {
  padding: 0.55rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.ai-quick-chips::-webkit-scrollbar { display: none; }

.chip-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.75rem;
  font-size: 0.795rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  font-family: inherit;
}
.chip-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ai-chat-input-box {
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ai-chat-input-box input {
  flex: 1;
  height: 42px;
  border-radius: 21px;
  border: 1px solid #cbd5e1;
  padding: 0 1rem;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.ai-chat-input-box input:focus {
  border-color: var(--primary-blue);
}

.ai-chat-input-box button {
  height: 42px;
  padding: 0 1.15rem;
  border-radius: 21px;
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.ai-chat-input-box button:hover {
  background: var(--primary-navy-light);
}

.ai-tel-footer {
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.765rem;
  color: #64748b;
}
.ai-tel-footer a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 768px) {
  #ai-chat-root {
    bottom: calc(230px + env(safe-area-inset-bottom, 0px));
    right: 16px;
  }
  .ai-chat-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 82vh;
    max-height: 82vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
    z-index: 1001;
  }
}

/* 18. 신규 서브 페이지 공통 컴포넌트 (검사 상세, 지역 안내, 404 등) */
.breadcrumb-nav {
  padding: 1.25rem 0 0.75rem;
  font-size: 0.885rem;
  color: var(--text-light);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.45rem;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin-right: 0.45rem;
  color: #94a3b8;
  font-weight: 700;
}

.breadcrumb-item a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-navy);
  text-decoration: underline;
}

.breadcrumb-item[aria-current="page"] {
  color: var(--primary-navy);
  font-weight: 700;
}

/* 상세 페이지 헤더 (Prestige Medical Gradient Header) */
.detail-page-header {
  padding: 3rem 0 2.25rem;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(100% 120% at 50% 0%, #edf5fc 0%, #f8fafc 55%, #ffffff 100%);
  position: relative;
}

.detail-main-title {
  font-size: clamp(1.95rem, 4.5vw, 2.65rem);
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.detail-sub-desc {
  font-size: 1.085rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 핵심 정보 요약 카드 (Summary Card) */
.detail-summary-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.85rem 2rem;
  margin: 2rem 0 2.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.detail-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #f0f7fe;
  color: #0369a1;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid #bae6fd;
  margin-bottom: 1rem;
}

.detail-lead-sentence {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.75;
  background-color: #f8fafc;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-blue);
  margin-bottom: 1.5rem;
}

.summary-dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.95rem 1.5rem;
  font-size: 0.985rem;
  line-height: 1.65;
}

.summary-dt {
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  align-items: flex-start;
}

.summary-dd {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .summary-dl {
    grid-template-columns: 1fr;
    gap: 0.4rem 0;
  }
  .summary-dt {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.885rem;
  }
  .summary-dd {
    font-weight: 600;
  }
}

.check-needed {
  display: inline-block;
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid #fde68a;
  vertical-align: middle;
}

/* 본문 콘텐츠 섹션 */
.content-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.content-section:last-of-type {
  border-bottom: none;
}

.content-section-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-body-p {
  font-size: 1.035rem;
  color: var(--text-muted);
  line-height: 1.88;
  margin-bottom: 1.35rem;
}

.content-body-p strong {
  color: var(--text-main);
}

.guidance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.35rem 0;
}

.guidance-list-item {
  position: relative;
  padding-left: 1.65rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.guidance-list-item::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  top: -0.1rem;
  color: var(--primary-blue);
  font-size: 1.3rem;
  font-weight: 800;
}

/* 지역 안내 표 */
.area-table-wrapper {
  overflow-x: auto;
  margin: 1.75rem 0 2.25rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.area-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.965rem;
  min-width: 620px;
}

.area-table th, .area-table td {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.65;
}

.area-table th {
  background-color: var(--bg-subtle);
  font-weight: 700;
  color: var(--primary-navy);
  white-space: nowrap;
}

.area-table tr:last-child td {
  border-bottom: none;
}

.area-table td strong {
  color: var(--primary-navy);
}

/* 세부 검사 항목 그리드 */
.exam-part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.exam-part-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.exam-part-card:hover {
  border-color: var(--primary-blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.exam-part-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.exam-part-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.exam-part-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-naver);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
  transition: color 0.15s ease;
}

.exam-part-link:hover, .exam-part-link:focus-visible {
  color: var(--color-naver-hover);
  text-decoration: underline;
}

/* 관련 검사 그리드 */
.related-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.35rem;
  margin: 1.65rem 0 2.75rem;
}

.related-test-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem 1.65rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.related-test-card:hover, .related-test-card:focus-visible {
  border-color: var(--primary-blue-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-test-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.related-test-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* 전화 바로 문의 배너 */
.cta-banner-box {
  background: linear-gradient(135deg, #092347 0%, #0d386b 60%, #0284c7 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.25rem;
  text-align: center;
  margin: 3.5rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.85rem;
  letter-spacing: -0.025em;
}

.cta-banner-desc {
  font-size: 1.075rem;
  color: #e0f2fe;
  margin-bottom: 1.85rem;
  line-height: 1.75;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-banner-actions .btn-outline,
.btn-outline-white {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  font-weight: 700;
}
.cta-banner-actions .btn-outline:hover,
.cta-banner-actions .btn-outline:focus-visible,
.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background-color: #ffffff !important;
  color: var(--primary-navy) !important;
  border-color: #ffffff !important;
}

/* 404 페이지 전용 */
.error-page-container {
  padding: 6.5rem 1.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.error-code {
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 1.15rem;
}

.error-title {
  font-size: clamp(1.45rem, 3.8vw, 1.95rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.075rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

/* 19. 대중교통 버스 노선 뱃지 */
.bus-route-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0.75rem 0;
  padding: 0.5rem 0;
}

.bus-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.825rem;
  font-weight: 800;
  padding: 0.28rem 0.75rem;
  border-radius: 6px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.bus-type-green {
  background-color: #16a34a;
  color: #ffffff;
}

.bus-type-pink {
  background-color: #ec4899;
  color: #ffffff;
}

.bus-type-red {
  background-color: #dc2626;
  color: #ffffff;
}

.bus-numbers-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.bus-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  line-height: 1.2;
}

.bus-num-green {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
}

.bus-num-pink {
  background-color: #fdf2f8;
  color: #db2777;
  border: 1.5px solid #f472b6;
}

.bus-num-red {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fca5a5;
}

/* 20. 게시판 (/posts/) 및 포스트 상세 페이지 스타일 */
.posts-header-compact {
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(100% 120% at 50% 0%, #edf5fc 0%, #f8fafc 55%, #ffffff 100%);
}

.posts-main-title {
  font-size: clamp(1.65rem, 3.8vw, 2.15rem);
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.posts-sub-desc {
  font-size: 0.985rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .posts-header-compact {
    padding: 1rem 0 0.75rem;
  }
  .posts-main-title {
    font-size: 1.35rem;
    margin-bottom: 0;
  }
  .posts-sub-desc {
    display: none;
  }
  .breadcrumb-nav {
    padding: 0.4rem 0;
    font-size: 0.825rem;
  }
}

.posts-container {
  padding: 1.75rem 0 4rem;
}

@media (max-width: 640px) {
  .posts-container {
    padding: 0.85rem 0 2.5rem;
  }
}

.posts-filter-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .posts-filter-wrapper {
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
  }
}

.posts-category-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
}
.posts-category-nav::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.category-tab:hover {
  background: #edf2f7;
  border-color: #cbd5e1;
  color: var(--primary-navy);
}

.category-tab.active {
  background-color: var(--primary-navy);
  border-color: var(--primary-navy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(9, 35, 71, 0.22);
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.725rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-weight: 700;
}

.category-tab.active .category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.posts-control-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

@media (max-width: 640px) {
  .posts-control-bar {
    margin-top: 0.55rem;
    gap: 0.45rem;
  }
}

.post-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

.post-search-input {
  width: 100%;
  height: 40px;
  padding: 0 2rem 0 2.35rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.post-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.post-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #94a3b8;
  pointer-events: none;
}

.post-search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  display: none;
}

.post-search-clear:hover {
  color: #1e293b;
}

.post-sort-box {
  position: relative;
  flex-shrink: 0;
}

.post-sort-select {
  height: 40px;
  padding: 0 2rem 0 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  background-color: #ffffff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.post-sort-select:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.posts-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.posts-reset-btn {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 0.825rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.15rem 0.35rem;
  font-family: inherit;
}
.posts-reset-btn:hover {
  color: var(--primary-blue-hover);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1rem;
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
  position: relative;
}

@media (max-width: 640px) {
  .post-card {
    padding: 0.95rem 1.15rem;
  }
}

.post-card:hover, .post-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary-blue-border);
  box-shadow: var(--shadow-md);
}

.post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.post-badges-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.post-badge-category {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  background-color: #f0f7fe;
  color: var(--primary-navy);
  font-size: 0.775rem;
  font-weight: 700;
  border-radius: 4px;
}

.post-badge-pinned {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.55rem;
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 0.775rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: -0.01em;
}

.post-badge-draft {
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}

.post-card.is-pinned {
  border: 1.5px solid #0284c7;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.post-card.is-pinned:hover, .post-card.is-pinned:focus-visible {
  border-color: #0369a1;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.16);
}

.post-card-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-left: auto;
}

.post-card-title {
  font-size: 1.075rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.45;
  margin: 0;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}

@media (max-width: 640px) {
  .post-card-title {
    font-size: 0.985rem;
    line-height: 1.4;
  }
}

.post-card:hover .post-card-title {
  color: var(--primary-blue);
}

.posts-empty-card {
  background-color: #ffffff;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
  padding: 4rem 1.75rem;
  text-align: center;
  margin-top: 2.5rem;
}

.posts-empty-icon {
  font-size: 3rem;
  margin-bottom: 1.15rem;
}

.posts-empty-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.65rem;
}

.posts-empty-desc {
  font-size: 1.025rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

/* 21. 포스트 상세 페이지 */
.post-detail-header {
  padding: 3rem 0 2rem;
  background: radial-gradient(100% 120% at 50% 0%, #edf5fc 0%, #f8fafc 55%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

.post-detail-title {
  font-size: clamp(1.85rem, 4.5vw, 2.45rem);
  font-weight: 900;
  color: var(--primary-navy);
  letter-spacing: -0.035em;
  line-height: 1.28;
  margin-bottom: 1.15rem;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-meta-label {
  color: var(--text-light);
  font-weight: 500;
}

.post-meta-val {
  color: var(--text-main);
  font-weight: 700;
}

.post-oneliner-card {
  background-color: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-sm);
}

.post-oneliner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  background-color: #f0f7fe;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid #bfdbfe;
  margin-bottom: 1.35rem;
}

.post-oneliner-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.95rem 1.35rem;
  font-size: 0.985rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .post-oneliner-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem 0;
  }
  .post-oneliner-term {
    margin-top: 0.75rem;
  }
}

.post-oneliner-term {
  font-weight: 700;
  color: var(--primary-navy);
}

.post-oneliner-desc {
  color: var(--text-main);
}

.post-inline-link {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-inline-link:hover {
  color: var(--primary-navy);
}

.post-original-bar {
  margin: 1.75rem 0 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.post-original-notice {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.post-summary-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.post-summary-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.post-summary-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.85;
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.35rem;
  background-color: #f8fafc;
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-sm);
}

.post-thumbnail-wrap {
  margin: 2.25rem auto 2.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 880px;
  width: 100%;
  background-color: #ffffff;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem;
  box-sizing: border-box;
}

.post-thumbnail-img {
  max-width: 100%;
  width: auto;
  max-height: 85vh;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.post-main-content-section {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .post-main-content-section {
    padding: 1.65rem 1.35rem;
  }
}

.post-main-content-heading {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.65rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid #e2e8f0;
  letter-spacing: -0.02em;
}

.post-content-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 2.25rem 0 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #e2e8f0;
  letter-spacing: -0.02em;
}
.post-content-h2:first-child {
  margin-top: 0;
}

.post-content-h3 {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.015em;
}
.post-content-h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background-color: var(--primary-blue);
  border-radius: 2px;
}
.post-content-h3:first-child {
  margin-top: 0;
}

.post-content-h4 {
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 1.65rem 0 0.65rem;
}

.post-content-p {
  font-size: 1.035rem;
  color: var(--text-main);
  line-height: 1.88;
  margin-bottom: 1.35rem;
  word-break: keep-all;
}

.post-content-notice {
  background-color: #f0f7fe;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.75;
}

.post-content-list {
  list-style: none;
  margin: 1.15rem 0 1.65rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.post-content-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.7;
}
.post-content-list li::before {
  content: "•";
  position: absolute;
  left: 0.35rem;
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-keypoints-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 1.35rem 0 0.85rem;
}

.post-keypoints-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-keypoint-item {
  position: relative;
  padding-left: 1.65rem;
  font-size: 1.02rem;
  color: var(--text-main);
  line-height: 1.7;
}

.post-keypoint-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #16a34a;
  font-weight: 800;
}

.post-links-section {
  margin: 2.5rem 0;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border-color);
}

.post-section-subhead {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.post-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.post-exam-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.25rem;
  background-color: #ffffff;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.post-exam-chip:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.post-area-guide-section {
  margin: 2.75rem 0;
  padding: 2.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 640px) {
  .post-area-guide-section {
    padding: 1.65rem 1.35rem;
  }
}

.post-area-guide-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
}

.post-area-guide-desc {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.post-area-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.post-area-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}

.post-area-btn:hover, .post-area-btn:focus-visible {
  border-color: var(--primary-blue-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background-color: #f0f7ff;
}

.post-area-btn-title {
  font-size: 1.025rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.3rem;
}

.post-area-btn-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.post-area-btn-all {
  background-color: #f0f7fe;
  border-color: #bae6fd;
}
.post-area-btn-all .post-area-btn-title {
  color: var(--primary-blue);
}

.post-disclaimer-box {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  font-size: 0.935rem;
  color: #92400e;
  line-height: 1.65;
  margin: 2.25rem 0;
}

.post-clinic-box {
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin: 2.25rem 0 3.25rem;
  box-shadow: var(--shadow-sm);
}

.post-clinic-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.post-clinic-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.965rem;
  color: var(--text-muted);
  margin-bottom: 1.45rem;
}

.post-clinic-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* 22. 푸터 하단 정책 및 약관 메뉴 */
.footer-legal-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.95rem;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.65rem;
  font-size: 0.85rem;
}

.footer-legal-link {
  color: #94a3b8;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.2rem 0;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.footer-legal-link:hover, .footer-legal-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-link.privacy {
  font-weight: 700;
  color: #e2e8f0;
}

.footer-legal-link.privacy:hover {
  color: #ffffff;
}

.footer-legal-divider {
  color: #475569;
  font-size: 0.75rem;
  user-select: none;
}

/* 23. 비급여 진료비용 안내 PDF 모달 팝업 */
.pdf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background-color: rgba(9, 35, 71, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.pdf-modal-window {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 980px;
  height: 90vh;
  max-height: 880px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
  animation: pdfModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pdfModalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: linear-gradient(135deg, #092347 0%, #10386b 100%);
  color: #ffffff;
  border-bottom: 1px solid #144482;
  flex-shrink: 0;
  gap: 0.85rem;
}

.pdf-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pdf-badge {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.pdf-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pdf-download-link:hover {
  background-color: #ffffff;
  color: var(--primary-navy);
  border-color: #ffffff;
}

.pdf-modal-close-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1.45rem;
  cursor: pointer;
  padding: 0.25rem 0.65rem;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.pdf-modal-close-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
}

.pdf-modal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.pdf-iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex: 1;
  background-color: #525659;
}

.pdf-fallback-notice {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .pdf-modal-window {
    height: 94vh;
    border-radius: var(--radius-md);
  }
  .pdf-modal-header {
    padding: 0.85rem 1.15rem;
  }
  .pdf-modal-title {
    font-size: 1.05rem;
  }
  .pdf-download-link {
    font-size: 0.775rem;
    padding: 0.35rem 0.65rem;
  }
}

/* 24. 법적 문서 페이지 스타일 (개인정보처리방침, 이용약관 등) */
.legal-document-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .legal-document-box {
    padding: 1.65rem 1.35rem;
  }
}

.legal-intro-bar {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary-blue);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.65rem;
  margin-bottom: 2.75rem;
  font-size: 0.985rem;
  color: var(--text-main);
  line-height: 1.75;
}

.legal-effective-date {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f1f5f9;
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.95rem;
  letter-spacing: -0.02em;
}

.legal-p {
  font-size: 0.975rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 0.95rem;
}

.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.5rem;
  font-size: 0.975rem;
  color: var(--text-main);
  line-height: 1.75;
}

.legal-list li {
  position: relative;
  padding-left: 1.35rem;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0.25rem;
  color: var(--primary-blue);
  font-weight: bold;
}

.legal-warning-box {
  background-color: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 1.35rem 1.65rem;
  font-size: 0.975rem;
  color: #991b1b;
  line-height: 1.75;
}

.legal-contact-card {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.legal-contact-card a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
}
