/* Fonts loaded via index.html <link> to prevent render blocking */

/* Gmarket Sans (지마켓 산스) - 고속 CDN */
@font-face {
  font-family: 'GmarketSansBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Tmoney RoundWind (티머니 둥근바람) - 고속 CDN */
@font-face {
  font-family: 'TmoneyRoundWindExtraBold';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TmoneyRoundWindRegular';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-07@1.0/TmoneyRoundWindRegular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design System & CSS Custom Properties
   ========================================================================== */
:root {
  /* 아이참소아치과 대표 공식 글꼴: 티머니 둥근바람 (TmoneyRoundWind) */
  --font-main: 'TmoneyRoundWindRegular', 'TmoneyRoundWindExtraBold', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --font-heading: 'TmoneyRoundWindExtraBold', 'TmoneyRoundWindRegular', sans-serif;
  --font-eng: 'Outfit', sans-serif;

  /* Primary Palette: Child-friendly Warm Tangerine & Professional Medical Cyan */
  --color-primary: #ff8533;
  --color-primary-dark: #e06d20;
  --color-primary-light: #fff2e8;

  --color-cyan: #0092d7;
  --color-cyan-dark: #0a6d9e;
  --color-cyan-light: #e9f5fc;
  --color-mint: #5ec8b6;

  /* Backgrounds */
  --bg-body: #fdfbf7;
  --bg-card: #ffffff;
  --bg-cream: #fffbf6;
  --bg-sand: #f7f0e8;
  --bg-soft-blue: #f2f8fc;

  /* Typography Colors */
  --text-dark: #221f1e;
  --text-body: #463f3c;
  --text-muted: #7d7471;
  --text-light: #9c9491;
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border-subtle: #ece5dd;
  --border-focus: #ffd8bd;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 12px -2px rgba(34, 31, 30, 0.06);
  --shadow-md: 0 12px 28px -10px rgba(34, 31, 30, 0.12);
  --shadow-lg: 0 20px 48px -16px rgba(34, 31, 30, 0.18);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base & Strict Korean Typography Wrapping (줄바꿈 방지)
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;

  /* CRITICAL: Korean word-break keep-all everywhere to prevent awkward broken words */
  word-break: keep-all;
  word-wrap: break-word;
}

/* 고정 헤더(Sticky Header) 아래에 섹션 제목이 가려지지 않도록 상단 오프셋 마진 부여 */
section[id],
#home,
#about,
#promises,
#doctors,
#clinicTime,
#workflow,
#subject,
#noticeBoard,
#interior,
#location {
  scroll-margin-top: 85px;
}

@media (max-width: 768px) {

  section[id],
  #home,
  #about,
  #promises,
  #doctors,
  #clinicTime,
  #workflow,
  #subject,
  #noticeBoard,
  #interior,
  #location {
    scroll-margin-top: 75px;
  }
}

/* 🌟 고성능 모바일 렌더링 최적화: 뷰포트 진입 전 하단 섹션 연산 생략 */
#workflow,
#subject,
#noticeBoard,
#interior,
#location {
  content-visibility: auto;
  contain-intrinsic-size: 1px 750px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.hero-title,
.hero-highlight,
.brand-name,
.nav-link,
.modal-title,
.popup-title,
.promise-card-title,
.doctor-name,
.treatment-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  letter-spacing: -0.03em;
  word-break: keep-all;
  text-wrap: balance;
}

p,
span,
div,
li,
a,
button {
  word-break: keep-all;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header (아이참 엠블럼 태그) */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  white-space: nowrap;
}

.section-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.035em;
}

.section-title em {
  font-style: normal;
  color: var(--color-primary);
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  box-shadow: 0 8px 24px -10px rgba(34, 31, 30, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

.header-top {
  background-color: #fff9f3;
  border-bottom: 1px solid #f4ede5;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-body);
  max-height: 50px;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

header.scrolled .header-top {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-top-right a {
  font-weight: 700;
  color: var(--color-primary);
}

.nav-bar {
  padding: 13px 0;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .nav-bar {
  padding: 8px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 42px;
  width: auto;
  max-width: none;
  aspect-ratio: 266 / 61;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

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

.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  font-weight: 800;
}

.nav-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary);
  color: #ffffff !important;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 6px 16px -6px rgba(255, 133, 51, 0.8);
  white-space: nowrap;
  box-sizing: border-box;
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.mobile-menu-btn-wrap {
  display: none;
  cursor: pointer;
}

.mobile-nav-icon {
  width: 28px;
  height: 28px;
}

/* Mobile Sidebar Drawer */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 31, 30, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #ffffff;
  z-index: 1600;
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.mobile-sidebar.active {
  transform: translateX(0);
}

.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.mobile-sidebar-close {
  background: var(--color-primary-light);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.mobile-link:hover,
.mobile-link.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ==========================================================================
   Hero Visual Carousel & Live Status Bar (Non-Cropping Soft Blend Master)
   ========================================================================== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background-color: #fef6e9;
}

.carousel-inner {
  position: relative;
  width: 100%;
  min-height: 520px;
  height: clamp(520px, 34vw, 640px);
}

.carousel-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.7s;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  height: 100%;
}

/* 각 슬라이드의 실제 이미지 톤과 100% 매끄럽게 일체화되는 부드러운 그라데이션 베이스 */
.carousel-item.theme-mint {
  background: linear-gradient(90deg, #d8f5ef 0%, #cbf2eb 45%, #c2ece4 100%);
}

.carousel-item.theme-warm {
  background: linear-gradient(90deg, #fef6dc 0%, #fef5d8 35%, #fbf0d3 70%, #f4e3cd 100%);
}

.carousel-item.theme-peach {
  background: linear-gradient(90deg, #fef4e7 0%, #feecd6 45%, #fce2c8 100%);
}

/* 캐릭터 및 인물 사진 레이어 - 인물 영역은 100% 또렷하고, 양 끝 외곽선만 배경과 스르륵 녹아들어 완벽 일체화 */
.hero-bg-visual-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1240px;
  height: 100%;
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  opacity: 1;

  /* 양 끝 외곽선(가장자리)만 은은하게 페이드아웃하여 사각형 경계선 제거 (인물은 10%~90%에 위치하여 100% 선명 보존) */
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      #000 8%,
      #000 90%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      #000 8%,
      #000 90%,
      transparent 100%);
}

/* 좌측 텍스트 가독성용 소프트 오버레이 - 텍스트 구간만 부드럽게 감싸고 인물에는 전혀 덮이지 않음 */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.35) 25%,
      rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-slide-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}

.hero-text-content {
  z-index: 3;
  max-width: 600px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(255, 133, 51, 0.15);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
  color: #1a1715;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero-title span {
  color: var(--color-primary);
  display: block;
}

.hero-desc {
  font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.85;
  color: #4a423d;
  margin-bottom: 28px;
  max-width: 560px;
  word-break: keep-all;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.9);
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 15.5px;
  box-shadow: 0 10px 24px -6px rgba(255, 133, 51, 0.75);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.btn-hero-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -6px rgba(255, 133, 51, 0.9);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-dark);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  font-size: 15.5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
  transform: translateY(-3px);
}

.hero-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 133, 51, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #5c524b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-visual-viewport {
  position: relative;
  min-height: 400px;
  pointer-events: none;
}

.hero-mobile-visual-box {
  display: none;
}

.chip-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Carousel Indicators & Controls */
.carousel-controls-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcd6cd;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.indicator-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

/* Live Status Quick Strip */
.live-status-strip {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}

.live-status-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.live-status-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge.open {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-badge.lunch {
  background: #fff3e0;
  color: #ef6c00;
}

.status-badge.closed {
  background: #ffebee;
  color: #c62828;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-info-text {
  font-size: 14px;
  color: var(--text-body);
}

.live-status-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quick-tel-btn {
  font-weight: 800;
  font-size: 15px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Section: About Clinic & Special Values (치과 소개 & 특별한 이유)
   ========================================================================== */
#about,
#promises {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

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

.promise-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.promise-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.promise-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.promise-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 8px;
  white-space: nowrap;
}

.promise-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.45;
}

.promise-card p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.promise-card p strong.highlight-pen-yellow,
.highlight-pen-yellow {
  background-color: rgba(254, 240, 138, 0.55);
  color: #0f172a;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ==========================================================================
   Section: Medical Staff (원형 포트레이트 & 전용 경력 카드 레이아웃 - 1, 2번 시안 정밀 개선)
   ========================================================================== */
#doctors {
  padding: 100px 0;
  background: linear-gradient(180deg, #fdfbf7 0%, #fffdf8 50%, #fdfbf7 100%);
  position: relative;
}

.doctors-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 820px;
  margin: 0 auto;
}

.doctor-profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 1. 상단 타이틀 블록 (중앙 정렬) */
.doctor-title-block {
  text-align: center;
  margin-bottom: 24px;
}

.doctor-hospital-tag {
  font-size: 15px;
  font-weight: 800;
  color: #ff9900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.doctor-main-title {
  font-size: 36px;
  font-weight: 800;
  color: #221f1e;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.doctor-main-title .role-text {
  font-size: 28px;
  font-weight: 700;
  color: #334155;
}

