/* ==========================================================
   블록형 페이지 (공개) — 문서형 카드 스타일
   구조·내용 규격은 와이어프레임 PPT, 겉모습은 연회청색 바탕 + 흰 카드, 고딕.
   --pg-color  : 허브(페이지) 색. 버튼·아이콘·배지. 컨트롤러가 <main style="--pg-color:#…"> 로 넘긴다.
   --pg-accent : 강조 파랑. 제목 속 핵심 구절·링크·STEP 알약 글자.
   ========================================================== */

.pg {
    --pg-ink: #1c2430;
    --pg-muted: #6b7482;
    --pg-line: #e4e8ef;
    --pg-bg: #f4f6fa;
    --pg-band: #eceff5;
    --pg-soft: #eef3fb;
    --pg-accent: #2b5fd9;
    --pg-radius: 12px;
    --pg-shadow: 0 8px 24px rgba(28, 36, 48, 0.06);
    --pg-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: "Noto Sans KR", "SUIT-Regular", "Apple SD Gothic Neo", sans-serif;
    background: var(--pg-bg);
    color: var(--pg-ink);
    line-height: 1.85;
    font-size: 16px;
    word-break: keep-all;
    padding: 0 0 80px;
}

.pg * {
    font-family: inherit;
}

/* 공용 header/footer.css 가 html·body 양쪽에 overflow-x:hidden 을 걸어 body 가 스크롤 안 되는 스크롤 컨테이너가 되고,
   그러면 오른쪽 칼럼의 position:sticky 가 죽는다. body 만 풀어 준다(가로 넘침은 html 쪽에서 계속 막힘). */
body.pg-body:not(.menu-open) {
    overflow: visible;
}

.pg-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pg :where(a) {
    color: inherit;
    text-decoration: none;
}

.pg em {
    font-style: normal;
    color: var(--pg-accent);
}

.pg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pg-empty {
    text-align: center;
    color: var(--pg-muted);
    padding: 80px 0;
}

/* 흰 카드 공통 */
.pg-box {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 44px 48px;
    margin-top: 24px;
}


/* ---------- 미리보기 띠 ---------- */

.pg-preview-bar {
    background: #f39c12;
    color: #1f2d3d;
    text-align: center;
    font-weight: 700;
    padding: 10px 16px;
    font-size: 14px;
}


/* ---------- 경로 + 제목 띠 (히어로) ---------- */

.pg-crumb {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 13.5px;
    color: var(--pg-muted);
    padding: 22px 0 0;
}

.pg-crumb a:hover {
    color: var(--pg-accent);
}

.pg-crumb i {
    margin-right: 5px;
}

/* 테두리 없는 연회색 띠. 경로가 바로 위에 붙는다 */
.pg-title-box {
    text-align: center;
    padding: 56px 40px 60px;
    margin-top: 14px;
    background: var(--pg-band);
    border: 0;
    border-radius: 8px;
}

.pg-eyebrow {
    font-size: 14px;
    color: var(--pg-accent);
    font-weight: 700;
    margin: 0 0 10px;
}

.pg-title-box h1 {
    font-size: clamp(30px, 3.8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 0 0 18px;
}

.pg-hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    color: #3d4653;
    max-width: 760px;
    margin: 0 auto 22px;
    white-space: pre-line;
}

.pg-tags {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding: 0;
    margin: 0 0 26px;
    font-size: 15.5px;
    color: #3d4653;
}

.pg-tags li::before {
    content: "# ";
    color: var(--pg-accent);
    font-weight: 700;
}

.pg-hero-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pg-hero-media {
    margin: 30px auto 0;
    max-width: 760px;
}

.pg-hero-media img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.pg-title-box.is-dark {
    background: var(--pg-color);
    color: #fff;
}

.pg-title-box.is-dark .pg-eyebrow,
.pg-title-box.is-dark .pg-hero-sub,
.pg-title-box.is-dark .pg-tags {
    color: rgba(255, 255, 255, 0.85);
}

.pg-title-box.is-dark .pg-tags li::before {
    color: #fff;
}

.pg-title-box.is-dark .pg-btn {
    background: #fff;
    color: var(--pg-color);
}

.pg-title-box.is-dark .pg-btn.ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* 버튼 */
.pg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    background: var(--pg-color);
    color: #fff;
    transition: transform 0.2s var(--pg-ease), box-shadow 0.2s;
}

