/* ============================================================
   가평산속암요양병원 커스텀 CSS
   파일: gapyeong-child/assets/css/custom.css
   ============================================================ */

/* ── CSS 토큰 ── */
:root {
  --green-dark:  #1b4332;
  --green-main:  #2d6a4f;
  --green-mid:   #40916c;
  --green-light: #74c69d;
  --green-pale:  #d8f3dc;
  --green-bg:    #f0f7f2;
  --kakao:       #FEE500;
  --white:       #ffffff;
  --gray-100:    #f5f5f5;
  --gray-200:    #e8e8e8;
  --gray-500:    #888;
  --gray-700:    #444;
  --text-dark:   #1a1a2e;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.16);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
}

/* ── 폰트 오버라이드 ── */
body.home-custom,
body.home-custom * {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif !important;
  box-sizing: border-box;
}

/* GeneratePress 기본 구조 숨기기 (홈에서만) */
body.home-custom .site-header.gp-header,
body.home-custom .site-footer.gp-footer,
body.home-custom .site-main,
body.home-custom .sidebar,
body.home-custom .navigation-branding { display: none !important; }

/* ── GeneratePress 네비게이션 스타일 초기화 (커스텀 헤더용) ── */
/* 최상위 nav-link만 대상 (드롭다운 a는 제외) */
.site-header .main-nav .nav-link {
  color: #fff !important;
  background: none !important;
  border: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: normal !important;
}

/* ── 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 999;
  background: var(--green-dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-top { background: rgba(0,0,0,.15); padding: 4px 0; }
.header-top-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: flex-end; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.7);
}
.header-top-inner a { color: rgba(255,255,255,.7); transition: color .2s; }
.header-top-inner a:hover { color: #fff; }
.header-main {
  width: 100%;
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 68px; gap: 32px;
}
.site-logo a { display: flex; flex-direction: column; line-height: 1.2; }
.logo-ko { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.logo-en { font-size: 9px; color: var(--green-light); font-weight: 300; letter-spacing: .5px; }

/* 네비 — 수직 가운데 정렬 완전 고정 */
.main-nav {
  flex: 1;
  display: flex;
  align-items: center;          /* 네비 블록 자체를 헤더 세로 중앙에 */
}
.nav-list {
  display: flex;
  align-items: center;          /* 메뉴 아이템 세로 중앙 */
  list-style: none;
  margin: 0; padding: 0;
  height: 68px;                 /* header-inner 와 동일 높이 */
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-link {
  display: flex;
  align-items: center;          /* 텍스트 수직 가운데 */
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;       /* GeneratePress override 방지 */
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  text-decoration: none !important;
  line-height: 1 !important;    /* line-height 간섭 차단 */
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  color: #fff !important;
  border-bottom-color: var(--green-light);
}
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 170px; background: #fff;
  border-top: 3px solid var(--green-mid);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 100; padding: 8px 0; list-style: none;
}
.nav-item:hover .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 10px 18px;
  font-size: 13px; color: var(--gray-700);
  transition: background .15s, color .15s;
}
.dropdown li a:hover { background: var(--green-bg); color: var(--green-main); }
.header-cta { display: flex; gap: 8px; flex-shrink: 0; }
.btn-tel-header {
  padding: 9px 16px; background: #fff; color: var(--green-dark);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  transition: background .2s, color .2s;
}
.btn-tel-header:hover { background: var(--green-pale); color: var(--green-dark); }
.btn-kakao-header {
  padding: 9px 16px; background: var(--kakao); color: #3c1e1e;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
}
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto;
}
.mobile-toggle span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; }

/* ============================================================
   SECTION 공통
   ============================================================ */