.doctor-main-title .name-text {
  font-size: 38px;
  font-weight: 900;
  color: #0f172a;
}

.doctor-cert-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.03em;
}

.doctor-cert-line .mohw-emblem-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.doctor-cert-line .cert-prefix {
  color: #1e293b;
}

.doctor-cert-line .cert-highlight {
  color: #ff9900;
  font-weight: 900;
}

/* 2. 중앙 대형 원형 포트레이트 */
.doctor-circle-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 28px 0;
  position: relative;
}

.doctor-circle-photo-wrap {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 7px solid #ffe8b2;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.18);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.doctor-circle-photo-wrap:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.25);
  border-color: #ffd880;
}

.doctor-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.doctor-circle-fallback {
  font-size: 80px;
}

/* 3. 하단 화이트 라운드 약력 & 슬로건 카드 */
.doctor-career-card {
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  border: 1.5px solid #f2e9dc;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 36px 40px;
  transition: var(--transition-smooth);
}

.doctor-career-card:hover {
  border-color: #ffd8bd;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.doctor-career-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.doctor-career-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.doctor-career-list li {
  font-size: 15px;
  color: #555e6c;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  word-break: keep-all;
}

.doctor-career-list li .dot {
  color: #94a3b8;
  font-weight: 900;
  line-height: 1.3;
}

.doctor-slogan-box {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  padding-bottom: 4px;
}

.doctor-slogan-text {
  font-size: 21px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.45;
  letter-spacing: -0.04em;
  font-family: 'NanumSquareRound', var(--font-heading), sans-serif;
  text-align: right;
}

.slogan-calli-gold {
  color: #f59e0b;
  font-weight: 900;
}

/* ==========================================================================
   Section: Clinic Guide & Hours (진료 시간 및 병원 안내)
   ========================================================================== */
#clinicTime {
  padding: 100px 0;
  background-color: var(--bg-soft-blue);
}

.clinic-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.hours-card,
.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.card-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.hours-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

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

.hours-table th {
  padding: 14px 0;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-body);
  width: 110px;
  white-space: nowrap;
}

.hours-table td {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: right;
}

.hours-table .highlight td {
  color: var(--color-primary);
}

.hours-note-box {
  background: #fff8f0;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--color-primary-dark);
  line-height: 1.7;
}

.contact-action-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-action-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  border: 1.5px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.contact-action-item:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
  background: #ffffff;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.action-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  white-space: nowrap;
}

.action-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
}

/* ==========================================================================
   Section: Treatment Process (아이참 맞춤 진료 과정)
   ========================================================================== */
#workflow {
  padding: 100px 0;
  background-color: #ffffff;
}

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

.step-card {
  background: #ffffff;
  border: 1.5px solid #e0f2f1;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-mint);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  display: inline-block;
  background: #e0f2f1;
  color: #00695c;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  white-space: nowrap;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ==========================================================================
   Section: Specialized Treatments (전문 진료 과목)
   ========================================================================== */
#subject {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

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

.treatment-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.treatment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.treatment-icon {
  font-size: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.treatment-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  flex: 1;
  margin: 0;
  line-height: 1.35;
  word-break: keep-all;
}

.treatment-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.treatment-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Section: Notice Board (공지사항 & 소아치과 소식)
   ========================================================================== */
#noticeBoard {
  padding: 100px 0;
  background-color: #ffffff;
}

.board-card-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.board-top-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-subtle);
}

.board-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-tab {
  background: #f4efe9;
  color: var(--text-body);
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.board-tab:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.board-tab.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 133, 51, 0.4);
}

.board-search-form {
  display: flex;
  align-items: center;
  background: #fdfbf7;
  border: 1.5px solid #e5ded6;
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
}

.board-search-form input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 200px;
  color: var(--text-dark);
}

.board-search-form button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.board-search-form button:hover {
  background: var(--color-primary-dark);
}

.board-posts-list {
  display: flex;
  flex-direction: column;
}

.board-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.board-row-item:hover {
  background-color: #fffcf9;
  padding-left: 24px;
}

.board-row-item.pinned {
  background-color: #fffdf7;
  border-left: 4px solid var(--color-primary);
}

.board-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.badge-pin {
  background: #ffe3d1;
  color: var(--color-primary-dark);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-cat {
  background: var(--color-cyan-light);
  color: var(--color-cyan-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.post-row-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 13px;
  white-space: nowrap;
}

.board-bottom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.board-count-text {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-admin-manager {
  background: #455a64;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn-admin-manager:hover {
  background: #263238;
}

/* 독립 게시판 갤러리 전체보기 CTA 버튼 (모바일 구역 넘침 원천 방지) */
.board-gallery-cta-wrap {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.btn-board-gallery-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: #ffffff !important;
  box-shadow: 0 6px 18px -4px rgba(255, 133, 51, 0.7);
  text-decoration: none;
  transition: var(--transition-smooth);
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.btn-board-gallery-cta:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(255, 133, 51, 0.85);
}

@media (max-width: 768px) {
  .board-gallery-cta-wrap {
    padding-left: 0;
    padding-right: 0;
  }

  .btn-board-gallery-cta {
    width: 100% !important;
    max-width: 100% !important;
    padding: 13px 12px !important;
    font-size: 13.5px !important;
    white-space: normal !important;
    word-break: keep-all !important;
    text-align: center !important;
    line-height: 1.4 !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Section: Interior Tour Gallery (치과 둘러보기)
   ========================================================================== */
#interior {
  padding: 100px 0;
  background-color: #ffffff;
}

.interior-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 10px 0;
}

.interior-slider {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.interior-slide-item {
  min-width: 33.333%;
  padding: 0 12px;
  box-sizing: border-box;
}

.interior-card-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: var(--transition-smooth);
}

.interior-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 133, 51, 0.3);
}

.interior-card-box img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.interior-card-box:hover img {
  transform: scale(1.04);
}

.interior-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
}

.interior-dots-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interior-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #e2deda;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interior-dot:hover {
  background-color: var(--color-primary-light);
  transform: scale(1.2);
}

.interior-dot.active {
  width: 28px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(255, 133, 51, 0.4);
}

.btn-slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-slider-arrow:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: scale(1.08);
}

/* ==========================================================================
   Section: Location & Directions (찾아오시는 길 & 카카오맵)
   ========================================================================== */
#location {
  padding: 100px 0;
  background-color: var(--bg-cream);
}

#location .section-subtitle {
  max-width: 920px !important;
  word-break: keep-all;
}

.location-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
}

.map-card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  min-height: 480px;
}

.location-info-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.loc-detail-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loc-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.loc-icon {
  font-size: 20px;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
}

.loc-text {
  flex: 1;
  min-width: 0;
}

.loc-text h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.loc-text p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-body);
  margin: 0;
  word-break: keep-all;
}

.loc-sub-desc {
  font-size: 12.5px !important;
  color: #78716c !important;
  margin-top: 3px !important;
  line-height: 1.55 !important;
}

.loc-badge-free {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: -0.01em;
  border: 1px solid #bae6fd;
}

.loc-bullet-list {
  list-style: none;
  padding: 0;
  margin: 3px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loc-bullet-list li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
  position: relative;
  padding-left: 12px;
}

.loc-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.loc-phone-link {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.loc-phone-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* 시내버스 노선 카드 스타일 */
.loc-bus-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.loc-bus-item {
  background: #fbf9f7;
  border: 1px solid #eee8e2;
  border-radius: 10px;
  padding: 8px 12px;
}

.bus-stop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.bus-stop-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.bus-walk-tag {
  font-size: 11.5px;
  color: #ea580c;
  background: #fff7ed;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #fed7aa;
}

.bus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bus-chip {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  color: #44403c;
  background: #ffffff;
  border: 1px solid #e7e5e4;
  padding: 2px 7px;
  border-radius: 5px;
  line-height: 1.3;
}

.map-links-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

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

.btn-map-link.naver {
  background: #03c75a;
  color: #ffffff;
  border-color: #03c75a;
}

.btn-map-link.naver:hover {
  background: #02b350;
  border-color: #02b350;
  color: #ffffff;
}

.btn-map-link.kakao {
  background: #fee500;
  color: #191919;
  border-color: #fee500;
}

.btn-map-link.kakao:hover {
  background: #fada0a;
  border-color: #fada0a;
  color: #191919;
}

.btn-map-link.google {
  background: #ffffff;
  color: #1a73e8;
  border-color: #dadce0;
}

.btn-map-link.google:hover {
  background: #f8fafd;
  border-color: #4285f4;
  color: #1a73e8;
}

/* ==========================================================================
   Modals (Post Detail, Admin Manager, Auth)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 31, 30, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10002;
  display: none !important;
  pointer-events: none !important;
  align-items: center;
  justify-content: center;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: var(--transition-smooth);
  padding: 20px;
}

.modal-overlay.active {
  display: flex !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header Auth Badge & Member Status (공통) */
.header-auth-badge {
  display: inline-flex;
  align-items: center;
}

.btn-header-auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #f0fdfa;
  border: 1.5px solid #0d9488;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-sizing: border-box;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-auth:hover {
  background: #0d9488;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.user-logged-wrap {
  display: inline-flex;
  align-items: center;
  height: 38px;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0 10px 0 14px;
  border-radius: 9999px;
  box-sizing: border-box;
  white-space: nowrap;
}

