/* ═══════════════════════════════════════════════
   MAIN PAGE — main.css
   Sections: Intro · Hero · Clinic Intro · Doctor
             B&A · Treatment · Info · CTA
   ═══════════════════════════════════════════════ */


/* ───────────────────────────────────────────────
   1. INTRO MOTION (5-Phase 타이포그래픽 모션)
   ─────────────────────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.intro.hidden { opacity: 0; pointer-events: none; }

/* 슬로건 영역 */
.intro-inner {
  text-align: center;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
              filter 1.2s ease,
              opacity 1s ease;
}
.intro.phase-3 .intro-inner {
  transform: scale(1.02);
  filter: blur(6px);
  opacity: 0;
}

/* 각 줄 */
.intro-line { overflow: hidden; margin-bottom: 2px; }
.intro-line h1 {
  font-size: 9vw;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  transform: translateY(100%);
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Phase 1~3: 첫 번째 줄 "정확한 진단" */
.intro.phase-1 .intro-line:first-child h1,
.intro.phase-2 .intro-line:first-child h1,
.intro.phase-3 .intro-line:first-child h1 {
  transform: translateY(0);
  opacity: 1;
}
/* Phase 2~3: 두 번째 줄 "정직한 진료" */
.intro.phase-2 .intro-line:nth-child(2) h1,
.intro.phase-3 .intro-line:nth-child(2) h1 {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.08s;
}

/* 부제 */
.intro-sub {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #888;
  opacity: 0;
  transition: opacity 0.8s 0.4s;
}
.intro.phase-2 .intro-sub,
.intro.phase-3 .intro-sub { opacity: 1; }

/* 병원명 가로형 로고 애니메이션 */
.intro-name-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-logo-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.intro-icon {
  height: clamp(60px, 10vw, 100px);
  width: auto;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0) invert(1);
}
.intro.phase-4 .intro-icon {
  opacity: 1;
  transform: scale(1);
}
.intro-name-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.intro-name {
  display: flex;
  align-items: center;
  gap: 2px;
}
.intro-divider {
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.intro.phase-5 .intro-divider { width: 100%; }
.intro-name-en {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: #888;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.intro.phase-5 .intro-name-en { opacity: 1; }

/* 개별 글자 */
.char {
  display: inline-block;
  font-family: 'Pretendard', sans-serif;
  font-size: 7vw;
  font-weight: 300;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.8s ease;
}

/* Phase 4: "연세타이밍" 순차 등장 */
.intro.phase-4 .char:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.intro.phase-4 .char:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.intro.phase-4 .char:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.intro.phase-4 .char:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.intro.phase-4 .char:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* Phase 5: "치과" 파란색 등장 */
.intro.phase-5 .char:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0s; color: #2B7AE8; }
.intro.phase-5 .char:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.12s; color: #2B7AE8; }
.intro.phase-5 .char:nth-child(1),
.intro.phase-5 .char:nth-child(2),
.intro.phase-5 .char:nth-child(3),
.intro.phase-5 .char:nth-child(4),
.intro.phase-5 .char:nth-child(5) { opacity: 1; transform: translateY(0); }

/* Phase 5: 글자 빛나는 효과 (glow) — 페이드아웃까지 유지 */
.intro.phase-5 .char {
  text-shadow: 0 0 20px rgba(255,255,255,0.6), 0 0 40px rgba(255,255,255,0.3);
  animation: charGlow 2s ease-in-out 0.3s infinite alternate;
}
.intro.phase-5 .char.blue {
  color: #2B7AE8;
  text-shadow: 0 0 20px rgba(43,122,232,0.7), 0 0 40px rgba(43,122,232,0.4);
  animation: charGlowBlue 2s ease-in-out 0.3s infinite alternate;
}
.intro.phase-5 .intro-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(43,122,232,0.6)) drop-shadow(0 0 32px rgba(43,122,232,0.3));
  animation: iconGlowBlue 2s ease-in-out 0.3s infinite alternate;
}

@keyframes charGlow {
  0% { text-shadow: 0 0 15px rgba(255,255,255,0.4), 0 0 30px rgba(255,255,255,0.2); }
  100% { text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 60px rgba(255,255,255,0.4), 0 0 80px rgba(255,255,255,0.15); }
}
@keyframes charGlowBlue {
  0% { text-shadow: 0 0 15px rgba(43,122,232,0.5), 0 0 30px rgba(43,122,232,0.3); }
  100% { text-shadow: 0 0 30px rgba(43,122,232,0.9), 0 0 60px rgba(43,122,232,0.5), 0 0 90px rgba(43,122,232,0.25); }
}
@keyframes iconGlowBlue {
  0% { filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(43,122,232,0.4)) drop-shadow(0 0 20px rgba(43,122,232,0.2)); }
  100% { filter: brightness(0) invert(1) drop-shadow(0 0 24px rgba(43,122,232,0.8)) drop-shadow(0 0 48px rgba(43,122,232,0.4)) drop-shadow(0 0 72px rgba(43,122,232,0.15)); }
}

