:root {
    --main-light: #e6f5fa;
    --main-mid: #007a9c;
    --main-dark: #3b8397;

    --gold-light: #f9f1e7;
    --gold-mid: #b8905e;
    --gold-dark: #8a6840;

    --text-primary: #1a1a1a;
    --text-secondary: #31363a;
    --text-muted: #7a7a7a;

    --border: #e2e2e2;
    --border-strong: #c8c8c8;

    --bg-page: #f7f6f4;
    --bg-surface: #ffffff;
    --bg-subtle: #f2f1ef;
}


.fd-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.fd-nav {
    position: sticky;
    top: 160rem;
    width: 20%;
    height: fit-content;
}

.fd-nav-item {
    display: flex;
    flex-direction: column;
}

.fd-navBtn {
    padding: 15px 0;
    padding-left: 20px;
    font-size: 17px;
    border-left: 3px solid #ddd;
}

.fd-navBtn.actives {
    font-weight: 700;
    color: var(--main-color);
    border-left: 3px solid var(--main-color);
}

.practice-area-wrap {
    width: 75%;
}

/* 페이지 헤더 (공유) */
.pa-header {
    margin-bottom: 72rem;
    padding-bottom: 40rem;
    position: relative;
}

.pa-header__label {
    display: inline-block;
    font-size: 16rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--main-color);
    margin-bottom: 20rem;
}

.pa-header__title {
    font-size: 40rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 20rem;
}

.pa-header__desc {
    color: var(--text-secondary);
    font-size: 19rem;
    font-weight: 500;
    line-height: 1.8;
}

.pa-header__accent {
    position: absolute;
    right: 0;
    bottom: 40rem;
    width: 4rem;
    height: 4rem;
    background: var(--gold-color);
    border-radius: 50%;
    box-shadow: -10rem 0 0 var(--gold-color), -20rem 0 0 var(--gold-color);
    display: none;
}

/* 섹션 공통 (공유) */
.pa-section {
    margin-bottom: 80rem;
}

.pa-section p {
    color: var(--text-secondary);
    font-size: 17rem;
    line-height: 1.85;
    margin-bottom: 32rem;
}

.pa-section__header {
    display: flex;
    align-items: center;
    gap: 16rem;
    margin-bottom: 36rem;
}

.pa-section__num {
    width: 40rem;
    height: 40rem;
    color: var(--main-color);
    font-size: 15rem;
    font-weight: 700;
    letter-spacing: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main-light);
    border-radius: 8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.pa-section__title {
    font-size: 26rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.pa-textBox {
    color: var(--text-secondary);
    padding: 40rem;
    font-size: 19rem;
    font-weight: 500;
    line-height: 1.8;
    border-radius: 8rem;
    background-color: #fafafa;
    border: 1px solid #e4e4e4;
}

.pa-textBox a {
    color: var(--main-color);
}
.pa-textBox a:hover {
    text-decoration: underline;
}

/* 이혼 방법 — 카드 3열 */
.method-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30rem;
    margin-bottom: 30rem;
}

.method-card {
    position: relative;
    padding: 40rem;
    border-radius: 8rem;
    background-color: #fafafa;
    border: 1px solid #e4e4e4;
    overflow: hidden;
}

.method-card__num {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--main-color);
    margin-bottom: 12rem;
}

.method-card__title {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8rem;
    line-height: 1.3;
}

.method-card__subtitle {
    font-size: 15rem;
    color: var(--text-muted);
    margin-bottom: 24rem;
    line-height: 1.5;
    padding-bottom: 20rem;
    border-bottom: 1px solid var(--border);
}

.method-card__body {
    color: var(--text-secondary);
    font-size: 17rem;
    font-weight: 500;
    line-height: 1.75;
}

.method-card__body p+p {
    margin-top: 8px;
}


/* 비교표 */
.compare-table-wrap {
    overflow-x: auto;
    border-radius: 8rem;
    border: 1px solid var(--border);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--bg-surface);
}

.compare-table thead tr {
    background: var(--bg-subtle);
}