/* 1024px ~ 1300px 구간 네비게이션 가로 여백 최적화 (버튼 줄바꿈/어긋남 방지) */
@media (max-width: 1300px) and (min-width: 769px) {
  .nav-container {
    gap: 8px !important;
  }
  .nav-menu {
    gap: 2px !important;
  }
  .nav-link {
    font-size: 13px !important;
    padding: 6px 8px !important;
  }
  .nav-cta-btn {
    padding: 0 12px !important;
    font-size: 12.5px !important;
  }
  .btn-header-auth {
    padding: 0 9px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 1080px) and (min-width: 769px) {
  .nav-container {
    gap: 4px !important;
  }
  .logo img {
    height: 32px !important;
  }
  .nav-menu {
    gap: 1px !important;
  }
  .nav-link {
    font-size: 11.5px !important;
    padding: 4px 6px !important;
  }
  .nav-cta-btn {
    padding: 0 9px !important;
    font-size: 11.5px !important;
  }
  .btn-header-auth {
    padding: 0 7px !important;
    font-size: 11px !important;
  }
}

.user-logged-wrap .user-greeting {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
}

.user-logged-wrap .user-greeting strong {
  color: #0d9488;
  font-weight: 800;
}

.btn-header-logout {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-header-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-dialog.admin-dialog {
  max-width: 860px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-sand);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--border-subtle);
  color: var(--text-dark);
}

.modal-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 8px;
}

.modal-meta-info {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.modal-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-body);
  white-space: pre-wrap;
  min-height: 120px;
}

.modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* Admin Form & Table */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #dcd6cd;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 133, 51, 0.15);
}

.form-row {
  display: flex;
  gap: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 14px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.admin-table th {
  background: var(--bg-cream);
  font-weight: 800;
  color: var(--text-dark);
}

.btn-table-action {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  margin-right: 4px;
}

.btn-table-action.edit {
  background: var(--color-cyan-light);
  color: var(--color-cyan-dark);
}

.btn-table-action.delete {
  background: #ffebee;
  color: #c62828;
}

/* ==========================================================================
   Desktop Quick Dock & Mobile Sticky Bottom Bar
   ========================================================================== */
.desktop-quick-dock {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dark);
  transition: var(--transition-smooth);
}

.dock-btn svg,
.dock-btn span.icon {
  font-size: 18px;
  margin-bottom: 2px;
}

.dock-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateX(-4px);
}

.dock-btn.naver {
  background: #03c75a;
  color: #ffffff;
  border-color: #03c75a;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
  gap: 10px;
}

.mobile-bottom-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-bottom-btn.tel {
  background: var(--color-primary);
  color: #ffffff;
}

.mobile-bottom-btn.booking {
  background: #03c75a;
  color: #ffffff;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
  background: #201c1a;
  color: #b0a8a4;
  padding: 60px 0 40px;
  font-size: 14px;
}

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

.footer-logo img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.footer-sns-list {
  display: flex;
  gap: 12px;
}

.footer-sns-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

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

.footer-info-block {
  line-height: 1.9;
}

.footer-info-block span {
  margin-right: 16px;
}

.footer-copyright {
  margin-top: 20px;
  font-size: 12.5px;
  color: #7a726e;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .carousel-inner {
    height: auto;
    min-height: 500px;
  }

  .hero-bg-visual-layer {
    width: 65%;
    opacity: 1 !important;
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        #000 8%,
        #000 90%,
        transparent 100%) !important;
    mask-image: linear-gradient(to right,
        transparent 0%,
        #000 8%,
        #000 90%,
        transparent 100%) !important;
  }

  .hero-bg-overlay {
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.40) 25%,
        rgba(255, 255, 255, 0) 48%) !important;
  }

  .hero-slide-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
    padding: 40px 0 50px;
  }

  .hero-text-content {
    max-width: 100%;
  }

  .hero-visual-viewport {
    display: none;
  }

  .promises-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .treatments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .interior-slide-item {
    min-width: 50%;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .desktop-quick-dock {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px;
  }

  /* Section Spacing Optimization - 슬림하고 컴팩트한 모바일 여백 */
  #about,
  #promises,
  #doctors,
  #clinicTime,
  #workflow,
  #subject,
  #noticeBoard,
  #interior,
  #location {
    padding: 36px 0 !important;
  }

  .section-header {
    margin-bottom: 18px !important;
  }

  .section-title {
    font-size: clamp(18px, 4.8vw, 21px) !important;
    margin-bottom: 4px !important;
  }

  .section-subtitle {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* 🌟 Mobile Hero Slider: 좌측 여백에 글자 배치, 우측에 3D 캐릭터 자연스럽게 융합 */
  .hero-carousel {
    background: #fff8f2;
    position: relative;
    overflow: hidden;
  }

  .carousel-inner {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 240px !important;
    padding-bottom: 0 !important;
    position: relative;
  }

  .carousel-item {
    height: 100% !important;
    min-height: 220px !important;
    max-height: 240px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: absolute;
    inset: 0;
  }

  .carousel-item.active {
    position: relative !important;
    height: 100% !important;
  }

  /* 배경 캐릭터는 우측에 자연스럽게 배치 (왼쪽 여백 확보) */
  .hero-bg-visual-layer {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: right 2% center !important;
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%) !important;
    mask-image: linear-gradient(to right,
        transparent 0%,
        #000 8%,
        #000 92%,
        transparent 100%) !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }

  /* 좌측 글자 가독성을 위한 부드러운 좌->우 은은한 페이드 오버레이 (인물 영역은 100% 선명 노출) */
  .hero-bg-overlay {
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.70) 0%,
        rgba(255, 255, 255, 0.30) 25%,
        rgba(255, 255, 255, 0) 48%) !important;
    z-index: 2 !important;
  }

  .hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .hero-slide-grid {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    text-align: left !important;
  }

  .hero-mobile-visual-box {
    display: none !important;
  }

  .hero-text-content {
    max-width: 58% !important;
    text-align: left !important;
    padding: 0 !important;
  }

  .hero-tag {
    display: inline-block !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    padding: 2px 8px !important;
    margin-bottom: 4px !important;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 2px 6px rgba(255, 133, 51, 0.15);
  }

  .hero-title {
    font-size: clamp(14px, 4.2vw, 17px) !important;
    line-height: 1.35 !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.03em;
    color: #1a1715 !important;
    text-shadow: 0 1px 6px rgba(255, 255, 255, 0.95);
    text-align: left !important;
    word-break: keep-all !important;
  }

  .hero-title span {
    display: block !important;
    color: var(--color-primary);
  }

  /* 모바일에서는 불필요한 중복 요소 숨김 */
  .hero-desc {
    display: none !important;
  }

  .hero-btn-group {
    display: none !important;
  }

  .hero-mini-badges {
    display: none !important;
  }

  .hero-visual-viewport {
    display: none !important;
  }

  .carousel-indicators {
    bottom: 6px !important;
    right: 12px !important;
    left: auto !important;
    transform: none !important;
    z-index: 10;
    gap: 4px;
  }

  .indicator-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .indicator-dot.active {
    width: 14px !important;
  }

  /* 🌟 실시간 상태 스트립 컴팩트화 */
  .live-status-strip {
    padding: 6px 12px !important;
  }

  .live-status-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .live-status-left {
    gap: 8px !important;
  }

  .status-badge {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }

  .status-info-text {
    font-size: 11.5px !important;
  }

  .quick-tel-btn {
    font-size: 12px !important;
  }

  /* 🌟 상단 목차/바로가기 아이콘 바 (모바일 7열 스크롤 상시 고정 - GPU 경량화) */
  .quick-icon-bar-section {
    position: sticky !important;
    top: var(--header-height, 56px) !important;
    z-index: 950 !important;
    padding: 8px 0 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  }

  .quick-icon-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .quick-icon-item {
    padding: 4px 1px !important;
    gap: 4px !important;
  }

  .q-icon-wrap {
    width: 32px !important;
    height: 32px !important;
  }

  .q-icon-wrap svg {
    width: 22px !important;
    height: 22px !important;
  }

  .q-icon-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #444444 !important;
  }

  /* 🌟 모바일 아이참이 특별한 이유 (1열 가로형 카드 - 컴팩트 슬림) */
  .promises-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .promise-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 12px !important;
    padding: 14px 14px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: var(--shadow-sm) !important;
  }

  .promise-icon-wrap {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 22px !important;
    margin-bottom: 0 !important;
    border-radius: 10px !important;
  }

  .promise-text-wrap {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .promise-num {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    margin-bottom: 2px !important;
    display: block !important;
  }

  .promise-card h3 {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    margin-bottom: 3px !important;
    line-height: 1.3 !important;
    color: var(--text-dark) !important;
  }

  .promise-card p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #5a524e !important;
  }

  /* 🌟 모바일 게시판 글씨 겹침 완전 해결 */
  .board-row-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 12px 12px !important;
  }

  .board-row-item:hover {
    padding-left: 12px !important;
  }

  .board-row-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .board-row-badges {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
  }

  .badge-pin,
  .badge-cat {
    font-size: 11px !important;
    padding: 3px 8px !important;
  }

  .post-row-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: keep-all !important;
    margin: 2px 0 0 0 !important;
    width: 100% !important;
  }

  .board-row-right {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 11.5px !important;
    color: var(--text-muted) !important;
    border-top: 1px dashed rgba(0, 0, 0, 0.06) !important;
    padding-top: 5px !important;
    margin-top: 2px !important;
  }

  /* 🌟 모바일 전문진료과목 그리드: 1열 가로형 컴팩트 카드 (아이콘 - 제목 - 번호 한 줄 배치) */
  .treatments-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .treatment-card {
    padding: 14px 16px !important;
    border-radius: 14px !important;
  }

  .treatment-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 6px !important;
  }

  .treatment-icon {
    font-size: 22px !important;
  }

  .treatment-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    flex: 1 !important;
    line-height: 1.35 !important;
  }

  .treatment-num {
    font-size: 12px !important;
    font-weight: 800 !important;
  }

  .treatment-desc {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  /* 🌟 모바일 진료과정 스텝 */
  .workflow-steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .workflow-step-card {
    padding: 14px 10px !important;
    border-radius: 14px !important;
  }

  .workflow-step-card h3 {
    font-size: 13.5px !important;
  }

  .workflow-step-card p {
    font-size: 11.5px !important;
    line-height: 1.45 !important;
  }

  /* 🌟 모바일 의료진 소개: 1, 2번 시안 완벽 재현 & 모바일 최적화 */
  #doctors {
    padding: 60px 0 !important;
  }

  .doctors-grid {
    gap: 48px !important;
    padding: 0 14px !important;
  }

  .doctor-title-block {
    text-align: center !important;
    margin-bottom: 14px !important;
  }

  .doctor-hospital-tag {
    font-size: 13px !important;
    margin-bottom: 4px !important;
  }

  .doctor-main-title {
    font-size: 26px !important;
    margin-bottom: 8px !important;
    gap: 6px !important;
    justify-content: center !important;
  }

  .doctor-main-title .role-text {
    font-size: 20px !important;
  }

  .doctor-main-title .name-text {
    font-size: 27px !important;
  }

  .doctor-cert-line {
    font-size: 17px !important;
    gap: 6px !important;
    justify-content: center !important;
  }

  .doctor-cert-line .mohw-emblem-img {
    width: 20px !important;
    height: 20px !important;
  }

  .doctor-circle-photo-container {
    margin: 6px 0 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .doctor-circle-photo-wrap {
    width: 210px !important;
    height: 210px !important;
    border: 5px solid #ffe8b2 !important;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.16) !important;
  }

  .doctor-career-card {
    border-radius: 22px !important;
    padding: 22px 18px !important;
  }

  .doctor-career-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  .doctor-career-list {
    gap: 6px !important;
  }

  .doctor-career-list li {
    font-size: 12.5px !important;
    line-height: 1.55 !important;
    color: #4b5563 !important;
    gap: 5px !important;
  }

  .doctor-slogan-box {
    margin-left: 0 !important;
    text-align: right !important;
    border-top: 1px dashed rgba(0, 0, 0, 0.08) !important;
    padding-top: 12px !important;
  }

  .doctor-slogan-text {
    font-size: 15.5px !important;
    line-height: 1.4 !important;
  }

  .clinic-guide-grid {
    grid-template-columns: 1fr !important;
  }

  .interior-slide-item {
    min-width: 100% !important;
  }

  .mobile-bottom-bar {
    display: flex !important;
  }

  .form-row {
    flex-direction: column !important;
  }

  .header-top {
    display: none !important;
  }

  /* 🌟 모바일 상단 고정 헤더 & 가로 스크롤 목차 네비게이션 바 (GPU 렌더링 최적화) */
  header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #ece5dd !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    transition: box-shadow 0.25s ease !important;
  }

  header.scrolled {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09) !important;
  }

  .nav-bar {
    padding: 8px 0 6px 0 !important;
    transition: padding 0.25s ease !important;
  }

  header.scrolled .nav-bar {
    padding: 5px 0 5px 0 !important;
  }

  .nav-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    padding: 0 10px !important;
    gap: 4px !important;
  }

  .nav-brand-group {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 2px 0 !important;
  }

  .logo img {
    height: 32px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    aspect-ratio: 266 / 61 !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }

  .nav-actions-group {
    display: none !important;
  }

  .mobile-menu-btn-wrap {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
    width: 100% !important;
    flex: 0 0 100% !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 6px 0 2px 0 !important;
    margin-top: 4px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    gap: 6px !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .nav-menu::-webkit-scrollbar {
    display: none !important;
  }

  .nav-link {
    font-size: 12px !important;
    padding: 5px 11px !important;
    border-radius: 999px !important;
    background: #f6f3ee !important;
    color: #4a4441 !important;
    flex-shrink: 0 !important;
    border: 1px solid #ebe5dc !important;
    transition: all 0.2s ease !important;
  }

  .nav-link.active {
    background: #ff8533 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-color: #ff8533 !important;
    box-shadow: 0 2px 8px rgba(255, 133, 51, 0.35) !important;
  }

  .board-card-wrapper,
  .interior-card-box {
    padding: 18px 14px !important;
    border-radius: 16px !important;
  }

  .location-info-card {
    padding: 22px 18px !important;
  }

  .loc-detail-group {
    gap: 14px !important;
  }

  .map-card-box {
    min-height: 340px !important;
  }
}

