@charset "utf-8";

/* =============================================================================
   Fonts
============================================================================= */
@font-face {
    font-family: "SUIT-Regular";
    src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_suit@1.0/SUIT-Regular.woff2")
    format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;   /* 웹폰트 도착 전에도 글자를 먼저 그린다 (2026-10-19) */
}

@font-face {
    font-family: "KCCHyerim-Regular";
    src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/KCCHyerim-Regular.woff2")
    format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;   /* 웹폰트 도착 전에도 글자를 먼저 그린다 (2026-10-19) */
}

/* =============================================================================
   Tokens
============================================================================= */
:root {
    --main-navi: #204b62;
    --main-text: #333;
    --main-white: #fff;
    --line-strong: #333;
    --line-muted: #ccc;
    --nav-bg: #fff;
}

/* =============================================================================
   Base / Reset
============================================================================= */
* {
    margin: 0;
    padding: 0;
    font-family: "SUIT-Regular";
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-text);
}

img {
    vertical-align: bottom;
}

html,
body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.body {
    max-width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* =============================================================================
   Page / Layout
============================================================================= */
.success-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px; /* main | aside */
    gap: 24px;
    align-items: start;
    max-width: 1500px;
    margin: 50px auto 80px;
}

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

.success-aside {
    width: 100%;
}

/* =============================================================================
   Hero
============================================================================= */
.txt {
    background: url(/img/success_bg.jpg) center top / cover no-repeat;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.txt span {
    display: inline-block;
    margin-top: 50px;
    font-size: 60px;
    font-weight: 700;
    color: var(--main-white);
}

/* =============================================================================
   Content
============================================================================= */
.success-detail {
    max-width: 1400px;
    margin: 0 auto 80px;
    color: var(--main-text);
    line-height: 1.7;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 23px 23px 0 0;
    font-weight: 700;
    font-size: 15px;
}

.success-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.success-header .case-title {
    width: 1400px;
    padding: 5px 5px 5px 15px;
    font-size: 30px;
    color: var(--main-text);
    background-color: var(--main-white);
    border-bottom: 2px solid #bcbcbc;
}

/* =============================================================================
   Card
============================================================================= */
.custom-html-card .card-wrapper {
    max-width: 950px;
    margin: 0 auto 30px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: 15px;
    background-color: #fdfdfd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-html-card .card-header h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 25px;
    color: var(--main-navi);
}

.custom-html-card .card-body p {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 2.6;
}

.custom-html-card .card-body p strong {
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--main-navi);
}

.pre {
    font-size: 20px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.case-highlight {
    background-color: #EAFF00;
    font-weight: 700;
}

/* Card body images */
.card-body img {
    width: 100%;
    height: 100%;
}

.card-body .lawyer-image {
    margin-top: 20px;
    text-align: center;
}

.card-body .lawyer-image img {
    width: 220px;
    height: auto;
}

/* Verdict image */
.verdict-image {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    cursor: pointer;
}

/* =============================================================================
   Card (Flex row variant)
============================================================================= */
.card-body.flex-row {
    display: flex;
    justify-content: space-between;
    gap: 0;
}

.card-body .card-text {
    flex: 1;
}

.card-body .card-image {
    flex: 0 0 200px;
}

.card-body .card-image img.verdict-image {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* =============================================================================
   Sections
============================================================================= */
.case-section {
    padding-top: 20px;
    margin: 40px 20px;
}

.case-section h3 {
    position: relative;
    display: inline-block;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 30px;
    color: var(--main-navi);
    border-bottom: 2px solid var(--main-navi);
}

.case-section h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(146, 220, 255, 0.4);
    z-index: -1;
}

.case-section p {
    margin: 15px 0 35px 10px;
    font-size: 18px;
}

.highlight {
    color: #b91c1c;
    font-weight: 700;
}

/* =============================================================================
   Lawyer info block
============================================================================= */
.lawyer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.side-card .side-lawyers .lawyer-item .lawyer-meta {
    width: 150px;
    height: 150px;
}

.lawyer-photo img {
    width: 200px;
    height: 150px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.lawyer-text .lawyer-name {
    font-weight: 700;
    font-size: 30px;
    color: #222;
}

.lawyer-text .lawyer-title {
    margin-left: 4px;
    font-weight: 400;
    font-size: 20px;
    color: #666;
}

.lawyer-text .lawyer-specialty {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    color: #0073aa;
}

/* =============================================================================
   Image modal
============================================================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding-top: 60px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.image-modal .modal-content {
    display: block;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
}

.image-modal .close {
    position: absolute;
    top: 30px;
    right: 35px;
    font-size: 40px;
    font-weight: 700;
    color: var(--main-white);
    cursor: pointer;
}

/* =============================================================================
   Consult buttons
============================================================================= */
.consult-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 48px 0;
}

.consult-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 260px;
    padding: 20px 48px;
    border: none;
    border-radius: 50px;
    outline: none;
    background: #222;
    color: var(--main-white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: background 0.18s, filter 0.16s, color 0.16s;
    cursor: pointer;
}

.consult-btn .btn-icon {
    width: 34px;
    height: 34px;
    margin-right: 14px;
}

.phone-btn {
    background: var(--main-navi);
}

.phone-btn:hover {
    background: #273d4e;
    filter: brightness(0.94);
}

.kakao-btn {
    background: #ffe812;
    color: #181600;
}

.kakao-btn:hover {
    background: #ffe56b;
    color: #000;
    filter: brightness(0.96);
}

/* =============================================================================
   Aside widgets
============================================================================= */
.success-aside .side-card {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #e8eef3;
    border-radius: 12px;
    background: var(--main-white);
}

.success-aside .side-title {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 20px;
    color: #133a53;
}

/* Lawyer list */
.side-lawyers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lawyer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    text-decoration: none;
}

