/* 언어설정 */
@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/news_bg.png);
    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: 50px;
    margin-top: 50px;
    font-weight: bold;
    display: inline-block;
    color: #fff;
}

/* 내용설정 */
.review-detail {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: 'Merriweather', serif;
  }
  
  .review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .user-icon {
    width: 40px;
    margin-right: 10px;
  }
  
  .user-info .user-name {
    font-weight: bold;
    font-size: 18px;
  }
  
  .user-info .date {
    font-size: 14px;
    color: #777;
  }
  
  .review-image img {
    width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
  }
  
  .review-tags {
    font-size: 15px;
    margin-bottom: 15px;
    margin-left: 15px;
  }
  
  .review-tags i {
    margin-right: 5px;
    font-size: 25px;
    color: #E53E3E;
  }
  
  .review-tags span {
    color: #003856;
  }
  
  .review-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    margin-left: 20px;
    color: #333;
  }
  
  /* 변호사님 이미지 */
  .lawyer-divider {
    margin: 40px auto 20px auto;
    width: 80%;
    height: 1px;
    background-color: #ccc;
    border: none;
  }
  
  .lawyer-box {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .lawyer-box img {
    width: 200px;
    height: auto;
  }
  
  .lawyer-box p {
    margin-top: 10px;
    font-size: 16px;
    color: #204B62;
    font-weight: bold;
  }
  
  
  
  /* 댓글 스타일 (관리자 답변) */
  .comment-write {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 750px;
    background-color: #e8f6ff;
    border-radius: 12px;
    padding: 8px 16px;
    margin: 40px auto 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .comment-write textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-size: 16px;
    font-family: 'Merriweather', serif;
    color: #333;
    padding: 5px;
    height: 40px;
    outline: none;
  }
  
  .comment-write .submit-btn {
    background: none;
    border: none;
    color: #204B62;
    font-size: 20px;
    cursor: pointer;
    padding-left: 10px;
  }

.lawyer-box-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 20px;
}

.lawyer-box-detail img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    border: 1px solid #ccc !important;
    object-position: top;
}

.lawyer-info-text strong {
    font-size: 1.1rem;
    color: #222;
}

.lawyer-info-text .specialty {
    color: #004c76;
    font-weight: bold;
    font-size: 0.95rem;
}

.comment-list {
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-profile {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 1px solid #ccc;
}

.comment-meta {
    font-size: 0.9rem;
    color: #555;
}

.comment-text {
    margin-top: 0.3rem;
    line-height: 1.5;
    color: #333;
}
.comment-delete-btn {
    background-color: #e74c3c; /* 빨간색 */
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.comment-delete-btn:hover {
    background-color: #c0392b;
}

.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: var(--main-navi);
}

.phone-btn:hover {
    filter: brightness(0.94);
    background: #273D4E;
}

.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);
    }

    .comment-write{
        margin-left: -8px;
    }
    .only-pc{
        display: none;
    }
}

/* 모바일 전용 */
@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);
    }


    .comment-write{
        margin-left: -15px;
    }

    .only-pc{
        display: none;
    }
}

@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);
    }

    pre {
        white-space: pre-wrap;  /* ✅ 줄바꿈 허용 */
        word-break: break-word; /* ✅ 단어 기준으로 끊기 */
    }


    .review-image img{
        margin-left: -15px;
    }

    .review-tags{
        margin-left: -15px;
    }

    .review-text{
        margin-left: -1px;
    }

    .lawyer-divider{
        margin: 0;
    }

    .lawyer-box-detail{
        margin-left: -60px;
    }

    .comment-write{
        margin-left: -27px;
    }

    .only-pc{
        display: none;
    }
}