/* ==========================================================================
   Admin Navigation Tabs
   ========================================================================== */
.admin-tab-btn {
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.admin-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.admin-tab-pane {
  animation: fadeInPane 0.25s ease-in-out;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Simultaneous Multi-Popup Floating Windows Container
   ========================================================================== */
.multi-popup-container {
  position: fixed;
  top: 85px;
  left: 28px;
  z-index: 9950;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  pointer-events: none;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 100px);
  overflow: visible;
  padding: 0;
  margin: 0;
  background: transparent;
}

.popup-modal-card {
  position: relative;
  width: 360px;
  max-width: calc(100vw - 32px);
  min-height: auto;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: auto;
  animation: popupFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Icon Top-Right */
.popup-modal-close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #334155;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.popup-modal-close-icon:hover {
  background: #ffffff;
  color: #0f172a;
  transform: scale(1.08);
}

/* Full-Bleed Image-Only Popup */
.popup-image-only-wrap {
  width: 100%;
  position: relative;
  background: #ffffff;
  overflow: hidden;
  line-height: 0;
}

.popup-image-only-wrap a {
  display: block;
  width: 100%;
}

.popup-image-only-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

.popup-image-only-wrap:hover .popup-image-only-img {
  opacity: 0.98;
}

/* Header Banner & Themes */
.popup-header-banner {
  padding: 16px 18px 12px;
  position: relative;
  background: linear-gradient(135deg, #e6f7f4 0%, #d1f0ea 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.popup-header-banner.theme-mint {
  background: linear-gradient(135deg, #e8f8f5 0%, #c8f0e7 100%);
}

.popup-header-banner.theme-coral {
  background: linear-gradient(135deg, #fff2eb 0%, #ffe0d0 100%);
}

.popup-header-banner.theme-navy {
  background: linear-gradient(135deg, #e8f0fe 0%, #cfe0fc 100%);
}

.popup-header-banner.theme-gold {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.popup-badge-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-right: 30px;
}

.popup-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.popup-pagination {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 6px;
}

.popup-title {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.35;
  margin: 0 0 6px;
  letter-spacing: -0.3px;
  word-break: keep-all;
}

.popup-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 0;
  line-height: 1.4;
  word-break: keep-all;
}

/* Body Content Area */
.popup-body-content {
  flex: 1;
  padding: 18px 22px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  display: flex;
  flex-direction: column;
}

.popup-body-content::-webkit-scrollbar {
  width: 5px;
}

.popup-body-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.popup-text {
  flex: 1;
  white-space: pre-wrap;
  word-break: keep-all;
  font-size: 13.5px;
  line-height: 1.7;
}

.popup-text p {
  margin: 0 0 10px;
}

.popup-action-wrap {
  margin-top: 14px;
}

.popup-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e66a00 100%);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 6px 16px -2px rgba(255, 133, 51, 0.4);
  transition: var(--transition-smooth);
}

.popup-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(255, 133, 51, 0.55);
}

/* Navigation Slider for Multi-Popups */
.popup-nav-slider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: #f8fafc;
  border-top: 1px solid #edf2f7;
  font-size: 12px;
}

.popup-nav-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 8px;
}

.popup-nav-btn:hover {
  text-decoration: underline;
}

.popup-nav-indicator {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Bottom Control Bar */
.popup-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-top: 1px solid #f0ece7;
  padding: 12px 20px 14px;
}

.popup-dont-show-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  cursor: pointer;
  user-select: none;
}