.pg-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(28, 36, 48, 0.14);
}

.pg-btn.ghost {
    border: 1px solid var(--pg-line);
    color: var(--pg-ink);
    background: #fff;
}

.pg-btn.ghost:hover {
    border-color: var(--pg-accent);
    color: var(--pg-accent);
    box-shadow: none;
}


/* ---------- 본문 | 오른쪽 칼럼 ---------- */

.pg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 36px;
    align-items: start;
}

.pg-layout.has-aside {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.pg-main {
    min-width: 0;
}

.pg-aside {
    min-width: 0;
    align-self: stretch; /* 본문 높이만큼 늘려야 안쪽 sticky 가 끝까지 따라온다 */
}

.pg-aside-inner {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.pg-side-box {
    background: #fff;
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-radius);
    padding: 24px 24px 22px;
}

.pg-side-box .kicker {
    color: var(--pg-accent);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 2px;
}

.pg-side-box h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pg-ink);
    letter-spacing: -0.02em;
}

.pg-side-box .sub {
    color: var(--pg-muted);
    font-size: 13.5px;
    line-height: 1.6;
    margin: -6px 0 14px;
}

/* 목차 */
.pg-toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-toc li + li {
    border-top: 1px solid var(--pg-line);
}

.pg-toc a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 4px;
    padding: 10px 6px 10px 2px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: #3d4653;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.pg-toc .num {
    color: var(--pg-accent);
    font-weight: 800;
    font-size: 13px;
    padding-top: 2px;
}

.pg-toc a:hover {
    color: var(--pg-accent);
}

.pg-toc a.is-active {
    color: var(--pg-accent);
    font-weight: 800;
}

.pg-toc a.is-active .t {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

/* 연관 변호사 (오른쪽 칼럼) */
.pg-side-lawyer-list {
    display: grid;
    gap: 8px;
}

.pg-side-lawyer {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 14px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px 10px 10px;
    background: var(--pg-bg);
    border-radius: 10px;
    transition: background 0.2s;
}

.pg-side-lawyer:hover {
    background: var(--pg-soft);
}

.pg-side-lawyer-photo {
    width: 80px;
    border: 1px solid rgba(20, 42, 58, 0.08);
    border-radius: 9px;
    display: block;
    overflow: hidden;
    background: #fff;
}

.pg-side-lawyer-img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 25%;
    display: block;
    filter: none !important;
    transform: none !important;
}

.pg-side-lawyer .body {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.pg-side-lawyer .reg {
    font-size: 12px;
    color: var(--pg-accent);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-side-lawyer strong {
    font-size: 15.5px;
    font-weight: 800;
}

.pg-side-lawyer i {
    color: var(--pg-muted);
    font-size: 12px;
}

/* 빠른 상담 */
.pg-side-cta {
    text-align: center;
    background: var(--pg-soft);
    border-color: #d5deef;
}

.pg-side-cta .pg-btn {
    width: 100%;
    justify-content: center;
}

.pg-side-cta .tel {
    display: block;
    margin-top: 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--pg-ink);
}

.pg-side-cta .tel i {
    font-size: 16px;
    color: var(--pg-color, #204B62);
    margin-right: 4px;
}

.pg-side-cta p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--pg-muted);
}


/* ---------- 섹션 제목 (카드 밖) ---------- */

.pg-sec-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: clamp(23px, 2.8vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 80px 0 0;
    scroll-margin-top: 90px;
}

.pg-sec-title i {
    color: var(--pg-color);
    font-size: 0.85em;
}

.pg-sub {
    text-align: center;
    color: var(--pg-muted);
    font-size: 15px;
    margin: 10px 0 0;
}

.pg-outro {
    margin: 30px 0 0;
    padding: 16px 20px;
    background: var(--pg-soft);
    border-radius: 10px;
    font-size: 15px;
}

.pg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pg-accent);
    font-weight: 700;
    font-size: 14.5px;
}

.pg-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pg-more {
    text-align: center;
    margin: 28px 0 0;
}

.pg-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 1px solid var(--pg-line);
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    background: #fff;
}

.pg-more-btn:hover {
    border-color: var(--pg-accent);
    color: var(--pg-accent);
}

/* 카드 안 소제목: 파란 고리 점 */
.pg-h3 {
    position: relative;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 8px;
    padding-left: 20px;
    line-height: 1.5;
}