.lawyer-thumb {
    width: 150px;
    height: 150px;
    object-fit: contain;
    background: #f2f4f7;
}

.lawyer-meta .name {
    font-weight: 700;
    font-size: 20px;
    color: #223333;
}

.lawyer-meta .role,
.lawyer-meta .spec {
    font-size: 15px;
    color: #6b7a88;
}

.lawyer-meta .spec {
    margin-top: 4px;
}

/* Related law info */
.side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: inherit;
    margin-left: 30px;
}

.side-list-item .title {
    display: block;
    font-size: 18px;
    line-height: 1.4;
}

.side-list-item .cat {
    margin-top: 2px;
    font-size: 12px;
    color: #777;
}

/* =============================================================================
   Related cases
============================================================================= */
.related-cases {
    margin: 70px 20px 0;
    padding: 18px 20px;
    border: 1px solid #e8f2f7;
    border-radius: 12px;
    background: #f7fbfd;
}

.related-cases h3 {
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 700;
    color: var(--main-navi);
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-list li {
    position: relative;
    padding-left: 16px;
    line-height: 1.6;
}

.related-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    top: 0;
    color: #2c6b82;
}

.related-list a {
    color: #222;
    text-decoration: none;
}

.related-list a:hover {
    text-decoration: underline;
}

/* =============================================================================
   CTA + list button
============================================================================= */
.ctaWithFa-barsButton {
    position: relative;
    max-width: 1500px;
    margin: 0 auto 72px;
}

.ctaWithFa-barsButton .circle-button {
    position: absolute;
    right: 88px;
    bottom: -22px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #18495c;
    color: var(--main-white);
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* =============================================================================
   Prev / Next
============================================================================= */
.nextAndPreViewBox {
    margin-bottom: 40px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px;
    width: min(100%, 1400px);
    margin: 0 auto;
    font-size: 15px;
    color: var(--main-text);
    border-top: 1px solid var(--line-strong);
    background: var(--nav-bg);
}

.nav-item + .nav-item {
    border-top: 1px dashed var(--line-muted);
}

.nav-item:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.nav-item span {
    flex: 0 0 70px;
    font-weight: 700;
    color: #555;
}

.nav-item a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item a:hover {
    text-decoration: underline;
}

.nav-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 6px;
}

.nav-item.is-empty {
    justify-content: flex-start;
}

.nav-item .empty {
    margin-left: 12px;
    font-weight: 400;
    color: #999;
}

.nav-item.prev a::before {
    content: "←";
}

.nav-item.next a::after {
    content: "→";
}

/* =============================================================================
   Responsive
============================================================================= */

/* 1025 ~ 1439 (노트북) */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
    /* txt span 기본값과 동일: 중복 제거 가능 (유지 필요 시만 작성) */
}