.popup-dont-show-label input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.popup-btn-close-text {
  background: #f4f2f0;
  border: 1px solid #e8e4e0;
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #444444;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.popup-btn-close-text:hover {
  background: #e9e5e1;
  color: #111111;
}

@media (max-width: 768px) {

  /* 모바일 팝업 전체 래퍼: 화면 전체를 감싸는 안전한 모달 레이어 (너비 엇갈림 및 가로스크롤 원천 차단) */
  .multi-popup-container {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: rgba(15, 23, 42, 0.48) !important;
    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
    z-index: 99999 !important;
    /* 모바일 하단 바보다 위에 안정 노출 */
    gap: 16px !important;
    pointer-events: auto !important;
  }

  /* 팝업이 없을 때는 딤드 배경이나 공간을 일체 차지하지 않음 */
  .multi-popup-container:empty {
    display: none !important;
    background: transparent !important;
    pointer-events: none !important;
  }

  /* 팝업 모달 카드: 360px~430px 어떤 스마트폰에서도 좌우 16px 안전 여백으로 딱 맞춤 */
  .popup-modal-card {
    width: calc(100vw - 32px) !important;
    max-width: 380px !important;
    max-height: calc(100vh - 80px) !important;
    margin: auto !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28) !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }

  /* 통이미지 팝업 너비 & 높이 비율 최적화 */
  .popup-image-only-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .popup-image-only-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 160px) !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* 팝업 하단 컨트롤 바: 오늘 하루 열지 않기 & 닫기 */
  .popup-bottom-bar {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 13px 18px !important;
    background: #ffffff !important;
    border-top: 1px solid #f0ece7 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .popup-dont-show-label {
    font-size: 13px !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
  }

  .popup-btn-close-text {
    padding: 6px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
  }
}

/* ==========================================================================
   DESIGN REFRESH — 아이참소아치과 프리미엄 디자인 개선
   (내용 변경 없음, 시각적 레이어 오버라이드만)
   ========================================================================== */

/* ---------- 1. 전역 변수 재정의 — 더 깔끔한 배경, 부드러운 그림자 ---------- */
:root {
  --bg-body: #ffffff;
  --bg-cream: #f8f7f5;
  --bg-soft-blue: #f0f7fc;
  --bg-section-alt: #f4f2f0;
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius-card: 18px;
}

/* ---------- 2. 섹션별 배경색 정의 (흰색 ↔ 연한 회색 교차) ---------- */
#about,
#promises {
  background-color: #f8f7f5 !important;
}

#doctors {
  background-color: #ffffff !important;
}

#clinicTime {
  background-color: #f0f7fc !important;
}

#workflow {
  background-color: #ffffff !important;
}

#subject {
  background-color: #f8f7f5 !important;
}

#noticeBoard {
  background-color: #ffffff !important;
}

#interior {
  background-color: #f8f7f5 !important;
}

#location {
  background-color: #ffffff !important;
}

/* ---------- 3. 섹션 헤더 — 아이참 section tag 스타일 개선 ---------- */
.section-tag {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  gap: 10px !important;
  font-size: 13px !important;
  letter-spacing: 0.15em !important;
  color: var(--color-primary) !important;
  margin-bottom: 16px !important;
}

.section-tag::before {
  width: 8px !important;
  height: 8px !important;
  background-color: var(--color-primary) !important;
  animation: blink-dot 2.5s ease-in-out infinite !important;
}

@keyframes blink-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.section-header {
  margin-bottom: 56px !important;
}

.section-title {
  font-size: clamp(28px, 4.2vw, 42px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  margin-bottom: 14px !important;
}

.section-subtitle {
  font-size: clamp(15px, 2vw, 16.5px) !important;
  color: #888 !important;
  line-height: 1.85 !important;
}

/* ---------- 4. Promise 카드 — 원형 아이콘 + 컬러 세트 ---------- */
.promise-card {
  background: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 38px 28px 34px !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.promise-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), #ffb074);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.promise-card:hover::after {
  transform: scaleX(1);
}

.promise-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

.promise-icon-wrap {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  margin-bottom: 22px !important;
  font-size: 30px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* 카드별 아이콘 컬러 세트 (파스텔톤 다양한 색조) */
.promises-grid .promise-card:nth-child(1) .promise-icon-wrap {
  background: #e8f4fd !important;
  color: #2196f3;
}

.promises-grid .promise-card:nth-child(2) .promise-icon-wrap {
  background: #fff3e0 !important;
  color: #ff9800;
}

.promises-grid .promise-card:nth-child(3) .promise-icon-wrap {
  background: #e8f5e9 !important;
  color: #4caf50;
}

.promises-grid .promise-card:nth-child(4) .promise-icon-wrap {
  background: #fce4ec !important;
  color: #e91e63;
}

.promise-num {
  font-size: 11.5px !important;
  letter-spacing: 0.18em !important;
  color: var(--color-primary) !important;
  margin-bottom: 10px !important;
}

.promise-card h3 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  margin-bottom: 14px !important;
}

.promise-card p {
  font-size: 14.5px !important;
  line-height: 1.85 !important;
  color: #777 !important;
}

/* ---------- 5. 의료진 섹션 — 더 깔끔한 카드 ---------- */
.doctor-banner-card {
  border: none !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.doctor-banner-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
  border-color: transparent !important;
}

/* ---------- 6. 진료 시간 카드 ---------- */
.hours-card,
.contact-card {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-card) !important;
  padding: 38px 34px !important;
}

.contact-action-item {
  border-radius: 16px !important;
  border: 1.5px solid #f0ece7 !important;
  background: #fdfcfb !important;
  transition: all 0.25s ease !important;
}

.contact-action-item:hover {
  border-color: var(--color-primary) !important;
  background: #fffaf7 !important;
  transform: translateX(6px) !important;
}

/* ---------- 7. Step 카드 (진료 과정) ---------- */
.step-card {
  border: none !important;
  border-radius: 20px !important;
  padding: 36px 24px 32px !important;
  box-shadow: var(--shadow-card) !important;
  background: #ffffff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.step-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-card-hover) !important;
  border-color: transparent !important;
}

.step-num-badge {
  background: var(--color-primary-light) !important;
  color: var(--color-primary-dark) !important;
  font-size: 12px !important;
  padding: 5px 16px !important;
  border-radius: 999px !important;
}

/* ---------- 8. Treatment 카드 (진료 과목 5종) — 상단 컬러 밴드 & 균형 배치 ---------- */
.treatments-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
}

.treatment-card {
  flex: 1 1 calc(33.333% - 24px) !important;
  max-width: calc(33.333% - 16px) !important;
  min-width: 290px !important;
  border: none !important;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.treatment-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-card-hover) !important;
  border-color: transparent !important;
}

.treatment-card .treatment-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 24px 24px 0 !important;
  margin-bottom: 8px !important;
}

.treatment-card .treatment-desc {
  padding: 0 24px 24px !important;
  margin: 0 !important;
  font-size: 13.5px !important;
}

/* 각 진료 카드 상단 컬러 스트라이프 */
.treatments-grid .treatment-card:nth-child(1) {
  border-top: 5px solid #64b5f6 !important;
}

.treatments-grid .treatment-card:nth-child(2) {
  border-top: 5px solid #81c784 !important;
}

.treatments-grid .treatment-card:nth-child(3) {
  border-top: 5px solid #ffb74d !important;
}

.treatments-grid .treatment-card:nth-child(4) {
  border-top: 5px solid #f06292 !important;
}

.treatments-grid .treatment-card:nth-child(5) {
  border-top: 5px solid #9575cd !important;
}

.treatments-grid .treatment-card:nth-child(6) {
  border-top: 5px solid #4db6ac !important;
}

@media (max-width: 900px) {
  .treatment-card {
    flex: 1 1 calc(50% - 20px) !important;
    max-width: 100% !important;
  }
}