.section-header { text-align: center; margin-bottom: 36px; padding: 0 24px; }
.section-badge {
  display: inline-block; padding: 4px 14px;
  background: var(--green-pale); color: var(--green-main);
  border-radius: 50px; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 800;
  color: var(--green-dark); letter-spacing: -1px; line-height: 1.3;
}
.section-sub { font-size: 14px; color: var(--gray-500); margin-top: 8px; line-height: 1.6; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section { position: relative; height: 600px; overflow: hidden; background: var(--green-dark); }
.hero-swiper  { width: 100%; height: 100%; }
.hero-slide   { position: relative; width: 100%; height: 100%; }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.52); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,.6) 0%, rgba(21,101,192,.2) 100%);
}
.hero-content {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; color: #fff; width: 100%; padding: 0 24px; z-index: 2;
}
.hero-badge {
  display: inline-block; padding: 5px 16px;
  background: var(--green-mid); color: #fff;
  border-radius: 50px; font-size: 12px; font-weight: 600;
  letter-spacing: .5px; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(26px, 4vw, 50px); font-weight: 900;
  line-height: 1.25; margin-bottom: 14px; letter-spacing: -1px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-title em { color: var(--green-light); font-style: normal; }
.hero-sub {
  font-size: clamp(13px, 1.5vw, 17px); color: rgba(255,255,255,.88);
  margin-bottom: 32px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btn-primary {
  padding: 14px 30px; background: var(--green-mid); color: #fff;
  border-radius: 50px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: background .2s, transform .2s;
}
.hero-btn-primary:hover { background: var(--green-light); color: var(--green-dark); transform: translateY(-2px); }
.hero-btn-kakao {
  padding: 14px 30px; background: var(--kakao); color: #3c1e1e;
  border-radius: 50px; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: filter .2s, transform .2s;
}
.hero-btn-kakao:hover { filter: brightness(.95); transform: translateY(-2px); }
.hero-info-bar { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(27,67,50,.88); backdrop-filter: blur(4px); z-index: 3; }
.hero-info-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.hero-info-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: 13px; }
.hero-info-item strong { color: var(--green-light); font-weight: 700; }
.hero-pagination { bottom: 60px !important; }

/* ============================================================
   PROGRAM CAROUSEL (캐러셀 1)
   ============================================================ */
.program-carousel-section { background: var(--green-bg); padding: 52px 0 56px; }
.prog-swiper-wrap { position: relative; padding: 0 56px; max-width: 1320px; margin: 0 auto; }
.prog-swiper { overflow: hidden; }
.prog-card {
  display: block; background: #fff; border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s; border: 1px solid var(--gray-200);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prog-card-img { position: relative; height: 200px; overflow: hidden; }
.prog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.prog-card:hover .prog-card-img img { transform: scale(1.06); }
.prog-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,67,50,.7) 0%, transparent 60%); }
.prog-card-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; background: var(--green-mid); color: #fff; border-radius: 50px; font-size: 11px; font-weight: 700; }
.prog-card-body { padding: 20px; }
.prog-card-title { font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 8px; }
.prog-card-desc { font-size: 13px; color: var(--gray-500); line-height: 1.6; margin-bottom: 14px; }
.prog-card-link { font-size: 13px; font-weight: 700; color: var(--green-main); }
.prog-card-link::after { content: ' →'; }