/* SKIP 버튼 */
.intro .skip-btn {
  position: absolute;
  bottom: 48px;
  right: 48px;
  font-size: 0.8125rem;
  color: #888;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.25s ease;
}
.intro .skip-btn:hover { color: #fff; }


/* ───────────────────────────────────────────────
   2. HERO SLIDER
   ─────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 22, 40, 0.82) 0%,
    rgba(10, 22, 40, 0.45) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: max(40px, calc((100vw - var(--max-w)) / 2));
  padding-right: 40px;
  max-width: 720px;
}

.hero-content .hero-sub {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-content .hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  word-break: keep-all;
}

.hero-content .hero-desc {
  font-size: clamp(0.875rem, 1.2vw, 1.0625rem);
  color: var(--gray-200);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-content .hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.25s ease;
  width: fit-content;
}

.hero-content .hero-btn:hover {
  background: var(--gold-light);
}

/* Pagination — dot style */
.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--gold);
  transform: scale(1.2);
}

/* Navigation arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-prev { left: 24px; }
.hero-next { right: 24px; }


/* ───────────────────────────────────────────────
   3. CLINIC INTRO SECTION
   ─────────────────────────────────────────────── */
.intro-section {
  background: var(--white);
  padding: 120px 0;
}

.intro-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-grid .intro-text .section-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.intro-grid .intro-text .section-title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin-bottom: 24px;
  word-break: keep-all;
}
/* "연세타이밍치과" 같은 한 단어가 글자 단위로 줄바꿈되지 않도록 */
.intro-grid .intro-text .section-title strong { white-space: nowrap; }

.intro-grid .intro-text .section-desc {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 32px;
}

.intro-grid .intro-text .intro-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap 0.25s ease;
}

.intro-grid .intro-text .intro-link:hover {
  gap: 12px;
}

.intro-grid .intro-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
}

.intro-grid .intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ───────────────────────────────────────────────
   4. DOCTOR SECTION
   ─────────────────────────────────────────────── */
.doctor-section {
  background: var(--off-white);
  padding: 120px 0;
  overflow: hidden;
}

.doctor-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* Background marquee text */
.doctor-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 56px;
  user-select: none;
  pointer-events: none;
}

.doctor-marquee .marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.doctor-marquee .marquee-text {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7vw, 6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--gray-200);
  white-space: nowrap;
  line-height: 1;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.doctor-grid .doctor-card {
  display: flex;
  flex-direction: column;
}

.doctor-grid .doctor-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.doctor-grid .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-grid .doctor-name {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.doctor-grid .doctor-role {
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.doctor-grid .doctor-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.doctor-grid .doctor-cred {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 2.2;
  margin-top: 20px;
}

.doctor-cred-icon::before {
  content: '·';
  color: var(--gold);
  font-weight: 700;
  margin-right: 8px;
}


/* ───────────────────────────────────────────────
   5. BEFORE & AFTER SECTION
   ─────────────────────────────────────────────── */
.bna-section {
  background: var(--navy);
  padding: 120px 0;
}

.bna-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.bna-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.bna-section .section-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bna-section .section-title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

/* Tab navigation */
.bna-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.bna-tabs .bna-tab {
  position: relative;
  padding: 8px 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-400);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.bna-tabs .bna-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.bna-tabs .bna-tab.active,
.bna-tabs .bna-tab:hover {
  color: var(--white);
}

.bna-tabs .bna-tab.active::after {
  width: 100%;
}

/* B&A Cards */
.bna-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--navy-mid);
}

.bna-card .bna-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

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

.bna-card .bna-img .bna-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.bna-card .bna-img .bna-label--before {
  background: var(--navy-light);
  color: var(--gray-200);
}

.bna-card .bna-img .bna-label--after {
  background: var(--gold);
  color: var(--white);
}

/* B&A Notice */
.bna-notice {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 40px;
  line-height: 1.8;
}

/* B&A Navigation */
.bna-slider-wrap {
  position: relative;
}


/* ───────────────────────────────────────────────
   6. TREATMENT CATEGORY SECTION
   ─────────────────────────────────────────────── */
.treat-section {
  background: var(--white);
  padding: 120px 0;
}

.treat-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.treat-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.treat-section .section-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.treat-section .section-title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}

.treat-swiper {
  overflow: hidden;
  margin-top: 56px;
}

.treat-swiper {
  overflow: hidden;
  margin-top: 56px;
  perspective: 800px;
}

.treat-card {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
  animation: cardFloat 4s ease-in-out infinite;
}

/* 각 카드 플로팅 시차 */
.swiper-slide:nth-child(2) .treat-card { animation-delay: -0.6s; }
.swiper-slide:nth-child(3) .treat-card { animation-delay: -1.2s; }
.swiper-slide:nth-child(4) .treat-card { animation-delay: -1.8s; }
.swiper-slide:nth-child(5) .treat-card { animation-delay: -2.4s; }
.swiper-slide:nth-child(6) .treat-card { animation-delay: -3.0s; }
.swiper-slide:nth-child(7) .treat-card { animation-delay: -3.6s; }

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