@media (max-width: 600px) {
  .treatment-card {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

/* ---------- 9. 공지사항 카드 ---------- */
.board-card-wrapper {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-card) !important;
  padding: 36px !important;
}

/* ---------- 10. 인테리어 카드 ---------- */
.interior-card-box {
  border: none !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.interior-card-box:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* ---------- 11. 위치 카드 ---------- */
.map-card-box {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-card) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.map-card-box .root_daum_roughmap {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.map-card-box .root_daum_roughmap .wrap_map {
  flex: 1 1 auto !important;
  width: 100% !important;
}

.map-card-box .root_daum_roughmap .wrap_controllers {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.location-info-card {
  border: none !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-card) !important;
  padding: 38px 32px !important;
}

/* ---------- 12. 헤더 개선 ---------- */
header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.header-top {
  background-color: #f9f7f5 !important;
  border-bottom: 1px solid #eeebe6 !important;
}

/* ---------- 13. 히어로 섹션 ---------- */
.hero-carousel {
  background: linear-gradient(150deg, #fff9f5 0%, #ffffff 70%) !important;
}

.hero-feature-card {
  box-shadow: 0 8px 32px rgba(255, 133, 51, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid rgba(255, 133, 51, 0.15) !important;
}

/* ---------- 14. 섹션 여백 통일 — 더 여유로운 느낌 ---------- */
#about,
#promises,
#doctors,
#clinicTime,
#workflow,
#subject,
#noticeBoard,
#interior,
#location {
  padding-top: 110px !important;
  padding-bottom: 110px !important;
}

/* ---------- 15. Live Status Strip 개선 ---------- */
.live-status-strip {
  background: #ffffff !important;
  border-top: 1px solid #f0ece7 !important;
  border-bottom: 1px solid #f0ece7 !important;
}

/* ---------- 16. 푸터 개선 ---------- */
footer {
  background: #1a1817 !important;
}

/* ---------- 17. 팝업 하단 컨트롤 바 정밀 스타일 (일체화) ---------- */
@media (min-width: 769px) {
  .multi-popup-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
}

.popup-modal-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14) !important;
  overflow: hidden !important;
}

.popup-bottom-bar {
  background: #ffffff !important;
  border-top: 1px solid #f0ece7 !important;
  padding: 12px 20px 14px !important;
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
}

.popup-dont-show-label {
  color: #666666 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.popup-btn-close-text {
  background: #f4f2f0 !important;
  border: 1px solid #e8e4e0 !important;
  border-radius: 8px !important;
  padding: 6px 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #444444 !important;
}

.popup-btn-close-text:hover {
  background: #e9e5e1 !important;
  color: #111111 !important;
}

/* ==========================================================================
   19. SMART RICH EDITOR & DETAIL VIEWER SYSTEM
   아이참소아치과 스마트 리치 텍스트 에디터 & 워드프레스 연동 스타일
   ========================================================================== */

/* 관리자 모달 및 상세 보기 모달 너비 확장 */
.modal-dialog.admin-dialog {
  max-width: 980px !important;
  width: 95% !important;
}

#postDetailModal .modal-dialog {
  max-width: 840px !important;
  width: 95% !important;
  padding: 36px 36px 28px 36px !important;
}

.editor-badge-guide {
  font-size: 12px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 에디터 컨테이너 */
.smart-editor-container {
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-top: 6px;
  margin-bottom: 20px;
  position: relative;
}

.smart-editor-container:focus-within {
  border-color: var(--color-primary, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

/* 에디터 상단 헤더 */
.smart-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-editor-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.editor-sub-tip {
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
}

.editor-mode-toggle {
  display: flex;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
}

.btn-editor-mode {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-editor-mode.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 스마트 에디터 툴바 */
.smart-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* 툴바 셀렉트 (폰트, 폰트크기) */
.ed-select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.ed-select:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.ed-select:focus {
  border-color: var(--color-primary, #0d9488);
}

/* 툴바 버튼 */
.ed-tool-btn {
  height: 32px;
  min-width: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease-in-out;
  position: relative;
  user-select: none;
}

.ed-tool-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.ed-tool-btn:active,
.ed-tool-btn.active-state {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

/* 특별 강조 버튼 (사진 첨부) */
.ed-tool-btn.btn-photo-upload {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

.ed-tool-btn.btn-photo-upload:hover {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
}

/* 드롭다운 래퍼 */
.ed-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.color-bar {
  position: absolute;
  bottom: 3px;
  left: 6px;
  right: 6px;
  height: 3px;
  border-radius: 2px;
}

/* 스마트 에디터 글자색 및 배경색 팔레트 시스템 (Rich Color & Highlight Palette) */
.ed-palette-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  padding: 12px 14px;
  z-index: 120;
  display: none;
  width: 278px;
  box-sizing: border-box;
}

#textColorPalette {
  left: -20px;
}

#bgColorPalette {
  left: auto;
  right: -10px;
}

@media (max-width: 640px) {
  #textColorPalette,
  #bgColorPalette {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

.ed-palette-popup.open,
.ed-palette-popup.active {
  display: block;
  animation: edPaletteFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes edPaletteFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ed-palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.ed-palette-head-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.btn-color-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-color-reset:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-color-reset.btn-bg-clear {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

.btn-color-reset.btn-bg-clear:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.btn-color-reset .icon-clear {
  font-weight: 800;
  font-size: 10px;
}

/* 인기 형광펜 퀵 프리셋 */
.highlighter-quick-row {
  margin-bottom: 9px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.quick-row-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.quick-chips {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.palette-chip.hl-chip {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

/* 컬러 매트릭스 그리드 (10열) */
.palette-colors-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 9px;
}

/* 개별 컬러 칩 */
.palette-chip {
  width: 21px;
  height: 21px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  outline: none;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.12s ease;
  position: relative;
  box-sizing: border-box;
}

.palette-chip:hover {
  transform: scale(1.28);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  z-index: 5;
  border-color: rgba(0, 0, 0, 0.35);
}

.palette-chip:active {
  transform: scale(1.1);
}

.palette-chip.clear-color {
  background: #ffffff;
  color: #ef4444;
  font-weight: 800;
}

/* 팔레트 하단 푸터 (직접 선택 및 최근 색상) */
.ed-palette-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 9px;
  margin-top: 4px;
}

.custom-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.btn-custom-color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-custom-color:hover {
  background: #f1f5f9;
  border-color: #0d9488;
  color: #0f172a;
}

.btn-custom-color .custom-color-icon {
  font-size: 13px;
  line-height: 1;
}

.sr-only-color-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.custom-color-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

/* 최근 색상 섹션 */
.recent-colors-section {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
}

.recent-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 5px;
}

.recent-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.recent-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  padding: 0;
  outline: none;
  box-sizing: border-box;
}

.recent-chip:hover {
  transform: scale(1.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

/* 인용구 팝업 */
.ed-quote-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  padding: 8px;
  z-index: 100;
  display: none;
  width: 220px;
}

.ed-quote-popup.open {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

.quote-option {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-option:hover {
  background: #f8fafc;
}

.quote-option span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.sample-quote {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

.quote-sample-line {
  border-left: 3px solid #0d9488;
  background: #f0fdfa;
  color: #0f766e;
}

.quote-sample-quote {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  text-align: center;
  color: #334155;
  font-style: italic;
}

.quote-sample-box {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 6px;
}

.quote-sample-memo {
  border: 1px solid #fef08a;
  background: #fefce8;
  color: #854d0e;
  border-radius: 4px;
}

/* 에디터 캔버스 컨테이너 & 드롭존 */
.smart-editor-canvas-container {
  position: relative;
  min-height: 380px;
  background: #ffffff;
}

.smart-editor-canvas {
  min-height: 380px;
  max-height: 600px;
  overflow-y: auto;
  padding: 24px 28px;
  font-size: 16px;
  line-height: 1.85;
  color: #1e293b;
  outline: none;
  word-break: break-word;
}

/* 플레이스홀더 */
.smart-editor-canvas:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
  display: block;
}

/* 드래그 앤 드롭 오버레이 */
.smart-editor-dropzone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 148, 136, 0.08);
  border: 2px dashed #0d9488;
  border-radius: 0 0 11px 11px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.smart-editor-canvas-container.drag-over .smart-editor-dropzone-overlay {
  display: flex;
}

.drop-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #0d9488;
  font-weight: 800;
  font-size: 15px;
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.drop-icon {
  font-size: 32px;
}

/* HTML 소스 모드 textarea */
.smart-editor-html-source {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 0 0 11px 11px;
  border: none;
  padding: 20px 24px;
  resize: vertical;
  background: #1e293b;
  color: #f8fafc;
}

/* 하단 바 */
.editor-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-tip-info strong {
  color: #0f172a;
}

.editor-char-counter {
  font-weight: 700;
  color: #475569;
}

/* ==========================================================================
   에디터 본문 및 상세 보기 내의 스마트 리치 서식 스타일
   ========================================================================== */
.smart-editor-canvas p,
#detailContent p {
  margin: 0 0 14px 0;
  line-height: 1.85;
}

.smart-editor-canvas h2,
#detailContent h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.smart-editor-canvas h3,
#detailContent h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 22px 0 10px 0;
}

.smart-editor-canvas ul,
#detailContent ul {
  padding-left: 24px;
  margin: 10px 0 14px 0;
}

.smart-editor-canvas ol,
#detailContent ol {
  padding-left: 24px;
  margin: 10px 0 14px 0;
}

.smart-editor-canvas li,
#detailContent li {
  margin-bottom: 6px;
  line-height: 1.75;
}

/* 감성 블록 인용구 4종 렌더링 스타일 */
.quote-line,
.naver-quote-line {
  border-left: 4px solid var(--color-primary, #0d9488);
  background: #f8fafc;
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 15.5px;
  color: #334155;
  line-height: 1.8;
}

.quote-quote,
.naver-quote-quote {
  position: relative;
  text-align: center;
  padding: 24px 28px;
  margin: 32px auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  max-width: 580px;
}

.quote-quote::before,
.naver-quote-quote::before {
  content: "“";
  display: block;
  font-size: 40px;
  line-height: 1;
  color: #94a3b8;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}

.quote-quote p,
.naver-quote-quote p {
  margin: 0;
  font-size: 17.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.7;
}

.quote-box,
.naver-quote-box {
  position: relative;
  margin: 30px auto;
  padding: 26px 28px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 6px;
  text-align: center;
  max-width: 560px;
}

.quote-box p,
.naver-quote-box p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.7;
}

/* 코너 프레임형 인용구 (┌ ┘) */
.quote-corner,
.naver-quote-corner {
  position: relative;
  margin: 34px auto;
  padding: 28px 32px;
  max-width: 520px;
  text-align: center;
  background: transparent;
}

.quote-corner::before,
.naver-quote-corner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-top: 2.5px solid #334155;
  border-left: 2.5px solid #334155;
}

.quote-corner::after,
.naver-quote-corner::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-bottom: 2.5px solid #334155;
  border-right: 2.5px solid #334155;
}

.quote-corner p,
.naver-quote-corner p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #334155;
  line-height: 1.9;
}

/* 인용구 공통 하단 출처 표시 */
.quote-source {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 14px;
  font-style: normal;
  letter-spacing: -0.3px;
}

.quote-memo,
.naver-quote-memo {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px auto;
  color: #854d0e;
  font-size: 15.5px;
  max-width: 580px;
  box-shadow: 0 4px 12px rgba(254, 240, 138, 0.25);
}

/* 4단계 검진 주기 원형 뱃지 인포그래픽 카드 */
.post-stages-card {
  margin: 32px auto;
  padding: 26px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  max-width: 600px;
  text-align: center;
}

.post-stages-header {
  margin-bottom: 20px;
}

.post-stages-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.post-stages-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.post-stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.post-stage-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.post-stage-badge {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.post-stage-age {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.post-stage-months {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 600px) {
  .post-stages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* 감성 사선 구분선 */
.hr-slash {
  margin: 36px auto;
  text-align: center;
  color: #cbd5e1;
  font-size: 22px;
  letter-spacing: 4px;
  user-select: none;
}

/* 치과 플레이스 / 위치 정보 카드 */
.post-place-card {
  margin: 36px auto;
  padding: 24px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  max-width: 600px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.post-place-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.post-place-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.post-place-badge {
  background: #03c75a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.post-place-addr {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.post-place-actions {
  display: flex;
  gap: 10px;
}

.post-place-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.post-place-btn-primary {
  background: #03c75a;
  color: #ffffff;
}

.post-place-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* 감성 디자인 구분선 */
.quote-divider,
.naver-divider {
  border: none;
  height: 1px;
  background: #e2e8f0;
  margin: 32px 0;
  position: relative;
  overflow: visible;
}

.quote-divider::after,
.naver-divider::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 0 10px;
  color: #94a3b8;
  font-size: 12px;
}

/* ==========================================================================
   SMART PHOTO & VIDEO RESIZING SYSTEM (아이참 스마트에디터 v2)
   ========================================================================== */

/* 본문 미디어 래퍼 (사진 & 동영상 공통) */
.blog-media-box,
.editor-image-wrap,
.editor-video-wrap {
  position: relative;
  margin: 26px 0;
  transition: all 0.2s ease;
  clear: both;
}

/* 정렬 지원 */
.blog-media-box[data-align="left"],
.editor-image-wrap[data-align="left"],
.editor-video-wrap[data-align="left"] {
  text-align: left !important;
}

.blog-media-box[data-align="center"],
.editor-image-wrap[data-align="center"],
.editor-video-wrap[data-align="center"] {
  text-align: center !important;
}

.blog-media-box[data-align="right"],
.editor-image-wrap[data-align="right"],
.editor-video-wrap[data-align="right"] {
  text-align: right !important;
}

/* 미디어 이너 컨테이너 (크기 조절의 주체) */
.image-inner-container,
.video-inner-container {
  display: inline-block;
  position: relative;
  max-width: 100%;
  vertical-align: middle;
  transition: width 0.15s ease, max-width 0.15s ease;
}

/* 크기 프리셋 지원 */
.blog-media-box[data-size="small"] .image-inner-container,
.blog-media-box[data-size="small"] .video-inner-container {
  max-width: 35% !important;
  width: 100%;
}

.blog-media-box[data-size="medium"] .image-inner-container,
.blog-media-box[data-size="medium"] .video-inner-container {
  max-width: 65% !important;
  width: 100%;
}

.blog-media-box[data-size="large"] .image-inner-container,
.blog-media-box[data-size="large"] .video-inner-container {
  max-width: 100% !important;
  width: 100%;
}

.blog-media-box[data-size="original"] .image-inner-container,
.blog-media-box[data-size="original"] .video-inner-container {
  max-width: none !important;
  width: auto !important;
}

/* 모바일 화면에서는 작은/중간 크기가 너무 찌그러지지 않도록 반응형 최적화 */
@media (max-width: 768px) {
  .blog-media-box[data-size="small"] .image-inner-container {
    max-width: 60% !important;
  }
  .blog-media-box[data-size="medium"] .image-inner-container,
  .blog-media-box[data-size="medium"] .video-inner-container {
    max-width: 100% !important;
  }
}

/* 본문 내 이미지 렌더링 (블로그 감성 반응형) */
.smart-editor-canvas img,
#detailContent img,
.blog-post-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

/* 단순 단독 img가 들어있을 때의 fallback */
.smart-editor-canvas > img,
#detailContent > img {
  margin: 24px auto;
  display: block;
}

#detailContent img,
.blog-post-content img {
  cursor: zoom-in;
}

#detailContent img:hover,
.blog-post-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* 에디터 내 사진/동영상 선택 상태 하이라이트 */
.smart-editor-canvas .is-selected,
.smart-editor-canvas .image-inner-container.is-selected,
.smart-editor-canvas .video-inner-container.is-selected {
  outline: 2.5px solid #0d9488 !important;
  outline-offset: 4px;
  border-radius: 14px;
}

/* 드래그 크기조절 핸들 */
.media-resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #0d9488;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 150;
  cursor: nwse-resize;
  touch-action: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.media-resize-handle:hover,
.media-resize-handle.active {
  transform: scale(1.3);
  background: #0f766e;
}

.media-resize-handle.handle-se {
  right: -7px;
  bottom: -7px;
}

.media-resize-handle.handle-sw {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

/* 크기 조절 중 실시간 크기 뱃지 */
.media-resize-badge {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 160;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 플로팅 미디어 퀵 툴바 (Overlay Quick Toolbar) */
.blog-media-quick-toolbar {
  position: absolute;
  z-index: 200;
  background: #ffffff;
  border: 1.5px solid #0d9488;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(13, 148, 136, 0.25), 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  margin-top: -12px;
  user-select: none;
  animation: popQuickToolbar 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popQuickToolbar {
  from {
    opacity: 0;
    transform: translate(-50%, -85%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

.quick-tb-group {
  display: flex;
  align-items: center;
  gap: 3px;
}

.quick-tb-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  margin-right: 2px;
  margin-left: 3px;
}

.btn-quick-tb {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.btn-quick-tb:hover {
  background: #f0fdfa;
  border-color: #5eead4;
  color: #0d9488;
}

.btn-quick-tb.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

.btn-quick-tb.btn-quick-danger {
  color: #e11d48;
}

.btn-quick-tb.btn-quick-danger:hover {
  background: #ffe4e6;
  border-color: #f43f5e;
}

.quick-tb-divider {
  width: 1px;
  height: 16px;
  background: #e2e8f0;
  margin: 0 4px;
}

/* 이미지 및 동영상 캡션 (스마트 에디터 스타일) */
.image-caption,
.video-caption {
  display: block;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 10px;
  margin-bottom: 6px;
  min-height: 20px;
  line-height: 1.5;
  outline: none;
  word-break: keep-all;
  transition: color 0.2s;
}

.image-caption:empty::before,
.video-caption:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  cursor: text;
  font-style: normal;
}

/* 본문 읽기 뷰어에서는 비어있는 캡션 자동 감춤 */
#detailContent .image-caption:empty,
#detailContent .video-caption:empty,
.blog-post-content .image-caption:empty,
.blog-post-content .video-caption:empty {
  display: none !important;
}

/* 동영상 래퍼 및 16:9 반응형 */
.blog-video-container,
.video-inner-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  background: #000000;
}

.video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 본문 내 링크 스타일 */
.smart-editor-canvas a,
#detailContent a {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.smart-editor-canvas a:hover,
#detailContent a:hover {
  color: #0369a1;
}

/* ==========================================================================
   20. WORDPRESS SYNC DASHBOARD STYLES (워드프레스 실시간 연동 관리)
   ========================================================================== */
.wp-guide-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.wp-status-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wp-status-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.wp-status-badge.active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  animation: pulseLight 2s infinite;
}

@keyframes pulseLight {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.75;
  }
}

.wp-config-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.arch-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.arch-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.arch-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.arch-card.featured {
  border-color: #0d9488;
  background: #f0fdfa;
}

.arch-tag {
  font-size: 11px;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 8px;
  display: inline-block;
}

.arch-card h6 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.arch-card p {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.arch-card ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
  font-size: 12px;
  color: #334155;
  line-height: 1.7;
}

.arch-card li {
  margin-bottom: 4px;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   메인 홈페이지 치료이야기 (의료법 제56조 준수 회원 전용) 특화 탭, 뱃지, 모달 스타일
   ========================================================================== */

/* 1. 메인 게시판 카테고리 탭 특화 */
.board-tab.tab-treatment {
  border-color: #c7d2fe;
  color: #4338ca;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.board-tab.tab-treatment:hover {
  border-color: #818cf8;
  background: #ede9fe;
  color: #3730a3;
}

.board-tab.tab-treatment.active {
  background: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* 2. 메인 게시판 목록 뱃지 & 행 스타일 */
.badge-cat.badge-treatment-cat {
  background: #f5f3ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.badge-lock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #4338ca 0%, #1e1b4b 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(30, 27, 75, 0.25);
}

.board-row-item.row-treatment-case {
  border-left: 3.5px solid #818cf8;
}

.board-row-item.row-treatment-case:hover {
  background: #fbfbfe;
}

/* 3. 의료법 회원 전용 안내 모달 (treatmentMemberModal) */
.treatment-modal-dialog {
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 28px 30px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid #e2e8f0;
  text-align: center;
  box-sizing: border-box;
}

.treatment-modal-header {
  margin-bottom: 20px;
}

.treatment-lock-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  border: 2px solid #c7d2fe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.treatment-lock-icon {
  font-size: 30px;
}

.treatment-law-badge {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.treatment-modal-title {
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.treatment-modal-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.treatment-post-preview-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  text-align: left;
}

.treatment-preview-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 4px;
}

.treatment-preview-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.45;
}

.treatment-notice-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: left;
}

.treatment-notice-text {
  font-size: 13px;
  color: #1e3a8a;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.treatment-notice-text strong {
  color: #1d4ed8;
}

.treatment-prep-box {
  display: flex;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 10px 12px;
  align-items: flex-start;
}

.treatment-prep-box .prep-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.treatment-prep-box .prep-text-wrap strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  margin-bottom: 3px;
}

.treatment-prep-box .prep-text-wrap p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.treatment-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.btn-treatment-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.btn-treatment-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
  color: #ffffff;
}

.btn-treatment-booking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: #03c75a;
  color: #ffffff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(3, 199, 90, 0.2);
  transition: transform 0.2s;
  box-sizing: border-box;
}

.btn-treatment-booking:hover {
  transform: translateY(-1px);
  background: #02b350;
  color: #ffffff;
}

.btn-treatment-close {
  width: 100%;
  height: 42px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}

.btn-treatment-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.btn-treatment-login-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-treatment-login-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.btn-treatment-reg-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  background: #ffffff;
  border: 1.5px solid #0d9488;
  color: #0f766e;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-treatment-reg-now:hover {
  background: #f0fdfa;
  color: #0d9488;
  border-color: #0f766e;
}