.pg-h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--pg-accent);
}


/* ---------- 신뢰 근거 ---------- */

.pg-trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pg-trust.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pg-trust li {
    padding: 24px 24px 22px;
    background: var(--pg-bg);
    border-radius: 10px;
}

.pg-trust strong {
    display: block;
    font-size: 17.5px;
    margin-bottom: 6px;
}

.pg-trust p {
    margin: 0;
    font-size: 14.5px;
    color: var(--pg-muted);
}


/* ---------- 업무분야 목록 ---------- */

.pg-areas {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
}

.pg-areas li {
    border-bottom: 1px solid var(--pg-line);
}

.pg-areas a,
.pg-areas .nolink {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 12px;
    align-items: center;
    padding: 20px 4px;
}

.pg-areas a:hover strong {
    color: var(--pg-accent);
}

.pg-areas .num {
    font-size: 14px;
    color: var(--pg-accent);
    font-weight: 800;
}

.pg-areas strong {
    display: block;
    font-size: 18px;
}

.pg-areas small {
    display: block;
    font-size: 14px;
    color: var(--pg-muted);
    margin-top: 2px;
}

.pg-areas .arr {
    font-size: 20px;
    color: var(--pg-muted);
    text-align: right;
}

.pg-areas .go {
    display: none;
}

/* 관리자 미리보기에서만 보이는 비공개 표시 */
.pg-draft {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #fff3cd;
    color: #8a6100;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0;
}

/* 카드 모양(허브 첫 화면): 번호·꺾쇠 대신 제목 + 한 줄 + 「자세히 보기」, 올리면 파란 테두리 */
.pg-areas.is-cards {
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-areas.is-cards li {
    border: 1px solid var(--pg-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, transform 0.25s var(--pg-ease);
}

.pg-areas.is-cards li:hover {
    border-color: var(--pg-accent);
    transform: translateY(-2px);
}

.pg-areas.is-cards a,
.pg-areas.is-cards .nolink {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 22px 20px;
    height: 100%;
    box-sizing: border-box;
    align-items: start;
}

.pg-areas.is-cards .num,
.pg-areas.is-cards .arr {
    display: none;
}

.pg-areas.is-cards strong {
    font-size: 17px;
    line-height: 1.45;
}

.pg-areas.is-cards small {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pg-areas.is-cards .go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--pg-accent);
}

.pg-areas.is-cards .go i {
    font-size: 11px;
    transition: transform 0.2s;
}

.pg-areas.is-cards li:hover .go i {
    transform: translateX(3px);
}


/* ---------- 체크리스트: 한 열, 소제목 + 설명 ---------- */

.pg-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-check li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0;
    border-bottom: 1px solid var(--pg-line);
}

.pg-check li:first-child {
    padding-top: 4px;
}

.pg-check li:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.pg-check .num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg-soft);
    color: var(--pg-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    margin-top: 2px;
}

.pg-check strong {
    display: block;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.5;
}

.pg-check p {
    margin: 0;
    color: #3d4653;
    font-size: 16px;
    white-space: pre-line;
}

.pg-check .pg-link {
    margin-top: 10px;
}


/* ---------- 번호 포인트 ---------- */

.pg-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pg-points.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-points li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 24px;
    border: 1px solid var(--pg-line);
    border-radius: 10px;
    background: #fff;
}

.pg-points .num {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--pg-color);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pg-points strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin: 6px 0 6px;
    line-height: 1.45;
}

.pg-points p {
    margin: 0;
    font-size: 15.5px;
    color: #3d4653;
    white-space: pre-line;
}


/* ---------- 진행절차: 세로 타임라인 (아이콘 원 + STEP 알약) ---------- */

.pg-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.pg-timeline::before {
    content: "";
    position: absolute;
    left: 33px;
    top: 34px;
    bottom: 34px;
    width: 2px;
    background: #dfe4ee;
}

.pg-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 26px;
    padding: 6px 0 40px;
}

.pg-timeline li:last-child {
    padding-bottom: 0;
}

.pg-timeline .node {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #cfd8ea;
    color: #6f86c4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: relative;
    z-index: 1;
}

.pg-step-pill {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--pg-soft);
    color: #1f3a8a;
    font-weight: 800;
    font-size: 17px;
    margin: 10px 0 12px;
    line-height: 1.4;
}

