/* =========================================================
   서브페이지(진료과목/소개/게시판) 공통 템플릿 스타일
   ========================================================= */

/* 서브 히어로 */
.sub-hero {
  position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff;
  background: var(--primary-dark) center / cover no-repeat;
}
.sub-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,48,.35), rgba(10,22,48,.82)); }
.sub-hero .container { position: relative; padding-bottom: 48px; padding-top: 80px; }
.breadcrumb { font-size: 13.5px; opacity: .85; margin-bottom: 12px; }
.breadcrumb a:hover { text-decoration: underline; }
.sub-hero h1 { font-family: var(--serif); font-size: 42px; font-weight: 600; }
.sub-hero .lead { margin: 10px 0 0; font-size: 17px; opacity: .92; max-width: 720px; font-weight: 400; }

/* 2뎁스 탭 내비 */
.sub-tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 500; }
.sub-tabs ul { display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sub-tabs a {
  display: block; padding: 16px 22px; white-space: nowrap; font-weight: 500; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; transition: all .2s; font-size: 15px;
}
.sub-tabs a:hover { color: var(--primary); }
.sub-tabs li.active a { color: var(--primary); border-bottom-color: var(--accent); font-weight: 700; }

/* 본문 */
.page-body { padding: 70px 0 80px; }
.page-body .container { max-width: 1000px; }
.page-body.wide .container { max-width: var(--container); }
.page-section { margin-bottom: 72px; }
.page-section:last-child { margin-bottom: 0; }
.page-section > h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 22px; padding-bottom: 14px; position: relative; color: var(--primary-dark);
}
.page-section > h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 4px; background: var(--accent); border-radius: 2px; }
.page-section > h2.center::after { left: 50%; margin-left: -23px; }
.page-section > h2 em { font-style: normal; color: var(--accent-dark); }
.page-section h3 { font-size: 20px; margin: 28px 0 10px; color: var(--primary-dark); }
.page-section p { color: #444; }
.page-section p.lead { font-size: 18px; font-weight: 500; color: var(--text); }
.page-section img.figure { border-radius: 12px; border: 1px solid var(--line); }
.page-section .sub-eyebrow { display: block; color: var(--accent); font-family: var(--eng); letter-spacing: .12em; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.page-section .kicker { text-align: center; color: var(--muted); margin-top: -8px; margin-bottom: 26px; }

/* 인용/도입 문구 */
.intro-quote {
  background: var(--ivory); border-radius: var(--radius); padding: 30px 34px; margin-bottom: 40px;
  border-left: 5px solid var(--accent);
}
.intro-quote p { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--primary-dark); }
.intro-quote p:last-child { margin: 0; }
.intro-quote .by { font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 12px; font-family: var(--sans); }

/* 치료 목표 박스 */
.goal-box { background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 40px 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 40px; }
.goal-box .goal-text small { display: block; color: var(--accent-light); font-family: var(--eng); letter-spacing: .12em; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.goal-box h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin-bottom: 14px; line-height: 1.4; }
.goal-box p { color: rgba(255,255,255,.88); margin: 0; font-size: 16px; }
.goal-box p strong { color: var(--accent-light); }
.goal-box img { border-radius: 12px; width: 100%; }
.goal-box.single { grid-template-columns: 1fr; }

/* 정의/증상/진단/치료 요약 표 */
.def-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.def-list dl { display: grid; grid-template-columns: 140px 1fr; margin: 0; border-bottom: 1px solid var(--line); }
.def-list dl:last-child { border-bottom: 0; }
.def-list dt { background: var(--ivory); color: var(--primary-dark); font-weight: 700; padding: 14px 18px; }
.def-list dd { margin: 0; padding: 14px 18px; color: #444; }

/* 강조 박스 */
.highlight-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff;
  border-radius: var(--radius); padding: 32px 36px; margin: 26px 0;
}
.highlight-box h3 { color: #fff; margin: 0 0 10px; font-size: 21px; }
.highlight-box h3 small { display: block; font-size: 13px; color: var(--accent-light); letter-spacing: .1em; font-weight: 700; margin-bottom: 6px; font-family: var(--eng); }
.highlight-box p { color: rgba(255,255,255,.9); margin: 0; }
.highlight-box ul { margin-top: 12px; display: grid; gap: 6px; }
.highlight-box li { padding-left: 20px; position: relative; color: rgba(255,255,255,.92); }
.highlight-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-light); font-weight: 900; }

