/* =========================================================
   서브페이지(진료과목/소개/게시판) 공통 템플릿 스타일
   - 구성 : bareulyeon.com 서브페이지 방식
     회카키 배너(심볼 + 제목 + 한 줄 설명) → 중앙 정렬 탭 → 섹션마다 흰색/연베이지 띠 교차 → 좌측 정렬 굵은 제목 → 선 카드
   ========================================================= */

/* 서브 배너 (사진 대신 단색 회카키, 중앙 정렬) */
.sub-hero {
  position: relative; min-height: 330px; display: flex; align-items: center; color: #fff; text-align: center;
  background: var(--band-deep) !important; background-image: none !important;
}
.sub-hero::before { display: none; }
.sub-hero .container { position: relative; padding: 56px 24px 52px; max-width: 900px; }
.sub-hero .container::before {
  content: ""; display: block; width: 64px; height: 64px; margin: 0 auto 18px;
  background: url('/assets/img/main/tit_logo.png') center / contain no-repeat; filter: brightness(0) invert(1); opacity: .95;
}
.breadcrumb { font-size: 12.5px; opacity: .8; margin-bottom: 8px; letter-spacing: .04em; }
.breadcrumb a:hover { text-decoration: underline; }
.sub-hero h1 { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: .04em; }
.sub-hero .lead { margin: 12px auto 0; font-size: 17px; opacity: .95; max-width: 720px; font-weight: 400; line-height: 1.7; }