.treat-card:hover {
  animation-play-state: paused;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.treat-card .treat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.treat-card:hover .treat-img {
  transform: scale(1.06);
}

/* 빛 반사 레이어 (JS로 위치 추적) */
.treat-glare {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.treat-card:hover .treat-glare { opacity: 1; }

/* 하단 오버레이 */
.treat-card .treat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,22,40,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
  z-index: 2;
}
.treat-card .treat-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  word-break: keep-all;
}
.treat-card .treat-en {
  font-family: var(--font-en);
  font-size: 0.6875rem;
  letter-spacing: .1em;
  color: var(--gold);
  margin-top: 4px;
}


/* ───────────────────────────────────────────────
   7. INFO SECTION
   ─────────────────────────────────────────────── */
.info-section {
  background: var(--off-white);
  padding: 120px 0;
}

.info-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.info-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.info-section .section-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.info-section .section-title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.info-table th,
.info-table td {
  padding: 14px 16px;
  font-size: 0.9375rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.info-table th {
  font-weight: 600;
  color: var(--dark);
  width: 120px;
}

.info-table td {
  color: var(--gray-500);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.info-table .highlight {
  color: var(--gold);
  font-weight: 600;
}

/* Map */
.info-grid .info-map {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-100);
}

.info-grid .info-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.info-grid .info-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-phone {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  color: var(--navy);
  letter-spacing: .05em;
  margin: 24px 0;
}

.info-grid .info-address {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

.info-note {
  font-size: 0.8125rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-top: 16px;
}

.info-map-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.info-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  font-size: 0.8125rem;
  color: var(--gray-500);
  border-radius: 4px;
  transition: border-color 0.3s, color 0.3s;
}

.info-map-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}


/* ───────────────────────────────────────────────
   8. CTA SECTION
   ─────────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
}

.cta-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.cta-section .cta-label {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-section .cta-title {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
  word-break: keep-all;
}

.cta-section .cta-desc {
  font-size: 1rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin-bottom: 40px;
}

.cta-section .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--gold);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2px;
  transition: background 0.25s ease;
}

.cta-section .btn-primary:hover {
  background: var(--gold-light);
}

.cta-section .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: transparent;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--gray-400);
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.cta-section .btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-content {
    max-width: 560px;
  }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .intro-section,
  .doctor-section,
  .bna-section,
  .treat-section,
  .info-section {
    padding: 80px 0;
  }

  .intro-section .section-inner,
  .doctor-section .section-inner,
  .bna-section .section-inner,
  .treat-section .section-inner,
  .info-section .section-inner,
  .cta-section .section-inner {
    padding: 0 20px;
  }

  /* Hero */
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
  }

  .hero-pagination {
    left: 20px;
    bottom: 28px;
  }

  /* Intro */
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-grid .intro-image {
    order: -1;
  }

  /* Doctor */
  .doctor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* B&A */
  .bna-tabs {
    gap: 20px;
    flex-wrap: wrap;
  }

  .bna-card {
    grid-template-columns: 1fr;
  }

  /* Treatment (handled by Swiper breakpoints) */

  /* Info */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* CTA */
  .cta-section {
    padding: 64px 0;
  }

  .cta-section .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-section .btn-primary,
  .cta-section .btn-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Intro overlay */
  #intro-overlay .intro-skip {
    bottom: 32px;
    right: 32px;
  }
}


/* ───────────────────────────────────────────────
   9. HOME BLOG SECTION (메인 "최신 블로그")
   카드 자체는 css/blog.css의 .blog-card 스타일 재사용
   ─────────────────────────────────────────────── */
.home-blog-section {
  background: #fff;
  padding: 120px 0;
}
.home-blog-section .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}
.home-blog-head {
  text-align: center;
  margin-bottom: 56px;
}
.home-blog-head .section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
}
.home-blog-head .section-title {
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.home-blog-head .section-desc {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* 메인은 6장 → 데스크탑 3열 × 2줄, blog.css의 .blog-grid 그대로 활용 */
.home-blog-grid {
  margin-bottom: 48px;
}

.home-blog-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-blog-cta .btn-primary,
.home-blog-cta .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1024px) {
  .home-blog-section { padding: 96px 0; }
  .home-blog-section .section-inner { padding: 0 32px; }
  .home-blog-head { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .home-blog-section { padding: 72px 0; }
  .home-blog-section .section-inner { padding: 0 20px; }
  .home-blog-grid { margin-bottom: 32px; }
  .home-blog-cta { flex-direction: column; align-items: stretch; }
  .home-blog-cta .btn-primary,
  .home-blog-cta .btn-outline { justify-content: center; }
}


/* ───────────────────────────────────────────────
   TEMP HIDE — 추후 개발 영역
   복구 시: 아래 두 selector 제거
   ─────────────────────────────────────────────── */
.consult-float,
.popup-overlay { display: none !important; }
