/* 언어설정 */
@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;
}
/*위 아래 양쪽 여백 30px씩 */

.backGround-padding-container{
    padding-top: 50px;
    padding-bottom: 50px;
}
/* 전체 flex */
.kakao-review-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #f7f7f7;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}
.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;

}
.txt h1{
    font-size: 50px;
    margin-top: 50px;
    font-weight: bold;
    display: inline-block;
    color: #ffffff;
}
.tape-img {
    position: absolute;
    top: -20px;  /* 상단에서 살짝 위로 */
    left: 40%;  /* 왼쪽 기준으로 적당히 조정 */
    width: 100px; /* 테이프 크기 */
    z-index: 2;
}
.chat-box {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
}
.chat-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 15px;
    background-color: white;
    height: 97.5%;
    width: 100%;
    border: 1px solid #d3d3d3;
}
.chat-message {
    margin-bottom: 10px;
}

.chat-message.lawyer {
    text-align: right;
    background-color: #f0f0f0;
}
.white-box{
    position: relative;
    flex: 0 1 44%;  /* 오른쪽 박스 너비 줄이기 */
    padding: 20px;
    margin-top: 40px;
}
.summary-box {
    flex: 0 1 65%;  /* 왼쪽 박스 너비 줄이기 */
    background-color: white;
    padding: 20px;
    border: 1px solid #d3d3d3;
    height: 45%;
}
.stars{
    margin-left: 25px;
    margin-top: 40px;
}

.stars i {
    color: #FFD700;
    font-size: 30px;
    margin-right: 3px;
}

.white-box .summary-box .field{
    font-size: 30px;
    margin-top: 1.5rem;
    font-weight: bold;
    margin-left: 25px;
}
.chat-image {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 100%;
    max-height: 800px;
}

.lawyer-info {
    display: flex;
    flex-direction: row;         /* ✅ 가로 정렬로 변경 */
    align-items: center;         /* 세로 중앙 정렬 */
    gap: 10px;                   /* 이미지와 텍스트 간격 */
    justify-content: center;
    margin-top: 3.5rem;

}

.lawyer-info img {
    width: 100px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    border: 1px solid #336699;
}

.lawyer-name {
    font-size: 25px;         /* 글씨 크게 */
    font-weight: 700;          /* 굵게 */
    line-height: 1.4;
}

.lawyer-role {
    font-weight: normal;       /* 직책은 기본 굵기 */
    font-size: 20px;
    margin-left: 4px;
    color: #555;
}

.lawyer-specialty {
    font-size: 20px;
    color: #005288;            /* 전문분야 색상 강조 */
    font-weight: bold;
}

.lawyer-comment-box {
    position: relative;
    margin-top: 120px;
    padding: 20px;
    background-color: white;
    border: 1px solid #d3d3d3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-left: -21px;
    height: 360px;
}

.lawyer-comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    margin-top: 20px;
    margin-left: 30px;
}
/* 댓글 영역에만 적용되는 테이프 위치 */
.tape-comment {
    position: absolute;
    top: -50px;
    left: 40%;
    width: 100px;
    z-index: 2;
}

.lawyer-comment-img {
    width: 80px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 1px solid #005288;
    margin-top: 5px;
}

.lawyer-comment-line{
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* ✅ 텍스트 줄바꿈 되어도 이미지 높이 영향 안 받게 */
    gap: 20px;               /* ✅ 이미지와 텍스트 간격 */
    margin-bottom: 15px;
    max-width: 100%;
}

.lawyer-comment-line img{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    flex-shrink: 0;          /* ✅ 이미지 크기 유지 */
}


.lawyer-comment-text {
    font-size: 25px;
    line-height: 1.6;
    word-break: break-word;  /* ✅ 긴 단어 줄바꿈 */
    flex: 1;                 /* ✅ 나머지 영역 모두 차지하게 */
    margin-top: 20px;
}
.comment-text-line{
    font-size: 20px;
}
.comment-form {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    background-color: #eef5fb;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}
.comment-form textarea {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 10px 15px; /* 여백 조정 */
    resize: none;
    outline: none;
    line-height: 1.4; /* ✅ 높이 균형 */
    height: 35px;      /* ✅ 너무 작거나 크지 않게 고정 */
    display: flex;
    align-items: center; /* ✅ Safari 대응 */
}

.comment-form button {
    background-color: transparent;
    border: none;
    font-size: 1.4rem;
    color: #005288;
    cursor: pointer;
    padding: 0 10px;
}

.comment-scroll-area {
    max-height: 320px;  /* 적절한 높이 설정 */
    overflow-y: auto;
    margin-left: 30px;
}

.review-navigation {
    background-color: #f7f7f7;  /* ✅ 배경 맞춰줌 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 0 auto;
    padding: 40px 0;
    max-width: 1200px;
}

.circle-button {
    width: 60px;
    height: 60px;
    background-color: var(--main-navi);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 22px;
    transition: background-color 0.3s;
}

.circle-button:hover {
    background-color: #14506c;
}

.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: #FFE812;
    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-form textarea{
        font-size: 13px;
        height: 15px;
    }

    .comment-text-line{
        font-size: 20px;
    }

    .only-pc{
        display: none;
    }

}

/* 모바일 전용 */
@media screen and (min-width: 481px) and (max-width: 767px) {

    .txt h1 {
        font-size: 60px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .white-box .summary-box .field{
        margin-left: 20px;
    }
    .comment-text-line{
        font-size: 15px;
    }

    .comment-form textarea{
        font-size: 0.7rem;
    }
    .circle-button{
        width: 50px;
        height: 50px;
    }

    .only-pc{
        display: none;
    }
}

@media screen and (max-width: 480px) and (orientation: portrait) {

    .txt {
        height: 250px;          /* 배경 영역 축소 */
    }

    .txt h1 {
        font-size: 45px;
        margin-top: 50px;
        font-weight: bold;
        display: inline-block;
        color: var(--main-white);
    }

    .kakao-review-container{
        height: 100%;
    }

    .white-box{
        flex: 0 1 100%;
    }
    .tape-img{
        left: 35%;
        margin-top: 5px;
    }
    .stars{
        margin-left: 40px;
    }
    .summary-box{
        margin-top:0px;
    }
    .second-tape{
        margin-top: 0px;
    }
    .white-box .summary-box .field{
        margin-left: 20px;
    }

    .lawyer-comment-box{
        margin-top: 100px;
    }
    .lawyer-name{
        font-size: 20px;
    }

    .lawyer-role{
        font-size: 15px;
    }
    .comment-form textarea{
        font-size: 0.65rem;
        height: 15px;
    }
    .comment-text-line{
        font-size: 15px;
    }
    .circle-button{
        width: 50px;
        height: 50px;
    }
    .only-pc{
        display: none;
    }
}