/* ==========================================================================
   아이참 Case 열람 전용 회원가입 & 로그인 모달 (caseAuthModal)
   ========================================================================== */
.case-auth-dialog {
  max-width: 480px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  position: relative;
  box-sizing: border-box;
  animation: authModalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.case-auth-header {
  text-align: center;
  margin-bottom: 22px;
}

.case-auth-pill {
  display: inline-block;
  background: #f0fdfa;
  border: 1px solid #5eead4;
  color: #0f766e;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.case-auth-title {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.case-auth-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 6px;
  text-align: left;
}

.case-auth-subtitle strong {
  color: #0f172a;
}

.case-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  height: 42px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #0d9488;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.case-auth-form .form-group {
  margin-bottom: 16px;
}

.case-auth-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.case-auth-form .form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #ffffff;
}

.case-auth-form .form-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.auth-tip-text {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.4;
}

.auth-terms-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  cursor: pointer;
}

.terms-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #0d9488;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.4;
}

.btn-auth-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-footer-prompt {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #64748b;
}

.btn-text-link {
  background: none;
  border: none;
  color: #0d9488;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 4px;
  font-size: 13px;
}

.btn-text-link:hover {
  color: #0f766e;
}

/* ==========================================================================
   콘텐츠 불펌 방지 & 보안 스타일 (Anti-Theft & Security Guard)
   ========================================================================== */