.compare-table th {
    padding: 14px 20rem;
    font-size: 16rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table td {
    color: var(--text-secondary);
    padding: 14px 20rem;
    font-size: 16rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.compare-table td.highlight {
    color: var(--main-color);
    font-weight: 500;
}

/* 재판상 이혼 사유 — 아코디언 스타일 리스트 */
.grounds-list {
    display: flex;
    flex-direction: column;
    gap: 15rem;
}

.ground-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8rem;
    overflow: hidden;
}

.ground-item__header {
    display: grid;
    grid-template-columns: 52rem 1fr;
    align-items: start;
    padding: 24rem 28rem;
    gap: 20rem;
}

.ground-item__index {
    width: 36rem;
    height: 36rem;
    border-radius: 50%;
    background: var(--main-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--main-color);
    flex-shrink: 0;
}

.ground-item__content {}

.ground-item__title {
    font-size: 20rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4rem;
    line-height: 1.4;
}

.ground-item__lead {
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 12rem;
    line-height: 1.5;
}

.ground-item__body {
    font-size: 17rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.ground-item__meta {
    background-color: #f7f7f7;
    border-top: 1px solid var(--border);
    padding: 14px 28rem 14px calc(28rem + 72rem);
    font-size: 16rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.ground-item__meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* 진행 절차 — 타임라인 */
.timeline {
    position: relative;
    padding-left: 60rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15rem;
    top: 16rem;
    bottom: 16rem;
    width: 2rem;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40rem;
}

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

.timeline-item__dot {
    position: absolute;
    left: -53rem;
    top: 10rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2rem solid var(--border-strong);
    z-index: 1;
}

.timeline-item:first-child .timeline-item__dot,
.timeline-item:last-child .timeline-item__dot {
    border-color: var(--main-color);
    background: var(--main-color);
}

.timeline-item__step {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--main-color);
    margin-bottom: 6rem;
}

.timeline-item__title {
    font-size: 20rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12rem;
    line-height: 1.4;
}

.timeline-item__card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8rem;
    padding: 33rem;
}

.timeline-item__lead {
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.timeline-item__body {
    font-size: 17rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.timeline-item__sub {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 14px;
    margin-bottom: 6rem;
}

/* 콜아웃 박스 (공유) */
.pa-callout {
    position: relative;
    border-radius: 8rem;
    padding: 50rem;
    margin-top: 48rem;
}

.tag {
    position: absolute;
    top: -1px; right: 50rem;
    width: 50rem;
    height: 60rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--gold-color);
}

.tag i {
    color: #fff;
    font-size: 24rem;
}

.pa-callout--main {
    background: var(--main-light);
    border: 1px solid var(--main-color);
}

.pa-callout--gold {
    background: var(--gold-light);
    border: 1px solid #cea77755;
}

.pa-callout__label {
    color: var(--main-color);
    font-size: 24rem;
    font-weight: 600;
    font-family: 'Noto Serif KR';
    letter-spacing: -1rem;
    margin-bottom: 20rem;
}

.pa-callout--gold .pa-callout__label {
    color: var(--gold-mid);
}

.pa-callout__title {
    font-size: 20rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20rem;
}

.pa-callout__body {
    font-size: 15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* 실무 팁 — 번호 강조 카드 (공유) */
.tips-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20rem;
}

.tip-item {
    display: flex;
    flex-direction: column;
    gap: 20rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8rem;
    padding: 30px;
    align-items: start;
}

.tip-item__num {
    font-size: 28rem;
    font-weight: 700;
    color: var(--main-light);
    line-height: 1;
    text-align: center;
    background: var(--main-color);
    border-radius: 6rem;
    padding: 10rem 0;
    flex-shrink: 0;
}

.tip-item__title {
    font-size: 20rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10rem;
    line-height: 1.4;
}

.tip-item__body {
    font-size: 15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 결론 섹션 (공유) */
.pa-conclusion {
    background: var(--main-dark);
    border-radius: 8rem;
    text-align: center;
    padding: 50rem;
    margin-top: 0;
}

.pa-conclusion__label {
    color: var(--gold-color);
    font-size: 15rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 16rem;
}

.pa-conclusion__title {
    color: #fff;
    font-size: 28rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Noto Serif KR';
    letter-spacing: -1rem;
    margin-bottom: 20rem;
}

.pa-conclusion__body {
    color: #fff;
    font-size: 17rem;
    line-height: 1.85;
}

/* 구분선 */
.pa-divider {
    height: 1px;
    background: var(--border);
    margin: 72rem 0;
    display: none;
}

/* 업무분야 해결사례 섹션 */
.fd-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.fd-case-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 40rem;
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-color, #e2e6f0);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary, #1a2744);
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.fd-case-card:hover {
    box-shadow: 0 2px 16px rgba(26,39,68,.07);
}

.fd-case-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.fd-case-agency {
    color: var(--gold-color);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 15px;
    font-weight: 500;
}
.fd-case-agency i { font-size: 13px; }

.fd-case-result {
    width: fit-content;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    padding: 6px 9px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: auto;
    margin-bottom: 0;
}
.blr-win-full  { background:#f0faf4; color:#1f7a45; border:1px solid #b8e6cb; }
.blr-win-part  { background:#fdf5e8; color:#8a6010; border:1px solid #f0d48a; }
.blr-agree     { background:#eef2fd; color:#2f5fe8; border:1px solid #c7d6f9; }
.blr-mediate,
.blr-settle    { background:#f5f0fb; color:#6b3fb5; border:1px solid #d8c9f5; }

.fd-case-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fd-case-summary {
    font-size: 16px;
    color: var(--text-muted, #7a849a) !important;
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fd-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 4px;
}
.fd-case-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: #eef2fd;
    color: #2f5fe8;
    border: 1px solid #c7d6f9;
    border-radius: 100px;
}

.fd-case-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    display: none;
}

.fd-case-footer {
    margin-top: 20px;
    text-align: center;
}
.fd-case-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border: 1.5px solid var(--accent, #2f5fe8);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent, #2f5fe8);
    text-decoration: none;
    transition: all .2s;
}
.fd-case-all-btn:hover {
    background: var(--accent, #2f5fe8);
    color: #fff;
}

@media (max-width: 720px) {
    .fd-case-grid { grid-template-columns: 1fr; }
}


.fd_common {
    position: relative;
    padding: 160rem 0;
    background-color: var(--main-dark);
    overflow: hidden;
}

.fdc-sb {
    position: absolute;
    top: 0; left: 15%;
    height: 100%;
    opacity: .07;
}

.fdc-text {
    text-align: center;
}

.fdc-text h6 {
    color: var(--gold-color);
    font-size: 17px;
    letter-spacing: 1rem;
    margin-bottom: 20rem;
}

.fdc-text h5 {
    color: #fff;
    font-size: 36rem;
    font-weight: 600;
    font-family: 'Noto Serif KR';
}

.fdc-text p {
    color: #fff;
    font-size: 17rem;
    font-weight: 300;
    line-height: 1.6;
    margin-top: 30rem;
}

.fdcBtn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60rem;
}

.fdcBtn {
    color: var(--main-color);
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid transparent;
    background-color: #fff;
}

.fdcBtn.outline {
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
}

.sub-p-text p {
    padding: 0 5%;
    justify-content: center;
    align-items: center;
    gap: 0 7px;
}



/*==================================================*/
@media (max-width: 991px) {
    .fd-wrapper {
        flex-direction: column;
    }

    .pa-header__label,
    .pa-header__title,
    .fd-nav {
        display: none;
    }

    .practice-area-wrap {
        width: 100%;
    }

    .pa-header {
        padding-bottom: 0;
    }
    
    .pa-section {
        margin-bottom: 50rem;
    }

    .tips-list {
        grid-template-columns: repeat(1, 1fr);
    }
}


@media (max-width: 550px) {
    .pa-header__label {
        font-size: 20rem;
    }

    .pa-header__title {
        font-size: 50rem;
        margin-bottom: 30rem;
    }

    .pa-section p {
        font-size: 24rem;
    }

    .method-card__subtitle {
        font-size: 22rem;
    }

    .pa-section__num {
        width: 50rem;
        height: 50rem;
        font-size: 20rem;
    }
    
    .pa-section__title {
        font-size: 32rem;
    }
    .pa-section__title span,
    .pa-section__title span a {
        font-size: 22rem;
    }

    .compare-table th,
    .compare-table td {
        font-size: 24rem;
    }

    .ground-item__header {
        display: flex;
        flex-direction: column;
        padding: 40rem;
    }

    .ground-item__title {
        padding-right: 5%;
        font-size: 32rem;
    }

    .ground-item__body {
        font-size: 22rem;
    }

    .ground-item__meta {
        padding: 20rem 40rem;
        font-size: 18rem;
    }

    .pa-callout__label {
        font-size: 32rem;
        margin-bottom: 40rem;
    }

    .pa-callout__title {
        font-size: 24rem;
    }

    .timeline-item__title {
        font-size: 24rem;
    }

    .timeline-item__body {
        font-size: 20rem;
    }

    .tip-item__title {
        font-size: 32rem;
    }

    .tip-item__body {
        font-size: 24rem;
    }

    .fd_common {
        padding: 100rem 0;
    }

    .fdc-text p {
        font-size: 20rem;
    }

    .fdc-text p br {
        display: none;
    }

    .fdcBtn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .fd-case-title {
        font-size: 32rem;
    }

    .fd-case-result {
        font-size: 13px;
        margin-top: 0;
    }
}