/* =========================================================
   해아림한의원 부산센텀점 — 사이트 디자인 (색상·섹션·컴포넌트)
   기본 레이아웃은 base.css, 이 파일은 디자인 세부를 담당합니다.
   디자인: 틸(teal) / 다크 네이비 / 화이트, 카드형 의료 사이트 스타일
   ========================================================= */

:root {
  /* Universal 테마 색상 변수 */
  --primary-accent: #0f9488;
  --navbar-border-top: #0b6f66;
  --button-border: #0d8378;
  --link-focus: #0b6f66;
  --form-shadow: rgba(15, 148, 136, 0.4);
  --pagination-bg: #d3eeeb;
  --link-hover-bg: #0d8378;
  --navbar-focus: #a7dcd6;

  /* 사이트 전용 */
  --teal: #0f9488;
  --teal-dark: #0b6f66;
  --teal-light: #e7f5f3;
  --teal-soft: #f3faf9;
  --navy: #10263d;
  --orange: #f2911b;
  --muted: #5d6b78;
  --line: #e3ebea;
  --ink: #1b2a38;

  /* 사이트 전체 글꼴: Paperlogy (한자는 Noto Serif KR 로 대체 표시) */
  --font: "Paperlogy", "Noto Serif KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ---------- Paperlogy 글꼴 (static/fonts/) ---------- */
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-4Regular.ttf") format("truetype"); font-weight: 100 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-5Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-6SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-7Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Paperlogy"; src: url("../fonts/Paperlogy-8ExtraBold.ttf") format("truetype"); font-weight: 800 900; font-style: normal; font-display: swap; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  word-break: keep-all;
}
/* 테마가 Roboto 를 직접 지정한 요소들도 모두 Paperlogy 로 */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.btn, .label, .breadcrumb, .pagination, .navbar-nav > li > a,
input, textarea, select, button, blockquote, .tooltip, .popover, .modal-title {
  font-family: var(--font);
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 70px; }
a { color: var(--teal); }
a:hover, a:focus { color: var(--teal-dark); }

/* 테마의 대문자·자간 설정은 한글에 맞지 않아 해제 */
.heading h2, .box-simple h3, .box-image-text .content h4, .btn {
  text-transform: none;
  letter-spacing: -0.01em;
}

/* 섹션 제목: 가운데 + 짧은 틸 밑줄 */
.heading { margin-bottom: 44px; }
.heading h2 {
  font-weight: 700; font-size: 32px; color: var(--navy);
  border-bottom: none !important; padding-bottom: 0; display: block;
}
.heading h2::after {
  content: ""; display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--teal); margin: 16px auto 0;
}
.bar { padding: 80px 0; }
.bar.background-gray { background: var(--teal-soft); }
.lead { color: var(--muted); }