/* Swiper 공통 버튼 */
.swiper-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; background: var(--green-dark);
  border: none; border-radius: 50%; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; box-shadow: var(--shadow-md);
  transition: background .2s;
}
.swiper-btn:hover { background: var(--green-mid); }
.prog-prev { left: 4px; }
.prog-next { right: 4px; }
.blog-prev { left: 4px; }
.blog-next { right: 4px; }
.swiper-btn.swiper-button-disabled { opacity: .3; cursor: default; }
.swiper-pagination-bullet { background: var(--green-main); opacity: .3; }
.swiper-pagination-bullet-active { opacity: 1; }

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section { padding: 80px 24px; }
.intro-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.intro-title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; line-height: 1.35; letter-spacing: -1px; color: var(--green-dark); margin-bottom: 20px; }
.intro-body { font-size: 15px; line-height: 1.85; color: var(--gray-700); margin-bottom: 16px; }
.intro-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.stat-item { text-align: center; }
.stat-num { font-size: 36px; font-weight: 900; color: var(--green-main); }
.stat-unit { font-size: 16px; font-weight: 700; color: var(--green-main); }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.intro-visual { position: relative; }
.intro-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.intro-img-main img { width: 100%; height: 400px; object-fit: cover; }
.intro-badge-float {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--green-dark); color: #fff;
  padding: 18px 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-md);
}
.float-num { font-size: 28px; font-weight: 900; color: var(--green-light); }
.float-text { font-size: 12px; margin-top: 2px; color: rgba(255,255,255,.8); }

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section { background: var(--green-dark); padding: 72px 24px; }
.why-inner { max-width: 1240px; margin: 0 auto; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); padding: 28px 24px; transition: background .2s, transform .2s; }
.why-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.why-icon { width: 52px; height: 52px; background: var(--green-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px; }
.why-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.why-desc { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ============================================================
   DOCTOR SECTION
   ============================================================ */
.doctor-outer { padding: 80px 24px; background: var(--green-bg); }
.doctor-section { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.doctor-photo-wrap { position: relative; }
.doctor-photo-wrap img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.doctor-name-badge { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(27,67,50,.9); backdrop-filter: blur(4px); color: #fff; padding: 14px 18px; border-radius: var(--radius-sm); }
.doctor-name { font-size: 18px; font-weight: 700; }
.doctor-role { font-size: 12px; color: var(--green-light); margin-top: 2px; }
.doctor-title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; color: var(--green-dark); letter-spacing: -1px; margin-bottom: 16px; line-height: 1.4; }
.doctor-quote { background: #fff; border-left: 4px solid var(--green-mid); padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--green-dark); font-size: 14px; line-height: 1.7; margin: 20px 0; }
.doctor-body { font-size: 14px; color: var(--gray-700); line-height: 1.8; margin-bottom: 20px; }
.doctor-spec-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.doctor-spec-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-700); }
.doctor-spec-item::before { content: '✓'; color: var(--green-mid); font-weight: 900; flex-shrink: 0; margin-top: 2px; }
.doctor-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-green { padding: 12px 24px; background: var(--green-main); color: #fff; border-radius: 50px; font-size: 14px; font-weight: 700; transition: background .2s; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline-green { padding: 12px 24px; border: 2px solid var(--green-main); color: var(--green-main); border-radius: 50px; font-size: 14px; font-weight: 700; transition: all .2s; }
.btn-outline-green:hover { background: var(--green-main); color: #fff; }

/* ============================================================
   YOUTUBE SECTION
   ============================================================ */
.youtube-section {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b4332 50%, #0d1b2a 100%);
  padding: 72px 24px; position: relative; overflow: hidden;
}
.youtube-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.yt-badge { background: rgba(116,198,157,.15); color: var(--green-light); margin-bottom: 14px; }
.yt-title { font-size: clamp(24px, 2.8vw, 38px); font-weight: 900; color: #fff; letter-spacing: -1px; line-height: 1.3; margin-bottom: 16px; }
.yt-title em { color: var(--green-light); font-style: normal; }
.yt-desc { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 28px; }
.btn-yt-channel {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: #FF0000; color: #fff;
  border-radius: 50px; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,0,0,.3); transition: filter .2s, transform .2s;
}
.btn-yt-channel:hover { filter: brightness(1.1); transform: translateY(-2px); }
.yt-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.4); border: 2px solid rgba(255,255,255,.1); }
.yt-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt-channel-link { text-align: center; margin-top: 14px; }
.yt-channel-link a { color: rgba(255,255,255,.6); font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px; }
.yt-channel-link a:hover { color: #fff; }

/* ============================================================
   CANCER TYPES
   ============================================================ */
.cancer-section { padding: 72px 24px; background: var(--gray-100); }
.cancer-inner { max-width: 1240px; margin: 0 auto; }
.cancer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 36px; }
.cancer-item { background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--green-dark); transition: all .2s; }
.cancer-item:hover, .cancer-item a:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.cancer-item a { display: block; color: inherit; }
.cancer-note { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray-500); }
.cancer-note a { color: var(--green-main); font-weight: 700; }

/* ============================================================
   BLOG CAROUSEL (캐러셀 2)
   ============================================================ */