.pg-timeline p {
    margin: 0;
    font-size: 16px;
    color: #3d4653;
    white-space: pre-line;
}

.pg-timeline.is-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.pg-timeline.is-horizontal::before {
    display: none;
}

.pg-timeline.is-horizontal li {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
}


/* ---------- 연관 변호사 ---------- */

.pg-lawyers {
    display: grid;
    gap: 12px;
}

.pg-lawyer {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 20px;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    background: var(--pg-bg);
    border-radius: 10px;
    transition: background 0.2s;
}

.pg-lawyer:hover {
    background: var(--pg-soft);
}

.pg-lawyer .photo img {
    width: 68px;
    height: 84px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    display: block;
    background: #fff;
}

.pg-lawyer .name {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.pg-lawyer .name small {
    font-size: 14px;
    font-weight: 500;
    color: var(--pg-muted);
    margin-left: 4px;
}

.pg-lawyer .blurb {
    display: block;
    font-size: 14.5px;
    color: #3d4653;
    margin-top: 2px;
}

.pg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.pg-badges em {
    font-size: 12.5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--pg-accent);
    font-weight: 700;
    border: 1px solid #d5deef;
}

.pg-lawyer .arr {
    color: var(--pg-muted);
    font-size: 13px;
}

.pg-lawyers.is-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pg-lawyers.is-cards .pg-lawyer {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--pg-line);
    overflow: hidden;
}

.pg-lawyers.is-cards .photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
}

.pg-lawyers.is-cards .body {
    padding: 18px 20px 20px;
}

.pg-lawyers.is-cards .arr {
    display: none;
}


/* ---------- 법률정보 ---------- */

.pg-legal {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pg-legal li + li {
    border-top: 1px solid var(--pg-line);
}

.pg-legal a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    padding: 20px 6px;
}

.pg-legal a:hover strong {
    color: var(--pg-accent);
}

.pg-legal .num {
    font-size: 14px;
    color: var(--pg-accent);
    font-weight: 800;
}

.pg-legal strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
}

.pg-legal small {
    display: block;
    font-size: 13.5px;
    color: var(--pg-muted);
    margin-top: 2px;
}

.pg-legal .arr {
    color: var(--pg-muted);
    font-size: 13px;
}

.pg-legal.is-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pg-legal.is-cards li {
    border: 1px solid var(--pg-line);
    border-radius: 10px;
}

.pg-legal.is-cards li + li {
    border-top: 1px solid var(--pg-line);
}


/* ---------- 성공사례 ---------- */

.pg-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.pg-case {
    display: block;
    padding: 22px 24px;
    border: 1px solid var(--pg-line);
    border-radius: 10px;
    background: #fff;
    transition: box-shadow 0.25s var(--pg-ease), transform 0.25s var(--pg-ease);
}

.pg-case:hover {
    box-shadow: var(--pg-shadow);
    transform: translateY(-2px);
}

.pg-case .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pg-case .tag {
    display: inline-block;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--pg-soft);
    color: var(--pg-accent);
    font-weight: 700;
}

.pg-case strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 6px;
}

.pg-case p {
    margin: 0;
    font-size: 14.5px;
    color: var(--pg-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pg-case .result {
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--pg-color);
    color: #fff;
    font-weight: 800;
    font-size: 13.5px;
    white-space: nowrap;
}

.pg-cases.is-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
}

.pg-cases.is-slider .pg-case {
    flex: 0 0 320px;
    scroll-snap-align: start;
}


/* ---------- 상담 3채널 ---------- */

.pg-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pg-channel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 24px;
    background: var(--pg-bg);
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
}

.pg-channel:hover {
    background: var(--pg-soft);
    transform: translateY(-2px);
}

.pg-channel i {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--pg-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 8px;
}

.pg-channel strong {
    font-size: 18px;
}

.pg-channel p {
    margin: 0;
    font-size: 14.5px;
    color: var(--pg-muted);
}

.pg-channel .tel {
    font-size: 17px;
    color: var(--pg-ink);
    font-weight: 800;
}

.pg-notes {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 30px;
    font-size: 14.5px;
    color: var(--pg-muted);
}


/* ---------- 상담 배너 ---------- */