/* ---------- 버튼 ---------- */
.btn { border-radius: 6px; font-weight: 600; }
.btn-teal, .btn-consult {
  background: var(--teal); border: 1px solid var(--teal); color: #fff !important;
}
.btn-teal:hover, .btn-teal:focus, .btn-consult:hover, .btn-consult:focus { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-teal-outline { background: #fff; border: 1px solid var(--teal); color: var(--teal) !important; }
.btn-teal-outline:hover, .btn-teal-outline:focus { background: var(--teal); color: #fff !important; }
.btn-template-main { border-radius: 6px; border-color: var(--teal); color: var(--teal); }
.btn-template-main:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-naver { background: #03c75a; border: 1px solid #03c75a; color: #fff !important; margin-top: 10px; }
.btn-naver:hover, .btn-naver:focus { background: #02a94c; border-color: #02a94c; }

/* ---------- 상단 바 (밝은 톤) ---------- */
#top { background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#top p { margin: 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 14px; }
#top a { color: var(--muted); }
#top a:hover { color: var(--teal); }
#top .top-phone { color: var(--navy); font-weight: 700; }
#top .top-phone i { color: var(--teal); margin-right: 4px; }
.top-sep { width: 1px; height: 12px; background: var(--line); }
#top .social { display: inline-flex; gap: 10px; margin-left: 4px; padding-left: 14px; border-left: 1px solid var(--line); }
#top .social a { color: var(--teal); font-size: 14px; }

/* ---------- 헤더 ---------- */
#navbar { border-bottom: 1px solid var(--line); box-shadow: none; }
.navbar-brand.home { display: flex; align-items: center; height: 74px; }
.navbar-brand.home img { height: 38px; width: auto; }
.navbar-nav > li > a {
  text-decoration: none !important; text-transform: none; font-size: 15px; font-weight: 600;
  color: var(--ink) !important; padding: 26px 11px !important; position: relative;
}
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { background: transparent; color: var(--teal) !important; }
.navbar-default .navbar-nav > li.active > a, .navbar-default .navbar-nav > li.active > a:hover { background: transparent; color: var(--teal) !important; }
.navbar-nav > li.active > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 18px; height: 2px; background: var(--teal);
}
.navbar-nav > li.nav-cta > a.btn-consult { margin: 18px 0 0 12px; padding: 9px 18px !important; line-height: 1.4; color: #fff !important; }
.navbar-nav > li.nav-cta > a.btn-consult::after { display: none; }
.navbar-buttons .btn-consult-mobile { margin: 19px 8px 0 0; padding: 6px 12px; font-size: 14px; vertical-align: top; }
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-brand.home img { height: 22px !important; }
  .sub-caret { display: none; }
  .navbar-nav > li > a { font-size: 13px; padding-left: 5px !important; padding-right: 5px !important; }
  .navbar-nav > li.active > a::after { left: 7px; right: 7px; }
  .navbar-nav > li.nav-cta > a.btn-consult { margin-left: 6px; padding: 9px 12px !important; }
}
@media (max-width: 991px) { .navbar-brand.home img { height: 30px; } .navbar-nav > li > a { padding: 10px 15px !important; } .navbar-nav > li.active > a::after { display: none; } }
@media (max-width: 400px) { .navbar-brand.home img { height: 24px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #f7fbfb 0%, #eef6f5 55%, #e6f2f1 100%);
  padding: 70px 0 0;
}
.hero-row { display: flex; align-items: flex-end; }
.hero-text { padding-bottom: 70px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal-light); color: var(--teal-dark); font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-lead { font-size: 20px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
.hero h1 { font-size: 50px; line-height: 1.25; font-weight: 800; color: var(--navy); margin: 0 0 22px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 17px; color: var(--muted); margin-bottom: 30px; }
.hero-buttons .btn { margin: 0 10px 10px 0; padding: 12px 26px; font-size: 16px; }

.hero-visual { position: relative; text-align: center; min-height: 480px; }
.hero-shape {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: linear-gradient(160deg, #14a596, var(--teal-dark));
  right: -60px; bottom: -40px;
}
.hero-dots {
  position: absolute; width: 110px; height: 90px; right: 20px; top: 40px;
  background-image: radial-gradient(var(--teal) 2px, transparent 2px); background-size: 16px 16px; opacity: .35;
}
.hero-doctor { position: relative; z-index: 1; max-height: 520px; width: auto; max-width: 100%; display: block; margin: 0 auto; }
.hero-card {
  position: absolute; z-index: 2; right: 0; bottom: 60px;
  background: #fff; border-radius: 12px; padding: 16px 20px; text-align: center;
  box-shadow: 0 12px 30px rgba(16, 38, 61, .12); display: flex; flex-direction: column; min-width: 160px;
}
.hero-card-icon { color: var(--teal); font-size: 24px; margin-bottom: 4px; }
.hero-card strong { font-size: 18px; color: var(--navy); margin-bottom: 2px; }
.hero-card span:not(.hero-card-icon) { font-size: 13px; color: var(--muted); }
@media (max-width: 991px) {
  .hero-row { display: block; }
  .hero-text { padding-bottom: 30px; text-align: center; }
  .hero-visual { min-height: 0; }
  .hero-shape { width: 320px; height: 320px; left: 50%; right: auto; margin-left: -160px; bottom: -40px; }
  .hero-doctor { max-height: 400px; }
  .hero-card { right: 8%; bottom: 30px; }
}
@media (max-width: 767px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; }
  .hero-sub { font-size: 15px; }
  .hero-sub br { display: none; }
  .hero-buttons .btn { display: block; margin: 0 0 10px; }
  .hero-doctor { max-height: 340px; }
  .hero-card { right: 0; bottom: 20px; padding: 10px 14px; min-width: 0; }
}

/* ---------- 진료 분야 카드 ---------- */
.service-row > div { margin-bottom: 24px; }
.service-card {
  height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 34px 24px 28px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 38, 61, .08); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 14px; background: var(--teal-light); color: var(--teal); font-size: 26px; margin-bottom: 18px;
}
.service-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.service-card p { font-size: 15px; color: var(--muted); min-height: 52px; }
.learn-more { font-weight: 700; font-size: 15px; color: var(--teal); }
.learn-more i { margin-left: 4px; transition: transform .2s; }
.learn-more:hover { text-decoration: none; }
.learn-more:hover i { transform: translateX(3px); }
@media (min-width: 768px) { .service-row { display: flex; flex-wrap: wrap; } }


/* ---------- 의료진 ---------- */
.philosophy { margin: 0 auto 50px; max-width: 760px; }
.hanja { font-family: var(--font); font-size: 30px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.hanja-reading { color: #8a96a2; margin-bottom: 14px; }
.philosophy-slogan { font-size: 19px; color: var(--teal); font-weight: 600; }
.doctor-photo { overflow: hidden; margin-bottom: 12px; background: linear-gradient(180deg, var(--teal-light) 0%, #fff 100%); padding-top: 20px; border-radius: 12px; }
.doctor-photo img { margin: 0 auto; }
.doctor-name { font-size: 17px; }
.greeting p { font-size: 17px; }
.greeting-closing { color: var(--navy); font-size: 18px; font-weight: 600; margin-top: 20px; border-left: 4px solid var(--teal); padding-left: 16px; }
.career-groups { margin-top: 10px; }
.career-groups .col-sm-6:nth-child(odd) { clear: left; }
.career-title { margin-top: 24px; font-weight: 700; font-size: 17px; color: var(--teal); }
.career { font-size: 15px; padding-left: 18px; }
.career li { margin-bottom: 4px; }


/* ---------- 질환별 안내 ---------- */
.condition-tabs { margin-bottom: 30px; }
.condition-tabs > li > a { border: 1px solid var(--line); border-radius: 999px !important; margin: 0 6px 8px; font-weight: 700; color: var(--ink); background: #fff; }
.condition-tabs > li.active > a, .condition-tabs > li.active > a:hover, .condition-tabs > li.active > a:focus { background: var(--teal); border-color: var(--teal); color: #fff; }
.tab-content { background: var(--teal-soft); border-radius: 12px; padding: 40px 20px; }
.condition-panel { max-width: 760px; margin: 0 auto; text-align: center; }
.condition-panel h3 { font-weight: 700; color: var(--navy); }
.label-disease { display: inline-block; background: #fff; color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; padding: 2px 14px; margin: 0 4px 8px; font-weight: 700; font-size: 14px; }
.condition-panel blockquote { border: none; font-size: 20px; font-weight: 600; color: var(--navy); padding: 18px 0 6px; margin: 0; }
.condition-body { font-size: 17px; margin-bottom: 28px; color: var(--muted); }

/* ---------- 치료사례 띠 ---------- */
#cases.bar.background-image-fixed-2 { background: linear-gradient(120deg, var(--teal-dark) 0%, var(--teal) 100%); padding: 80px 0; }
#cases .dark-mask { background: radial-gradient(rgba(255,255,255,.18) 2px, transparent 2px); background-size: 22px 22px; opacity: .5; }
#cases h2 { color: #fff; font-weight: 700; margin: 20px 0 16px; }
#cases .lead { color: #e2f4f2; }
#cases .btn-template-transparent-black { border-radius: 6px; }
#cases .btn-template-transparent-black:hover { background: #fff; color: var(--teal-dark); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-list .panel { border: 1px solid var(--line); border-radius: 12px !important; box-shadow: none; margin-bottom: 12px !important; overflow: hidden; }
.faq-list .panel-heading { background: #fff; padding: 0; border: none; }
.faq-list .panel-title a { display: block; padding: 18px 22px; text-transform: none; font-weight: 600; font-size: 17px; color: var(--navy); text-decoration: none; }
.faq-list .panel-body { font-size: 16px; padding: 0 22px 20px; border-top: none !important; color: var(--muted); }
.faq-list .q { color: var(--teal); font-weight: 800; margin-right: 6px; }
.faq-list .a { color: var(--orange); font-weight: 800; margin-right: 6px; }

/* ---------- 칼럼 / 영상 카드 ---------- */
.box-image-text { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.box-image-text .top { margin-bottom: 0; }
.box-image-text .top .bg { background: var(--teal); }
.box-image-text .content { padding: 14px 16px 6px; }
.card-image { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-light); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #8cc9c2; font-size: 36px; background: linear-gradient(135deg, #eef8f7, #dcefed); }
.box-image-text .content h4 { font-size: 16px; line-height: 1.5; color: var(--navy); margin-top: 0; letter-spacing: 0; }
.box-image-text .content h4 a { color: var(--navy); }
.box-image-text .content h4 a:hover { color: var(--teal); text-decoration: none; }
.box-image-text.blog .author-category { letter-spacing: 0; }
.video-box .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 34px; background: rgba(16, 38, 61, .3); transition: background .2s; }
.video-box .card-image:hover .play { background: rgba(15, 148, 136, .55); }
.more-link { margin-top: 20px; }

.consult-cta { margin: 40px 0 10px; }
.back-link { margin-top: 20px; }
#post-content { font-size: 17px; }
.author-box { display: flex; align-items: center; gap: 18px; background: var(--teal-light); border-radius: 12px; padding: 18px 20px; margin-top: 40px; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex-shrink: 0; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- 오시는 길 ---------- */
.map-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 24px; border-radius: 12px; border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-info li { display: flex; gap: 14px; margin-bottom: 18px; }
.location-info i { color: var(--teal); font-size: 20px; width: 24px; margin-top: 4px; text-align: center; flex-shrink: 0; }
.location-info li > div { flex: 1; }
.hours-table { width: 100%; margin-top: 4px; font-size: 15px; }
.hours-table th { font-weight: 500; color: var(--muted); padding: 3px 12px 3px 0; white-space: nowrap; }
.hours-table td { padding: 3px 0; }
.hours-table tr.closed td, .hours-table tr.closed th { color: #d0342c; font-weight: 600; }
.transit-line { margin: 4px 0 0; font-size: 15px; }
.badge-line { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.badge-line.line2 { background: #2fa84f; }
.badge-line.donghae { background: #2a5caa; }
#location .btn-consult { border-radius: 6px; }

/* ---------- 푸터 (다크 네이비) ---------- */
#footer { background: var(--navy); color: #a9b7c4; }
#footer h4 { color: #fff; text-transform: none; letter-spacing: 0; }
#footer a { color: #fff; }
#footer a:hover { color: #7fd6cc; }
#footer .btn-consult { margin-top: 10px; }
.footer-social li { margin-bottom: 6px; }
.footer-social i { width: 20px; color: #7fd6cc; }
#copyright { background: #0a1a2b; color: #7d8d9c; }
#copyright a { color: #a9b7c4; }

/* ---------- 모바일 ---------- */
@media (max-width: 767px) {
  .bar { padding: 56px 0; }
  .heading h2 { font-size: 26px; }
  .hanja { font-size: 22px; }
  .philosophy-slogan, .condition-panel blockquote { font-size: 17px; }
  #copyright .pull-left, #copyright .pull-right { float: none !important; }
  #top .social { border-left: none; padding-left: 0; }
}
@media (max-width: 767px) {
  .hero-card strong { font-size: 15px; }
  .hero-card-icon { font-size: 18px; }
}

/* =========================================================
   드롭다운 메뉴
   ========================================================= */
.navbar-nav > li.has-sub { position: relative; }
.sub-caret { font-size: 12px; margin-left: 2px; color: #9aa7b2; }
.sub-menu { list-style: none; margin: 0; padding: 0; }
.sub-menu a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; }
.sub-menu a:hover { color: var(--teal); text-decoration: none; }
@media (min-width: 992px) {
  .sub-menu {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
    min-width: 190px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal);
    border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(16, 38, 61, .1);
    padding: 8px 0; opacity: 0; visibility: hidden; transition: opacity .15s, transform .15s; z-index: 1000;
  }
  .navbar-nav > li.has-sub:hover > .sub-menu,
  .navbar-nav > li.has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .sub-menu a { padding: 9px 20px; white-space: nowrap; }
  .sub-menu a:hover { background: var(--teal-soft); }
}
@media (max-width: 991px) {
  .sub-caret { display: none; }
  .sub-menu { padding: 0 0 8px 28px; }
  .sub-menu a { padding: 6px 0; color: var(--muted); font-size: 14px; }
  #navigation .navbar-nav > li { border-bottom: 1px solid var(--line); }
}
/* 메뉴 7개가 한 줄에 들어가도록 간격 조정 */
@media (min-width: 1200px) {
  .navbar-brand.home img { height: 32px; }
  .navbar-nav > li > a { font-size: 15px; padding-left: 9px !important; padding-right: 9px !important; }
  .navbar-nav > li.active > a::after { left: 9px; right: 9px; }
  .sub-caret { display: none; }
}

/* =========================================================
   하위 페이지 제목 띠
   ========================================================= */
.page-header {
  margin: 0; border: none; padding: 56px 0 40px; text-align: center;
  background: linear-gradient(110deg, #f7fbfb 0%, #eaf5f4 100%);
}
.page-crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.page-crumb a { color: var(--muted); }
.page-crumb i { font-size: 11px; margin: 0 6px; }
.page-header h1 { font-size: 38px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.page-sub { color: var(--muted); font-size: 17px; margin: 0; }
.page-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.page-tabs a {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.page-tabs a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
#info, #why, #philosophy, #doctor, #space { scroll-margin-top: 80px; }
@media (max-width: 767px) { .page-header h1 { font-size: 28px; } .page-header { padding: 40px 0 30px; } }

/* 진료 철학 */
.philosophy-body { font-size: 17px; color: var(--ink); margin: 28px auto 0; max-width: 720px; }
.philosophy-closing { font-size: 18px; font-weight: 700; color: var(--teal); margin-top: 20px; }

/* 공간 안내 */
.space-card { margin-bottom: 24px; }
.space-card .card-image { border-radius: 12px; aspect-ratio: 4 / 3; }
.space-card p { text-align: center; margin-top: 10px; font-weight: 600; color: var(--navy); }

/* 질환 페이지 */
.disease-intro { padding: 56px 0 20px; }
.disease-intro blockquote { border: none; font-size: 24px; font-weight: 700; color: var(--navy); margin: 0 0 10px; padding: 0; }
.disease-block .heading .service-icon { margin-bottom: 10px; }
.disease-body { max-width: 760px; margin: 0 auto; font-size: 17px; }
.disease-videos { margin-top: 30px; }
/* 테마의 메뉴 위쪽 굵은 선 제거 (밑줄로 대신 표시) */
.navbar ul.nav > li > a, .navbar ul.nav > li > a:hover,
.navbar ul.nav > li.active > a, .navbar ul.nav > li.open > a { border-top: none !important; }
@media (max-width: 991px) { #navigation.navbar-collapse { max-height: calc(100vh - 130px); overflow-y: auto; } }

/* =========================================================
   메뉴: 큰 글씨 + 세로 구분선
   ========================================================= */
@media (min-width: 992px) {
  .navbar-nav > li:not(.nav-cta) + li:not(.nav-cta)::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 16px;
    margin-top: -8px; background: #c9d4d8;
  }
  .navbar-nav > li > a { font-weight: 700; }
}
@media (min-width: 1200px) {
  .navbar-brand.home img { height: 30px; }
  .navbar-nav > li > a { font-size: 16px; padding-left: 11px !important; padding-right: 11px !important; }
  .navbar-nav > li.active > a::after { left: 11px; right: 11px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav > li > a { font-size: 14px; padding-left: 7px !important; padding-right: 7px !important; }
}

/* =========================================================
   [지금 상담받기] — 주황→코랄 그라데이션으로 강조
   ========================================================= */
.btn-consult, .nav-cta .btn-consult, .btn-consult-mobile {
  background: linear-gradient(135deg, #ffa23a 0%, #ff6a4d 100%) !important;
  border: none !important; color: #fff !important; font-weight: 800;
  box-shadow: 0 6px 16px rgba(255, 106, 77, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-consult:hover, .btn-consult:focus {
  filter: brightness(1.05); transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 106, 77, .45); color: #fff !important;
}
.navbar-nav > li.nav-cta > a.btn-consult { border-radius: 999px; padding: 10px 18px !important; margin-left: 10px; }
.btn-consult-mobile { border-radius: 999px; }

/* =========================================================
   StoryBrand 홈 — 짧고 큰 메시지
   ========================================================= */
.hero h1 { font-size: 60px; margin-bottom: 18px; }
.hero-sub { font-size: 20px; color: var(--ink); line-height: 1.6; margin-bottom: 20px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.hero-tags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 600; color: var(--teal-dark); }
.btn-cta-big { padding: 15px 30px !important; font-size: 18px !important; border-radius: 999px !important; }
.btn-consult i { margin-right: 6px; }
.hero-buttons .btn-teal-outline { border-radius: 999px; padding: 15px 26px; font-size: 17px; }
@media (max-width: 991px) { .hero-tags { justify-content: center; } }
@media (max-width: 767px) { .hero h1 { font-size: 38px; } .hero-sub { font-size: 17px; } }

/* 문제 */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problem-card { background: var(--teal-soft); border-radius: 14px; padding: 28px 16px; text-align: center; }
.problem-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--orange); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.problem-card p { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.5; }
@media (max-width: 767px) { .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .problem-card p { font-size: 15px; } }

/* 가이드 */
.guide { display: flex; align-items: center; gap: 50px; max-width: 980px; margin: 0 auto; }
.guide-photo { flex: 0 0 300px; }
.guide-photo img { width: 100%; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.guide-text h2 { font-size: 34px; font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.guide-body { font-size: 19px; line-height: 1.7; color: var(--ink); }
.guide-body strong { color: var(--teal); }
.guide-sign { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.guide-badges li { font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.guide-badges i { color: var(--teal); margin-right: 6px; }
@media (max-width: 767px) {
  .guide { flex-direction: column; gap: 24px; text-align: center; }
  .guide-photo { flex: none; width: 220px; }
  .guide-text h2 { font-size: 26px; }
  .guide-body { font-size: 16px; }
}

/* 진료 분야 (카드 전체 클릭) */
.clinic-card { display: block; color: inherit; }
.clinic-card:hover, .clinic-card:focus { text-decoration: none; color: inherit; border-color: var(--teal); }
.clinic-card h3 { font-size: 22px; }
.clinic-card p { min-height: 0; font-size: 16px; }

/* 계획 3단계 */
.plan-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto 36px; }
.plan-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 20px 24px; text-align: center; }
.plan-no { position: absolute; top: -16px; left: 50%; margin-left: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; line-height: 32px; }
.plan-icon { display: block; color: var(--teal); font-size: 30px; margin-bottom: 10px; }
.plan-steps h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.plan-steps p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 767px) { .plan-steps { grid-template-columns: 1fr; gap: 26px; } }

/* 성공 이미지 */
.success-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 20px; background: linear-gradient(140deg, #e8f6f4, #fff3e4); }
.success-card img { width: 100%; height: 100%; object-fit: cover; }
.success-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; color: var(--teal); opacity: .35; }
.success-card p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 16px; font-size: 19px; font-weight: 800; color: #fff; background: linear-gradient(transparent, rgba(16, 38, 61, .7)); }

/* 행동 촉구 띠 */
.cta-band { background: linear-gradient(120deg, var(--teal-dark), var(--teal)); padding: 70px 0; color: #fff; }
.cta-band h2 { color: #fff; font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.cta-band p { color: #e2f4f2; font-size: 18px; margin-bottom: 26px; }
@media (max-width: 767px) { .cta-band h2 { font-size: 26px; } }

/* =========================================================
   플로팅 상담 버튼 (오른쪽) + 모바일 하단 바
   ========================================================= */
.float-cta {
  position: fixed; right: 22px; bottom: 28px; z-index: 1040;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.float-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-main {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, #ffa23a 0%, #ff6a4d 100%); color: #fff !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; line-height: 1.25; text-align: center;
  box-shadow: 0 10px 26px rgba(255, 106, 77, .45); animation: float-pulse 2.4s infinite;
}
.float-main i { font-size: 24px; margin-bottom: 4px; }
.float-main:hover { text-decoration: none; filter: brightness(1.05); }
@keyframes float-pulse {
  0% { box-shadow: 0 10px 26px rgba(255, 106, 77, .45), 0 0 0 0 rgba(255, 106, 77, .45); }
  70% { box-shadow: 0 10px 26px rgba(255, 106, 77, .45), 0 0 0 16px rgba(255, 106, 77, 0); }
  100% { box-shadow: 0 10px 26px rgba(255, 106, 77, .45), 0 0 0 0 rgba(255, 106, 77, 0); }
}
.float-sub {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--teal) !important;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; box-shadow: 0 6px 18px rgba(16, 38, 61, .15);
}
.float-sub i { font-size: 18px; margin-bottom: 1px; }
.float-sub:hover { text-decoration: none; background: var(--teal); color: #fff !important; }
.float-naver { color: #03a94e !important; }
.float-top { width: 44px; height: 44px; color: var(--muted) !important; }

.mobile-cta { display: none; }
@media (max-width: 767px) {
  .float-cta { display: none; }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    background: #fff; box-shadow: 0 -4px 16px rgba(16, 38, 61, .12); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    transform: translateY(110%); transition: transform .25s;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; border-radius: 12px; font-size: 16px; font-weight: 800; text-decoration: none; }
  .mobile-call { flex: 0 0 34%; border: 1px solid var(--teal); color: var(--teal) !important; }
  .mobile-consult { flex: 1; background: linear-gradient(135deg, #ffa23a, #ff6a4d); color: #fff !important; }
  #copyright { padding-bottom: 90px; }
}

/* =========================================================
   와이어프레임 반영: 위험 6칸 / 가치 4칸 / 계획 4단계 / 섹션마다 버튼
   ========================================================= */
.section-cta { margin: 36px 0 0; }
.problem-grid { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.problem-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 20px 22px; }
.problem-card .problem-icon { margin: 0; flex-shrink: 0; width: 46px; height: 46px; font-size: 19px; }
.problem-card p { font-size: 17px; }
@media (max-width: 767px) { .problem-grid { grid-template-columns: 1fr 1fr; } .problem-card { flex-direction: column; text-align: center; padding: 18px 10px; gap: 8px; } }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 18px; text-align: center; }
.value-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.value-card p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 991px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }

.plan-steps { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
@media (max-width: 991px) { .plan-steps { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; } }
@media (max-width: 480px) { .plan-steps { grid-template-columns: 1fr; } }

.guide-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
@media (max-width: 767px) { .guide-actions { justify-content: center; } }

.page-tabs a.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* =========================================================
   자가 체크리스트
   ========================================================= */
.disease-intro .service-icon { margin-bottom: 14px; }
.checklist-guide { color: var(--muted); margin: -20px 0 26px; }
.checklist { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 26px 26px; }
.checklist-head, .checklist-row { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 16px; }
.checklist-head { padding: 14px 0 8px; border-bottom: 2px solid var(--teal); font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.checklist-head span:not(:first-child) { text-align: center; }
.checklist-head { grid-template-columns: 1fr repeat(4, 75px); }
.checklist-row { border: none; border-bottom: 1px solid var(--line); margin: 0; padding: 14px 0; min-width: 0; }
.checklist-row legend { border: none; margin: 0; padding: 0; font-size: 16px; font-weight: 600; color: var(--navy); float: left; width: 100%; line-height: 1.5; }
.checklist-row.is-done legend { color: var(--ink); }
.q-no { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); font-size: 12px; font-weight: 800; text-align: center; line-height: 24px; margin-right: 10px; }
.checklist-row.is-done .q-no { background: var(--teal); color: #fff; }
.checklist-opts { display: grid; grid-template-columns: repeat(4, 75px); }
.checklist-opts label { margin: 0; text-align: center; cursor: pointer; font-weight: 500; }
.checklist-opts input { position: absolute; opacity: 0; pointer-events: none; }
.checklist-opts span {
  display: inline-block; width: 64px; padding: 7px 0; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); background: #fff; transition: all .12s;
}
.checklist-opts label:hover span { border-color: var(--teal); color: var(--teal); }
.checklist-opts input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.checklist-opts input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.checklist-progress { text-align: right; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.checklist-result { margin-top: 24px; border-radius: 14px; padding: 26px; text-align: center; background: var(--teal-soft); border: 2px solid var(--teal); }
.result-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 4px; letter-spacing: .1em; }
.result-level { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.result-bar { height: 12px; background: #fff; border-radius: 999px; overflow: hidden; max-width: 420px; margin: 0 auto 14px; border: 1px solid var(--line); }
.result-bar span { display: block; height: 100%; border-radius: 999px; background: var(--teal); transition: width .4s; }
.result-desc { font-size: 17px; margin-bottom: 20px; }
.checklist-result.lv2 .result-bar span { background: #f2c94c; }
.checklist-result.lv3 { border-color: var(--orange); background: #fff7ee; }
.checklist-result.lv3 .result-bar span { background: var(--orange); }
.checklist-result.lv4 { border-color: #e5533d; background: #fff1ee; }
.checklist-result.lv4 .result-bar span { background: #e5533d; }
.checklist-alert { max-width: 860px; margin: 18px auto 0; background: #fff4f2; border: 1px solid #f3c2b9; color: #b23a26; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.checklist-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 767px) {
  .checklist { padding: 6px 14px 18px; }
  .checklist-head { display: none; }
  .checklist-row { grid-template-columns: 1fr; gap: 10px; }
  .checklist-opts { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .checklist-opts span { width: 100%; }
  .result-level { font-size: 20px; }
}
.section-cta .btn-consult, .guide-actions .btn-consult { border-radius: 999px; padding: 12px 28px; font-size: 16px; }
@media (min-width: 768px) {
  .checklist-row { grid-template-columns: 1fr 340px; }
  .checklist-head { grid-template-columns: 1fr repeat(4, 85px); }
  .checklist-opts { grid-template-columns: repeat(4, 85px); }
  .checklist-opts span { width: 76px; }
}

/* =========================================================
   학술 활동: 강의 사진 + 논문 표지
   ========================================================= */
.academic-sub { color: var(--teal-dark); font-weight: 700; font-size: 17px; margin: -22px 0 34px; }
.academic-sub i { color: var(--orange); margin-right: 4px; }
.academic-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: 520px; }
.academic-photo { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--navy); }
.academic-photo.is-main { grid-row: 1 / 3; }
.academic-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.academic-photo:hover img { transform: scale(1.03); }
.academic-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 18px 14px;
  background: linear-gradient(transparent, rgba(10, 26, 43, .8)); color: #fff; font-weight: 700; font-size: 15px;
}
.academic-photo.is-main figcaption { font-size: 19px; padding: 50px 24px 20px; }
.photo-tag { display: inline-block; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin-bottom: 6px; display: table; }
.academic-photo:nth-child(2) img { object-position: center 40%; }
.academic-photo:nth-child(3) img { object-position: center 45%; }

.paper-shelf { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px; }
.paper-shelf-sm { grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; }
.paper-card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none !important; }
.paper-cover {
  display: block; aspect-ratio: 7 / 9.9; border-radius: 6px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 10px 22px rgba(16, 38, 61, .12); transition: transform .2s, box-shadow .2s;
}
.paper-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
a.paper-card:hover .paper-cover, div.paper-card:hover .paper-cover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 30px rgba(16, 38, 61, .18); }
.paper-year { margin-top: 12px; font-size: 13px; font-weight: 800; color: var(--teal); }
.paper-title { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.45; }
a.paper-card .paper-title::after { content: " \f35d"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; color: var(--muted); }

@media (max-width: 991px) {
  .academic-photos { height: 420px; }
  .paper-shelf { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .academic-photos { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 160px; height: auto; }
  .academic-photo.is-main { grid-row: auto; grid-column: 1 / 3; }
  .academic-photo figcaption { font-size: 13px; padding: 28px 10px 10px; }
  .academic-photo.is-main figcaption { font-size: 15px; padding: 32px 14px 12px; }
  .paper-shelf { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .paper-shelf-sm { grid-template-columns: repeat(2, 1fr); }
}
.academic-photo.is-main img { object-position: 68% 70%; }

/* =========================================================
   학술 활동 v2: 큰 강조 문구 + 학회지 + 가로 스크롤 논문
   ========================================================= */
.academic-sub { display: none; }
.academic-highlight {
  text-align: center; font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.4;
  margin: -14px auto 38px; letter-spacing: -0.02em;
}
.academic-highlight em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 62%, #ffe2c2 62%); padding: 0 2px; }
.academic-highlight i { color: var(--orange); margin-right: 8px; }

.paper-area { display: flex; gap: 28px; align-items: flex-start; margin-top: 40px; }
.journal-feature {
  flex: 0 0 230px; background: #fff; border: 2px solid var(--teal); border-radius: 16px; padding: 18px; text-align: center;
  box-shadow: 0 12px 26px rgba(15, 148, 136, .12);
}
.journal-label { display: inline-block; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }
.journal-feature .paper-cover { box-shadow: 0 8px 18px rgba(16, 38, 61, .15); }
.journal-title { display: block; margin-top: 14px; font-size: 17px; color: var(--navy); }
.journal-hanja { display: block; font-size: 13px; color: var(--muted); }

.paper-scroller { flex: 1; min-width: 0; }
.paper-scroller-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.paper-count { font-size: 16px; color: var(--muted); font-weight: 600; }
.paper-count strong { color: var(--teal); font-size: 20px; }
.paper-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--teal);
  margin-left: 6px; transition: all .15s;
}
.paper-nav button:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.paper-track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 18px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
}
.paper-track::-webkit-scrollbar { height: 6px; }
.paper-track::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
.paper-track .paper-card { flex: 0 0 170px; scroll-snap-align: start; }
.paper-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 0; }

@media (max-width: 767px) {
  .academic-highlight { font-size: 21px; margin-bottom: 26px; }
  .paper-area { flex-direction: column; align-items: stretch; }
  .journal-feature { flex: none; display: grid; grid-template-columns: 110px 1fr; gap: 4px 16px; text-align: left; align-items: center; padding: 14px; }
  .journal-feature .paper-cover { grid-row: 1 / 4; grid-column: 1; }
  .journal-label { justify-self: start; margin: 0; }
  .journal-title { margin: 0; }
  .paper-nav { display: none; }
  .paper-track .paper-card { flex-basis: 140px; }
}
.journal-feature { display: block; color: inherit; text-decoration: none !important; transition: transform .2s; } .journal-feature:hover { transform: translateY(-3px); } .journal-title i { font-size: 11px; color: var(--muted); }

/* =========================================================
   원장 이름 카드 / 질환 메뉴 색 / 공간 갤러리 / 네트워크 배너
   ========================================================= */
.hero-name { padding: 18px 26px; min-width: 150px; }
.hero-role { font-size: 13px; font-weight: 700; color: var(--teal) !important; letter-spacing: .08em; }
.hero-name strong { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: .1em; margin: 2px 0; }
.hero-sub-role { font-size: 13px; color: var(--muted); }

/* 질환 메뉴(틱·ADHD / 이명·어지럼증 / 불안·불면증)는 틸 색으로 구분 */
.navbar-nav > li.menu-disease > a { color: var(--teal-dark) !important; }
.navbar-nav > li.menu-disease > a:hover { color: var(--teal) !important; }
@media (max-width: 991px) { #navigation .navbar-nav > li.menu-disease > a { color: var(--teal-dark) !important; } }

/* 공간 갤러리 */
.space-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.space-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--teal-light); }
.space-item.is-wide { grid-column: span 2; grid-row: span 2; }
.space-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.space-item:hover img { transform: scale(1.04); }
.space-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(transparent, rgba(10, 26, 43, .7));
}
.space-grid-home { grid-auto-rows: 260px; }
@media (max-width: 991px) { .space-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 767px) { .space-grid, .space-grid-home { grid-auto-rows: 150px; gap: 10px; } .space-item.is-wide { grid-row: span 1; } }

/* 해아림 전국 네트워크 배너 (푸터 위) */
.network-band { background: var(--teal-soft); padding: 40px 0; }
.network-card {
  max-width: 960px; margin: 0 auto; border-radius: 22px; padding: 40px 24px 36px; text-align: center;
  background: linear-gradient(120deg, #1d6b70 0%, #134b55 55%, #0f3a47 100%); box-shadow: 0 14px 34px rgba(16, 38, 61, .18);
}
.network-logo { height: 70px; width: auto; margin: 0 auto 24px; display: block; }
.network-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--navy) !important;
  font-size: 18px; font-weight: 800; padding: 16px 34px; border-radius: 10px; text-decoration: none !important; transition: transform .15s, box-shadow .15s;
}
.network-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, .2); }
@media (max-width: 767px) { .network-logo { height: 46px; } .network-btn { font-size: 15px; padding: 13px 18px; } .network-card { padding: 28px 16px; } }
.space-grid:not(.space-grid-home) .space-item:last-child { grid-column: span 2; }
.space-grid:not(.space-grid-home) .space-item:last-child img { object-position: center 72%; }
@media (max-width: 991px) { .space-grid:not(.space-grid-home) .space-item:last-child { grid-column: span 2; } }

/* =========================================================
   유튜브 채널 버튼 / FAQ 페이지
   ========================================================= */
.yt-channel-btn {
  display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 2px solid #ff0000; border-radius: 999px;
  padding: 12px 30px 12px 18px; color: var(--navy) !important; text-decoration: none !important; box-shadow: 0 8px 20px rgba(255, 0, 0, .12);
  transition: transform .15s, box-shadow .15s;
}
.yt-channel-btn i { font-size: 44px; color: #ff0000; line-height: 1; }
.yt-channel-btn span { display: flex; flex-direction: column; text-align: left; font-size: 18px; font-weight: 800; line-height: 1.3; }
.yt-channel-btn small { font-size: 13px; font-weight: 700; color: #ff0000; }
.yt-channel-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 0, 0, .2); }
@media (max-width: 767px) { .yt-channel-btn i { font-size: 34px; } .yt-channel-btn span { font-size: 15px; } }

.faq-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.faq-jump a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px; font-weight: 700; color: var(--ink); background: #fff; }
.faq-jump a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.faq-group { max-width: 860px; margin: 0 auto 46px; scroll-margin-top: 90px; }
.faq-group-title { font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--teal); }
.faq-sub-title { font-size: 17px; font-weight: 700; margin: 22px 0 10px; }
.faq-sub-title a { color: var(--teal-dark); }
.disease-faq .faq-list { margin-bottom: 10px; }

/* 푸터: 왼쪽 로고 심볼 + 정보 + 채널 */
.footer-grid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 30px; align-items: start; }
.footer-logo { width: 84px; height: auto; opacity: .95; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } .footer-logo { width: 64px; } }
#copyright .text-center { float: none !important; }
.network-sub { color: #cfe7e4; font-size: 15px; margin: -12px 0 22px; }

/* =========================================================
   100문 100답 반영: 원칙 · 원장 이야기 · 진료 안내 · 질환 페이지
   ========================================================= */
.clinics-sub { font-size: 19px; font-weight: 700; color: var(--teal-dark); margin: -22px 0 32px; }

.principles-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--navy); margin: 50px 0 20px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.principle { position: relative; background: var(--teal-soft); border-radius: 14px; padding: 30px 22px 22px; }
.principle-no { position: absolute; top: -14px; left: 22px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; text-align: center; line-height: 30px; }
.principle h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 0 0 8px; line-height: 1.45; }
.principle p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 767px) { .principles { grid-template-columns: 1fr; gap: 24px; } }

.identity { margin: 18px 0 6px; }
.identity li { background: #fff; border-left: 3px solid var(--teal); padding: 9px 14px; margin-bottom: 8px; font-weight: 600; color: var(--navy); font-size: 15px; border-radius: 0 8px 8px 0; }
.identity i { color: var(--teal); font-size: 12px; margin-right: 6px; }
.doctor-story { max-width: 860px; margin: 40px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px; }
.doctor-story h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.doctor-story p { font-size: 16px; line-height: 1.85; color: var(--ink); }
@media (max-width: 767px) { .doctor-story { padding: 22px 18px; } }

.visit-notice { max-width: 900px; margin: 0 auto 50px; text-align: center; background: linear-gradient(120deg, var(--teal-dark), var(--teal)); color: #fff; border-radius: 20px; padding: 36px 24px; }
.visit-badge { display: inline-block; background: #fff; color: var(--teal-dark); font-weight: 800; border-radius: 999px; padding: 5px 16px; font-size: 14px; }
.visit-notice-title { font-size: 30px; font-weight: 800; margin: 14px 0 8px; }
.visit-notice-title strong { color: #ffe08a; font-size: 38px; }
.visit-notice-body { font-size: 17px; color: #e2f4f2; max-width: 620px; margin: 0 auto 22px; }
.visit-notice-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.visit-notice-actions .btn { border-radius: 999px; margin: 0; }
.visit-notice-actions .btn-teal-outline { background: transparent; color: #fff !important; border-color: #fff; }
.visit-sub { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 22px; text-align: center; }
.visit-time { display: inline-block; font-size: 15px; font-weight: 700; color: var(--orange); margin-left: 8px; }
.visit-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 30px auto 50px; }
.visit-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 22px 22px; text-align: center; }
.visit-steps h4 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.visit-steps p { font-size: 15px; color: var(--muted); margin: 0; }
.visit-more .visit-sub { text-align: left; font-size: 19px; margin-bottom: 14px; }
.visit-tests li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.visit-tests strong { color: var(--navy); }
.visit-tests span { color: var(--muted); font-size: 14px; }
.visit-after li { padding: 8px 0; font-size: 15px; }
.visit-after i { color: var(--teal); margin-right: 6px; }
@media (max-width: 767px) { .visit-steps { grid-template-columns: 1fr; gap: 28px; } .visit-notice-title { font-size: 22px; } .visit-notice-title strong { font-size: 28px; } .visit-more .col-md-6 + .col-md-6 { margin-top: 26px; } }

.disease-body { text-align: left; font-size: 17px; line-height: 1.85; margin-top: 20px; }
.disease-body strong { color: var(--teal-dark); }
.disease-patients { padding-top: 10px; }
.patient-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.patient-list li { background: var(--teal-soft); border-radius: 10px; padding: 14px 18px; font-size: 16px; }
.patient-list i { color: var(--teal); margin-right: 8px; }
.voices { max-width: 720px; margin: 26px auto 0; display: grid; gap: 10px; text-align: left; }
.voice { margin: 0; background: var(--teal-soft); border-radius: 10px; padding: 12px 18px; color: var(--ink); font-size: 16px; }
.voice i { color: var(--orange); font-size: 12px; margin-right: 6px; }
.footer-grid::before, .footer-grid::after { display: none !important; content: none; }

/* =========================================================
   해아림의 치료 / 공동 집필 도서 / 감성 사진
   ========================================================= */
.care-sub { font-size: 18px; font-weight: 700; color: var(--teal-dark); margin: -22px auto 34px; max-width: 760px; }
.care-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.care-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.care-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--teal-light); }
.care-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.care-card:hover .care-img img { transform: scale(1.04); }
.care-text { padding: 16px 16px 18px; }
.care-text h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.care-short { font-size: 14px; color: var(--teal-dark); font-weight: 600; margin: 0; }
.care-body { font-size: 15px; color: var(--muted); margin: 10px 0 0; line-height: 1.75; }
.care-note { color: var(--muted); font-size: 14px; margin-top: 22px; }
.care-grid-detail { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.care-grid-detail .care-card { flex-direction: row; }
.care-grid-detail .care-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 220px; }
.care-grid-detail .care-text { padding: 20px 22px; }
.care-grid-detail .care-text h3 { font-size: 19px; }
@media (max-width: 991px) { .care-grid { grid-template-columns: repeat(3, 1fr); } .care-grid-detail { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .care-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .care-grid-detail .care-card { flex-direction: column; }
  .care-grid-detail .care-img { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
}
#care { scroll-margin-top: 80px; }

.books-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--navy); margin: 50px 0 20px; }
.books-title i { color: var(--orange); margin-right: 6px; }
.book-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.book-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px 16px 16px; max-width: 420px; flex: 1 1 340px; }
.book-cover { flex: 0 0 96px; border-radius: 4px; overflow: hidden; box-shadow: 4px 6px 14px rgba(16, 38, 61, .18); }
.book-cover img { display: block; width: 100%; height: auto; }
.book-info { display: flex; flex-direction: column; gap: 3px; }
.book-label { font-size: 12px; font-weight: 800; color: var(--orange); }
.book-info strong { font-size: 19px; color: var(--navy); }
.book-info span { font-size: 14px; color: var(--muted); }
.book-info small { font-size: 12px; color: #9aa7b2; }

.group-photo { max-width: 720px; margin: 26px auto 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; }
.group-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta-photo { background-size: cover; background-position: center 40%; padding: 90px 0; }
.doctor-story p { line-height: 2; }

/* =========================================================
   칼럼 게시판
   ========================================================= */
.column-latest { padding-bottom: 50px; }
.column-board { max-width: 1000px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px 20px; }
.board-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.board-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.board-cat { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14px; color: var(--ink); }
.board-cat span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.board-cat:hover { border-color: var(--teal); color: var(--teal); }
.board-cat.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.board-cat.is-active span { color: #d9f2ef; }
.board-search { position: relative; margin: 0; font-weight: 400; }
.board-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.board-search input { width: 240px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 38px; font-size: 14px; outline: none; }
.board-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 148, 136, .15); }
.board-table { width: 100%; border-collapse: collapse; }
.board-table th { border-top: 2px solid var(--navy); border-bottom: 1px solid var(--line); padding: 12px 10px; font-size: 14px; color: var(--muted); font-weight: 700; text-align: left; }
.board-table td { border-bottom: 1px solid var(--line); padding: 14px 10px; font-size: 15px; vertical-align: middle; }
.board-table tr:hover td { background: var(--teal-soft); }
.board-table .col-no, .board-table .col-date { text-align: center; color: var(--muted); white-space: nowrap; width: 90px; }
.board-table .col-cat { width: 150px; }
.board-table .col-title a { color: var(--ink); font-weight: 600; }
.board-table .col-title a:hover { color: var(--teal); text-decoration: none; }
.cat-badge { display: inline-block; background: var(--teal-light); color: var(--teal-dark); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.board-empty { text-align: center; color: var(--muted); padding: 30px 0 10px; }
.board-pages { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.board-pages button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--ink); }
.board-pages button.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (max-width: 767px) {
  .column-board { padding: 16px 12px; }
  .board-search, .board-search input { width: 100%; }
  .board-table thead { display: none; }
  .board-table tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .board-table tr[hidden] { display: none; }
  .board-table td { border: none; padding: 0; }
  .board-table .col-no { display: none; }
  .board-table .col-cat { width: auto; }
  .board-table .col-date { width: auto; text-align: right; font-size: 13px; }
  .board-table .col-title { grid-column: 1 / 3; order: 3; }
}

/* =========================================================
   체크리스트 점수 게이지 (처음부터 표시, 스크롤 시 위에 고정)
   ========================================================= */
.score-gauge {
  position: sticky; top: 84px; z-index: 5; background: #fff; margin: 0 -26px 6px; padding: 14px 26px 10px;
  border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 6px 14px rgba(16, 38, 61, .05);
}
.gauge-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.gauge-score { font-size: 14px; color: var(--muted); font-weight: 600; }
.gauge-now { font-size: 26px; font-weight: 800; color: var(--navy); }
.gauge-level { font-size: 16px; font-weight: 800; color: var(--teal-dark); }
.gauge-left { font-size: 13px; color: var(--muted); }
.gauge-left strong { color: var(--orange); }
.gauge-left.is-done { visibility: hidden; }
.gauge-bar { position: relative; height: 14px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, #dff2ee 0 20%, #fff4d6 20% 45%, #ffe6cf 45% 70%, #fde0db 70% 100%); }
.gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--teal); transition: width .35s, background .35s; }
.gauge-tick { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; }
.gauge-zones { display: flex; font-size: 11px; color: var(--muted); margin-top: 4px; }
.gauge-zones span { text-align: center; }
.score-gauge.lv2 .gauge-fill { background: #e9b93a; }
.score-gauge.lv2 .gauge-level { color: #b08410; }
.score-gauge.lv3 .gauge-fill { background: var(--orange); }
.score-gauge.lv3 .gauge-level { color: #c86f0c; }
.score-gauge.lv4 .gauge-fill { background: #e5533d; }
.score-gauge.lv4 .gauge-level { color: #c93d28; }
.score-gauge.lv0 .gauge-level { color: var(--muted); }
.checklist-result.is-pending { border-color: var(--line); background: var(--teal-soft); }
.checklist-result.is-pending .result-level { font-size: 18px; color: var(--muted); }
@media (max-width: 767px) {
  .score-gauge { top: 74px; margin: 0 -14px 6px; padding: 10px 14px 8px; }
  .gauge-now { font-size: 22px; }
  .gauge-level { font-size: 14px; }
}

/* 체크리스트: 질환마다 답변 칸 수(--n)가 다름 */
@media (min-width: 768px) {
  .checklist-head { grid-template-columns: 1fr repeat(var(--n, 4), 85px); }
  .checklist-row { grid-template-columns: 1fr calc(var(--n, 4) * 85px); }
  .checklist-opts { grid-template-columns: repeat(var(--n, 4), 85px); }
}
@media (max-width: 767px) { .checklist-opts { grid-template-columns: repeat(var(--n, 4), 1fr); } }
.gauge-bar { background: linear-gradient(90deg, #dff2ee 0 var(--p1, 20%), #fff4d6 var(--p1, 20%) var(--p2, 45%), #ffe6cf var(--p2, 45%) var(--p3, 70%), #fde0db var(--p3, 70%) 100%); }
.checklist-guide strong { color: var(--teal-dark); }
.checklist-basis { max-width: 860px; margin: 16px auto 0; font-size: 13px; color: var(--muted); text-align: center; }
.checklist-basis i { color: var(--teal); margin-right: 4px; }

/* 진료철학: 상한론 수묵 배경 (가운데 여백에 글) */
.philosophy-bg { background-color: #f4ecdd; background-size: cover; background-position: center; padding: 90px 0 80px; }
.philosophy-bg .heading h2 { color: #3b2f22; }
.philosophy-bg .heading h2::after { background: #8a6a3c; }
.philosophy-bg .philosophy { max-width: 600px; }
.philosophy-bg .hanja { color: #3b2f22; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.philosophy-bg .hanja-reading { color: #7a6a55; }
.philosophy-bg .philosophy-slogan { color: #6b4f2a; }
.philosophy-bg .philosophy-body { color: #3b2f22; }
.philosophy-bg .philosophy-closing { color: var(--teal-dark); }
.philosophy-bg .principles-title { color: #3b2f22; }
.philosophy-bg .principle { background: rgba(255, 252, 245, .82); border: 1px solid rgba(138, 106, 60, .25); backdrop-filter: blur(3px); }
.philosophy-bg .principle-no { background: #8a6a3c; }
@media (max-width: 991px) { .philosophy-bg { background-position: 40% center; } .philosophy-bg .philosophy { background: rgba(255, 252, 245, .78); border-radius: 16px; padding: 22px 18px; } }

/* 첫 화면: 문제 제기 한 줄 + 메인 슬로건 + 질환명 태그 */
.hero-lead-line { font-size: 21px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.hero h1 { font-size: 50px; line-height: 1.3; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-diseases { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; max-width: 620px; }
.hero-diseases a {
  display: inline-block; border: 2px solid var(--teal); border-radius: 999px; background: #fff;
  padding: 7px 16px; font-size: 17px; font-weight: 800; color: var(--teal-dark); text-decoration: none; transition: all .15s;
}
.hero-diseases a:hover { background: var(--teal); color: #fff; }
@media (max-width: 991px) { .hero-diseases { justify-content: center; margin-left: auto; margin-right: auto; } }
@media (max-width: 767px) { .hero-lead-line { font-size: 16px; } .hero h1 { font-size: 30px; } .hero-diseases a { font-size: 15px; padding: 6px 13px; } }

/* 첫 화면: 슬로건 중심 가운데 정렬 */
.hero-slogan { padding: 120px 0 110px; text-align: center; position: relative; overflow: hidden; }
.hero-slogan::before, .hero-slogan::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(15, 148, 136, .14), rgba(15, 148, 136, 0) 70%);
}
.hero-slogan::before { width: 520px; height: 520px; left: -160px; top: -180px; }
.hero-slogan::after { width: 620px; height: 620px; right: -200px; bottom: -260px; }
.hero-center { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-slogan .hero-lead-line { font-size: 24px; font-weight: 600; color: var(--muted); margin: 0 0 18px; }
.hero-slogan h1 { font-size: 62px; line-height: 1.28; margin: 0 0 26px; letter-spacing: -0.03em; }
.hero-slogan .hero-sub { font-size: 21px; line-height: 1.7; color: var(--ink); margin: 0 auto 40px; max-width: 640px; }
.hero-slogan .hero-buttons { margin: 0; }
.hero-slogan .hero-buttons .btn-cta-big { padding: 18px 42px !important; font-size: 20px !important; }
@media (max-width: 991px) { .hero-slogan h1 { font-size: 46px; } }
@media (max-width: 767px) {
  .hero-slogan { padding: 70px 0 64px; }
  .hero-slogan .hero-lead-line { font-size: 16px; margin-bottom: 12px; }
  .hero-slogan h1 { font-size: 31px; }
  .hero-slogan .hero-sub { font-size: 16px; margin-bottom: 30px; }
  .hero-slogan .hero-buttons .btn-cta-big { width: 100%; padding: 16px 20px !important; font-size: 18px !important; }
}

/* 첫 화면 v2: 왼쪽 슬로건 + 오른쪽 원장 사진, 첫 줄 크게 */
.hero-slogan { padding: 70px 0 0; text-align: left; }
.hero-slogan::after { display: none; }
.hero-slogan .hero-row { display: flex; align-items: flex-end; }
.hero-slogan .hero-text { align-self: center; padding-bottom: 70px; }
.hero-slogan .hero-lead-line { font-size: 30px; font-weight: 700; color: #4a5866; margin: 0 0 16px; line-height: 1.45; letter-spacing: -0.02em; }
.hero-slogan h1 { font-size: 58px; margin: 0 0 24px; }
.hero-slogan .hero-sub { margin: 0 0 36px; max-width: 560px; }
@media (max-width: 1199px) { .hero-slogan .hero-lead-line { font-size: 26px; } .hero-slogan h1 { font-size: 50px; } }
@media (max-width: 991px) {
  .hero-slogan { text-align: center; }
  .hero-slogan .hero-row { display: block; }
  .hero-slogan .hero-text { padding-bottom: 30px; }
  .hero-slogan .hero-sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
  .hero-slogan { padding-top: 46px; }
  .hero-slogan .hero-lead-line { font-size: 20px; }
  .hero-slogan h1 { font-size: 31px; }
}
.m-br { display: none; }
@media (max-width: 767px) { .m-br { display: inline; } }

/* 서브 슬로건 강조 */
.hero-slogan .hero-sub strong { color: var(--teal-dark); font-weight: 800; background: linear-gradient(transparent 60%, rgba(15, 148, 136, .16) 60%); padding: 0 2px; }

/* 상단 메뉴: 글씨 크게 + 상담받기 버튼과 세로 가운데 정렬 */
@media (min-width: 992px) {
  #navigation .navbar-nav { display: flex; align-items: center; height: 74px; }
  #navigation .navbar-nav > li { float: none; }
  .navbar-nav > li > a { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 74px; }
  .navbar-nav > li.active > a::after { bottom: 14px; }
  .navbar-nav > li:not(.nav-cta) + li:not(.nav-cta)::before { height: 18px; margin-top: -9px; }
  .navbar-nav > li.nav-cta > a.btn-consult { margin: 0 0 0 12px !important; line-height: 1.4; display: inline-flex; align-items: center; gap: 6px; }
  .navbar-nav > li.nav-cta > a.btn-consult i { margin: 0; }
}
@media (min-width: 1200px) {
  .navbar-nav > li > a { font-size: 17px; padding-left: 10px !important; padding-right: 10px !important; }
  .navbar-nav > li.active > a::after { left: 10px; right: 10px; }
  .navbar-brand.home img { height: 29px; }
  .navbar-nav > li.nav-cta > a.btn-consult { font-size: 16px; padding: 11px 20px !important; }
}
@media (min-width: 1400px) {
  .site-header .container { width: 1340px; }
  .navbar-nav > li > a { font-size: 18px; padding-left: 13px !important; padding-right: 13px !important; }
  .navbar-nav > li.active > a::after { left: 13px; right: 13px; }
  .navbar-brand.home img { height: 32px; }
  .navbar-nav > li.nav-cta > a.btn-consult { font-size: 17px; padding: 12px 24px !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav > li > a { font-size: 15px; padding-left: 7px !important; padding-right: 7px !important; }
  .navbar-brand.home img { height: 22px !important; }
}

/* ---------- 질환 페이지 공통 뼈대 ---------- */
.dz-hero { background: linear-gradient(135deg, var(--teal-soft), #fff 70%); padding: 64px 0 56px; text-align: center; border-bottom: 1px solid var(--line); }
.dz-eyebrow { display: inline-block; background: var(--teal-light); color: var(--teal-dark); font-weight: 700; font-size: 15px; border-radius: 999px; padding: 6px 16px; margin-bottom: 18px; }
.dz-eyebrow i { margin-right: 4px; }
.dz-hero-title { font-size: 36px; line-height: 1.45; font-weight: 800; color: var(--navy); max-width: 900px; margin: 0 auto 18px; word-break: keep-all; }
.dz-hero-sub { font-size: 18px; line-height: 1.8; color: var(--muted); max-width: 760px; margin: 0 auto 28px; word-break: keep-all; }
.dz-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0; }
.btn-dz-ghost { background: #fff; border: 2px solid var(--teal); color: var(--teal-dark); border-radius: 999px; font-weight: 700; }
.btn-dz-ghost:hover, .btn-dz-ghost:focus { background: var(--teal); color: #fff; }
.dz-lead { color: var(--muted); font-size: 16px; max-width: 720px; margin: -10px auto 28px; word-break: keep-all; }

.scene-list { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.scene-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 600; color: var(--ink); box-shadow: 0 4px 14px rgba(16,38,61,.04); word-break: keep-all; }
.scene-list i { color: var(--teal); opacity: .6; margin-top: 4px; }
.scene-next { margin: 26px 0 0; color: var(--teal-dark); font-weight: 600; }

.understand-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.understand-card { background: var(--teal-soft); border-radius: 14px; padding: 24px 26px; }
.understand-card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0 0 10px; line-height: 1.5; display: flex; gap: 10px; word-break: keep-all; }
.understand-card .q-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.understand-card p { margin: 0; color: var(--ink); line-height: 1.8; word-break: keep-all; }

.dz-eyebrow-sm { display: block; color: var(--teal); font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.view-box { max-width: 1040px; margin: 0 auto; background: #fff; border-radius: 18px; box-shadow: 0 8px 28px rgba(16,38,61,.06); display: grid; grid-template-columns: 260px 1fr; overflow: hidden; }
.view-photo { background: var(--teal-light); display: flex; align-items: flex-end; justify-content: center; }
.view-photo img { width: 100%; max-width: 260px; display: block; }
.view-text { padding: 34px 38px; }
.view-text .service-icon { margin-bottom: 12px; }
.view-summary { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.5; word-break: keep-all; }
.view-text .disease-body { text-align: left; max-width: none; }
.view-sub { font-size: 17px; font-weight: 700; color: var(--teal-dark); margin: 26px 0 12px; }
.view-text .patient-list { max-width: none; }
.view-empty { min-height: 240px; display: block; box-shadow: none; background: transparent; border: 2px dashed var(--line); }

.step-flow { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.step-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 16px 20px; text-align: center; }
.step-item:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 14px; z-index: 1; }
.step-no { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-weight: 700; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; line-height: 26px; }
.step-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.step-item h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 8px; word-break: keep-all; }
.step-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; word-break: keep-all; }
.step-tests { font-size: 13.5px; color: var(--ink); text-align: left; margin: 0; }
.step-tests li { position: relative; padding-left: 12px; margin-bottom: 4px; line-height: 1.5; word-break: keep-all; }
.step-tests li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

.treat-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.treat-card { background: #fff; border-left: 4px solid var(--teal); border-radius: 12px; padding: 20px 24px; box-shadow: 0 4px 14px rgba(16,38,61,.04); }
.treat-card h3 { font-size: 18px; font-weight: 700; color: var(--teal-dark); margin: 0 0 8px; }
.treat-card p { margin: 0; color: var(--ink); line-height: 1.75; word-break: keep-all; }

.monitor-list { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.monitor-list li { background: var(--teal-soft); border-radius: 10px; padding: 14px 18px; font-size: 16px; font-weight: 600; }
.monitor-list i { color: var(--teal); margin-right: 8px; }
.monitor-tools { max-width: 860px; margin: 18px auto 0; color: var(--muted); font-size: 15px; text-align: center; word-break: keep-all; }
.monitor-tools i { color: var(--teal); }
.monitor-tools strong { color: var(--navy); margin-right: 6px; }

.dz-redflag { padding: 40px 0; background: #fff; }
.redflag-box { max-width: 900px; margin: 0 auto; background: #fff4f2; border: 1px solid #f3c2b9; border-radius: 14px; padding: 24px 28px; }
.redflag-box h2 { font-size: 19px; font-weight: 700; color: #b23a26; margin: 0 0 12px; }
.redflag-box h2 i { margin-right: 6px; }
.redflag-box li { position: relative; padding-left: 16px; margin-bottom: 6px; color: #6b2a1d; line-height: 1.7; word-break: keep-all; }
.redflag-box li::before { content: "·"; position: absolute; left: 2px; font-weight: 900; }

@media (max-width: 991px) {
  .step-flow { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .step-item:not(:last-child)::after { display: none; }
  .view-box { grid-template-columns: 1fr; }
  .view-photo { display: none; }
}
@media (max-width: 767px) {
  .dz-hero { padding: 44px 0 40px; }
  .dz-hero-title { font-size: 25px; }
  .dz-hero-sub { font-size: 16px; }
  .scene-list, .understand-grid, .treat-grid, .monitor-list { grid-template-columns: 1fr; }
  .step-flow { grid-template-columns: 1fr; }
  .view-text { padding: 26px 20px; }
  .redflag-box { padding: 20px; }
}

/* ---------- 첫 화면: 해아림 인생진단 라벨 ---------- */
.hero-slogan h1 + .hero-label { margin-top: 4px; }
.hero-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--teal-dark); letter-spacing: .04em; line-height: 1.2; }
.hero-label::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--teal); }
.hero-slogan .hero-sub { line-height: 1.85; letter-spacing: -0.01em; }
@media (max-width: 767px) { .hero-label { font-size: 14px; } .hero-label::before { height: 14px; } }

/* ---------- 질환 페이지: 색상 테마 (같은 묶음 안에서 서로 다르게) ---------- */
.dz-theme { --cta-grad: linear-gradient(120deg, rgba(11,111,102,.9), rgba(15,148,136,.8)); --tint: 15,148,136; }
.dz-theme-blue {
  --teal: #2f6fd0; --teal-dark: #1f4f9c; --teal-light: #e6eefb; --teal-soft: #f3f7fd; --line: #e2e9f3;
  --primary-accent: #2f6fd0; --tint: 47,111,208;
  --cta-grad: linear-gradient(120deg, rgba(31,79,156,.92), rgba(47,111,208,.82));
}
.dz-theme-violet {
  --teal: #7a5bc7; --teal-dark: #563c9c; --teal-light: #efe9fa; --teal-soft: #f7f4fd; --line: #ebe5f3;
  --primary-accent: #7a5bc7; --tint: 122,91,199;
  --cta-grad: linear-gradient(120deg, rgba(86,60,156,.92), rgba(122,91,199,.82));
}
.dz-theme .page-tabs a.is-current, .dz-theme .page-tabs .is-current a { background: var(--teal) !important; border-color: var(--teal) !important; }
.dz-theme .score-gauge.lv0 .gauge-fill { background: var(--teal); }

/* ---------- 질환 첫 섹션: 고민 + 환자 이미지 자리 ---------- */
.dz-hero { text-align: left; padding: 56px 0; background: linear-gradient(135deg, var(--teal-soft), #fff 75%); }
.dz-hero-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.dz-hero-title, .dz-hero-sub { margin-left: 0; margin-right: 0; }
.dz-hero-title { font-size: 34px; }
.dz-hero-btns { justify-content: flex-start; }
.dz-hero-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 30px !important; line-height: 1 !important; font-size: 18px !important; box-sizing: border-box; }
.dz-hero-btns .btn i { margin: 0; line-height: 1; }
.dz-hero-btns .btn span { display: block; line-height: 1; padding-top: 2px; }
.dz-hero-visual { position: relative; }
.dz-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 16px 40px rgba(16,38,61,.12); display: block; }
.dz-hero-ph { aspect-ratio: 4 / 3; border-radius: 22px; border: 2px dashed rgba(var(--tint), .35); background: linear-gradient(160deg, var(--teal-light), #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--teal); }
.dz-hero-ph i { font-size: 54px; opacity: .55; }
.dz-hero-ph span { font-size: 14px; color: var(--muted); }
@media (max-width: 991px) {
  .dz-hero { text-align: center; }
  .dz-hero-row { grid-template-columns: 1fr; gap: 30px; }
  .dz-hero-title, .dz-hero-sub { margin-left: auto; margin-right: auto; }
  .dz-hero-btns { justify-content: center; }
  .dz-hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 767px) {
  .dz-hero-title { font-size: 25px; }
  .dz-hero-btns .btn { width: 100%; height: 54px; font-size: 17px !important; }
}

/* 첫 화면: 해아림 인생진단 — 테두리 상자 + 상단 민트 캡슐 라벨 */
.hero-slogan .hero-label::before { display: none; }
.hero-diag { position: relative; display: inline-block; max-width: 580px; border: 1.5px solid rgba(15, 148, 136, .35); border-radius: 16px; padding: 26px 26px 18px; margin: 14px 0 34px; background: rgba(255, 255, 255, .55); }
.hero-diag .hero-label { position: absolute; top: 0; left: 22px; transform: translateY(-50%); margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: #e3f4f1; border: 1px solid rgba(15, 148, 136, .3); color: var(--teal-dark); font-size: 14px; font-weight: 700; letter-spacing: .04em; line-height: 1.3; }
.hero-diag .hero-label::after { content: none; }
.hero-slogan .hero-diag .hero-sub { margin: 0; max-width: none; }
@media (max-width: 991px) { .hero-diag { text-align: center; } .hero-diag .hero-label { left: 50%; transform: translate(-50%, -50%); white-space: nowrap; } }
@media (max-width: 767px) { .hero-diag { padding: 24px 16px 14px; margin-bottom: 28px; } .hero-diag .hero-label { font-size: 13px; } }

/* 원장 이름 카드: 여백 줄이기 */
.hero-card.hero-name { padding: 10px 18px; min-width: 0; border-radius: 12px; }
.hero-name .hero-role { font-size: 12px; line-height: 1.3; }
.hero-name strong { font-size: 22px; line-height: 1.25; margin: 1px 0; }
.hero-name .hero-sub-role { font-size: 12px; line-height: 1.3; }

/* 원인을 모르면, 불안은 계속됩니다: 글자·카드 키우기 */
#problems .heading h2 { font-size: 40px; }
#problems .problem-grid { max-width: 1140px; gap: 22px; }
#problems .problem-card { padding: 30px 28px; gap: 18px; border-radius: 18px; }
#problems .problem-card .problem-icon { width: 60px; height: 60px; font-size: 25px; }
#problems .problem-card p { font-size: 21px; }
@media (max-width: 991px) { #problems .heading h2 { font-size: 32px; } #problems .problem-card p { font-size: 19px; } #problems .problem-card { padding: 24px 20px; } }
@media (max-width: 767px) { #problems .heading h2 { font-size: 25px; } #problems .problem-grid { gap: 12px; } #problems .problem-card { padding: 20px 10px; } #problems .problem-card .problem-icon { width: 50px; height: 50px; font-size: 21px; } #problems .problem-card p { font-size: 16px; } }

/* 첫 화면 서브카피 한 줄 + 인생진단 라벨 강조 */
.hero-diag { max-width: none; padding: 30px 24px 18px; border-color: rgba(15, 148, 136, .45); }
.hero-slogan .hero-diag .hero-sub { font-size: 19px; }
@media (min-width: 1200px) { .hero-slogan .hero-diag .hero-sub { white-space: nowrap; } }
.hero-diag .hero-label { font-size: 17px; font-weight: 800; padding: 7px 18px; background: linear-gradient(135deg, #14a596, #0b6f66); border: none; color: #fff; letter-spacing: .06em; box-shadow: 0 6px 16px rgba(15, 148, 136, .3); }
@media (max-width: 767px) { .hero-diag .hero-label { font-size: 15px; padding: 6px 15px; } .hero-diag { padding-top: 26px; } }

/* 해아림은 이렇게 진료합니다: 01→04 진료 과정 */
.value-steps { margin: 0; counter-reset: none; }
.value-steps .value-card { position: relative; padding: 38px 20px 28px; }
.value-steps .value-card:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 15px; z-index: 1; }
.value-no { position: absolute; top: 14px; left: 18px; font-size: 22px; font-weight: 800; color: var(--teal); opacity: .35; letter-spacing: .02em; }
.value-steps .value-card p { font-size: 16px; line-height: 1.65; color: var(--ink); word-break: keep-all; }
.value-steps .value-card p.value-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 991px) { .value-steps .value-card:not(:last-child)::after { display: none; } }
@media (max-width: 767px) { .value-steps { grid-template-columns: 1fr; } }

/* 메인 섹션별 [지금 상담받기] 버튼 키우기 (첫 화면 버튼보다 한 단계 작게) */
.section-cta .btn-consult.btn-cta-big, .guide-actions .btn-consult.btn-cta-big, #visit .btn-consult.btn-cta-big { padding: 16px 40px !important; font-size: 19px !important; }
@media (max-width: 767px) { .section-cta .btn-consult.btn-cta-big, .guide-actions .btn-consult.btn-cta-big, #visit .btn-consult.btn-cta-big { padding: 14px 30px !important; font-size: 17px !important; } }

/* ---------- 진료 안내 v2: 인생진단 흐름 ---------- */
:is(#visit, #life) .visit-notice { max-width: 960px; padding: 44px 32px 34px; }
:is(#visit, #life) .visit-notice-title { font-size: 30px; line-height: 1.45; margin: 0 0 16px; word-break: keep-all; }
.visit-notice-q { font-size: 18px; font-weight: 700; color: #ffe08a; margin: 0 0 6px; word-break: keep-all; }
:is(#visit, #life) .visit-notice-body { margin-bottom: 22px; word-break: keep-all; }
.visit-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.visit-facts li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 18px; font-size: 16px; font-weight: 700; }
.visit-facts i { margin-right: 4px; opacity: .85; }
.visit-facts-note { margin: 18px 0 0; font-size: 14px; color: #cdebe7; }
:is(#visit, #life) .visit-notice-actions .btn { height: 58px; display: inline-flex; align-items: center; gap: 8px; padding: 0 30px !important; font-size: 18px; line-height: 1; }
:is(#visit, #life) .visit-notice-actions .btn-naver { margin-top: 0; }

.visit-block { max-width: 1080px; margin: 0 auto 64px; text-align: center; }
.visit-label { display: inline-block; background: linear-gradient(135deg, #14a596, #0b6f66); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .06em; border-radius: 999px; padding: 6px 16px; margin-bottom: 12px; }
:is(#visit, #life) .visit-sub { font-size: 26px; margin-bottom: 8px; word-break: keep-all; }
:is(#visit, #life) .visit-steps { margin-top: 34px; margin-bottom: 0; }
:is(#visit, #life) .visit-steps li { text-align: left; padding: 34px 26px 24px; }
:is(#visit, #life) .visit-steps .plan-no { width: auto; left: 24px; margin-left: 0; padding: 0 12px; border-radius: 999px; }
.visit-kicker { display: block; color: var(--teal); font-weight: 700; font-size: 14px; margin: 4px 0 4px; }
:is(#visit, #life) .visit-steps h4 { font-size: 19px; word-break: keep-all; }
:is(#visit, #life) .visit-steps p { color: var(--ink); line-height: 1.7; word-break: keep-all; }
:is(#visit, #life) .visit-steps p.visit-step-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.visit-areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0 0; }
.visit-areas li { background: var(--teal-soft); border-radius: 16px; padding: 26px 20px; text-align: left; }
.area-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--teal-dark); align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.visit-areas h4 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.area-desc { font-size: 15px; color: var(--ink); line-height: 1.6; margin: 0 0 12px; word-break: keep-all; }
.area-tests { font-size: 13.5px; color: var(--teal-dark); font-weight: 600; margin: 0; padding-top: 10px; border-top: 1px dashed rgba(15,148,136,.3); word-break: keep-all; }

.visit-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 30px 0 0; }
.visit-flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 18px 20px; }
.visit-flow li:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 14px; z-index: 1; }
.flow-icon { display: inline-flex; width: 50px; height: 50px; border-radius: 50%; background: var(--teal-light); color: var(--teal-dark); align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.visit-flow h4 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.visit-flow p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; word-break: keep-all; }
.visit-after-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.visit-after-note i { color: var(--teal); }

.visit-close { max-width: 960px; margin: 0 auto; text-align: center; background: var(--teal-soft); border-radius: 20px; padding: 40px 24px; }
.visit-close h3 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0 0 8px; line-height: 1.5; word-break: keep-all; }
.visit-close p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }

@media (max-width: 991px) {
  .visit-areas, .visit-flow { grid-template-columns: repeat(2, 1fr); }
  .visit-flow li:not(:last-child)::after { display: none; }
}
@media (max-width: 767px) {
  :is(#visit, #life) .visit-notice { padding: 34px 18px 26px; }
  :is(#visit, #life) .visit-notice-title { font-size: 22px; }
  .visit-notice-q { font-size: 16px; }
  .visit-facts li { font-size: 14px; padding: 6px 14px; }
  :is(#visit, #life) .visit-notice-actions .btn { width: 100%; justify-content: center; }
  :is(#visit, #life) .visit-sub { font-size: 21px; }
  .visit-areas, .visit-flow { grid-template-columns: 1fr; }
  .visit-block { margin-bottom: 48px; }
  .visit-close h3 { font-size: 20px; }
}

/* ---------- 해아림의 치료 v2: 맞춤 한약 강조 + 함께하는 치료 묶음 ---------- */
#care .care-sub { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.8; margin: -14px auto 36px; word-break: keep-all; }
#care .care-sub strong { color: var(--teal-dark); font-weight: 800; }
.care-core { max-width: 1000px; margin: 0 auto 50px; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--teal-soft); border: 1px solid rgba(15,148,136,.25); border-radius: 22px; overflow: hidden; box-shadow: 0 12px 32px rgba(16,38,61,.07); }
.care-core .care-img { aspect-ratio: auto; min-height: 280px; }
.care-core .care-text { padding: 40px 42px; display: flex; flex-direction: column; justify-content: center; }
.care-core-label { align-self: flex-start; background: linear-gradient(135deg, #14a596, #0b6f66); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .06em; border-radius: 999px; padding: 6px 15px; margin-bottom: 14px; }
.care-core h3 { font-size: 28px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.care-core .care-short { font-size: 18px; line-height: 1.7; color: var(--ink); font-weight: 600; word-break: keep-all; }
.care-group-title { display: flex; align-items: center; gap: 16px; max-width: 1000px; margin: 0 auto 22px; font-size: 19px; font-weight: 800; color: var(--teal-dark); }
.care-group-title::before, .care-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.care-grid-4 { grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 0 auto; }
.care-grid-4 .care-short { font-size: 14.5px; line-height: 1.65; color: var(--ink); font-weight: 500; word-break: keep-all; }
.care-grid-4.care-grid-detail { grid-template-columns: repeat(2, 1fr); max-width: none; }
#care .care-note { font-size: 16px; color: var(--teal-dark); font-weight: 600; line-height: 1.75; margin-top: 30px; word-break: keep-all; }
@media (max-width: 991px) {
  .care-core { grid-template-columns: 1fr; }
  .care-core .care-img { min-height: 0; aspect-ratio: 16 / 9; }
  .care-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .care-grid-4.care-grid-detail { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .care-core .care-text { padding: 26px 22px; }
  .care-core h3 { font-size: 23px; }
  .care-core .care-short { font-size: 16px; }
  #care .care-sub { font-size: 16px; }
  #care .care-sub br, #care .care-note br { display: none; }
}

/* 치료는 이렇게 이어집니다: 01→04 */
#plan .plan-steps li:not(:last-child)::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 14px; }
#plan .plan-steps p { color: var(--ink); line-height: 1.65; word-break: keep-all; }
@media (max-width: 991px) { #plan .plan-steps li:not(:last-child)::after { display: none; } }

/* ---------- 진료 철학: 배경 위 글자 가독성 ---------- */
.philosophy-bg { position: relative; }
.philosophy-bg::before { content: ""; position: absolute; inset: 0; background: rgba(244, 236, 221, .45); }
.philosophy-bg > .container { position: relative; }
.philosophy-bg .philosophy { max-width: 720px; background: rgba(255, 252, 245, .9); border: 1px solid rgba(138, 106, 60, .22); border-radius: 20px; padding: 40px 44px 36px; box-shadow: 0 16px 40px rgba(59, 47, 34, .12); margin-bottom: 0; }
.philosophy-bg .hanja { color: #2b2116; }
.philosophy-bg .hanja-reading { color: #5c4b36; font-weight: 500; }
.philosophy-bg .philosophy-slogan { color: #4f3818; font-weight: 700; font-size: 20px; line-height: 1.6; }
.philosophy-bg .philosophy-body { color: #2b2116; font-weight: 500; line-height: 1.8; }
.philosophy-bg .philosophy-closing { color: var(--teal-dark); font-weight: 800; line-height: 1.7; }
@media (max-width: 767px) { .philosophy-bg .philosophy { padding: 26px 18px; } }

/* ---------- 진료에서 타협하지 않는 원칙 (별도 섹션) ---------- */
#principles .principles { gap: 22px; }
#principles .principle { padding: 38px 26px 28px; border: 1px solid var(--line); }
#principles .principle-no { width: auto; padding: 0 12px; border-radius: 999px; }
#principles .principle h4 { font-size: 19px; word-break: keep-all; }
#principles .principle p { font-size: 16px; line-height: 1.7; color: var(--ink); word-break: keep-all; }
#principles { scroll-margin-top: 80px; }

/* ---------- 원장 소개 v2 ---------- */
.doc-hero { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; max-width: 1080px; margin: 0 auto 70px; }
.doc-photo { background: linear-gradient(180deg, var(--teal-light), #fff); border-radius: 22px; padding-top: 24px; overflow: hidden; }
.doc-photo img { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.doc-eyebrow { font-size: 17px; color: var(--teal-dark); margin: 0 0 14px; }
.doc-eyebrow strong { font-size: 20px; color: var(--navy); margin-left: 4px; }
.doc-headline { font-size: 34px; line-height: 1.45; font-weight: 800; color: var(--navy); margin: 0 0 22px; word-break: keep-all; }
.doc-intro { font-size: 17px; line-height: 1.85; color: var(--ink); margin: 0 0 6px; word-break: keep-all; }
.doc-promise { margin: 22px 0 22px; padding: 14px 18px; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 12px 12px 0; font-size: 18px; font-weight: 700; color: var(--teal-dark); line-height: 1.6; word-break: keep-all; }
.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.doc-tags li { font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; }

.doc-story { max-width: 820px; margin: 0 auto 70px; padding: 40px 46px; }
.doc-story h3 { font-size: 24px; margin-bottom: 20px; }
.doc-story p { margin: 0 0 10px; font-size: 17px; line-height: 1.85; word-break: keep-all; }
.doc-story-closing { margin-top: 22px !important; font-size: 19px !important; font-weight: 700; color: var(--teal-dark); }
.doc-sign { text-align: right; color: var(--muted); font-size: 15px !important; margin-top: 8px !important; }

.doc-sub { text-align: center; font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 30px; word-break: keep-all; }
.doc-way { max-width: 1080px; margin: 0 auto 70px; }
.doc-way-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.doc-way-list li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; }
.doc-way-no { display: inline-block; font-size: 26px; font-weight: 800; color: var(--teal); opacity: .5; margin-bottom: 8px; }
.doc-way-list h4 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 10px; word-break: keep-all; }
.doc-way-list p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0; word-break: keep-all; }
.doc-formula { margin: 26px auto 0; max-width: 820px; text-align: center; background: #fff; border: 1.5px solid rgba(15, 148, 136, .35); border-radius: 18px; padding: 30px 20px 20px; position: relative; }
.doc-formula-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: linear-gradient(135deg, #14a596, #0b6f66); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .06em; border-radius: 999px; padding: 6px 18px; white-space: nowrap; }
.doc-formula p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; font-size: 17px; font-weight: 700; color: var(--navy); }
.doc-formula p span { background: var(--teal-soft); border-radius: 10px; padding: 8px 14px; }
.doc-formula p i { color: var(--teal); font-size: 14px; }
.doc-formula p strong { background: var(--teal); color: #fff; border-radius: 10px; padding: 8px 16px; }

.doc-career { max-width: 1080px; margin: 0 auto 60px; }
.doc-career-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.doc-career-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.doc-career-box h4 { font-size: 17px; font-weight: 800; color: var(--teal-dark); margin: 0 0 12px; }
.doc-career-box h4 i { margin-right: 6px; }
.doc-career-box li { position: relative; padding-left: 14px; margin-bottom: 7px; font-size: 15.5px; color: var(--ink); line-height: 1.6; word-break: keep-all; }
.doc-career-box li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.doc-career-box li.is-more { display: none; }
.doc-career.is-open li.is-more { display: list-item; list-style: none; }
.doc-more-btn { margin-top: 20px; background: #fff; border: 1.5px solid var(--teal); color: var(--teal-dark); font-weight: 700; border-radius: 999px; padding: 10px 26px; }
.doc-more-btn:hover, .doc-more-btn:focus { background: var(--teal); color: #fff; }
.doc-close { background: #fff; }

@media (max-width: 991px) {
  .doc-hero { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .doc-photo { max-width: 340px; margin: 0 auto; }
  .doc-promise { text-align: left; }
  .doc-tags { justify-content: center; }
  .doc-way-list { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .doc-headline { font-size: 25px; }
  .doc-headline br { display: none; }
  .doc-intro { font-size: 16px; }
  .doc-story { padding: 26px 20px; }
  .doc-sub { font-size: 21px; }
  .doc-career-grid { grid-template-columns: 1fr; }
  .doc-formula p { font-size: 15px; }
}

/* ---------- 원인을 모르면: 문장 절반에서 줄바꿈 ---------- */
#problems .problem-card p { line-height: 1.45; }

/* ---------- 상단 로고 키우기 ---------- */
.navbar-brand.home img { height: 40px; }
@media (min-width: 1200px) { .navbar-brand.home img { height: 38px; } }
@media (min-width: 1400px) { .navbar-brand.home img { height: 44px; } }
@media (min-width: 992px) and (max-width: 1199px) { .navbar-brand.home img { height: 26px !important; } }
@media (max-width: 991px) { .navbar-brand.home img { height: 36px; } }
@media (max-width: 400px) { .navbar-brand.home img { height: 30px; } }

/* ---------- 해아림 인생진단 페이지 ---------- */
.life-intro { max-width: 880px; margin: 0 auto 70px; text-align: center; }
.life-headline { font-size: 36px; line-height: 1.45; font-weight: 800; color: var(--navy); margin: 6px 0 18px; word-break: keep-all; }
.life-lead { font-size: 18px; line-height: 1.85; color: var(--ink); margin: 0 auto 44px; max-width: 760px; word-break: keep-all; }
.life-formula { margin-top: 0; }
.life-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0 0; }
.life-why li { background: var(--teal-soft); border-radius: 18px; padding: 28px 24px; text-align: left; }
.life-why h4 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 8px; word-break: keep-all; }
.life-why p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0; word-break: keep-all; }
.life-close-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0; }
.life-close-btns .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; padding: 0 30px !important; line-height: 1 !important; font-size: 18px !important; }
#life .btn-consult.btn-cta-big { font-size: 18px !important; }
@media (max-width: 991px) { .life-why { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .life-headline { font-size: 26px; } .life-headline br { display: none; } .life-lead { font-size: 16px; } .life-close-btns .btn { width: 100%; } }

/* 진료 안내 안의 인생진단 안내 카드 */
.life-link { display: block; max-width: 960px; margin: 0 auto 50px; text-align: center; border: 1.5px solid rgba(15, 148, 136, .35); border-radius: 20px; padding: 34px 24px 28px; background: var(--teal-soft); transition: box-shadow .2s, transform .2s; }
.life-link:hover, .life-link:focus { text-decoration: none; box-shadow: 0 12px 30px rgba(16, 38, 61, .08); transform: translateY(-2px); }
.life-link h3 { font-size: 24px; font-weight: 800; color: var(--navy); margin: 0 0 10px; word-break: keep-all; }
.life-link p { color: var(--ink); font-size: 16px; margin: 0 0 14px; word-break: keep-all; }

/* 링크가 된 라벨·카드 */
a.hero-label:hover, a.hero-label:focus { text-decoration: none; filter: brightness(1.08); }
.doc-formula .learn-more { display: inline-block; margin-top: 16px; }
.value-link { display: inline-block; margin-top: 10px; font-size: 14px; }

/* ---------- 질환 페이지: 원장의 관점 v2 ---------- */
.view-title { font-size: 25px; font-weight: 800; color: var(--navy); line-height: 1.5; margin: 0 0 20px; word-break: keep-all; }
.view-para { font-size: 16.5px; line-height: 1.9; color: var(--ink); margin: 0 0 14px; word-break: keep-all; }
.view-para strong { color: var(--teal-dark); font-weight: 800; }
.view-point { position: relative; margin: 24px 0 0; padding: 18px 20px 18px 50px; background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 0 14px 14px 0; font-size: 18px; font-weight: 800; color: var(--teal-dark); line-height: 1.65; word-break: keep-all; }
.view-point i { position: absolute; left: 18px; top: 22px; font-size: 16px; opacity: .6; }
.view-sign { text-align: right; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.view-box { align-items: stretch; }
.view-photo { align-items: flex-end; }
.dz-patients .patient-list li { background: var(--teal-soft); }
.dz-patients + .dz-steps { border-top: 1px solid var(--line); }
@media (max-width: 767px) { .view-title { font-size: 21px; } .view-para { font-size: 15.5px; } .view-point { font-size: 16px; } }

/* =========================================================
   [해아림 인생진단] 라벨 — 사이트 전체 공통, 크게·딥블루로 강조
   ========================================================= */
:root { --life-grad: linear-gradient(135deg, #3b5bdb 0%, #1c2f8f 100%); --life-glow: rgba(43, 66, 190, .35); }
.hero-diag .hero-label, .visit-label, .doc-formula-label {
  display: inline-flex !important; align-items: center; gap: 10px;
  background: var(--life-grad) !important; border: none !important; color: #fff !important;
  font-size: 21px !important; font-weight: 800 !important; letter-spacing: .05em; line-height: 1.2 !important;
  padding: 12px 28px !important; border-radius: 999px !important;
  box-shadow: 0 10px 24px var(--life-glow), inset 0 1px 0 rgba(255,255,255,.25) !important;
  white-space: nowrap;
}
.hero-diag .hero-label::before, .visit-label::before, .doc-formula-label::before {
  content: "\f0f1"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .85em; opacity: .9;
  display: inline-block !important; width: auto !important; height: auto !important; background: none !important;
}
.hero-diag { padding-top: 40px; border-color: rgba(59, 91, 219, .35); }
.doc-formula { padding-top: 44px; border-color: rgba(59, 91, 219, .35); }
.doc-formula p strong { background: var(--life-grad); }
.life-link { border-color: rgba(59, 91, 219, .35); }
.visit-label { margin-bottom: 18px; }
@media (max-width: 767px) {
  .hero-diag .hero-label, .visit-label, .doc-formula-label { font-size: 18px !important; padding: 10px 22px !important; }
  .hero-diag { padding-top: 34px; }
}
/* 모바일 헤더: 로고와 버튼이 한 줄에 들어가도록 */
@media (max-width: 767px) { .navbar-brand.home img { height: 30px; } }
@media (max-width: 400px) { .navbar-brand.home img { height: 26px; } }
@media (max-width: 370px) { .navbar-brand.home img { height: 23px; } }

/* =========================================================
   상담 방법 선택창 (PC) — layouts/partials/consult_modal.html + static/js/consult.js
   ========================================================= */
html.consult-open, html.consult-open body { overflow: hidden; }
.consult-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(16, 38, 61, 0); transition: background .2s; }
.consult-modal[hidden] { display: none; }
.consult-modal.is-open { background: rgba(16, 38, 61, .55); }
.consult-dialog { position: relative; width: 100%; max-width: 880px; max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border-radius: 22px; padding: 40px 36px 34px; box-shadow: 0 30px 70px rgba(16, 38, 61, .3); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; outline: none; }
.consult-modal.is-open .consult-dialog { opacity: 1; transform: none; }
.consult-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: none; border-radius: 50%; background: var(--teal-soft); color: var(--navy); font-size: 18px; cursor: pointer; }
.consult-close:hover, .consult-close:focus-visible { background: var(--teal-light); }
.consult-eyebrow { text-align: center; color: var(--teal); font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.consult-dialog h2 { text-align: center; font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 28px; }
.consult-options { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.consult-option { display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 18px; padding: 26px 18px 22px; background: #fff; }
.consult-kakao { background: var(--teal-soft); border-color: rgba(15, 148, 136, .3); }
.consult-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; align-items: center; justify-content: center; font-size: 22px; background: #fff; color: var(--teal-dark); box-shadow: 0 4px 12px rgba(16, 38, 61, .08); margin-bottom: 12px; }
.consult-icon-naver { color: #03a94d; }
.consult-icon-phone { color: var(--navy); }
.consult-option h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.consult-option p { font-size: 15px; color: var(--muted); margin: 0 0 16px; line-height: 1.6; word-break: keep-all; }
.consult-qr { margin: 0 0 16px; background: #fff; border-radius: 14px; padding: 12px 12px 10px; border: 1px solid var(--line); }
.consult-qr img { display: block; width: 132px; height: 132px; margin: 0 auto; image-rendering: pixelated; }
.consult-qr figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.consult-btn { margin-top: auto; width: 100%; border-radius: 999px; font-weight: 800; font-size: 16px; padding: 12px 16px; border: none; color: #fff !important; }
.consult-btn-kakao { background: linear-gradient(135deg, #ffa23a 0%, #ff6a4d 100%); box-shadow: 0 6px 16px rgba(255, 106, 77, .3); }
.consult-btn-naver { background: #03c75a; }
.consult-btn-phone { background: var(--navy); }
.consult-btn:hover, .consult-btn:focus-visible { filter: brightness(1.06); color: #fff !important; }
.consult-btn:focus-visible, .consult-close:focus-visible { outline: 3px solid rgba(15, 148, 136, .45); outline-offset: 2px; }
@media (max-width: 860px) {
  .consult-options { grid-template-columns: 1fr; }
  .consult-dialog { padding: 34px 20px 24px; }
}
/* 상담 선택창: 네이버 예약·전화 카드는 내용 전체를 세로 가운데 정렬 */
.consult-option:not(.consult-kakao) { justify-content: center; }
.consult-option:not(.consult-kakao) .consult-btn { margin-top: 6px; }
/* /kakao/ 연결 페이지 */
.kakao-relay { padding: 90px 0 110px; }
.kakao-relay h1 { font-size: 26px; font-weight: 800; color: var(--navy); margin: 8px 0 10px; }
.kakao-relay p { color: var(--muted); }
.kakao-relay-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- 칼럼 카드 v2: 썸네일 · 분류 · 제목 · 요약 · 칼럼 읽기 ---------- */
.row:has(> .column-col) { display: flex; flex-wrap: wrap; }
.row:has(> .column-col)::before, .row:has(> .column-col)::after { display: none; }
.column-col { display: flex; margin-bottom: 26px; }
.column-card { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 26px rgba(16, 38, 61, .09); transition: transform .2s, box-shadow .2s; }
.column-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 38, 61, .13); }
.column-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-light); }
.column-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.column-card:hover .column-thumb img { transform: scale(1.04); }
.column-badge { position: absolute; top: 12px; left: 12px; background: rgba(30, 30, 40, .62); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(2px); }
.column-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.column-cat { color: var(--orange); font-weight: 800; font-size: 14px; margin: 0 0 8px; }
.column-title { font-size: 18px; font-weight: 800; line-height: 1.5; margin: 0 0 10px; word-break: keep-all; }
.column-title a { color: var(--navy); }
.column-title a:hover { color: var(--teal-dark); text-decoration: none; }
.column-summary { font-size: 14.5px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.column-more { margin-top: auto; font-weight: 800; color: var(--teal-dark); font-size: 15px; }
.column-more:hover { color: var(--teal); text-decoration: none; }
.column-more i { font-size: 13px; margin-left: 2px; }
@media (max-width: 767px) { .column-col { width: 100%; } }

/* 게시판식 [글쓰기] 버튼 (관리자 브라우저에서만 보임) */
.write-bar { display: flex; justify-content: flex-end; margin-top: 18px; }
.write-bar[hidden] { display: none; }
.write-btn { background: var(--navy); color: #fff !important; border-radius: 6px; padding: 10px 20px; font-weight: 700; font-size: 15px; }
.write-btn:hover, .write-btn:focus { background: #0b1a2b; color: #fff !important; }
.write-btn i { margin-right: 4px; font-size: 13px; }
.post-thumb { margin: 0 0 28px; }
.post-thumb img { border-radius: 14px; width: 100%; }

/* 해아림은 이렇게 진료합니다: 02 해아림 인생진단 강조 (딥블루) */
.value-steps .value-card.is-highlight { background: var(--life-grad); border-color: transparent; box-shadow: 0 16px 34px var(--life-glow); transform: translateY(-6px); }
.value-steps .value-card.is-highlight .value-no { color: #fff; opacity: .55; }
.value-steps .value-card.is-highlight .service-icon { background: rgba(255,255,255,.16); color: #fff; }
.value-steps .value-card.is-highlight h3 { color: #fff; }
.value-steps .value-card.is-highlight p { color: rgba(255,255,255,.92); }
.value-steps .value-card.is-highlight .value-link { color: #fff; background: rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; }
.value-steps .value-card.is-highlight .value-link:hover { background: rgba(255,255,255,.26); text-decoration: none; }
@media (max-width: 991px) { .value-steps .value-card.is-highlight { transform: none; } }

/* 공동 집필 도서: 더 크게 + 마우스 오버 애니메이션 + 네이버 도서 링크 */
.book-row { gap: 30px; }
a.book-card { gap: 28px; padding: 26px 30px 26px 26px; max-width: 560px; flex: 1 1 440px; border-radius: 20px; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
a.book-card .book-cover { flex: 0 0 140px; border-radius: 6px; transition: transform .35s ease, box-shadow .35s ease; transform-origin: left center; }
a.book-card .book-label { font-size: 14px; }
a.book-card .book-info { gap: 6px; }
a.book-card .book-info strong { font-size: 24px; line-height: 1.35; }
a.book-card .book-info span { font-size: 16px; }
a.book-card .book-info small { font-size: 14px; }
.book-buy { margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 700; color: #03a94d; display: inline-flex; align-items: center; gap: 6px; opacity: .85; transition: opacity .25s, transform .25s; }
.book-buy .fa-arrow-up-right-from-square { font-size: 11px; }
a.book-card:hover, a.book-card:focus-visible { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16, 38, 61, .14); border-color: rgba(15, 148, 136, .35); text-decoration: none; }
a.book-card:hover .book-cover, a.book-card:focus-visible .book-cover { transform: perspective(600px) rotateY(-12deg) scale(1.05); box-shadow: 10px 12px 24px rgba(16, 38, 61, .28); }
a.book-card:hover .book-buy, a.book-card:focus-visible .book-buy { opacity: 1; transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { a.book-card, a.book-card .book-cover, .book-buy { transition: none; } }
@media (max-width: 767px) {
  a.book-card { gap: 18px; padding: 18px; flex-basis: 100%; }
  a.book-card .book-cover { flex-basis: 100px; }
  a.book-card .book-info strong { font-size: 19px; }
  a.book-card .book-info span { font-size: 14px; }
}

/* =========================================================
   공동 저서 v3 — 큰 표지 + 의미 설명 + 마우스 오버 확대
   ========================================================= */
.books-head { text-align: center; margin: 70px auto 34px; max-width: 760px; }
.books-eyebrow { display: inline-flex; align-items: center; gap: 14px; color: var(--orange); font-weight: 800; font-size: 15px; letter-spacing: .18em; margin: 0 0 8px; }
.books-eyebrow::before, .books-eyebrow::after { content: ""; width: 56px; height: 2px; background: rgba(242, 145, 27, .55); border-radius: 2px; }
.books-head .books-title { font-size: 36px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.books-head .books-title i { display: none; }
.books-sub { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0; word-break: keep-all; }
.book-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 1100px; margin: 0 auto; }
.book-card { display: flex; flex-direction: column; max-width: none; flex: none; gap: 0; padding: 22px 22px 30px; background: #f4f6f8; border: none; border-radius: 22px; box-shadow: 0 10px 30px rgba(16, 38, 61, .06); transition: transform .35s ease, box-shadow .35s ease; }
.book-cover-wrap { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; padding: 42px 30px; overflow: hidden; }
.book-card .book-cover { flex: none; width: 62%; max-width: 280px; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: -6px 0 0 rgba(0,0,0,.08) inset, 10px 14px 28px rgba(16, 38, 61, .22); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s; }
.book-card .book-cover img { display: block; width: 100%; height: auto; }
.book-card .book-info { display: block; text-align: center; padding: 26px 18px 0; }
.book-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.book-title a { color: var(--book); }
.book-title a:hover { text-decoration: none; filter: brightness(.9); }
.book-topic { font-size: 14px; color: #8a97a3; margin: 0 0 14px; }
.book-desc { font-size: 16.5px; line-height: 1.8; color: var(--ink); margin: 0 auto 18px; max-width: 460px; word-break: keep-all; }
.book-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; margin: 0; }
.book-links a { font-size: 14.5px; font-weight: 700; }
.book-links .book-buy { color: #03a94d; }
.book-links .book-clinic { color: var(--book); }
.book-links a:hover { text-decoration: none; filter: brightness(.85); }
.book-card:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(16, 38, 61, .13); }
.book-card:hover .book-cover, .book-cover-wrap:focus-visible .book-cover { transform: scale(1.08) rotate(-1deg); box-shadow: -6px 0 0 rgba(0,0,0,.08) inset, 18px 24px 40px rgba(16, 38, 61, .3); }
@media (prefers-reduced-motion: reduce) { .book-card, .book-card .book-cover { transition: none; } }
@media (max-width: 767px) {
  .books-head .books-title { font-size: 28px; }
  .books-sub { font-size: 15px; }
  .books-sub br { display: none; }
  .book-row { grid-template-columns: 1fr; gap: 22px; }
  .book-cover-wrap { padding: 28px 20px; }
  .book-title { font-size: 22px; }
  .book-desc { font-size: 15px; }
}
.book-row:has(> .book-card:only-child) { grid-template-columns: minmax(0, 540px); justify-content: center; }

/* 첫 화면 v3: 지역·진료 분야 eyebrow / 인생진단 h2 / "증상만 보지 않습니다" */
.hero-eyebrow { font-size: 16px; font-weight: 600; color: var(--teal-dark); letter-spacing: .02em; line-height: 1.5; margin: 0 0 12px; word-break: keep-all; }
.hero-slogan .hero-lead-line { margin-bottom: 14px; }
.hero-label-wrap { margin: 0; font-size: inherit; line-height: inherit; }
.hero-slogan .hero-diag .hero-sub { white-space: normal !important; line-height: 1.8; }
.hero-slogan .hero-sub strong.hero-sub-key { display: block; background: none; padding: 0; color: var(--navy); font-weight: 800; margin-bottom: 2px; }
@media (max-width: 991px) { .hero-eyebrow { font-size: 15px; } }
@media (max-width: 767px) {
  .hero-eyebrow { font-size: 13.5px; margin-bottom: 10px; }
  .hero-slogan .hero-sub strong.hero-sub-key { display: inline; }
}

/* =========================================================
   첫 화면 마우스 오버 강화: [해아림 인생진단] 라벨 · [지금 상담받기]
   (translate/scale 속성을 따로 써서 기존 위치 transform 과 겹치지 않게 함)
   ========================================================= */
@keyframes hero-shine { from { left: -60%; } to { left: 130%; } }
@keyframes hero-wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -14deg; } 75% { rotate: 12deg; } }

.hero-diag .hero-label, .hero-buttons .btn-consult {
  overflow: hidden;
  transition: translate .3s cubic-bezier(.2,.8,.2,1), scale .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, filter .3s ease !important;
}
.hero-buttons .btn-consult { position: relative; transform: none !important; }
.hero-diag .hero-label::after, .hero-buttons .btn-consult::after {
  content: "" !important; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
.hero-diag .hero-label:hover::after, .hero-diag .hero-label:focus-visible::after,
.hero-buttons .btn-consult:hover::after, .hero-buttons .btn-consult:focus-visible::after { opacity: 1; animation: hero-shine .7s ease forwards; }

/* 인생진단 라벨 */
.hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible {
  translate: 0 -5px; scale: 1.07; filter: brightness(1.1) saturate(1.1);
  box-shadow: 0 18px 36px rgba(43, 66, 190, .45), 0 0 0 4px rgba(59, 91, 219, .18) !important;
}
.hero-diag .hero-label:hover::before, .hero-diag .hero-label:focus-visible::before { animation: hero-wiggle .5s ease; }

/* 지금 상담받기 */
.hero-buttons .btn-consult:hover, .hero-buttons .btn-consult:focus-visible {
  translate: 0 -5px; scale: 1.06; filter: brightness(1.07) !important;
  box-shadow: 0 18px 34px rgba(255, 106, 77, .5), 0 0 0 5px rgba(255, 140, 70, .18) !important;
}
.hero-buttons .btn-consult:hover i, .hero-buttons .btn-consult:focus-visible i { display: inline-block; animation: hero-wiggle .5s ease; }
.hero-diag .hero-label:active, .hero-buttons .btn-consult:active { translate: 0 -2px; scale: 1.02; }

@media (prefers-reduced-motion: reduce) {
  .hero-diag .hero-label, .hero-buttons .btn-consult { transition: box-shadow .2s, filter .2s !important; }
  .hero-diag .hero-label:hover, .hero-buttons .btn-consult:hover { translate: none; scale: none; }
  .hero-diag .hero-label::after, .hero-buttons .btn-consult::after, .hero-diag .hero-label:hover::before, .hero-buttons .btn-consult:hover i { animation: none !important; }
}

/* 첫 화면 마우스 오버 v2: glow 줄이고 확대를 확실하게 (모든 브라우저에서 되도록 transform 사용) */
.hero-diag .hero-label, .hero-buttons .btn-consult {
  translate: none !important; scale: none !important;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, filter .3s ease !important;
  will-change: transform;
}
.hero-buttons .btn-consult { transform: none !important; }
.hero-diag .hero-label { transform-origin: center; }

/* 인생진단 라벨: 위치(transform) + 확대 */
.hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible {
  transform: translateY(calc(-50% - 6px)) scale(1.13) !important;
  filter: brightness(1.08) !important;
  box-shadow: 0 14px 26px rgba(43, 66, 190, .32) !important;
}
@media (max-width: 991px) {
  .hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible { transform: translate(-50%, calc(-50% - 6px)) scale(1.13) !important; }
}

/* 지금 상담받기: 떠오르며 확대 */
.hero-buttons .btn-consult:hover, .hero-buttons .btn-consult:focus-visible {
  transform: translateY(-6px) scale(1.12) !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 14px 26px rgba(255, 106, 77, .38) !important;
}
.hero-diag .hero-label:active { transform: translateY(calc(-50% - 2px)) scale(1.05) !important; }
.hero-buttons .btn-consult:active { transform: translateY(-2px) scale(1.05) !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-diag .hero-label:hover { transform: translateY(-50%) !important; }
  .hero-buttons .btn-consult:hover { transform: none !important; }
}

/* 첫 화면 마우스 오버 v3: 확대·떠오름 크게 */
.hero-diag .hero-label { z-index: 3; }
.hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible { transform: translateY(calc(-50% - 12px)) scale(1.22) !important; }
@media (max-width: 991px) {
  .hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible { transform: translate(-50%, calc(-50% - 12px)) scale(1.22) !important; }
}
.hero-buttons .btn-consult:hover, .hero-buttons .btn-consult:focus-visible { transform: translateY(-12px) scale(1.2) !important; box-shadow: 0 22px 34px rgba(255, 106, 77, .36) !important; }
.hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible { box-shadow: 0 22px 34px rgba(43, 66, 190, .3) !important; }

/* 첫 화면 마우스 오버 v4: 중간값 (확대 1.15배 · 떠오름 8px) */
.hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible { transform: translateY(calc(-50% - 8px)) scale(1.15) !important; box-shadow: 0 16px 28px rgba(43, 66, 190, .3) !important; }
@media (max-width: 991px) {
  .hero-diag .hero-label:hover, .hero-diag .hero-label:focus-visible { transform: translate(-50%, calc(-50% - 8px)) scale(1.15) !important; }
}
.hero-buttons .btn-consult:hover, .hero-buttons .btn-consult:focus-visible { transform: translateY(-8px) scale(1.15) !important; box-shadow: 0 16px 28px rgba(255, 106, 77, .36) !important; }

/* ---------- 한의원 소개 (첫 화면 바로 아래) ---------- */
.clinic-intro { background: #fbfaf6; padding: 84px 0 80px; border-bottom: 1px solid #efece3; }
.clinic-intro-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.clinic-intro-eyebrow { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .22em; margin: 0 0 12px; }
.clinic-intro h2 { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.45; margin: 0 0 26px; word-break: keep-all; }
.clinic-intro-text { font-size: 17.5px; line-height: 1.95; color: #3b4855; margin: 0 0 14px; word-break: keep-all; }
.clinic-intro-text strong { color: var(--navy); font-weight: 700; }
.clinic-intro-key { display: inline-block; margin: 18px 0 0; padding: 4px 2px; font-size: 18px; font-weight: 700; color: var(--teal-dark); background: linear-gradient(transparent 62%, rgba(15, 148, 136, .14) 62%); word-break: keep-all; }
@media (max-width: 991px) { .clinic-intro { padding: 68px 0 64px; } .clinic-intro h2 { font-size: 28px; } }
@media (max-width: 767px) {
  .clinic-intro { padding: 52px 0 50px; }
  .clinic-intro-inner { text-align: left; }
  .clinic-intro-eyebrow { font-size: 12px; letter-spacing: .16em; }
  .clinic-intro h2 { font-size: 23px; margin-bottom: 18px; }
  .clinic-intro-text { font-size: 15.5px; line-height: 1.85; }
  .clinic-intro-key { font-size: 16px; display: inline; }
}

/* ---------- 주요 진료 분야: 어떤 증상으로 찾으시나요? ---------- */
.symptom-guide { background: #fff; padding: 84px 0 88px; }
.symptom-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.symptom-eyebrow { color: var(--teal); font-size: 14px; font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; }
.symptom-guide h2 { font-size: 32px; font-weight: 800; color: var(--navy); line-height: 1.45; margin: 0 0 14px; word-break: keep-all; }
.symptom-sub { font-size: 17px; line-height: 1.8; color: var(--muted); margin: 0; word-break: keep-all; }
.symptom-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1140px; margin: 0 auto; }
.symptom-card { display: flex; }
.symptom-link { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px 20px; color: inherit; box-shadow: 0 2px 8px rgba(16, 38, 61, .03); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.symptom-link:hover, .symptom-link:focus-visible { text-decoration: none; color: inherit; transform: translateY(-2px); border-color: rgba(15, 148, 136, .5); box-shadow: 0 6px 16px rgba(16, 38, 61, .06); }
.symptom-link:focus-visible { outline: 3px solid rgba(15, 148, 136, .4); outline-offset: 2px; }
.symptom-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); align-items: center; justify-content: center; font-size: 17px; margin-bottom: 14px; }
.symptom-link h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.symptom-link p { font-size: 15px; line-height: 1.7; color: #4a5866; margin: 0 0 16px; word-break: keep-all; }
.symptom-more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--teal-dark); }
.symptom-more i { font-size: 12px; margin-left: 2px; transition: transform .2s; }
.symptom-link:hover .symptom-more i { transform: translateX(3px); }
@media (max-width: 991px) {
  .symptom-guide { padding: 68px 0 72px; }
  .symptom-guide h2 { font-size: 28px; }
  .symptom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .symptom-guide { padding: 52px 0 56px; }
  .symptom-head { margin-bottom: 28px; }
  .symptom-guide h2 { font-size: 23px; }
  .symptom-sub { font-size: 15px; }
  .symptom-grid { grid-template-columns: 1fr; gap: 12px; }
  .symptom-link { padding: 18px 18px 16px; }
  .symptom-link p { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .symptom-link, .symptom-more i { transition: none; } }

/* ---------- 소개 · 주요 진료 분야: 글씨·카드 크게 (가독성) ---------- */
.clinic-intro { padding: 96px 0 92px; }
.clinic-intro-inner { max-width: 900px; }
.clinic-intro-eyebrow { font-size: 15px; }
.clinic-intro h2 { font-size: 40px; margin-bottom: 32px; }
.clinic-intro-text { font-size: 20px; line-height: 1.9; color: #34414e; margin-bottom: 18px; }
.clinic-intro-key { font-size: 27px; font-weight: 800; margin-top: 26px; padding: 4px 6px; }

.symptom-guide { padding: 96px 0 100px; }
.symptom-head { max-width: 820px; margin-bottom: 48px; }
.symptom-eyebrow { font-size: 16px; }
.symptom-guide h2 { font-size: 40px; }
.symptom-sub { font-size: 19px; }
.symptom-grid { max-width: 1240px; gap: 24px; }
.symptom-link { padding: 34px 30px 30px; border-radius: 20px; }
.symptom-icon { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; margin-bottom: 20px; }
.symptom-link h3 { font-size: 26px; margin-bottom: 12px; }
.symptom-link p { font-size: 17.5px; line-height: 1.75; color: #3b4855; margin-bottom: 22px; }
.symptom-more { font-size: 16px; }

@media (max-width: 1199px) {
  .symptom-grid { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
}
@media (max-width: 991px) {
  .clinic-intro h2, .symptom-guide h2 { font-size: 32px; }
  .clinic-intro-text { font-size: 18.5px; }
  .clinic-intro-key { font-size: 23px; }
}
@media (max-width: 767px) {
  .clinic-intro { padding: 60px 0 58px; }
  .clinic-intro h2, .symptom-guide h2 { font-size: 26px; }
  .clinic-intro-text { font-size: 17px; line-height: 1.85; }
  .clinic-intro-key { font-size: 19px; }
  .symptom-guide { padding: 60px 0 64px; }
  .symptom-sub { font-size: 16.5px; }
  .symptom-grid { grid-template-columns: 1fr; gap: 14px; }
  .symptom-link { padding: 24px 22px 22px; }
  .symptom-icon { width: 48px; height: 48px; font-size: 21px; margin-bottom: 14px; }
  .symptom-link h3 { font-size: 22px; }
  .symptom-link p { font-size: 16px; margin-bottom: 14px; }
}

/* 주요 진료 분야: 종류별 한 줄 (2 · 3 · 3) */
.symptom-group { max-width: 1240px; margin: 0 auto 40px; }
.symptom-group:last-child { margin-bottom: 0; }
.symptom-group-label { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font-size: 18px; font-weight: 800; color: var(--teal-dark); }
.symptom-group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.symptom-group .symptom-grid { grid-template-columns: repeat(var(--n), 1fr); max-width: none; }
@media (max-width: 1199px) { .symptom-group .symptom-grid { grid-template-columns: repeat(var(--n), 1fr); max-width: none; } }
@media (max-width: 991px) { .symptom-group .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .symptom-group { margin-bottom: 30px; }
  .symptom-group-label { font-size: 16px; margin-bottom: 12px; }
  .symptom-group .symptom-grid { grid-template-columns: 1fr; }
}

/* ---------- 진료의 시작: 해아림은 무엇을 살펴보나요? ---------- */
.eval-process { background: var(--teal-soft); padding: 96px 0 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eval-head { max-width: 860px; margin: 0 auto 52px; text-align: center; }
.eval-eyebrow { color: var(--teal); font-size: 16px; font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; }
.eval-process h2 { font-size: 40px; font-weight: 800; color: var(--navy); line-height: 1.45; margin: 0 0 16px; word-break: keep-all; }
.eval-sub { font-size: 19px; line-height: 1.85; color: #3b4855; margin: 0; word-break: keep-all; }
.eval-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; counter-reset: none; }
/* 은은한 연결선 (데스크톱) */
.eval-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 52px; height: 2px; background: linear-gradient(90deg, rgba(15,148,136,0), rgba(15,148,136,.25) 12%, rgba(15,148,136,.25) 88%, rgba(15,148,136,0)); z-index: 0; }
.eval-step { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px 30px; }
.eval-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.eval-no { font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--teal); }
.eval-icon { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(15,148,136,.35); background: #fff; color: var(--teal-dark); align-items: center; justify-content: center; font-size: 19px; }
.eval-step h3 { font-size: 23px; font-weight: 800; color: var(--navy); line-height: 1.4; margin: 0 0 12px; word-break: keep-all; }
.eval-step p { font-size: 17px; line-height: 1.8; color: #3b4855; margin: 0; word-break: keep-all; }
.eval-key { max-width: 860px; margin: 44px auto 0; padding: 18px 26px; border-left: 4px solid var(--teal); background: #fff; border-radius: 0 14px 14px 0; font-size: 22px; font-weight: 800; line-height: 1.6; color: var(--teal-dark); word-break: keep-all; }
@media (max-width: 1199px) {
  .eval-steps { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
  .eval-steps::before { display: none; }
}
@media (max-width: 991px) {
  .eval-process { padding: 72px 0; }
  .eval-process h2 { font-size: 32px; }
  .eval-sub { font-size: 17.5px; }
  .eval-key { font-size: 19px; }
}
@media (max-width: 767px) {
  .eval-process { padding: 58px 0 60px; }
  .eval-head { margin-bottom: 32px; }
  .eval-process h2 { font-size: 26px; }
  .eval-sub { font-size: 16.5px; }
  .eval-sub br, .eval-key br { display: none; }
  .eval-steps { grid-template-columns: 1fr; gap: 14px; }
  .eval-step { padding: 24px 22px; }
  .eval-step h3 { font-size: 21px; }
  .eval-step p { font-size: 16px; }
  .eval-key { margin-top: 30px; padding: 16px 18px; font-size: 18px; }
}

/* 주요 진료 분야 카드: 크기 줄이고 모두 같은 폭(3칸 기준), 아이콘은 크게 */
.symptom-group .symptom-grid { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0; gap: 20px; }
.symptom-group { max-width: 1080px; }
.symptom-link { padding: 26px 24px 22px; border-radius: 18px; }
.symptom-icon { width: 68px; height: 68px; border-radius: 18px; font-size: 30px; margin-bottom: 16px; }
.symptom-link h3 { font-size: 22px; margin-bottom: 8px; }
.symptom-link p { font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.symptom-more { font-size: 15px; }
@media (max-width: 991px) { .symptom-group .symptom-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .symptom-group .symptom-grid { grid-template-columns: 1fr; gap: 12px; }
  .symptom-link { padding: 22px 20px 18px; }
  .symptom-icon { width: 58px; height: 58px; font-size: 26px; margin-bottom: 12px; }
  .symptom-link h3 { font-size: 20px; }
  .symptom-link p { font-size: 15.5px; margin-bottom: 12px; }
}

/* =========================================================
   질환 페이지 v3 (SEO·AEO): 정의 · 대표 증상 · 관련 질환 · 콘텐츠 · 작성·검토
   ========================================================= */
.dz-answer { background: #fff; padding: 64px 0 56px; }
.dz-answer-inner { max-width: 860px; margin: 0 auto; }
.dz-answer h2 { font-size: 30px; font-weight: 800; color: var(--navy); margin: 0 0 16px; word-break: keep-all; }
.dz-answer p { font-size: 18.5px; line-height: 1.95; color: #34414e; margin: 0; padding-left: 18px; border-left: 3px solid var(--teal); word-break: keep-all; }

.sign-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 18px; max-width: 1140px; margin: 0 auto; }
.sign-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.sign-card h3 { font-size: 19px; font-weight: 800; color: var(--teal-dark); margin: 0 0 10px; word-break: keep-all; }
.sign-card p { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0; word-break: keep-all; }

.dz-related { max-width: 1000px; margin: 30px auto 0; padding: 20px 24px; background: var(--teal-soft); border-radius: 14px; }
.dz-related-title { font-size: 15px; font-weight: 800; color: var(--teal-dark); margin: 0 0 10px; }
.dz-related li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 0; font-size: 16px; color: var(--ink); border-top: 1px dashed rgba(15,148,136,.25); }
.dz-related li:first-child { border-top: none; }
.dz-related a { font-weight: 800; color: var(--teal-dark); }

.dz-steps-note { margin: 22px auto 0; max-width: 760px; font-size: 14.5px; color: var(--muted); word-break: keep-all; }
.dz-sub { font-size: 21px; font-weight: 800; color: var(--navy); margin: 38px 0 18px; display: flex; align-items: center; gap: 12px; }
.dz-sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dz-contents .heading + .dz-sub { margin-top: 0; }

.dz-author { background: #fff; padding: 40px 0 10px; }
.author-card { max-width: 860px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; }
.author-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--teal-light); flex: none; }
.author-label { font-size: 13px; font-weight: 700; color: var(--teal); margin: 0 0 2px; }
.author-name { font-size: 16px; color: var(--ink); margin: 0 0 4px; }
.author-name strong { color: var(--navy); }
.author-links { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.author-links a { font-weight: 700; color: var(--teal-dark); }
.author-date { color: var(--muted); }
.dz-refs { max-width: 860px; margin: 22px auto 0; font-size: 14px; color: var(--muted); }
.dz-refs-title { font-size: 16px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }

/* 체크리스트: 자체 문항은 단계 대신 체크 수 (중립 색) */
.gauge-plain { background: #e9eef1; }
.score-gauge.lv-count .gauge-fill { background: var(--teal); }
.score-gauge.lv-count .gauge-level { color: var(--teal-dark); }
.checklist-result.lv-count { border-color: rgba(15,148,136,.35); background: var(--teal-soft); }
.checklist-result.lv-count .result-bar span { background: var(--teal); }

@media (max-width: 991px) { .sign-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .dz-answer { padding: 44px 0 40px; }
  .dz-answer h2 { font-size: 23px; }
  .dz-answer p { font-size: 16.5px; padding-left: 14px; }
  .sign-grid { grid-template-columns: 1fr; gap: 12px; }
  .sign-card { padding: 20px 18px; }
  .dz-related { padding: 16px 18px; }
  .author-card { align-items: flex-start; padding: 16px; }
  .author-photo { width: 52px; height: 52px; }
}
.dz-hero-img { height: auto; aspect-ratio: 4 / 3; }

/* 주요 진료 분야 카드: 사진 + 가로형으로 작게 (질환명 글자는 크게 유지) */
.symptom-group .symptom-grid { gap: 16px; }
.symptom-link { flex-direction: row; align-items: center; gap: 18px; padding: 16px 20px 16px 16px; border-radius: 16px; }
.symptom-photo { flex: none; width: 108px; height: 108px; border-radius: 12px; object-fit: cover; background: var(--teal-light); }
.symptom-text { display: flex; flex-direction: column; min-width: 0; }
.symptom-link h3 { font-size: 23px; margin: 0 0 4px; }
.symptom-link p { font-size: 14.5px; line-height: 1.6; margin: 0 0 6px; color: #4a5866; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.symptom-more { font-size: 14px; margin-top: 0; }
.symptom-link:hover .symptom-photo { filter: brightness(1.04); }
@media (max-width: 767px) {
  .symptom-link { gap: 14px; padding: 12px 14px 12px 12px; }
  .symptom-photo { width: 88px; height: 88px; border-radius: 10px; }
  .symptom-link h3 { font-size: 20px; }
  .symptom-link p { font-size: 14px; }
}
.symptom-link p { -webkit-line-clamp: 3; }
@media (max-width: 767px) { .dz-hero-title br { display: none; } }

/* 섹션 소제목 위 영문 서브 문구: 사이트 전체 같은 스타일 */
.section-eyebrow, .clinic-intro-eyebrow, .symptom-eyebrow, .eval-eyebrow, .books-eyebrow, .dz-eyebrow-sm {
  display: block; margin: 0 0 12px; padding: 0; background: none;
  font-size: 14px !important; font-weight: 800; letter-spacing: .2em; line-height: 1.4;
  color: var(--teal) !important; text-transform: uppercase; word-break: keep-all;
}
.books-eyebrow::before, .books-eyebrow::after { content: none !important; display: none !important; }
@media (max-width: 767px) {
  .section-eyebrow, .clinic-intro-eyebrow, .symptom-eyebrow, .eval-eyebrow, .books-eyebrow, .dz-eyebrow-sm { font-size: 12.5px !important; letter-spacing: .16em; margin-bottom: 10px; }
}

/* 공동 저서: 마우스 오버를 부드럽게 (카드는 제자리, 표지만 확대 → 깜빡임 없음) */
.book-card { transform: none !important; transition: box-shadow .5s cubic-bezier(.22,.61,.36,1) !important; }
.book-card:hover { transform: none !important; box-shadow: 0 22px 46px rgba(16, 38, 61, .13); }
.book-card .book-cover { will-change: transform; backface-visibility: hidden; transform: translateZ(0) scale(1); transition: transform .6s cubic-bezier(.22,.61,.36,1), box-shadow .6s cubic-bezier(.22,.61,.36,1) !important; }
.book-card:hover .book-cover, .book-cover-wrap:focus-visible .book-cover { transform: translateZ(0) scale(1.07) !important; box-shadow: -6px 0 0 rgba(0,0,0,.08) inset, 16px 22px 38px rgba(16, 38, 61, .28); }
.book-card .book-cover img { backface-visibility: hidden; }
.book-links .book-clinic { font-size: 15px; }

/* 학술 섹션 제목 키우기 · 강조 문장은 한 문장으로 */
#academic .heading h2 { font-size: 40px; }
#academic .academic-highlight { font-size: 23px; font-weight: 700; line-height: 1.6; max-width: 900px; margin: -6px auto 38px; word-break: keep-all; }
@media (max-width: 991px) { #academic .heading h2 { font-size: 32px; } #academic .academic-highlight { font-size: 20px; } }
@media (max-width: 767px) { #academic .heading h2 { font-size: 26px; } #academic .academic-highlight { font-size: 17px; } }
.pc-br { display: inline; } @media (max-width: 767px) { .pc-br { display: none; } }

/* 질환 정의 아래 인포그래픽 */
.dz-info { max-width: 960px; margin: 34px auto 0; }
.dz-info img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 12px 32px rgba(16, 38, 61, .08); background: var(--teal-soft); }
@media (max-width: 767px) { .dz-info { margin-top: 24px; } .dz-info img { border-radius: 14px; } }
.dz-info { max-width: 760px; }

/* =========================================================
   design-geo: 메인 StoryBrand 정리
   ========================================================= */
/* 상담 버튼 아래 작은 안내: 휴대폰에서만 (PC 는 상담 방법 선택창) */
.cta-note { display: none; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.cta-note-light { color: rgba(255,255,255,.85); }
@media (hover: none), (pointer: coarse) { .cta-note { display: block; } }
.hero-slogan .cta-note { text-align: inherit; }

/* 학술: 핵심 사실 + 대표 논문 3편 */
.academic-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; max-width: 1000px; margin: -18px auto 36px; }
.academic-facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 15.5px; font-weight: 700; color: var(--navy); }
.academic-facts i { color: var(--teal); margin-right: 4px; }
.paper-home { max-width: 1000px; margin: 40px auto 0; }
.paper-home-title { font-size: 21px; font-weight: 800; color: var(--navy); margin: 0 0 18px; text-align: center; }
.paper-home-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.paper-home-row > * { width: auto !important; max-width: none !important; flex: none !important; margin: 0 !important; }

/* 원하는 일상 (Success) */
.success-band { background: linear-gradient(180deg, #fffaf2, #fff); padding: 88px 0 84px; border-top: 1px solid #f1eadc; }
.success-head { text-align: center; margin-bottom: 36px; }
.success-band h2 { font-size: 38px; font-weight: 800; color: var(--navy); margin: 0; word-break: keep-all; }
.success-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.success-list li { background: #fff; border: 1px solid #f1eadc; border-radius: 18px; padding: 26px 24px; text-align: center; }
.success-icon { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; background: #fff4e6; color: var(--orange); align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.success-group { display: block; font-size: 13px; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.success-list h3 { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.5; margin: 0; word-break: keep-all; }
.success-body { text-align: center; font-size: 18px; color: var(--ink); margin: 30px 0 0; word-break: keep-all; }

/* 홈 FAQ */
.home-faq { max-width: 860px; margin: 0 auto; }

/* 네이버 예약: 보조 버튼 */
.btn-naver-outline { background: #fff; border: 1.5px solid #03c75a; color: #03a94d !important; font-weight: 700; margin-top: 10px; }
.btn-naver-outline:hover, .btn-naver-outline:focus { background: #f0fbf4; color: #03a94d !important; }

@media (max-width: 991px) { .paper-home-row { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } }
@media (max-width: 767px) {
  .academic-facts { margin-top: -10px; } .academic-facts li { font-size: 14px; padding: 8px 14px; }
  .paper-home-row { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .success-band { padding: 60px 0; } .success-band h2 { font-size: 26px; }
  .success-list { grid-template-columns: 1fr; gap: 12px; } .success-list li { padding: 20px; }
  .success-list h3 { font-size: 18px; } .success-body { font-size: 16px; }
}
@media (max-width: 767px) {
  .success-list li { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; text-align: left; padding: 16px 18px; }
  .success-icon { grid-row: 1 / 3; width: 48px; height: 48px; font-size: 19px; margin: 0; }
  .success-group { margin: 0; }
  .success-list h3 { font-size: 17px; }
}
/* 원인을 모르면: 4개 → 가로 2개씩 */
#problems .problem-grid { grid-template-columns: repeat(2, 1fr) !important; max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 767px) { #problems .problem-grid { grid-template-columns: 1fr 1fr !important; } }
/* 학술 핵심 사실: 한 줄에 1개씩, 모두 같은 폭으로 세로 정렬 */
.academic-facts { display: grid !important; grid-template-columns: minmax(0, max-content); justify-content: center; gap: 10px; }
.academic-facts li { text-align: left; }
@media (max-width: 767px) { .academic-facts { grid-template-columns: 1fr; } }
/* 원인을 모르면: 위(진료 분야·흰색)·아래(해아림이 살피는 것·민트)와 구분되는 연회색 배경, 카드는 흰색 */
#problems { background: #f4f6f8 !important; border-top: 1px solid #e8edf1; }
#problems .problem-card { background: #fff; box-shadow: 0 4px 14px rgba(16, 38, 61, .05); }

/* 해아림 인생진단 (메인): 딥블루 브랜드 개념으로 전면 서술 */
.life-feature { background: linear-gradient(180deg, #f3f5fe 0%, #f8faff 60%, #fff 100%) !important; border-top: 1px solid #e3e8fb; }
.life-feature .section-eyebrow { color: #3b5bdb !important; }
.life-title { display: inline-flex; align-items: center; gap: 14px; font-size: 46px !important; font-weight: 800; color: #1c2f8f !important; letter-spacing: -0.01em; margin-bottom: 18px !important; }
.life-title i { font-size: .72em; width: 1.5em; height: 1.5em; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--life-grad); color: #fff; box-shadow: 0 10px 24px var(--life-glow); }
.life-lead-key { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.life-sub { font-size: 20px !important; color: #34414e !important; }
.life-sub strong { color: #1c2f8f; font-weight: 800; background: linear-gradient(transparent 62%, rgba(59, 91, 219, .14) 62%); padding: 0 2px; }
.life-formula-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 900px; margin: 0 auto 56px; padding: 22px 24px; background: #fff; border: 1.5px solid rgba(59, 91, 219, .25); border-radius: 18px; font-size: 18px; font-weight: 700; color: var(--navy); }
.life-formula-row span { background: #eef2ff; border-radius: 10px; padding: 8px 16px; }
.life-formula-row i { color: #3b5bdb; font-size: 14px; }
.life-formula-row strong { background: var(--life-grad); color: #fff; border-radius: 10px; padding: 8px 18px; }
.life-steps-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 26px; }
.life-feature .eval-no { color: #3b5bdb; }
.life-feature .eval-icon { border-color: rgba(59, 91, 219, .35); color: #1c2f8f; }
.life-feature .eval-steps::before { background: linear-gradient(90deg, rgba(59,91,219,0), rgba(59,91,219,.22) 12%, rgba(59,91,219,.22) 88%, rgba(59,91,219,0)); }
.life-feature .eval-step h4 { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1.4; margin: 0 0 10px; word-break: keep-all; }
.life-feature .eval-step p { font-size: 16.5px; line-height: 1.75; color: #3b4855; margin: 0; word-break: keep-all; }
.life-feature .more-link { margin-top: 40px; }
.life-feature .btn-teal-outline { border-color: #3b5bdb; color: #1c2f8f !important; }
.life-feature .btn-teal-outline:hover { background: #3b5bdb; color: #fff !important; }
/* 첫 화면: 인생진단 상자를 뺀 뒤 제목과 버튼 사이 간격 */
.hero-slogan h1 { margin-bottom: 34px; }
@media (max-width: 991px) { .life-title { font-size: 38px !important; } .life-lead-key { font-size: 22px; } .life-sub { font-size: 18px !important; } }
@media (max-width: 767px) {
  .life-title { font-size: 30px !important; gap: 10px; } .life-lead-key { font-size: 19px; } .life-sub { font-size: 16px !important; }
  .life-formula-row { font-size: 15px; padding: 16px; gap: 8px; margin-bottom: 36px; } .life-formula-row span, .life-formula-row strong { padding: 6px 10px; }
  .life-steps-title { font-size: 19px; } .life-feature .eval-step h4 { font-size: 20px; }
}
/* 학술 사진: 3장을 가로 한 줄로 같은 크기 (공간 줄이기) */
.academic-photos { grid-template-columns: repeat(3, 1fr) !important; grid-template-rows: none !important; height: auto !important; gap: 16px; }
.academic-photo, .academic-photo.is-main { grid-row: auto !important; aspect-ratio: 4 / 3; }
.academic-photo figcaption, .academic-photo.is-main figcaption { font-size: 15px !important; padding: 40px 16px 14px !important; }
@media (max-width: 767px) {
  .academic-photos { grid-template-columns: 1fr !important; gap: 12px; }
  .academic-photo, .academic-photo.is-main { aspect-ratio: 16 / 9; }
}
@media (max-width: 767px) { .academic-photo.is-main { grid-column: auto !important; } }
/* 학술: 강연 사진·논문 소제목, 홈 논문 넘기기 (카드 작게) */
#academic .paper-home-title { font-size: 21px; font-weight: 800; color: var(--navy); text-align: center; margin: 0 0 18px; }
#academic .academic-photos + * { margin-top: 0; }
.paper-home { max-width: 1140px; margin-top: 46px; }
.paper-scroller-home .paper-track .paper-card { flex: 0 0 150px; }
.paper-scroller-home .paper-track .paper-title { font-size: 13.5px; line-height: 1.5; }
@media (max-width: 767px) { .paper-scroller-home .paper-track .paper-card { flex-basis: 128px; } }
.paper-home { margin-top: 60px !important; }
/* 학술: 사진과 '대표 논문' 사이 여백 */
.paper-home { margin-top: 72px !important; }

/* 공동 저서: 카드 작게 */
.book-row { max-width: 900px !important; gap: 24px !important; }
.book-card { padding: 16px 16px 22px !important; border-radius: 18px !important; }
.book-cover-wrap { padding: 24px 20px !important; border-radius: 14px !important; }
.book-card .book-cover { width: auto !important; max-width: 150px !important; }
.book-card .book-info { padding: 18px 12px 0 !important; }
.book-title { font-size: 21px !important; }
.book-topic { font-size: 13px !important; margin-bottom: 10px !important; }
.book-desc { font-size: 15px !important; line-height: 1.7 !important; margin-bottom: 12px !important; }
.books-head { margin: 56px auto 26px !important; }
.books-head .books-title { font-size: 30px !important; }
.books-sub { font-size: 16px !important; }

/* 맞춤 한약 카드: 높이 줄이기 (사진 높이 고정) */
.care-core { max-width: 900px !important; grid-template-columns: 1fr 1fr !important; margin-bottom: 40px !important; }
.care-core .care-img { min-height: 0 !important; height: 280px; aspect-ratio: auto !important; }
.care-core .care-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.care-core .care-text { padding: 28px 32px !important; }
.care-core h3 { font-size: 24px !important; }
.care-core .care-short { font-size: 16.5px !important; }
@media (max-width: 991px) { .care-core { grid-template-columns: 1fr !important; } .care-core .care-img { height: 220px; } }
@media (max-width: 767px) {
  .book-cover-wrap { padding: 18px !important; } .book-card .book-cover { max-width: 120px !important; }
  .book-title { font-size: 19px !important; } .books-head .books-title { font-size: 25px !important; }
  .care-core .care-img { height: 200px; } .care-core .care-text { padding: 22px 20px !important; }
}

/* =========================================================
   메인 섹션 배경: 이웃한 섹션끼리 색이 겹치지 않게 순서대로 지정
   첫 화면(민트) → 소개(아이보리) → 진료 분야(흰색) → 문제(연회색) → 인생진단(연파랑)
   → 원장 공감(흰색) → 학술(민트) → 치료(흰색) → 진료 과정(연회색) → 원하는 일상(따뜻한 아이보리)
   → 칼럼(흰색) → 유튜브(민트) → FAQ(흰색) → 공간(연회색) → 오시는 길(민트) → 마무리(사진)
   ========================================================= */
#intro { background: #fbfaf6 !important; }
#symptoms { background: #fff !important; }
#problems { background: #f4f6f8 !important; }
#guide { background: #fff !important; }
#academic { background: var(--teal-soft) !important; }
#care { background: #fff !important; }
#plan { background: #f4f6f8 !important; }
#column { background: #fff !important; }
#video { background: var(--teal-soft) !important; }
#home-faq { background: #fff !important; }
#space { background: #f4f6f8 !important; }
#location { background: var(--teal-soft) !important; }
/* 경계선: 흰색 섹션이 밝은 배경과 맞닿을 때도 구분되도록 */
#symptoms, #guide, #care, #column, #home-faq { border-top: 1px solid #eef1f3; }
/* 마무리(사진 위 흰 글씨)의 영문 서브 문구는 밝게 */
#cta .section-eyebrow { color: rgba(255,255,255,.85) !important; }
/* 원장 공감 영역: 왼쪽 정렬 문단에 맞춰 서브 문구도 왼쪽 */
#guide .section-eyebrow { text-align: left; }
@media (max-width: 991px) { #guide .section-eyebrow { text-align: center; } }

/* 강연 사진: 옆으로 넘겨 보기 (한 화면에 3장) */
.photo-scroller { max-width: 1140px; margin: 0 auto; }
.photo-track { display: flex !important; gap: 16px !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 10px; height: auto !important; grid-template-columns: none !important; }
.photo-track::-webkit-scrollbar { height: 6px; }
.photo-track::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }
.photo-track .academic-photo { flex: 0 0 calc((100% - 32px) / 3); aspect-ratio: 4 / 3; scroll-snap-align: start; grid-column: auto !important; }
@media (max-width: 991px) { .photo-track .academic-photo { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 767px) { .photo-track .academic-photo { flex-basis: 82%; aspect-ratio: 4 / 3; } }
/* 숫자(강연 횟수·논문 개수) 표시 없이 넘기기 버튼만 오른쪽에 */
.paper-scroller-head { justify-content: flex-end !important; }
.paper-home .paper-area { margin-top: 0; }
.hero-eyebrow-key { color: #1c2f8f; font-weight: 800; }

/* 원하는 일상: 카드 위쪽에 사진 */
.success-list li.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-align: center; box-shadow: 0 10px 28px rgba(16, 38, 61, .07); }
.success-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fff4e6; }
.success-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.success-list li.has-photo:hover .success-photo img { transform: scale(1.04); }
.success-list li.has-photo .success-text { padding: 20px 20px 24px; }
.success-list li.has-photo h3 { font-size: 19px; }
@media (max-width: 767px) {
  .success-list li.has-photo { display: flex !important; grid-template-columns: none !important; text-align: center; }
  .success-list li.has-photo .success-text { padding: 16px 16px 20px; }
  .success-list li.has-photo h3 br { display: none; }
}
/* 원하는 일상 카드: 사진 아래 글 영역을 세로 가운데 정렬 (카드 높이는 같게) */
.success-list li.has-photo .success-text { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* 조원장 유튜브: 분류 버튼 + 카드 */
.video-cats { justify-content: center; margin: 0 auto 30px; }
.video-row { display: flex; flex-wrap: wrap; }
.video-row::before, .video-row::after { display: none; }
.video-col { margin-bottom: 26px; }
.video-col[hidden] { display: none; }
.video-cat { color: var(--orange); font-weight: 800; font-size: 13px; margin: 0 0 6px; }
.video-board .write-bar { margin-top: 6px; }

/* =========================================================
   체크리스트 v3: 위 = 응답 진행률, 결과 = 심각도 구간 게이지
   ========================================================= */
.progress-gauge .gauge-pct { font-size: 26px; font-weight: 800; color: var(--navy); }
.gauge-progress { background: #e9eef1 !important; }
.gauge-progress .gauge-fill { background: var(--teal); }
.progress-gauge.is-complete .gauge-score { color: var(--teal-dark); }
.progress-gauge.is-complete .gauge-pct { color: var(--teal-dark); }

.sev-gauge { max-width: 520px; margin: 6px auto 16px; }
.sev-bar { position: relative; height: 16px; border-radius: 999px; overflow: visible;
  background: linear-gradient(90deg, #dff2ee 0 var(--p1), #fff4d6 var(--p1) var(--p2), #ffe6cf var(--p2) var(--p3), #fde0db var(--p3) 100%); }
.sev-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--teal); opacity: .9; transition: width .35s, background .35s; }
.sev-bar .gauge-tick { background: #fff; }
.sev-marker { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin-left: -11px; transform: translateY(-50%); border-radius: 50%; background: #fff; border: 4px solid var(--teal); box-shadow: 0 3px 8px rgba(16,38,61,.2); transition: left .35s, border-color .35s; }
.sev-gauge .gauge-zones { font-size: 12px; margin-top: 8px; }
.checklist-result.lv2-tone .sev-fill { background: #e9b93a; } .checklist-result.lv2-tone .sev-marker { border-color: #e9b93a; }
.checklist-result.lv3-tone .sev-fill { background: var(--orange); } .checklist-result.lv3-tone .sev-marker { border-color: var(--orange); }
.checklist-result.lv4-tone .sev-fill { background: #e5533d; } .checklist-result.lv4-tone .sev-marker { border-color: #e5533d; }
.checklist-result.is-pending .sev-marker { opacity: .5; }

/* 체크리스트 결과 상담 버튼: 중간 단계부터 두근두근, 심한 단계는 조금 더 크게 */
@keyframes consult-heartbeat {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.05) translateZ(0); }
}
@keyframes consult-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,61,.45), 0 6px 18px rgba(255,122,61,.3); }
  50% { box-shadow: 0 0 0 10px rgba(255,122,61,0), 0 0 20px 4px rgba(255,122,61,.45); }
}
@keyframes consult-heartbeat-strong {
  0%, 100% { transform: scale(1) translateZ(0); }
  50% { transform: scale(1.09) translateZ(0); }
}
@keyframes consult-glow-strong {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,61,.55), 0 6px 18px rgba(255,122,61,.35); }
  50% { box-shadow: 0 0 0 14px rgba(255,122,61,0), 0 0 28px 6px rgba(255,122,61,.6); }
}
.checklist-result .btn-consult.pulse-mid {
  animation: consult-heartbeat 1.8s ease-in-out infinite, consult-glow 1.8s ease-in-out infinite;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}
.checklist-result .btn-consult.pulse-strong {
  animation: consult-heartbeat-strong 1.4s ease-in-out infinite, consult-glow-strong 1.4s ease-in-out infinite;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}
.checklist-result .btn-consult.pulse-mid:hover,
.checklist-result .btn-consult.pulse-strong:hover { animation-play-state: paused; }

/* =========================================================
   치료후기: 썸네일형 회원 전용 게시판 + 로그인 안내 창
   ========================================================= */
.review-notice { display: flex; align-items: center; gap: 18px; padding: 22px 26px; margin-bottom: 30px; border-radius: 18px; background: var(--teal-soft); border: 1px solid rgba(15,148,136,.25); }
.review-notice-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--teal); font-size: 22px; box-shadow: 0 4px 12px rgba(15,148,136,.15); }
.review-notice strong { display: block; font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.review-notice p { margin: 0; color: var(--muted); }
.review-notice > div { flex: 1; }
.review-notice .btn { flex: none; border-radius: 999px; }
.review-board .board-cats { margin-bottom: 22px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review-card { display: flex; flex-direction: column; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.review-card[hidden] { display: none; }
.review-card:hover, .review-card:focus-visible { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(16,38,61,.12); border-color: rgba(15,148,136,.4); outline: none; }
.review-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #dff2ee, #b9e3db); }
.review-thumb-ear { background: linear-gradient(135deg, #e3eefb, #bcd6f3); }
.review-thumb-mind { background: linear-gradient(135deg, #ece8fb, #d2c9f2); }
.review-thumb-icon { font-size: 76px; color: rgba(255,255,255,.85); filter: drop-shadow(0 6px 14px rgba(16,38,61,.12)); transition: transform .35s; }
.review-card:hover .review-thumb-icon { transform: scale(1.1); }
.review-lock { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(16,38,61,.72); color: #fff; font-size: 13px; font-weight: 700; }
.review-lock i { margin-right: 3px; }
.review-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.review-cat { color: var(--orange); font-weight: 800; font-size: 13px; }
.review-title { font-size: 18px; color: var(--navy); }
.review-meta { color: var(--muted); font-size: 14px; }
.review-meta i { margin-right: 4px; }
.review-sample-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }

.login-dialog { max-width: 420px; text-align: center; padding: 40px 32px 30px; }
.login-icon { display: inline-flex; width: 60px; height: 60px; border-radius: 50%; align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal); font-size: 24px; margin-bottom: 14px; }
.login-dialog h2 { font-size: 24px; margin: 0 0 8px; color: var(--navy); }
.login-lead { color: var(--muted); margin-bottom: 22px; }
.login-buttons { display: flex; flex-direction: column; gap: 10px; }
.login-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; border-radius: 12px; border: 1px solid transparent; font-size: 16px; font-weight: 700; transition: filter .2s; }
.login-btn:hover { filter: brightness(.96); }
.login-kakao { background: #FEE500; color: rgba(0,0,0,.85); }
.login-naver { background: #03C75A; color: #fff; }
.naver-n { font-family: Arial, sans-serif; font-weight: 900; font-size: 18px; }
.login-google { background: #fff; color: #333; border-color: #dadce0; }
.login-google i { color: #4285F4; }
.login-status { margin: 14px 0 0; padding: 10px; border-radius: 10px; background: #fff7ee; color: #b4561c; font-size: 14px; font-weight: 600; }
.login-terms { margin: 16px 0 6px; font-size: 13px; color: var(--muted); }
.login-alt { margin: 0; font-size: 14px; }
.login-alt a { color: var(--teal); font-weight: 700; text-decoration: underline; }

@media (max-width: 991px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .review-notice { flex-direction: column; text-align: center; padding: 22px 18px; }
  .review-notice .btn { width: 100%; }
  .review-grid { gap: 14px; }
  .review-thumb-icon { font-size: 52px; }
  .review-lock { top: 8px; right: 8px; padding: 4px 9px; font-size: 11px; }
  .review-body { padding: 12px 14px 14px; }
  .review-title { font-size: 15px; }
  .review-meta { font-size: 12px; }
  .login-dialog { padding: 34px 20px 24px; }
}

/* 스크롤하면 내용이 떠오르며 나타나는 효과 (static/js/reveal.js 가 붙임) */
.rv { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1) !important; }
.rv.rv-in { opacity: 1; transform: none; }

/* =========================================================
   해아림 소개 페이지: 섹션마다 배경·글자색을 달리해 구분 (흰 → 사진 → 남색 → 민트 → 흰 → 크림 → 하늘 → 흰 → 남색)
   ========================================================= */

/* 원칙: 짙은 남색 띠 (집중 구간) */
.about-page #principles { background: radial-gradient(circle at 85% 10%, rgba(15,148,136,.35), transparent 45%), linear-gradient(135deg, #10263d 0%, #0f3447 100%) !important; }
.about-page #principles h2 { color: #fff; }
.about-page #principles .section-eyebrow { color: #6fd8c9; }
.about-page #principles .heading h2::after { background: #6fd8c9; }
.about-page #principles .principle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.about-page #principles .principle h4 { color: #fff; }
.about-page #principles .principle p { color: #c3d2df; }
.about-page #principles .principle-no { background: var(--orange); }

/* 원장 소개: 위에서 아래로 옅어지는 민트 */
.about-page #doctor { background: linear-gradient(180deg, #e6f5f2 0%, #f6fbfa 35%, #fff 100%) !important; }
/* 학술: 흰 바탕 */
.about-page #academic { background: #fff !important; border-top: 1px solid var(--line); }
/* 진료 안내: 따뜻한 크림 + 주황 포인트 */
.about-page #visit { background: #fbf5ec !important; }
.about-page #visit .section-eyebrow { color: var(--orange); }
.about-page #visit .heading h2::after { background: var(--orange); }
/* 치료 안내: 옅은 하늘색 */
.about-page #care { background: #eef4fb !important; }
.about-page #care .section-eyebrow { color: #2f6fb0; }
.about-page #care .heading h2::after { background: #2f6fb0; }
/* 오시는 길: 흰 바탕 */
.about-page #location { background: #fff !important; }
/* 공간 안내: 짙은 남색 띠 (사진이 돋보이게) */
.about-page #space { background: linear-gradient(135deg, #10263d 0%, #0f3447 100%) !important; }
.about-page #space h2 { color: #fff; }
.about-page #space .section-eyebrow { color: #6fd8c9; }
.about-page #space .heading h2::after { background: #6fd8c9; }
.about-page #space .space-item { box-shadow: 0 12px 28px rgba(0,0,0,.25); }

/* 원장 소개 › "그래서 저는 이렇게 진료합니다" + 인생진단: 화면 가득 남청색 띠로 강조 */
#doctor { overflow-x: clip; }
#doctor .doc-way { position: relative; isolation: isolate; padding: 76px 0 84px; margin-bottom: 80px; }
#doctor .doc-way::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(circle at 12% 15%, rgba(111,216,201,.22), transparent 40%), radial-gradient(circle at 90% 90%, rgba(120,140,255,.28), transparent 45%), linear-gradient(135deg, #13285a 0%, #1c3a8c 100%); }
#doctor .doc-way .doc-sub { color: #fff; }
#doctor .doc-way-list li { border: none; box-shadow: 0 16px 36px rgba(6,16,45,.28); transition: transform .3s; }
#doctor .doc-way-list li:hover { transform: translateY(-6px); }
#doctor .doc-way-no { color: #3b5bdb; opacity: 1; }
#doctor .doc-formula { margin-top: 56px; border: none; box-shadow: 0 16px 36px rgba(6,16,45,.28); }
#doctor .doc-formula-label { box-shadow: 0 8px 20px rgba(6,16,45,.35); }
@media (max-width: 767px) { #doctor .doc-way { padding: 54px 0 60px; margin-bottom: 56px; } #doctor .doc-formula { margin-top: 46px; } }

/* 메인 › 해아림 인생진단: 짙은 남청색 배경으로 강조 */
.life-feature { background: radial-gradient(circle at 10% 8%, rgba(111,216,201,.18), transparent 38%), radial-gradient(circle at 92% 85%, rgba(120,140,255,.3), transparent 45%), linear-gradient(135deg, #13285a 0%, #1c3a8c 100%) !important; border-top: none; color: #fff; }
.life-feature .section-eyebrow { color: #a9bbff !important; }
.life-feature .life-title { color: #fff !important; }
.life-feature .life-title i { background: #fff; color: #1c3a8c; box-shadow: 0 10px 28px rgba(0,0,0,.3); }
.life-feature .life-lead-key { color: #fff; }
.life-feature .life-sub { color: #cdd6f6 !important; }
.life-feature .life-sub strong { color: #fff; background: linear-gradient(transparent 60%, rgba(111,216,201,.45) 60%); }
.life-feature .life-formula-row { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px); }
.life-feature .life-formula-row span { background: rgba(255,255,255,.12); }
.life-feature .life-formula-row i { color: #6fd8c9; }
.life-feature .life-formula-row strong { background: #fff; color: #1c2f8f; }
.life-feature .life-steps-title { color: #fff; }
.life-feature .eval-step { border: none; box-shadow: 0 16px 36px rgba(6,16,45,.3); }
.life-feature .eval-steps::before { background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35) 12%, rgba(255,255,255,.35) 88%, rgba(255,255,255,0)); }
.life-feature .btn-teal-outline { background: transparent; border: 1.5px solid #fff; color: #fff !important; }
.life-feature .btn-teal-outline:hover, .life-feature .btn-teal-outline:focus { background: #fff; color: #1c2f8f !important; }

/* =========================================================
   해아림 인생진단 공통 색: 짙은 남청색 (메인 인생진단 · 원장 소개 진료 방식 · 인생진단 페이지 · 진료 안내 인생진단 상자)
   ========================================================= */
:root { --life-dark: radial-gradient(circle at 10% 8%, rgba(111,216,201,.18), transparent 38%), radial-gradient(circle at 92% 85%, rgba(120,140,255,.3), transparent 45%), linear-gradient(135deg, #13285a 0%, #1c3a8c 100%); }

/* 인생진단 페이지: 블록마다 화면 가득 띠 */
.life-page { overflow-x: clip; padding-top: 0 !important; }
.life-band { position: relative; isolation: isolate; padding: 72px 0 78px; margin-bottom: 72px; }
.life-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); }
.life-band-dark::before { background: var(--life-dark); }
.life-band-tint::before { background: #f1f4fe; }
.life-page .life-intro.life-band { max-width: none; padding-top: 84px; }
.life-page .life-intro > * { max-width: 880px; margin-left: auto; margin-right: auto; }

/* 진한 띠 안 글자·상자 */
.life-band-dark .visit-label { background: #fff; color: #1c3a8c; }
.life-band-dark .life-headline, .life-band-dark .visit-sub { color: #fff; }
.life-band-dark .life-lead { color: #cdd6f6; }
.life-band-dark .doc-formula { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(4px); margin-top: 40px; }
.life-band-dark .doc-formula-label { background: #fff; color: #1c3a8c; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.life-band-dark .doc-formula p { color: #fff; }
.life-band-dark .doc-formula p span { background: rgba(255,255,255,.12); }
.life-band-dark .doc-formula p i { color: #6fd8c9; }
.life-band-dark .doc-formula p strong { background: #fff; color: #1c2f8f; }
.life-band-dark .visit-steps { margin-bottom: 0; }
.life-band-dark .visit-steps li { border: none; box-shadow: 0 16px 36px rgba(6,16,45,.3); }

/* 인생진단 페이지 포인트 색: 청록 → 남청 */
.life-page .plan-icon, .life-page .visit-kicker, .life-page .area-icon, .life-page .flow-icon { color: #3b5bdb; }
.life-page .plan-no { background: #3b5bdb; }
.life-page .life-why li { background: #f1f4fe; }
.life-band-tint .visit-areas li { background: #fff; box-shadow: 0 8px 22px rgba(28,58,140,.08); }
.life-page .visit-flow li:not(:last-child)::after { color: #3b5bdb; }
.life-page .visit-close { background: var(--life-dark); }
.life-page .visit-close h3 { color: #fff; }
.life-page .visit-close p { color: #cdd6f6; }
.life-page .visit-close .btn-dz-ghost { background: transparent; border: 1.5px solid #fff; color: #fff !important; }
.life-page .visit-close .btn-dz-ghost:hover { background: #fff; color: #1c2f8f !important; }

/* 해아림 소개 › 진료 안내 속 인생진단 상자 */
.life-link { background: var(--life-dark) !important; border: none !important; }
.life-link .visit-label { background: #fff; color: #1c3a8c; }
.life-link h3 { color: #fff; }
.life-link p { color: #cdd6f6; }
.life-link .learn-more { color: #6fd8c9 !important; }
.life-link:hover, .life-link:focus { box-shadow: 0 16px 36px rgba(16,38,61,.25); }

@media (max-width: 767px) { .life-band { padding: 52px 0 58px; margin-bottom: 52px; } .life-page .life-intro.life-band { padding-top: 60px; } }

/* 질환 페이지 › 조성환 원장은 이렇게 봅니다: 짙은 남색 배경으로 강조 */
.dz-view { background: radial-gradient(circle at 88% 12%, rgba(15,148,136,.38), transparent 45%), radial-gradient(circle at 8% 92%, rgba(111,216,201,.14), transparent 40%), linear-gradient(135deg, #10263d 0%, #0f3447 100%) !important; }
.dz-view .section-eyebrow { color: #6fd8c9 !important; }
.dz-view .heading h2 { color: #fff; }
.dz-view .heading h2::after { background: #6fd8c9; }
.dz-view .view-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 50px rgba(0,0,0,.28); backdrop-filter: blur(4px); }
.dz-view .view-photo { background: linear-gradient(180deg, rgba(111,216,201,.35) 0%, rgba(15,148,136,.55) 100%); }
.dz-view .view-title { color: #fff; }
.dz-view .view-para { color: #d3dde6; }
.dz-view .view-para strong { color: #7fe3d5; }
.dz-view .view-point { background: rgba(111,216,201,.14); border-left-color: #6fd8c9; color: #fff; }
.dz-view .view-point i { color: #6fd8c9; opacity: .9; }
.dz-view .view-sign { color: #9fb3c4; }
.dz-view .view-empty { border-color: rgba(255,255,255,.2); background: transparent; }

/* 인생진단 페이지: 초진 4단계 (메인 인생진단과 같은 순서) */
.life-page .visit-steps { grid-template-columns: repeat(4, 1fr); max-width: 1140px; gap: 20px; }
.life-page .visit-steps li { padding: 34px 22px 24px; }
@media (max-width: 1199px) { .life-page .visit-steps { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (max-width: 767px) { .life-page .visit-steps { grid-template-columns: 1fr; } }

/* 개인정보처리방침 (약관형 문서) */
.policy { max-width: 860px; margin: 0 auto; font-size: 16px; line-height: 1.85; color: var(--ink); word-break: keep-all; }
.policy h2 { font-size: 21px; font-weight: 800; color: var(--navy); margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.policy h2:first-of-type { margin-top: 32px; }
.policy p, .policy ul { margin: 0 0 14px; }
.policy ul { padding-left: 20px; }
.policy table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.policy th { background: var(--teal-soft); color: var(--navy); font-weight: 800; white-space: nowrap; }
.policy a { color: var(--teal-dark); font-weight: 700; }
#copyright .footer-privacy { color: #fff; font-weight: 800; }
@media (max-width: 767px) { .policy { font-size: 15px; } .policy table { font-size: 14px; } .policy th, .policy td { padding: 8px 10px; } .policy th { white-space: normal; } }

/* 칼럼 본문 표 */
#post-content table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; }
#post-content th, #post-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; word-break: keep-all; }
#post-content th { background: var(--teal-soft); color: var(--navy); font-weight: 800; }
@media (max-width: 767px) { #post-content table { font-size: 13.5px; } #post-content th, #post-content td { padding: 8px; } }

/* 칼럼 본문 가독성: 줄 간격·문단 간격·소제목 여백 넉넉하게 */
#blog-post .post-thumb { margin: 6px 0 40px; }
#blog-post .post-thumb img { width: 100%; border-radius: 18px; box-shadow: 0 14px 34px rgba(16,38,61,.12); }
#post-content { font-size: 17.5px; line-height: 2; color: #2b3640; word-break: keep-all; }
#post-content p { margin: 0 0 1.5em; }
#post-content h2 { font-size: 25px; font-weight: 800; color: var(--navy); line-height: 1.45; margin: 2.6em 0 1em; padding-left: 16px; border-left: 5px solid var(--teal); }
#post-content h2:first-child { margin-top: 0; }
#post-content strong { color: var(--navy); font-weight: 800; }
#post-content ul, #post-content ol { margin: 0 0 1.6em; padding-left: 1.3em; }
#post-content li { margin-bottom: .7em; line-height: 1.9; }
#post-content li::marker { color: var(--teal); }
#post-content table { margin: 10px 0 2em; }
#post-content hr { margin: 3em 0 1.6em; border-color: var(--line); }
#post-content hr + p em { font-size: 14.5px; color: var(--muted); font-style: normal; }
@media (max-width: 767px) {
  #post-content { font-size: 16.5px; line-height: 1.95; }
  #post-content h2 { font-size: 21px; margin: 2.2em 0 .9em; padding-left: 12px; }
  #blog-post .post-thumb { margin-bottom: 28px; }
}

/* 칼럼 질환별 색상 테마 (data/column_themes.yaml → #blog-post 의 --col-* 변수) */
#post-content h2 { border-left-color: var(--col-accent, var(--teal)); }
#post-content li::marker { color: var(--col-accent, var(--teal)); }
#post-content strong { color: var(--col-deep, var(--navy)); }
#post-content th { background: var(--col-soft, var(--teal-soft)); color: var(--col-deep, var(--navy)); }
#post-content a { color: var(--col-accent, var(--teal-dark)); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#post-content hr { border-color: var(--col-soft, var(--line)); border-top-width: 2px; }
#blog-post .text-muted { color: var(--col-accent, #8a96a3) !important; font-weight: 700; }

/* =========================================================
   해아림을 선택하는 이유: 다섯 가지 강점 오각형 다이어그램 (가운데 크게) + 아래 설명 카드
   ========================================================= */
.why-section { background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 42%), linear-gradient(160deg, #e9f7f4 0%, #f3f1fd 55%, #fdf3ec 100%) !important; overflow: hidden; }
.why-section .section-eyebrow { color: var(--teal) !important; }
.why-lead { text-align: center; color: #44525f; font-size: 18px; line-height: 1.8; margin: -6px auto 10px; max-width: 720px; word-break: keep-all; }
.why-wrap { display: block; max-width: 1140px; margin: 0 auto; }

/* 다이어그램 */
.why-diagram { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; margin: 0 auto; }
.why-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.why-web { fill: none; stroke: rgba(15,148,136,.18); stroke-width: 1.4; }
.why-spoke { stroke: rgba(28,58,140,.18); stroke-width: 1.4; stroke-dasharray: 4 6; }
.why-shape { fill: url(#whyFill); stroke: var(--teal); stroke-width: 3.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.6s ease, fill-opacity 1s ease 1.2s; filter: drop-shadow(0 6px 14px rgba(15,148,136,.25)); }
.why-wrap.is-in .why-shape { stroke-dashoffset: 0; fill-opacity: 1; }
.why-center { position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%) scale(.6); opacity: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; background: radial-gradient(circle at 30% 25%, #4f6ef0, #1c3a8c 70%); box-shadow: 0 0 0 10px rgba(59,91,219,.12), 0 20px 44px rgba(28,58,140,.3); color: #fff; text-decoration: none; transition: transform .7s cubic-bezier(.2,.8,.2,1) .3s, opacity .7s ease .3s, box-shadow .3s; }
.why-wrap.is-in .why-center { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.why-center:hover, .why-center:focus { color: #fff; text-decoration: none; box-shadow: 0 0 0 14px rgba(59,91,219,.18), 0 20px 44px rgba(28,58,140,.35); }
.why-center i { font-size: 26px; margin-bottom: 8px; opacity: .9; }
.why-center strong { font-size: clamp(15px, 2.4vw, 22px); font-weight: 800; line-height: 1.3; }
.why-center span { font-size: clamp(11px, 1.3vw, 13.5px); color: #d6def5; margin-top: 5px; line-height: 1.4; word-break: keep-all; }
.why-node { --dot: 78px; position: absolute; transform: translate(-50%, calc(var(--dot) / -2)) scale(.4); transform-origin: 50% calc(var(--dot) / 2); opacity: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 140px; text-align: center; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s ease; transition-delay: calc(.6s + var(--d)); cursor: default; }
.why-wrap.is-in .why-node { transform: translate(-50%, calc(var(--dot) / -2)) scale(1); opacity: 1; }
.why-node-dot { width: var(--dot); height: var(--dot); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--teal); background: #fff; border: 2px solid rgba(15,148,136,.35); box-shadow: 0 12px 26px rgba(16,38,61,.12); transition: transform .3s, background .3s, color .3s, box-shadow .3s, border-color .3s; }
.why-node-label { font-size: 16px; font-weight: 800; color: var(--navy); line-height: 1.35; word-break: keep-all; background: rgba(255,255,255,.85); padding: 3px 10px; border-radius: 999px; }
.why-node.is-active .why-node-dot { transform: scale(1.16); background: var(--teal); color: #fff; border-color: var(--teal); box-shadow: 0 0 0 10px rgba(15,148,136,.15), 0 14px 30px rgba(15,148,136,.35); }
.why-node.is-active .why-node-label { color: #fff; background: var(--teal); }

/* 아래 설명 카드: PC 3+2 가운데 정렬 */
.why-list { margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.why-item { flex: 0 1 calc((100% - 36px) / 3); display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 20px; border-radius: 18px; background: #fff; border: 1.5px solid transparent; box-shadow: 0 10px 26px rgba(16,38,61,.07); cursor: default; outline: none; transition: border-color .3s, transform .3s, box-shadow .3s; }
.why-item.is-active { border-color: var(--teal); transform: translateY(-6px); box-shadow: 0 18px 36px rgba(15,148,136,.18); }
.why-no { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--teal); background: var(--teal-soft); transition: background .3s, color .3s; }
.why-item.is-active .why-no { background: var(--teal); color: #fff; }
.why-item h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 4px 0 8px; line-height: 1.45; word-break: keep-all; }
.why-item h3 i { color: var(--teal); margin-right: 4px; font-size: 15px; }
.why-item p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink); word-break: keep-all; }
.why-item p.why-note { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.why-section .section-cta { margin-top: 44px; }

@media (max-width: 991px) {
  .why-diagram { max-width: 520px; }
  .why-item { flex-basis: calc((100% - 18px) / 2); }
  .why-node { --dot: 64px; width: 120px; }
  .why-node-dot { font-size: 24px; }
  .why-node-label { font-size: 14.5px; }
}
@media (max-width: 767px) {
  .why-lead { font-size: 16px; }
  .why-diagram { max-width: 360px; }
  .why-node { --dot: 46px; width: 92px; gap: 6px; }
  .why-node-dot { font-size: 18px; }
  .why-node-label { font-size: 12px; padding: 2px 7px; }
  .why-center i { font-size: 16px; margin-bottom: 4px; }
  .why-list { gap: 12px; }
  .why-item { flex-basis: 100%; padding: 16px; gap: 12px; }
  .why-item.is-active { transform: none; }
  .why-item h3 { font-size: 16.5px; }
  .why-item p { font-size: 14.5px; }
}
/* 맨 위 꼭짓점은 이름을 동그라미 위에 (가운데 원과 겹치지 않게) */
.why-node[data-i="0"] { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + var(--dot) / 2)) scale(.4); transform-origin: 50% calc(100% - var(--dot) / 2); }
.why-wrap.is-in .why-node[data-i="0"] { transform: translate(-50%, calc(-100% + var(--dot) / 2)) scale(1); }
.why-lead { margin-bottom: 24px; }
@media (max-width: 767px) { .why-lead { margin-bottom: 30px; } }

/* 학술 섹션 강조 카드 3개 (논문 · 국제 강연 · 한의사 교육) */
#academic .academic-facts { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1080px; margin: -10px auto 44px; justify-content: stretch; }
#academic .academic-facts li.fact-card { display: flex; align-items: center; gap: 16px; padding: 22px 22px; border: none; border-radius: 20px; background: #fff; box-shadow: 0 14px 34px rgba(16,38,61,.09); text-align: left; position: relative; overflow: hidden; transition: transform .3s, box-shadow .3s; }
#academic .fact-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--fact-c); }
#academic .fact-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(16,38,61,.14); }
#academic .fact-0 { --fact-c: #0f9488; --fact-bg: linear-gradient(135deg, #14a596, #0b6f66); }
#academic .fact-1 { --fact-c: #3b5bdb; --fact-bg: linear-gradient(135deg, #4f6ef0, #1c3a8c); }
#academic .fact-2 { --fact-c: #e0742a; --fact-bg: linear-gradient(135deg, #ff9a52, #e0742a); }
#academic .fact-icon { flex: none; width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; background: var(--fact-bg); box-shadow: 0 10px 22px rgba(16,38,61,.18); }
#academic .fact-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#academic .fact-label { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--fact-c); }
#academic .fact-text { font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.45; word-break: keep-all; }
@media (max-width: 991px) { #academic .academic-facts { grid-template-columns: 1fr; max-width: 560px; gap: 12px; } }
@media (max-width: 767px) { #academic .academic-facts li.fact-card { padding: 16px 18px; gap: 14px; } #academic .fact-icon { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; } #academic .fact-text { font-size: 15.5px; } }
#academic .academic-facts .fact-icon i { color: #fff; margin: 0; }