.note-box { background: var(--ivory); border-radius: 12px; padding: 20px 24px; font-size: 14.5px; color: #555; margin: 20px 0; }
.note-box strong { color: var(--primary-dark); }
.warn-box { background: #fff5f4; border: 1px solid #f2c9c5; border-radius: 12px; padding: 20px 24px; font-size: 14.5px; color: #7a2f2b; margin: 20px 0; }
.quote-band { text-align: center; font-family: var(--serif); font-size: 24px; color: var(--primary-dark); font-weight: 600; line-height: 1.5; margin: 10px 0 24px; }
.quote-band small { display: block; font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 400; margin-top: 10px; }

/* 카드 그리드 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px;
  transition: all .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .c-num { display: inline-block; font-size: 12px; font-weight: 900; letter-spacing: .1em; color: var(--accent); margin-bottom: 8px; font-family: var(--eng); }
.card .c-icon { font-size: 30px; line-height: 1; margin-bottom: 12px; }
.card .c-icon img { width: 56px; height: 56px; object-fit: contain; }
.card h4 { font-size: 17px; margin-bottom: 8px; color: var(--primary-dark); }
.card p { font-size: 14.5px; color: #555; margin: 0; }
.card ul { margin-top: 8px; }
.card li { font-size: 14px; color: #555; padding-left: 14px; position: relative; line-height: 1.6; margin-bottom: 4px; }
.card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.card li b { color: var(--primary-dark); display: block; }
.card.link { display: block; }
.card.link .more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: var(--primary); }
.card.img { padding: 0; overflow: hidden; }
.card.img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card.img .body { padding: 20px 20px 22px; }
.card.img .body h4 { margin-bottom: 8px; }
.card.img .body ol { padding-left: 18px; margin: 8px 0 0; font-size: 14px; color: #555; }
.card.img .body ol li { margin-bottom: 3px; }
.card.img .body .principle { font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .08em; margin-top: 12px; display: block; }

/* 치료법 카드 (아이콘 + 번호 + 소항목) */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.treat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 22px; }
.treat .t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.treat .t-head img { width: 54px; height: 54px; object-fit: contain; }
.treat .t-head span { font-family: var(--eng); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; display: block; }
.treat .t-head h4 { font-size: 18px; color: var(--primary-dark); margin: 0; }
.treat dl { margin: 0; }
.treat dt { font-weight: 700; font-size: 14.5px; color: var(--primary); margin-top: 8px; }
.treat dd { margin: 2px 0 0; font-size: 14px; color: #555; }
.treat ul li { font-size: 14px; color: #555; padding-left: 14px; position: relative; margin-bottom: 4px; }
.treat ul li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* 아이콘 그리드 (치료 방법 아이콘 나열) */
.icon-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.icon-grid li { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 8px; }
.icon-grid img { width: 46px; height: 46px; object-fit: contain; margin: 0 auto 8px; }
.icon-grid span { font-size: 13.5px; font-weight: 600; color: var(--primary-dark); display: block; line-height: 1.3; }

/* 체크리스트 */
.check-list { display: grid; gap: 8px; margin: 10px 0 18px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; }
.check-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 12px 46px; position: relative; font-size: 15px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.check-list.light li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.check-list.light li::before { background: var(--accent); color: #fff; }
.check-group h4 { font-size: 15px; color: var(--accent); margin: 18px 0 8px; letter-spacing: .04em; }

/* 스텝 리스트 */
.step-list { display: grid; gap: 14px; margin-top: 10px; counter-reset: step; }
.step-list li {
  display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px;
}
.step-num {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 17px; font-family: var(--eng);
}
.step-list h4 { font-size: 17px; margin-bottom: 4px; }
.step-list p { margin: 0; font-size: 14.5px; color: #555; }

/* 가로 스텝 (STEP 01 → 02 → 03) */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
.flow.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flow.cols-5 { grid-template-columns: repeat(5, 1fr); }
.flow .f { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 18px; text-align: center; position: relative; }
.flow .f img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }
.flow .f small { display: block; font-family: var(--eng); color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: 12px; margin-bottom: 6px; }
.flow .f h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 6px; }
.flow .f p { font-size: 13.5px; color: #555; margin: 0; }
.flow .f + .f::before { content: "›"; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 26px; font-weight: 700; }

/* 단계 (급성/만성/중증 등) */
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stage-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stage { background: var(--ivory); border-radius: 12px; padding: 22px 20px; border-top: 4px solid var(--accent); }
.stage .s-num { font-family: var(--eng); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stage h4 { font-size: 17px; color: var(--primary-dark); margin-bottom: 6px; }
.stage small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stage li { font-size: 14px; color: #555; padding-left: 12px; position: relative; margin-bottom: 3px; }
.stage li::before { content: "·"; position: absolute; left: 0; font-weight: 900; color: var(--accent); }
.stage p { font-size: 14px; color: #555; margin: 0; }

/* 2단 (이미지 + 텍스트) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin: 20px 0; }
.two-col.rev > :first-child { order: 2; }
.two-col img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.two-col h3 { margin-top: 0; }
.two-col.narrow-img { grid-template-columns: 340px 1fr; }

/* 표 */
.info-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.info-table th, .info-table td { border: 1px solid var(--line); padding: 12px 14px; vertical-align: top; text-align: left; }
.info-table th { background: var(--ivory); color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.info-table thead th { background: var(--primary); color: #fff; text-align: center; }
.info-table td.center, .info-table th.center { text-align: center; }
.info-table td.price { text-align: right; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }
.table-wrap { overflow-x: auto; }

/* 비교 (VS) */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 10px; }
.vs-grid .card h4 { text-align: center; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
.vs-grid .card.img h4 { padding: 0 20px 10px; }
.vs-grid .tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 10px 0; }
.vs-grid .tags span { background: var(--ivory); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.vs-grid .quote { font-size: 14px; color: #555; text-align: center; margin: 10px 0 0; }

/* 이미지 갤러리 (서브) */
.img-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.img-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.img-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
.img-row.cols-5 { grid-template-columns: repeat(5, 1fr); }
.img-row figure { margin: 0; }
.img-row img { width: 100%; border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; }
.img-row.free img { aspect-ratio: auto; }
.img-row.portrait img { aspect-ratio: 3 / 4; }
.img-row figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

/* 전후 사진 */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-grid figure { margin: 0; position: relative; }
.ba-grid img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.ba-grid figcaption { position: absolute; left: 12px; top: 12px; background: var(--primary-dark); color: #fff; font-family: var(--eng); font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 4px 12px; border-radius: 999px; }
.ba-grid figure.after figcaption { background: var(--accent); }
.ba-note { font-size: 13px; color: #777; margin-top: 10px; }

/* 원장 약력 페이지 */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; margin-bottom: 40px; }
.profile img { border-radius: var(--radius); box-shadow: var(--shadow); }
.profile h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.profile .role { color: var(--accent); font-weight: 700; margin-bottom: 20px; }
.profile h3 { font-size: 16px; color: var(--accent); letter-spacing: .06em; margin: 26px 0 10px; }
.profile ul li { padding: 8px 0 8px 16px; border-bottom: 1px dashed var(--line); position: relative; font-size: 15px; }
.profile ul li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.profile ul li .tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 4px; padding: 1px 6px; margin-right: 6px; vertical-align: middle; }
.doctor-letter { background: var(--ivory); border-radius: var(--radius); padding: 40px 42px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.doctor-letter img { border-radius: 12px; }
.doctor-letter h3 { margin: 0 0 4px; font-size: 15px; color: var(--muted); font-weight: 500; }
.doctor-letter .name { font-family: var(--serif); font-size: 24px; color: var(--primary-dark); font-weight: 600; margin-bottom: 14px; }
.doctor-letter blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 19px; color: var(--primary); }
.doctor-letter p { font-size: 15px; color: #444; }

/* 논문 카드 */
.paper-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.paper-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.paper-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-bottom: 1px solid var(--line); }
.paper-card .body { padding: 14px 16px 16px; }
.paper-card .tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 4px; padding: 1px 7px; margin-bottom: 6px; }
.paper-card h4 { font-size: 14.5px; line-height: 1.45; color: var(--primary-dark); margin-bottom: 6px; }
.paper-card p { font-size: 12.5px; color: var(--muted); margin: 0; }
.paper-list { counter-reset: paper; display: grid; gap: 12px; }
.paper-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 62px; position: relative; }
.paper-list li::before { counter-increment: paper; content: counter(paper, decimal-leading-zero); position: absolute; left: 20px; top: 18px; font-family: var(--eng); font-weight: 700; color: var(--accent); font-size: 18px; }
.paper-list h4 { font-size: 16px; color: var(--primary-dark); margin-bottom: 4px; }
.paper-list .src { font-size: 13px; color: var(--accent-dark); margin-bottom: 6px; display: block; }
.paper-list p { font-size: 14px; color: #555; margin: 0; }
.paper-feature { background: var(--ivory); border-radius: var(--radius); padding: 30px 32px; margin: 18px 0; }
.paper-feature .img-row { margin: 0 0 16px; }
.paper-feature .img-row img { aspect-ratio: 3 / 4; }
.paper-feature .src { font-size: 13px; color: var(--accent-dark); }
.paper-feature h4 { font-size: 19px; color: var(--primary-dark); margin: 6px 0 8px; }
.paper-feature p { margin: 0; font-size: 15px; color: #444; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.book { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; align-items: center; }
.book img { border-radius: 8px; }
.book small { color: var(--accent); font-weight: 700; font-size: 12.5px; }
.book h4 { font-family: var(--serif); font-size: 20px; color: var(--primary-dark); margin: 4px 0 8px; }
.book p { font-size: 14px; color: #555; margin: 0; }

/* 탭 (질환별) */
.tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab-nav button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 20px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; font-family: inherit; transition: all .2s; }
.tab-nav button.active, .tab-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 입원실 블록 */
.inpatient { background: var(--ivory); border-radius: var(--radius); padding: 40px 42px; margin: 30px 0; }
.inpatient-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.inpatient-head h3 { font-family: var(--serif); font-size: 24px; color: var(--primary-dark); margin: 0; font-weight: 600; }
.inpatient .check-list li { background: #fff; }

/* 협진 블록 */
.collab { margin: 30px 0; }
.collab-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 18px; }
.collab-col h4 { font-size: 15px; color: var(--accent); letter-spacing: .06em; margin-bottom: 10px; }
.collab-col .icon-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }

/* 전국에서 찾아오는 (파트너 블록) */
.nationwide { background: var(--primary-dark); color: #fff; padding: 90px 0; }
.nationwide-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.nationwide .nw-logo { width: 120px; margin-bottom: 18px; }
.nationwide .nw-eyebrow { color: var(--accent-light); font-weight: 600; margin-bottom: 10px; }
.nationwide h2 { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.nationwide h2 span { color: var(--accent-light); }
.nationwide .nw-desc { color: rgba(255,255,255,.85); }
.nationwide .nw-map img { width: 100%; max-width: 480px; margin: 0 auto; }
.promise { padding: 90px 0; background: var(--ivory); }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.promise-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.promise-card .body { padding: 20px 20px 24px; }
.promise-card .pnum { font-family: var(--eng); color: var(--accent); font-weight: 700; letter-spacing: .14em; font-size: 12px; }
.promise-card h3 { font-size: 17px; color: var(--primary-dark); margin: 6px 0 8px; }
.promise-card p { font-size: 14px; color: #555; margin: 0; }

/* 후기/사례 스트립 (서브페이지) */
.review-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.review-strip a { display: block; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3 / 4; }
.review-strip img { width: 100%; height: 100%; object-fit: cover; }
.review-strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 14px 14px; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.5; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.case-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.case-strip a { display: block; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.case-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-strip span { display: block; padding: 10px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: #333; }
.yt-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.yt-strip a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.yt-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.yt-strip span { display: block; padding: 10px 12px; font-size: 13px; font-weight: 500; line-height: 1.45; }

/* 연혁 */
.history { border-left: 2px solid var(--accent); margin-left: 60px; padding-left: 30px; display: grid; gap: 22px; }
.history li { position: relative; }
.history li::before { content: ""; position: absolute; left: -37px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent); }
.history .year { position: absolute; left: -100px; top: 0; font-family: var(--eng); font-weight: 700; color: var(--primary-dark); font-size: 17px; width: 50px; text-align: right; }
.history p { margin: 0; font-size: 15px; color: #444; }

/* 관련 링크 */
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; background: #fff; transition: all .2s;
}
.related-links a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* 하단 CTA */
.page-cta {
  background: var(--ivory); border-radius: var(--radius); padding: 40px; text-align: center; margin-top: 60px;
}
.page-cta h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 8px; font-weight: 600; color: var(--primary-dark); }
.page-cta p { color: var(--muted); margin-bottom: 22px; }
.page-cta .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 면책 문구 */
.disclaimer { font-size: 12.5px; color: #888; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; line-height: 1.6; }

/* =========================================================
   게시판 (칼럼 · 공지 · 사례 · 후기 · 언론보도) 목록 + 본문
   ========================================================= */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ivory); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.post-card h3 { font-size: 17px; line-height: 1.45; color: var(--primary-dark); }
.post-card p { font-size: 14px; color: #555; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card time { font-size: 12.5px; color: var(--muted); }
.post-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.post-filter a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.post-filter a.active, .post-filter a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.post-list.gallery { grid-template-columns: repeat(4, 1fr); }
.post-list.gallery .post-card .thumb { aspect-ratio: 4 / 3; }
.post-list.gallery .post-card h3 { font-size: 15px; }
.post-list.gallery .post-card p { display: none; }
.post-list.gallery.tall .post-card .thumb { aspect-ratio: 3 / 4; }
.post-list.rows { grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--primary-dark); }
.post-list.rows .post-card { flex-direction: row; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; transform: none; box-shadow: none; }
.post-list.rows .post-card .thumb { display: none; }
.post-list.rows .post-card .body { flex-direction: row; align-items: center; gap: 16px; padding: 16px 8px; }
.post-list.rows .post-card .cat { flex: 0 0 90px; }
.post-list.rows .post-card h3 { flex: 1; font-size: 16px; }
.post-list.rows .post-card p { display: none; }
.post-list.rows .post-card time { flex: 0 0 110px; text-align: right; }

article.post { max-width: 860px; margin: 0 auto; }
.post-head { margin-bottom: 30px; }
.post-head .cat { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.post-head h1 { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.35; margin: 10px 0 14px; color: var(--primary-dark); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); align-items: center; }
.post-meta .author { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.post-meta .author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: top; }
.post-hero { border-radius: var(--radius); overflow: hidden; margin: 0 0 30px; background: var(--ivory); }
.post-hero img { width: 100%; max-height: 640px; object-fit: contain; }

.summary-box { background: var(--primary-light); border-left: 5px solid var(--primary); border-radius: 12px; padding: 22px 26px; margin: 0 0 30px; }
.summary-box h2 { font-size: 16px; color: var(--primary-dark); margin: 0 0 10px; letter-spacing: .04em; }
.summary-box ul { display: grid; gap: 6px; }
.summary-box li { padding-left: 18px; position: relative; font-size: 15.5px; }
.summary-box li::before { content: "•"; position: absolute; left: 4px; color: var(--primary); font-weight: 900; }

.toc { background: var(--ivory); border-radius: 12px; padding: 18px 24px; margin: 0 0 34px; font-size: 14.5px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--primary-dark); }
.toc ol { padding-left: 20px; margin: 0; display: grid; gap: 4px; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

.post-body h2 { font-size: 24px; font-weight: 700; margin: 44px 0 14px; color: var(--primary-dark); padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); scroll-margin-top: 140px; }
.post-body h3 { font-size: 19px; margin: 28px 0 10px; color: var(--primary-dark); }
.post-body p { color: #3a3a3a; font-size: 16.5px; line-height: 1.85; }
.post-body img { border-radius: 12px; border: 1px solid var(--line); margin: 10px auto 18px; }
.post-body figure { margin: 18px 0; }
.post-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.post-body blockquote { margin: 22px 0; padding: 18px 24px; background: var(--ivory); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; font-size: 16.5px; color: var(--primary-dark); }
.post-body ul.check-list { margin: 12px 0 22px; }
.post-body ul:not(.check-list), .post-body ol { padding-left: 22px; }
.post-body .info-table { font-size: 15px; }
.post-body .key-answer { background: #fff; border: 2px solid var(--primary); border-radius: 12px; padding: 16px 22px; margin: 16px 0 22px; font-size: 16px; }
.post-body .key-answer strong { color: var(--primary-dark); }
.post-body iframe { max-width: 100%; }

.references { font-size: 13.5px; color: #666; background: var(--ivory); border-radius: 12px; padding: 18px 22px; margin-top: 40px; }
.references h2 { font-size: 15px; margin: 0 0 8px; color: var(--primary-dark); border: 0; padding: 0; }
.references ol { padding-left: 20px; margin: 0; display: grid; gap: 4px; }

.author-box { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 40px; }
.author-box img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; flex: 0 0 84px; }
.author-box h3 { margin: 0 0 4px; font-size: 18px; color: var(--primary-dark); }
.author-box p { margin: 0; font-size: 14px; color: #555; }
.author-box a { color: var(--primary); font-weight: 700; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.post-nav a { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 14px; }
.post-nav a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post-nav a:hover { border-color: var(--primary); color: var(--primary); }
.post-nav .next { text-align: right; }

/* 반응형 */
@media (max-width: 1100px) {
  .paper-grid, .review-strip, .case-strip, .promise-grid, .post-list.gallery { grid-template-columns: repeat(3, 1fr); }
  .yt-strip { grid-template-columns: repeat(3, 1fr); }
  .icon-grid { grid-template-columns: repeat(4, 1fr); }
  .flow.cols-5, .stage-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .nationwide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .post-list { grid-template-columns: repeat(2, 1fr); }
  .post-head h1 { font-size: 26px; }
  .post-body h2 { font-size: 21px; scroll-margin-top: 120px; }
  .author-box { flex-direction: column; text-align: center; }
  .card-grid, .card-grid.cols-4, .treat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .two-col.rev, .two-col.narrow-img { grid-template-columns: 1fr; }
  .two-col.rev > :first-child { order: 0; }
  .goal-box { grid-template-columns: 1fr; padding: 28px 24px; }
  .goal-box h2 { font-size: 22px; }
  .profile, .doctor-letter { grid-template-columns: 1fr; }
  .profile img { max-width: 340px; }
  .doctor-letter img { max-width: 220px; }
  .img-row.cols-4, .img-row.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .sub-hero h1 { font-size: 30px; }
  .sub-hero { min-height: 260px; }
  .page-body { padding: 48px 0 60px; }
  .page-section > h2 { font-size: 24px; }
  .flow, .flow.cols-4 { grid-template-columns: 1fr 1fr; }
  .flow .f + .f::before { display: none; }
  .stage-grid, .stage-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .collab-grid { grid-template-columns: 1fr; }
  .inpatient { padding: 26px 20px; }
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .history { margin-left: 70px; }
  .post-list.rows .post-card .body { flex-wrap: wrap; }
  .post-list.rows .post-card time { flex: 1 1 100%; text-align: left; }
}
@media (max-width: 600px) {
  .post-list, .post-nav { grid-template-columns: 1fr; }
  .post-list.gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .post-nav .next { text-align: left; }
  .card-grid, .card-grid.cols-2, .card-grid.cols-4, .vs-grid, .treat-grid { grid-template-columns: 1fr; }
  .img-row, .img-row.cols-2, .img-row.cols-4, .img-row.cols-5 { grid-template-columns: 1fr 1fr; }
  .paper-grid, .review-strip, .case-strip, .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .yt-strip { grid-template-columns: repeat(2, 1fr); }
  .icon-grid { grid-template-columns: repeat(3, 1fr); }
  .flow, .flow.cols-4, .flow.cols-5, .stage-grid, .stage-grid.cols-4, .stage-grid.cols-5 { grid-template-columns: 1fr; }
  .sub-tabs a { padding: 14px 16px; font-size: 14px; }
  .highlight-box, .intro-quote { padding: 22px 20px; }
  .page-cta { padding: 28px 20px; }
  .def-list dl { grid-template-columns: 100px 1fr; }
  .book { grid-template-columns: 110px 1fr; }
  .quote-band { font-size: 19px; }
  .ba-grid { gap: 8px; }
}