.pg-banner {
    margin-top: 32px;
    border-radius: var(--pg-radius);
    padding: 36px 44px;
    color: #fff;
    background: linear-gradient(120deg, var(--pg-color), #1c2430);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.pg-banner.is-light {
    background: var(--pg-soft);
    color: var(--pg-ink);
}

.pg-banner strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.pg-banner span {
    font-size: 14.5px;
    opacity: 0.85;
}

.pg-banner .pg-btn {
    background: #fff;
    color: var(--pg-color);
}

.pg-banner.is-light .pg-btn {
    background: var(--pg-color);
    color: #fff;
}


/* ---------- 자유 글 ---------- */

.pg-text h2 {
    position: relative;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-left: 20px;
}

.pg-text h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--pg-accent);
}

.pg-prose {
    font-size: 16px;
    line-height: 1.95;
    color: #2b3340;
    white-space: pre-line;
}

.pg-text.is-2col .pg-prose {
    column-count: 2;
    column-gap: 44px;
}


/* ---------- 이미지 ---------- */

.pg-image {
    margin-top: 24px;
}

.pg-image figure {
    margin: 0;
}

.pg-image img {
    display: block;
    width: 100%;
    border-radius: var(--pg-radius);
}

.pg-image.is-full img {
    border-radius: 0;
    max-height: 560px;
    object-fit: cover;
}

.pg-image figcaption {
    font-size: 13.5px;
    color: var(--pg-muted);
    margin-top: 8px;
    text-align: center;
}


/* ---------- FAQ ---------- */

.pg-faq details {
    border-bottom: 1px solid var(--pg-line);
}

.pg-faq details:first-of-type {
    border-top: 1px solid var(--pg-line);
}

.pg-faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 20px 8px;
    font-size: 17px;
    font-weight: 700;
}

.pg-faq summary::-webkit-details-marker {
    display: none;
}

.pg-faq summary .q {
    color: var(--pg-accent);
    font-weight: 800;
}

.pg-faq .a {
    padding: 0 8px 22px 38px;
    font-size: 15.5px;
    color: #2b3340;
    white-space: pre-line;
}


/* ---------- 스크롤 등장 ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--pg-ease), transform 0.55s var(--pg-ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ---------- 모바일 하단 상담 바 ---------- */

.pg-sticky {
    display: none;
}

@media (max-width: 768px) {
    .pg-body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .pg-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: calc(64px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        border-top: 1px solid #e4e8ef;
        box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
    }

    .pg-sticky a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 44px;
        font-size: 12.5px;
        font-weight: 600;
        color: #1c2430;
        text-decoration: none;
    }

    .pg-sticky a i {
        font-size: 16px;
        color: var(--pg-color, #204B62);
    }
}


/* ---------- 태블릿: 한 칼럼, 오른쪽 칼럼은 본문 아래 ---------- */

@media (max-width: 1024px) {
    .pg-layout.has-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .pg-aside-inner {
        position: static;
        margin-top: 16px;
    }

    .pg-side-cta {
        display: none;
    }
}


/* ---------- 좁은 화면 ---------- */

@media (max-width: 900px) {
    .pg-box {
        padding: 26px 20px;
        margin-top: 16px;
    }

    .pg-crumb {
        padding-top: 14px;
    }

    .pg-title-box {
        padding: 34px 20px 36px;
    }

    .pg-side-box {
        padding: 20px 18px;
    }

    .pg-sec-title {
        margin-top: 52px;
        font-size: 22px;
    }

    .pg-trust,
    .pg-trust.cols-2,
    .pg-areas,
    .pg-areas.is-cards,
    .pg-points,
    .pg-points.cols-3,
    .pg-lawyers.is-cards,
    .pg-legal.is-cards,
    .pg-channels {
        grid-template-columns: 1fr;
    }

    .pg-check li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        padding: 20px 0;
    }

    .pg-check .num {
        width: 32px;
        height: 32px;
        font-size: 12.5px;
    }

    .pg-check strong {
        font-size: 17px;
    }

    .pg-timeline::before {
        left: 25px;
    }

    .pg-timeline li {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
        padding-bottom: 30px;
    }

    .pg-timeline .node {
        width: 52px;
        height: 52px;
        font-size: 19px;
    }

    .pg-step-pill {
        font-size: 15.5px;
    }

    .pg-case {
        grid-template-columns: 1fr;
    }

    .pg-case .result {
        justify-self: start;
    }

    .pg-banner {
        padding: 26px 20px;
    }

    .pg-text.is-2col .pg-prose {
        column-count: 1;
    }
}