.blog-section { padding: 72px 0 80px; background: #fff; }
.blog-header { max-width: 1240px; margin: 0 auto 36px; padding: 0 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.blog-section-title { font-size: clamp(20px, 2.4vw, 28px); }
.blog-more { padding: 8px 18px; border: 1.5px solid var(--green-main); color: var(--green-main); border-radius: 50px; font-size: 13px; font-weight: 600; transition: all .2s; white-space: nowrap; }
.blog-more:hover { background: var(--green-main); color: #fff; }
.blog-swiper-wrap { position: relative; padding: 0 56px; max-width: 1320px; margin: 0 auto; }
.blog-swiper { overflow: hidden; }
.blog-card { display: block; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); transition: transform .3s, box-shadow .3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card-img { height: 180px; overflow: hidden; background: var(--green-bg); position: relative; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-category { position: absolute; top: 10px; left: 10px; padding: 3px 10px; background: var(--green-main); color: #fff; border-radius: 50px; font-size: 10px; font-weight: 700; }
.blog-card-body { padding: 18px; }
.blog-card-title { font-size: 14px; font-weight: 700; color: var(--text-dark); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-excerpt { font-size: 12px; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--gray-500); }
.blog-card-naver { display: flex; align-items: center; gap: 4px; font-weight: 600; color: #03C75A; }
.blog-naver-icon { width: 16px; height: 16px; background: #03C75A; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 900; color: #fff; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: linear-gradient(90deg, var(--green-dark) 0%, #1565c0 100%); padding: 56px 24px; }
.cta-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-title { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; color: #fff; letter-spacing: -1px; line-height: 1.3; margin-bottom: 8px; }
.cta-desc { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn-tel { display: flex; align-items: center; gap: 10px; padding: 16px 30px; background: #fff; color: var(--green-dark); border-radius: 50px; font-size: 15px; font-weight: 800; box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: transform .2s; }
.cta-btn-tel:hover { transform: translateY(-2px); }
.cta-btn-kakao { display: flex; align-items: center; gap: 10px; padding: 16px 30px; background: var(--kakao); color: #3c1e1e; border-radius: 50px; font-size: 15px; font-weight: 800; box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: transform .2s; }
.cta-btn-kakao:hover { transform: translateY(-2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #0d1b12; padding: 56px 24px 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 28px; }
.footer-logo { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--green-light); }
.footer-address { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.9; font-style: normal; }
.footer-address a { color: var(--green-light); }
.footer-address strong { color: #fff; }
.footer-nav-col {}
.footer-nav-title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.footer-nav-list { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-list a { font-size: 12px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-nav-list a:hover { color: var(--green-light); }
.footer-social {}
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); color: rgba(255,255,255,.65); font-size: 12px; transition: all .2s; }
.social-btn:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.3); }
.footer-reg { font-size: 11px; color: rgba(255,255,255,.25); }

/* ============================================================
   FLOATING CTA & SCROLL TOP
   ============================================================ */
.floating-cta { position: fixed; bottom: 24px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 990; }
.float-btn { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; font-size: 20px; box-shadow: var(--shadow-lg); transition: transform .2s; }
.float-btn:hover { transform: scale(1.08); }
.float-tel  { background: var(--green-main); color: #fff; }
.float-kakao { background: var(--kakao); color: #3c1e1e; }
.scroll-top { position: fixed; bottom: 24px; left: 20px; width: 44px; height: 44px; background: rgba(27,67,50,.85); color: #fff; border-radius: 50%; border: none; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s, transform .2s; z-index: 990; box-shadow: var(--shadow-md); }
.scroll-top.visible { opacity: 1; }
.scroll-top:hover { transform: scale(1.1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .intro-inner       { grid-template-columns: 1fr; gap: 36px; }
  .intro-badge-float { position: static; display: inline-block; margin-top: 16px; }
  .doctor-section    { grid-template-columns: 1fr; }
  .doctor-photo-wrap { max-width: 300px; margin: 0 auto; }
  .youtube-inner     { grid-template-columns: 1fr; }
  .why-grid          { grid-template-columns: 1fr 1fr; }
  .footer-top        { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav, .header-cta { display: none; }
  .mobile-toggle     { display: flex; }
  .header-inner      { height: 56px; }
  .hero-section      { height: 480px; }
  .hero-info-inner   { gap: 12px; }
  .hero-pagination   { bottom: 50px !important; }
  .prog-swiper-wrap,
  .blog-swiper-wrap  { padding: 0 36px; }
  .swiper-btn        { width: 36px; height: 36px; font-size: 14px; }
  .why-grid          { grid-template-columns: 1fr; }
  .cta-inner         { flex-direction: column; align-items: flex-start; }
  .footer-top        { grid-template-columns: 1fr; }
}

/* 모바일 메뉴 열렸을 때 */
.main-nav.open {
  display: block !important;
  position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
  background: #fff; overflow-y: auto; padding: 16px 0; z-index: 998;
}
.main-nav.open .nav-list { flex-direction: column; }
.main-nav.open .dropdown { display: block; position: static; border: none; border-top: none; box-shadow: none; padding-left: 16px; background: #f8f8f8; }
.main-nav.open .nav-link { padding: 16px 20px; border-bottom: 1px solid #eee; height: auto; color: var(--green-dark) !important; }

/* ============================================================
   SUBPAGE — 서브페이지 공통 레이아웃
   ============================================================ */

/* GeneratePress 기본 구조 숨기기 (서브페이지) */
body.subpage-custom .site-header.gp-header,
body.subpage-custom .site-footer.gp-footer,
body.subpage-custom .site-main,
body.subpage-custom .sidebar,
body.subpage-custom .navigation-branding { display: none !important; }

/* 서브페이지 히어로 배너 */
.subpage-hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1b3a52 100%);
  padding: 48px 24px 36px;
}
.subpage-hero-inner {
  max-width: 1240px; margin: 0 auto;
}
.subpage-hero-title {
  font-size: clamp(22px, 3vw, 36px); font-weight: 800;
  color: #fff; letter-spacing: -1px; line-height: 1.3;
  margin-bottom: 12px;
}

/* 브레드크럼 */
.breadcrumb {
  font-size: 13px; color: rgba(255,255,255,.55);
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .2s; }
.breadcrumb a:hover { color: var(--green-light); }
.breadcrumb .separator { margin: 0 6px; }

/* RankMath 브레드크럼 오버라이드 */
.rank-math-breadcrumb { font-size: 13px; color: rgba(255,255,255,.55); }
.rank-math-breadcrumb a { color: rgba(255,255,255,.65); }
.rank-math-breadcrumb a:hover { color: var(--green-light); }
.rank-math-breadcrumb .separator { margin: 0 4px; }

/* 서브페이지 본문 영역 */
.subpage-main { padding: 56px 24px 80px; background: #fff; }
.subpage-wrap { max-width: 900px; margin: 0 auto; }

/* 서브페이지 본문 타이포그래피 */
.subpage-content { line-height: 1.85; color: var(--gray-700); }
.subpage-content h2 {
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 800;
  color: var(--green-dark); letter-spacing: -.5px;
  margin: 48px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--green-pale);
}
.subpage-content h2:first-child { margin-top: 0; }
.subpage-content h3 {
  font-size: clamp(15px, 1.8vw, 18px); font-weight: 700;
  color: var(--green-main); margin: 28px 0 10px;
}
.subpage-content p { font-size: 15px; margin-bottom: 16px; }
.subpage-content ul, .subpage-content ol {
  padding-left: 0; margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 10px; list-style: none;
}
.subpage-content ul li, .subpage-content ol li {
  font-size: 14px; padding-left: 20px; position: relative;
}
.subpage-content ul li::before {
  content: '✓'; color: var(--green-mid); font-weight: 900;
  position: absolute; left: 0; top: 1px;
}
.subpage-content ol { counter-reset: ol-counter; }
.subpage-content ol li { counter-increment: ol-counter; }
.subpage-content ol li::before {
  content: counter(ol-counter) '.'; color: var(--green-mid); font-weight: 700;
  position: absolute; left: 0; top: 0;
}
.subpage-content strong { color: var(--green-dark); font-weight: 700; }
.subpage-content a { color: var(--green-main); text-decoration: underline; }
.subpage-content a:hover { color: var(--green-dark); }
.subpage-content blockquote {
  background: var(--green-bg); border-left: 4px solid var(--green-mid);
  padding: 18px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--green-dark); margin: 24px 0;
}
.subpage-content figure { margin: 24px 0; }
.subpage-content figure img {
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); width: 100%;
}
.subpage-content figcaption {
  text-align: center; font-size: 12px; color: var(--gray-500); margin-top: 8px;
}
.subpage-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
}
.subpage-content th {
  background: var(--green-dark); color: #fff; padding: 12px 14px;
  text-align: left; font-weight: 600;
}
.subpage-content td {
  padding: 11px 14px; border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.subpage-content tr:nth-child(even) td { background: var(--gray-100); }

/* FAQ details/summary */
.subpage-content details {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.subpage-content summary {
  padding: 14px 18px; cursor: pointer; background: var(--gray-100);
  font-size: 14px; list-style: none; display: flex; align-items: center; gap: 8px;
}
.subpage-content summary::before { content: 'Q'; color: var(--green-mid); font-weight: 900; }
.subpage-content details[open] summary { background: var(--green-bg); color: var(--green-dark); }
.subpage-content details p { padding: 14px 18px; margin: 0; font-size: 14px; }

/* 암종 그리드 (서브페이지 내) */
.subpage-content .cancer-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 16px 0;
}
.subpage-content .cancer-grid span {
  padding: 6px 14px; background: var(--green-bg); border: 1.5px solid var(--green-light);
  border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--green-dark);
}

/* notice 텍스트 */
.subpage-content .notice {
  font-size: 13px; color: var(--gray-500);
  background: var(--gray-100); padding: 10px 14px;
  border-radius: var(--radius-sm); border-left: 3px solid var(--gray-200);
  margin-top: 8px;
}

/* 관련 링크 섹션 */
.subpage-content .related-links {
  background: var(--green-bg); padding: 24px 28px;
  border-radius: var(--radius-md); margin-top: 40px;
}
.subpage-content .related-links h2 {
  font-size: 15px; color: var(--green-dark); border: none;
  padding-bottom: 0; margin: 0 0 12px;
}
.subpage-content .related-links ul { gap: 6px; margin: 0; }
.subpage-content .related-links li { font-size: 13px; }
.subpage-content .related-links li::before { content: '→'; color: var(--green-mid); }
.subpage-content .related-links a { color: var(--green-main); }

/* CTA 섹션 (서브페이지 내) */
.subpage-content .cta-section {
  background: linear-gradient(135deg, var(--green-dark) 0%, #1b3a52 100%);
  color: #fff; padding: 32px 28px; border-radius: var(--radius-md);
  margin-top: 48px;
}
.subpage-content .cta-section h2 { color: #fff; border: none; padding: 0; margin: 0 0 10px; }
.subpage-content .cta-section p { color: rgba(255,255,255,.8); font-size: 14px; }
.subpage-content .cta-section ul { gap: 8px; }
.subpage-content .cta-section li { color: rgba(255,255,255,.85); font-size: 14px; }
.subpage-content .cta-section li::before { content: ''; }
.subpage-content .cta-section a { color: var(--green-light); text-decoration: none; font-weight: 700; }

/* 인라인 CTA 배너 (페이지 하단) */
.inline-cta {
  background: var(--green-dark); color: #fff;
  padding: 28px 32px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-top: 48px;
}
.inline-cta-text { display: flex; flex-direction: column; gap: 4px; }
.inline-cta-text strong { font-size: 17px; font-weight: 800; }
.inline-cta-text span { font-size: 13px; color: rgba(255,255,255,.7); }
.inline-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-btn-tel {
  padding: 12px 22px; background: #fff; color: var(--green-dark);
  border-radius: 50px; font-size: 14px; font-weight: 800;
  transition: transform .2s;
}
.inline-btn-tel:hover { transform: translateY(-2px); }
.inline-btn-kakao {
  padding: 12px 22px; background: var(--kakao); color: #3c1e1e;
  border-radius: 50px; font-size: 14px; font-weight: 800;
  transition: transform .2s;
}
.inline-btn-kakao:hover { transform: translateY(-2px); }

/* 헤더 scrolled 상태 */
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.3); }

/* 환자후기 카드 */
.review-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 24px 28px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.review-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.review-tag {
  padding: 3px 10px; background: var(--green-main); color: #fff;
  border-radius: 50px; font-size: 11px; font-weight: 700;
}
.review-name { font-size: 13px; color: var(--gray-500); }
.review-title { font-size: 16px; font-weight: 700; color: var(--green-dark); margin-bottom: 10px; }
.review-meta { font-size: 12px; color: var(--gray-500); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gray-200); }

/* ── 서브페이지 반응형 ── */
@media (max-width: 640px) {
  .subpage-hero { padding: 36px 20px 28px; }
  .subpage-main { padding: 36px 20px 56px; }
  .inline-cta { flex-direction: column; align-items: flex-start; }
  .subpage-content table { font-size: 12px; }
  .subpage-content th, .subpage-content td { padding: 8px 10px; }
  .review-card { padding: 18px 18px; }
}
