/* 언어설정 */
@charset 'utf-8';

@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: normal;
    font-style: normal;
}

@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: normal;
    font-style: normal;
}

/* 전체설정 */
* {
    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;
    /* 터치 시 흔들림 방지 (모바일 UX 향상) */
}

/* 색상설정 */
:root {
    --main-navi: #204B62;
    --main-text: #333;
    --main-white: #fff;
}

/* 상세설정 ---------------------------------------------------------------------------- */

main {
    margin-top: 60px;
}

.txt {
    background-image: url(/img/success_bg.jpg);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    /* 또는 원하는 높이 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.txt h1 {
    font-size: 60px;
    margin-top: 50px;
    font-weight: bold;
    display: inline-block;
    color: #fff;
}

/* 내용 설정 */

.success-detail {
    max-width: 1400px;
    margin: 0 auto;
    color: #333;
    line-height: 1.7;
    border-radius: 26px;
    border: 2px #333 solid;
    margin-top: 50px;
    margin-bottom: 80px;
}

.success-header {
    background-color: #99BFD3;
    padding: 12px 16px;
    border-radius: 23px 23px 0px 0px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 15px;
}

.success-header .back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

.success-header .case-title {
    font-size: 20px;
    background-color: #fff;
    border-radius: 30px;
    padding: 5px 5px 5px 15px;
    width: 1400px;
    color: #333;
}

.custom-html-card .card-wrapper {
    max-width: 700px;
    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 {
    font-size: 22px;
    color: #204B62;
    margin-bottom: 10px;
    text-align: center;
}

.custom-html-card .card-body p {
    font-size: 16px;
    line-height: 2.6;
    margin-bottom: 8px;
}

.custom-html-card .card-body p strong {
    font-size: 19px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #204B62;
}

.card-body .lawyer-image {
    margin-top: 20px;
    text-align: center;
}

.card-body .lawyer-image img {
    width: 220px;
    height: auto;
}

.card-body img{
    width: 100%;
    height: 100%;
}

.case-section {
    padding-top: 20px;
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
}

.case-section h3 {
    color: #7D0000;
    font-size: 25px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    border-bottom: 2px solid #AF0000;
    width: 100%;
}

.case-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 146, 154, 0.4);
    z-index: -1;
}

.case-section p {
    font-size: 18px;
    margin-left: 10px;
    margin-bottom: 35px;
    margin-top: 15px;
}

.highlight {
    color: #b91c1c;
    font-weight: bold;
}

.verdict-image {
    display: block;
    /* 블록 요소로 만들어야 margin auto가 적용됨 */
    margin: 0px auto 0 auto;
    /* 위 여백 20px, 좌우 auto로 가운데 정렬 */
    width: 100%;
    max-width: 200px;
    cursor: pointer;  /* ✅ 추가: 클릭 가능한 포인터로 변경 */
}
/* flex 구조로 좌우 정렬 */
.card-body.flex-row {
    display: flex;
    justify-content: space-between;
    gap: 0px;
}

/* 텍스트와 이미지 각각 스타일링 */
.card-body .card-text {
    flex: 1;
}

.card-body .card-image {
    flex: 0 0 200px; /* 원하는 너비 조정 */
}

.card-body .card-image img.verdict-image {
    width: 70%;
    height: auto;
    max-width: 200px;
    display: block;
}
.lawyer-info {
    display: flex;
    align-items: center;
    justify-content: center;   /* ⭐ 가운데 정렬 추가 */
    margin-top: 10px;
}

.lawyer-photo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
    object-position: top;
}

.lawyer-text .lawyer-name {
    font-weight: bold;
    font-size: 14px;
    color: #222;
}

.lawyer-text .lawyer-title {
    font-weight: normal;
    font-size: 12px;
    color: #666;
    margin-left: 4px;
}

.lawyer-text .lawyer-specialty {
    display: block;
    font-size: 13px;
    color: #0073aa;
    margin-top: 2px;
}
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.image-modal .close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


.consult-links {
    display: flex;
    gap: 24px;
    margin-top: 48px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.consult-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 48px;          /* 버튼 내부가 더 커짐 */
    border-radius: 50px;         /* 버튼 끝이 더 둥글게 */
    font-size: 1.25rem;          /* 폰트도 더 큼 */
    font-weight: 700;
    border: none;
    outline: none;
    background: #222;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: background 0.18s, filter 0.16s, color 0.16s;
    cursor: pointer;
    min-width: 260px;            /* 최소 버튼 길이 넉넉하게 */
    justify-content: center;
    letter-spacing: 0.5px;
}

.consult-btn .btn-icon {
    width: 34px;
    height: 34px;
    margin-right: 14px;
}

.phone-btn {
    background: #43a047;
}

.phone-btn:hover {
    filter: brightness(0.94);
    background: #357334;
}

.kakao-btn {
    background: #fee500;
    color: #181600;
}

.kakao-btn:hover {
    filter: brightness(0.96);
    background: #ffe56b;
    color: #000;
}

/* 미디어 쿼리 구간------------------------------------------------------------------------------------- */


/* PC 전용 */
@media screen and (min-width: 1440px) {}

/* 노트북 전용 */
@media screen and (min-width: 1025px) and (max-width: 1439px) {
    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }
}

/* 태블릿 전용 */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .only-pc {
        display: none !important;
    }

}

/* 모바일 전용 */
@media screen and (min-width: 481px) and (max-width: 767px) {

    .txt h1 {
        font-size: 40px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .success-detail {
        padding: 20px 14px;
      }
    
      .case-section h3 {
        font-size: 16px;
      }
    
      .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: 0px;
        font-size: 15px;
    }

    .only-pc {
        display: none !important;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {

    .txt {
        height: 250px;          /* 배경 영역 축소 */
    }

    .txt h1 {
        font-size: 35px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .success-detail {
        padding: 20px 14px;
    }

    .case-section h3 {
        font-size: 16px;
    }

    .success-header {
        font-size: 14px;
        padding: 10px;
    }

    .success-header .back-btn {
        font-size: 18px;
    }

    .search-box{
        margin-top: 20px;
    }

    .success-header .case-title{
        font-size: 15px;
    }

    .card-body.flex-row {
        flex-direction: column;
        align-items: center; /* 가운데 정렬 */
    }

    .card-body .card-image {
        width: 100%;
        text-align: center;
    }

    .card-body .card-image img {
        max-width: 100%;
        height: auto;
    }

    .card-body .card-text {
        width: 100%;
    }
    .card-body .card-image img.verdict-image{
        max-width: 150px;
    }

    .image-modal .close{
        top: 15px;
    }
    .case-section p{
        margin-bottom: 0;
        font-size: 15px;
    }

    .only-pc {
        display: none !important;
    }

}