/* 모든 이미지 무단 드래그 다운로드 방지 */
img,
.post-card-thumb,
.blog-post-content img,
.gallery-slide-img,
.doctor-profile-photo {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* 본문 및 환자 임상 데이터 텍스트 선택 방지 */
.blog-article-content,
.treatment-modal-dialog,
.clinical-case-body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 관리자 입력 폼 및 정상 사용자 입력창은 정상 텍스트 선택/입력 허용 */
input,
textarea,
[contenteditable="true"],
.smart-editor-canvas,
.form-input,
.case-auth-dialog input {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* ==========================================================================
   긴급 휴진 & 진료시간 안내 상단 배너 (Emergency Notice Banner)
   ========================================================================== */
.clinic-notice-banner {
  position: relative;
  z-index: 998;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  animation: bannerSlideDown 0.3s ease-out;
  transition: all 0.3s ease;
}

@keyframes bannerSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clinic-notice-banner.theme-warning {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #fff7ed 100%);
  border-bottom: 2px solid #fb923c;
  color: #9a3412;
}

.clinic-notice-banner.theme-urgent {
  background: linear-gradient(90deg, #fef2f2 0%, #fee2e2 50%, #fef2f2 100%);
  border-bottom: 2px solid #f87171;
  color: #991b1b;
}

.clinic-notice-banner.theme-info {
  background: linear-gradient(90deg, #f0fdfa 0%, #ccfbf1 50%, #f0fdfa 100%);
  border-bottom: 2px solid #2dd4bf;
  color: #115e59;
}

.clinic-notice-banner .banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.clinic-notice-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clinic-notice-banner .banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.clinic-notice-banner.theme-warning .banner-badge {
  color: #ea580c;
  border: 1px solid #fdba74;
}

.clinic-notice-banner.theme-urgent .banner-badge {
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.clinic-notice-banner.theme-info .banner-badge {
  color: #0d9488;
  border: 1px solid #99f6e4;
}

.clinic-notice-banner .banner-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.65;
  transition: opacity 0.2s;
  padding: 2px 6px;
}

.clinic-notice-banner .banner-close-btn:hover {
  opacity: 1;
}

/* ==========================================================================
   관리자 진료시간 & 임시 휴진일 관리 컴포넌트
   ========================================================================== */
.admin-schedule-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.admin-schedule-card h5 {
  font-size: 15.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.time-box-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.time-box-item label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.time-input-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-input-pair input[type="time"] {
  height: 38px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  flex: 1;
}

.time-input-pair input[type="time"]:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.holiday-chip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.holiday-chip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
}

.holiday-chip-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.holiday-chip-date {
  font-weight: 800;
  color: #c2410c;
  background: #ffedd5;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12.5px;
}

.holiday-chip-reason {
  color: #431407;
  font-weight: 600;
}

.btn-del-holiday {
  background: #ffffff;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-del-holiday:hover {
  background: #fee2e2;
}

/* ==========================================================================
   아이참 관리자 모드 - 방문자 분석 & 통계 대시보드 스타일
   ========================================================================== */
.stat-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-kpi-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.stat-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}

.stat-kpi-card.card-today::before { background: linear-gradient(90deg, #10b981, #059669); }
.stat-kpi-card.card-yesterday::before { background: linear-gradient(90deg, #3b82f6, #2563eb); }
.stat-kpi-card.card-month::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.stat-kpi-card.card-total::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

.stat-kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stat-kpi-num {
  font-size: 30px;
  font-weight: 900;
  color: #1e293b;
  line-height: 1.1;
}

.stat-kpi-sub {
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 6px;
  font-weight: 500;
}

.stat-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.stat-box-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 175px;
  padding-top: 25px;
  padding-bottom: 5px;
  border-bottom: 1.5px solid #cbd5e1;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  min-width: 0;
}

.stat-bar-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.stat-bar-col:hover .stat-bar-tooltip {
  opacity: 1;
  transform: translateY(-4px);
  pointer-events: auto;
}

.stat-bar-pillar {
  width: 100%;
  max-width: 28px;
  background: linear-gradient(180deg, #0d9488, #14b8a6);
  border-radius: 6px 6px 0 0;
  transition: height 0.4s ease-out, background 0.2s;
  cursor: pointer;
}

.stat-bar-pillar.today-bar {
  background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

.stat-bar-pillar:hover {
  background: #0f766e;
  filter: brightness(1.1);
}

.stat-bar-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  margin-top: 8px;
  white-space: nowrap;
}

.stat-bar-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  background: #1e293b;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-bar-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.stat-progress-item {
  margin-bottom: 14px;
}

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

.stat-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.stat-progress-track {
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

.fill-mobile { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.fill-desktop { background: linear-gradient(90deg, #10b981, #34d399); }
.fill-tablet { background: linear-gradient(90deg, #a855f7, #c084fc); }
.fill-teal { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.fill-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.stat-table-compact {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stat-table-compact th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1.5px solid #e2e8f0;
}

.stat-table-compact td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.stat-table-compact tr:hover td {
  background: #f8fafc;
}