/* 768 ~ 1024 (태블릿) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .only-pc {
        display: none !important;
    }

    .success-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0;
    }

    .success-main {
        order: 1;
    }

    .success-aside {
        order: 2;
        width: 100%;
    }

    .success-header .case-title {
        width: 100%;
    }

    .custom-html-card .card-wrapper {
        max-width: 100%;
        margin: 0 0 30px;
    }

    .success-detail {
        max-width: 100%;
        padding: 0 16px;
    }

    .case-section {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* 481 ~ 767 (모바일) */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .only-pc {
        display: none !important;
    }

    .success-detail {
        padding: 20px 14px;
    }

    .success-header {
        font-size: 14px;
        padding: 10px;
    }

    .success-header .back-btn {
        font-size: 18px;
    }

    .search-box {
        margin-top: 20px;
    }

    .image-modal {
        top: -50px;
    }

    .image-modal .close {
        top: auto;
    }

    .case-section p {
        margin-bottom: 0;
        font-size: 15px;
    }

    .success-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0;
    }

    .success-header .case-title {
        width: 100%;
    }

    .custom-html-card .card-wrapper {
        max-width: 100%;
        margin: 0 0 30px;
    }

    .success-detail {
        max-width: 100%;
        padding: 0 16px;
    }

    .case-section {
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* <= 480 (모바일 portrait) */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .txt {
        height: 250px;
    }

    .txt span {
        font-size: 45px;
    }

    .lawyer-photo img {
        width: 140px;
        height: 100px;
    }

    .lawyer-text .lawyer-name {
        font-size: 20px;
    }

    .lawyer-text .lawyer-title,
    .lawyer-text .lawyer-specialty {
        font-size: 15px;
    }

    .custom-html-card .card-body p,
    .pre {
        font-size: 15px;
    }

    .case-section h3 {
        font-size: 20px;
    }

    .success-header .case-title {
        font-size: 20px;
    }

    .card-body.flex-row {
        flex-direction: column;
        align-items: center;
    }

    .card-body .card-image,
    .card-body .card-text {
        width: 100%;
    }

    .card-body .card-image {
        text-align: center;
    }

    .card-body .card-image img.verdict-image {
        max-width: 150px;
        height: auto;
    }

    .image-modal .close {
        top: 15px;
    }

    .case-section p {
        margin-bottom: 0;
        font-size: 15px;
    }

    .success-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0;
    }

    .success-aside {
        padding: 15px;
    }

    .success-header .case-title {
        width: 100%;
    }

    .custom-html-card .card-wrapper {
        max-width: 100%;
        margin: 0 0 30px;
    }

    .success-detail {
        max-width: 100%;
        padding: 0 16px;
    }

    .case-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    .side-list-item .title {
        font-size: 15px;
    }

    .nav-item span {
        flex: 0 0 56px;
    }

    /* 말줄임 강제(기존 드롭-인 패치 유지) */
    .nav-item a {
        display: block !important; /* inline-flex -> block */
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 15px;
    }
}

/* ── 이 사례가 답하는 질문 (FAQPage) ─────────────────────────
   법률정보·칼럼의 faq-item 과 같은 모양. 성공사례는 .case-section 안에 들어가므로 범위를 한정한다. */
.case-faq .faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.case-faq .faq-item { border: 1px solid #e6eef4; border-radius: 8px; background: #fff; padding: 14px 16px; }
.case-faq .faq-q {
    font-weight: 700; font-size: 18px; color: #0e384a; cursor: pointer;
    list-style: none; display: flex; align-items: flex-start; gap: 8px;
}
.case-faq .faq-q::-webkit-details-marker { display: none; }
.case-faq .faq-q::before { content: 'Q.'; flex: 0 0 auto; color: #2563eb; font-weight: 800; }
.case-faq .faq-item[open] .faq-q { margin-bottom: 10px; }
.case-faq .faq-a {
    margin: 0; font-size: 16px; line-height: 1.75; color: #243b4a;
    display: flex; align-items: flex-start; gap: 8px; white-space: normal;
}
.case-faq .faq-a::before { content: 'A.'; flex: 0 0 auto; color: #0e384a; font-weight: 800; }
@media (max-width: 768px) {
    .case-faq .faq-item { padding: 12px 13px; }
    .case-faq .faq-q { font-size: 16px; }
    .case-faq .faq-a { font-size: 15px; }
}