/* 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; justify-content: center; }
.sub-tabs a {
  display: block; padding: 17px 22px; white-space: nowrap; font-weight: 400; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .2s; font-size: 15px;
}
.sub-tabs a:hover { color: var(--text); }
.sub-tabs li.active a { color: var(--text); border-bottom-color: var(--text); font-weight: 700; }

/* 본문 : 섹션마다 화면 폭 전체 띠 (짝수 섹션 연베이지, nav.js 가 .is-band 부여) */
.page-body { padding: 0 0 20px; }
.page-body .container { max-width: 1000px; }
.page-body.wide .container { max-width: var(--container); }
.page-body .container > .page-section, .page-body .container > .highlight-box, .page-body .container > .page-cta, .page-body .container > .disclaimer, .page-body .container > .consult-form {
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%);
}
.page-section { padding-top: 76px; padding-bottom: 76px; margin-bottom: 0; }
.page-section.is-band { background: var(--band-soft); }
.page-section > h2 {
  font-size: 26px; font-weight: 700; margin-bottom: 20px; color: var(--text); letter-spacing: -.01em; line-height: 1.4;
}
.page-section > h2.center { text-align: center; }
.page-section > h2 em { font-style: normal; color: var(--accent-dark); }
.page-section h3 { font-size: 19px; margin: 34px 0 12px; color: var(--text); font-weight: 700; }
.page-section p { color: #444; }
.page-section p.lead { font-size: 17px; font-weight: 400; color: var(--text); margin-bottom: 26px; }
.page-section img.figure { border-radius: 14px; border: 1px solid var(--line); }
.page-section .sub-eyebrow { display: block; color: var(--accent); font-family: var(--eng); letter-spacing: .12em; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.page-section .kicker { color: var(--muted); margin-top: -8px; margin-bottom: 26px; }

/* 인용/도입 문구 */
.intro-quote { border: 1px solid var(--line-dark); border-radius: 18px; padding: 30px 34px; margin-bottom: 40px; background: #fff; }
.intro-quote p { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--text); }
.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 { border: 1px solid var(--line-dark); border-radius: 20px; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; background: #fff; margin: 70px 0 0; }
.goal-box .goal-text small { display: block; color: var(--accent); font-family: var(--eng); letter-spacing: .12em; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.goal-box h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; line-height: 1.4; color: var(--text); }
.goal-box p { color: #444; margin: 0; font-size: 16px; }
.goal-box p strong { color: var(--primary); }
.goal-box img { border-radius: 14px; width: 100%; }
.goal-box.single { grid-template-columns: 1fr; }

/* 정의/증상/진단/치료 요약 표 */
.def-list { display: grid; gap: 0; border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; background: #fff; }
.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(--band-soft); padding: 14px 18px; font-weight: 700; color: var(--text); }
.def-list dd { margin: 0; padding: 14px 18px; font-size: 15px; color: #444; }

/* 강조 박스 */
.highlight-box { border: 1px solid var(--line-dark); background: #fff; border-radius: 18px; padding: 34px 38px; margin: 0; }
.page-body .container > .highlight-box { border-radius: 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 50px; padding-bottom: 50px; background: var(--band-soft); }
.page-body .container > .highlight-box > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.highlight-box h3 { color: var(--text); margin: 0 0 10px; font-size: 21px; }
.highlight-box h3 small { display: block; font-size: 12px; color: var(--accent); letter-spacing: .12em; font-weight: 600; margin-bottom: 6px; font-family: var(--eng); }
.highlight-box p { color: #444; margin: 0; }
.highlight-box ul { margin-top: 12px; display: grid; gap: 6px; }
.highlight-box li { padding-left: 20px; position: relative; color: #444; }
.highlight-box li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.note-box { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 20px 24px; font-size: 14.5px; color: #555; margin: 20px 0; }
.note-box strong { color: var(--text); }
.warn-box { background: #fff5f4; border: 1px solid #f2c9c5; border-radius: 14px; 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(--text); 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-dark); border-radius: 14px; padding: 24px 22px; transition: all .2s; }
.card:hover { border-color: var(--text); }
.card .c-num { display: inline-block; font-size: 12px; font-weight: 700; 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(--text); }
.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(--text); 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: 1fr; gap: 0; border-top: 1px solid var(--line-dark); }
.treat { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 30px 10px; display: grid; grid-template-columns: 90px 1fr; gap: 26px; align-items: start; }
.treat .t-head { display: contents; }
.treat .t-head img { width: 78px; height: 78px; object-fit: contain; padding: 14px; background: var(--band); border-radius: 12px; grid-row: 1 / span 3; }
.treat .t-head > div { display: block; }
.treat .t-head span { font-family: var(--eng); font-size: 11.5px; font-weight: 600; color: var(--accent); letter-spacing: .12em; display: block; margin-bottom: 4px; }
.treat .t-head h4 { font-size: 18px; color: var(--text); margin: 0 0 8px; }
.treat > *:not(.t-head) { grid-column: 2; }
.treat dl { margin: 0; }
.treat dt { font-weight: 700; font-size: 14.5px; color: var(--text); margin-top: 8px; }
.treat dd { margin: 2px 0 0; font-size: 14.5px; color: #555; }
.treat ul li { font-size: 14.5px; 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); }
.treat p { font-size: 14.5px; color: #555; margin: 0; }

/* 아이콘 그리드 (치료 방법 아이콘 나열) */
.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-dark); border-radius: 14px; padding: 18px 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(--text); display: block; line-height: 1.3; }

/* 체크리스트 (바를연 자가진단 : 한 상자 안에 항목 나열) */
.check-list { display: grid; gap: 0; margin: 10px 0 18px; border: 1px solid var(--line-dark); border-radius: 16px; padding: 14px 22px; background: #fff; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 30px; }
.check-list li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; color: #444; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; top: 8px; color: var(--text); font-size: 15px; font-weight: 700; }
.check-list.light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.check-list.light li { color: #fff; }
.check-list.light li::before { 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-dark); border-radius: 14px; padding: 20px 22px; }
.step-num { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; 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: 22px; margin-top: 10px; border: 1px solid var(--line-dark); border-radius: 20px; padding: 34px 30px; background: #fff; }
.flow.cols-4 { grid-template-columns: repeat(4, 1fr); }
.flow.cols-5 { grid-template-columns: repeat(5, 1fr); }
.flow .f { text-align: center; position: relative; padding: 0 6px; }
.flow .f img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.flow .f small { display: inline-block; font-family: var(--eng); color: #fff; background: var(--band-deep); font-weight: 600; letter-spacing: .12em; font-size: 11px; padding: 3px 12px; border-radius: 999px; margin-bottom: 10px; }
.flow .f h4 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.flow .f p { font-size: 13.5px; color: #555; margin: 0; }
.flow .f + .f::before { content: "→"; position: absolute; left: -18px; top: 50%; transform: translateY(-50%); color: var(--band-deep); font-size: 22px; font-weight: 400; }

/* 단계 (급성/만성/중증 등) */
.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: #fff; border: 1px solid var(--line-dark); border-radius: 14px; padding: 22px 20px; }
.stage .s-num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--band-deep); color: #fff; font-family: var(--eng); font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.stage h4 { font-size: 17px; color: var(--text); 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: 40px; align-items: center; margin: 20px 0; }
.two-col.rev > :first-child { order: 2; }
.two-col img { border-radius: 16px; 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; background: #fff; }
.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(--band-soft); color: var(--text); font-weight: 700; white-space: nowrap; }
.info-table thead th { background: var(--band); color: var(--text); 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(--text); 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: 1px solid var(--line); }
.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(--band-soft); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.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: 16px; 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; border: 1px solid var(--line-dark); border-radius: 16px; overflow: hidden; background: #fff; }
.img-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; border: 0; }
.img-row.free img { aspect-ratio: auto; }
.img-row.portrait img { aspect-ratio: 3 / 4; }
.img-row figcaption { font-size: 13.5px; color: var(--text); text-align: center; padding: 10px 12px; font-weight: 600; }
.img-row > img { border: 1px solid var(--line-dark); border-radius: 16px; }

/* 전후 사진 */
.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: 14px; border: 1px solid var(--line-dark); display: block; }
.ba-grid figcaption { position: absolute; left: 12px; top: 12px; background: var(--text); 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); }
.profile h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.profile .role { color: var(--muted); font-weight: 500; margin-bottom: 20px; }
.profile h3 { font-size: 15px; color: var(--text); letter-spacing: .3em; margin: 26px 0 10px; font-weight: 700; }
.profile ul li { padding: 6px 0; position: relative; font-size: 15px; color: #444; }
.profile ul li .tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--text); border: 1px solid var(--line-dark); border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: middle; }
.doctor-letter { border: 1px solid var(--line-dark); background: #fff; border-radius: 20px; padding: 40px 42px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.doctor-letter img { border-radius: 14px; }
.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(--text); font-weight: 600; margin-bottom: 14px; }
.doctor-letter blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 19px; color: var(--text); }
.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-dark); border-radius: 14px; 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: var(--text); border: 1px solid var(--line-dark); border-radius: 4px; padding: 0 7px; margin-bottom: 6px; }
.paper-card h4 { font-size: 14.5px; line-height: 1.45; color: var(--text); margin-bottom: 6px; }
.paper-card p { font-size: 12.5px; color: var(--muted); margin: 0; }
.paper-list { counter-reset: paper; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.paper-list li { border-bottom: 1px solid var(--line); padding: 18px 10px 18px 62px; position: relative; }
.paper-list li::before { counter-increment: paper; content: counter(paper, decimal-leading-zero); position: absolute; left: 12px; top: 18px; font-family: var(--eng); font-weight: 600; color: var(--accent); font-size: 17px; }
.paper-list h4 { font-size: 16px; color: var(--text); 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 { border: 1px solid var(--line-dark); background: #fff; border-radius: 20px; 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(--text); 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-dark); border-radius: 16px; 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(--text); margin: 4px 0 8px; }
.book p { font-size: 14px; color: #555; margin: 0; }

/* 탭 (질환별) */
.tab-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-nav button { border: 1px solid var(--line-dark); background: #fff; border-radius: 999px; padding: 9px 22px; 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(--text); color: #fff; border-color: var(--text); }

/* 입원실 블록 */
.inpatient { border: 1px solid var(--line-dark); background: #fff; border-radius: 20px; 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-size: 22px; color: var(--text); margin: 0; font-weight: 700; }
.inpatient .check-list { border: 0; padding: 0; background: transparent; }

/* 협진 블록 */
.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(--band); color: var(--text); padding: 90px 0; }
.nationwide-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.nationwide .nw-logo { width: 100px; margin-bottom: 18px; }
.nationwide .nw-eyebrow { color: var(--accent-dark); font-weight: 600; margin-bottom: 10px; }
.nationwide h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; }
.nationwide h2 span { color: var(--primary); }
.nationwide .nw-desc { color: #555; }
.nationwide .check-list.light { background: #fff; border-color: var(--line-dark); }
.nationwide .check-list.light li { color: #444; }
.nationwide .check-list.light li::before { color: var(--text); }
.nationwide .nw-map img { width: 100%; max-width: 480px; margin: 0 auto; }
.promise { padding: 90px 0; background: #fff; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promise-card { background: #fff; border: 1px solid var(--line-dark); border-radius: 16px; 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: 600; letter-spacing: .14em; font-size: 12px; }
.promise-card h3 { font-size: 17px; color: var(--text); 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: 14px; overflow: hidden; position: relative; aspect-ratio: 3 / 4; border: 1px solid var(--line-dark); }
.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: 500; 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-dark); border-radius: 14px; 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-dark); border-radius: 14px; 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: 1px solid var(--line-dark); margin-left: 60px; padding-left: 30px; display: grid; gap: 22px; }
.history li { position: relative; }
.history li::before { content: ""; position: absolute; left: -36px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--text); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--text); }
.history .year { position: absolute; left: -100px; top: 0; font-family: var(--eng); font-weight: 600; color: var(--text); 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: 9px 18px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; font-weight: 500; background: #fff; transition: all .2s; }
.related-links a:hover { border-color: var(--text); background: var(--text); color: #fff; }

/* 하단 CTA (바를연 : 베이지 띠 위 제목 + 알약 버튼) */
.page-cta { background: var(--band); text-align: center; padding-top: 70px; padding-bottom: 70px; margin-top: 0; border-radius: 0; }
.page-cta h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 8px; font-weight: 600; color: var(--text); }
.page-cta p { color: #555; margin-bottom: 22px; }
.page-cta .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.page-cta .btn { background: transparent; }
.page-cta .btn:hover { background: var(--text); color: #fff; }
.page-cta .btn-primary { background: var(--primary); }
.page-cta .btn-accent { background: var(--accent); }

/* 면책 문구 */
.disclaimer { font-size: 12.5px; color: #888; padding-top: 26px; padding-bottom: 20px; margin-top: 0; line-height: 1.6; background: #fff; }

/* =========================================================
   게시판 (칼럼 · 공지 · 사례 · 후기 · 언론보도) 목록 + 본문
   ========================================================= */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line-dark); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: all .25s; }
.post-card:hover { border-color: var(--text); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--band-soft); }
.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(--text); }
.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; justify-content: center; }
.post-filter a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 14px; background: #fff; }
.post-filter a.active, .post-filter a:hover { background: var(--text); color: #fff; border-color: var(--text); }
.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: 1px solid var(--text); }
.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; padding-top: 70px; }
.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(--text); }
.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(--band-soft); }
.post-hero img { width: 100%; max-height: 640px; object-fit: contain; }

.summary-box { border: 1px solid var(--line-dark); background: #fff; border-radius: 16px; padding: 22px 26px; margin: 0 0 30px; }
.summary-box h2 { font-size: 16px; color: var(--text); 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(--accent); font-weight: 900; }

.toc { background: var(--band-soft); border-radius: 14px; padding: 18px 24px; margin: 0 0 34px; font-size: 14.5px; }
.toc strong { display: block; margin-bottom: 8px; color: var(--text); }
.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(--text); padding-bottom: 10px; border-bottom: 1px solid var(--line-dark); scroll-margin-top: 140px; }
.post-body h3 { font-size: 19px; margin: 28px 0 10px; color: var(--text); }
.post-body p { color: #3a3a3a; font-size: 16.5px; line-height: 1.85; }
.post-body img { border-radius: 14px; 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(--band-soft); border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; font-size: 16.5px; color: var(--text); }
.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: 1px solid var(--text); border-radius: 14px; padding: 16px 22px; margin: 16px 0 22px; font-size: 16px; }
.post-body .key-answer strong { color: var(--text); }
.post-body iframe { max-width: 100%; }

.references { font-size: 13.5px; color: #666; background: var(--band-soft); border-radius: 14px; padding: 18px 22px; margin-top: 40px; }
.references h2 { font-size: 15px; margin: 0 0 8px; color: var(--text); 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-dark); border-radius: 16px; 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(--text); }
.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-dark); border-radius: 14px; 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(--text); }
.post-nav .next { text-align: right; }

/* 게시판 목록 · 글 본문 페이지는 흰 바탕 한 덩어리 */
.page-body.board .container > .page-section { padding-top: 60px; }

/* 반응형 */
@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 { 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: 28px; }
  .sub-hero { min-height: 260px; }
  .sub-hero .lead { font-size: 15px; }
  .sub-tabs ul { justify-content: flex-start; }
  .page-section { padding-top: 54px; padding-bottom: 54px; }
  .page-section > h2 { font-size: 22px; }
  .flow, .flow.cols-4 { grid-template-columns: 1fr 1fr; padding: 24px 18px; }
  .flow .f + .f::before { display: none; }
  .stage-grid, .stage-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .treat { grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 4px; }
  .treat .t-head img { width: 60px; height: 60px; padding: 10px; }
  .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 { 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-top: 44px; padding-bottom: 44px; }
  .def-list dl { grid-template-columns: 100px 1fr; }
  .book { grid-template-columns: 110px 1fr; }
  .quote-band { font-size: 19px; }
  .ba-grid { gap: 8px; }
}
