
        
        
/* 1. 전체 배경 및 초기화 */
body {
    background-color: #f4f4f4;
}

footer {
    background-color: #ffffff;
}  

.mookhon-board-container {
    max-width: 1200px;
    margin: 10px auto; 
    width: 100%;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 20px 0;
    background-color: transparent;
}

.board-title {
    font-size: 32px; 
    font-weight: 500; 
    color: #363853; /* 제공된 네이비 타이틀 색상 */
    margin: 0 0 0 10px; 
    letter-spacing: -1px;
}

.board-main-content {
    background-color: #ffffff;
    border-top: 2px solid #363853; /* 제공된 상단 네이비 포인트 테두리 */
    padding-bottom: 40px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, .06);
}

/* 제공된 버튼 스타일 활용 */
.btn-write { 
    background: #e74438; /* 제공된 빨간색 포인트 컬러 */
    color: #fff; border: none; padding: 12px 35px; 
    border-radius: 4px; font-size: 15px; font-weight: bold; cursor: pointer; 
}

/* =========================================
    2. 게시글 상세 페이지 전용 커스텀 스타일
    ========================================= */

/* 헤더 (제목, 날짜) */
.post-detail-header {
    padding: 30px 40px 20px 40px;
    border-bottom: 1px solid #dcdcdc; /* 목록 페이지의 검색바 테두리색 활용 */
}
.post-detail-header .title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.post-detail-header h3 {
    margin: 0;
    font-size: 32px;
    letter-spacing: -1px;
    font-weight: 700;
    color: #363853;
}
.link-copy-btn {
    background-color: #e74438; /* 빨간색 포인트 */
    color: white;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}
.link-copy-btn svg { width: 24px; height: 24px; fill: currentColor; }

.post-detail-header .date {
    color: #bbb; /* 제공된 날짜 색상 */
    font-size: 14px;
}

/* 본문 영역 */
.post-detail-body {
    padding: 40px;
    min-height: 400px;
    color: #444; /* 제공된 기본 텍스트 색상 */
    font-size: 15px;
    /* line-height: 1.7; */ 
}

/* 3. 위지윅 에디터 및 표(Table) 영역 설정 */
.post-detail-body table {
    width: 100% !important;
    table-layout: fixed !important; /* 표 칸 비율 고정 (매우 중요) */
    border-collapse: collapse !important;
    margin: 15px 0 !important;
    line-height: 0.8 !important;   /* 요청하신 1.5 적용 */
}

/* 4. 표 셀(td) 안의 내용 정렬 */
.post-detail-body td, 
.post-detail-body th {
    line-height: 1.2 !important;  /* 글자 겹침 방지 (약간 늘림) */
    padding: 6px 5px !important;   /* 상하 패딩을 10px에서 5px로 줄임 */
    vertical-align: middle !important;
    height: auto !important;
}

/* 5. 에디터가 표 안에 넣는 p태그 간격 제거 (표가 뚱뚱해지는 주범) */
.post-detail-body td p {
    margin: 0 !important;
    line-height: 1.2 !important;
}
        

/* 이전글/다음글 네비게이션 */
.post-nav-list {
    list-style: none;
    margin: 0 40px;
    padding: 0;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666;
}
.post-nav-list li {
    display: flex;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f2f2f2; /* 목록 아이템 테두리색 활용 */
    font-size: 14px;
}
.post-nav-list li:last-child {
    border-bottom: none;
}
.post-nav-list .nav-label {
    width: 60px;
    color: #666;
    font-weight: bold;
}
.post-nav-list .nav-title {
    flex: 1;
    color: #444;
    cursor: pointer;
    text-decoration: none;
}
.post-nav-list .nav-title:hover {
    text-decoration: underline;
}
.post-nav-list .nav-author {
    width: 120px;
    text-align: center;
    color: #666;
    font-size: 13px;
}
.post-nav-list .nav-date {
    width: 100px;
    text-align: right;
    color: #bbb;
    font-size: 13px;
}

/* 하단 버튼 영역 */
.post-detail-footer {
    display: flex;
    justify-content: flex-end; /* 기본적으로 오른쪽 정렬 */
    align-items: center;      /* 세로 중앙 정렬 */
    gap: 10px;
    padding: 30px 40px 0 40px;
}

/* 신고 버튼을 왼쪽 끝으로 밀어내기 */
.post-detail-footer .user-actions {
    margin-right: auto;       /* 이 설정이 오른쪽 요소들을 끝으로 밀어냅니다 */
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* 신고 텍스트 스타일 (선택 사항) */
.action-report {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}

.btn-list {
    background: #363853; /* 제공된 네이비 컬러 (활성 페이지 컬러) */
    color: #fff; border: none; padding: 12px 35px; 
    border-radius: 4px; font-size: 15px; font-weight: bold; cursor: pointer; 
}

/* 모바일 반응형 처리 */
@media (max-width: 768px) {
    .board-title { font-size: 24px; }
    .post-detail-header { padding: 20px 15px; }
    .post-detail-header h3 { font-size: 18px; }
    .post-detail-body { padding: 20px 15px; }
    .post-nav-list { margin: 0 15px; }
    .post-nav-list .nav-author, .post-nav-list .nav-date { display: none; } /* 모바일에서 작성자/날짜 숨김 */
    .post-detail-footer { padding: 20px 15px 0 15px; justify-content: stretch; }
    .btn-list, .btn-write { flex: 1; text-align: center; }
}

/* 댓글 영역 커스텀 스타일 */
.comment-container { padding: 40px; margin-top:30px; border-top: 1px solid #eee; background: #fff; }

.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.comment-count { font-size: 18px; color: #333; }
.comment-count strong { color: #880000; }

.sort-btn { background: #fff; border: 1px solid #ddd; padding: 5px 12px; font-size: 12px; color: #999; cursor: pointer; border-radius: 4px; }
.sort-btn.active { background: #880000; color: #fff; border-color: #880000; }

/* 입력창 */
.comment-write-box { display: flex; border: 1px solid #ddd; margin-bottom: 30px; height: 100px; }
.comment-write-box textarea { flex: 1; border: none; padding: 15px; resize: none; outline: none; font-size: 14px; }
.comment-write-box textarea::placeholder { color: #bbb; }
.btn-comment-submit { width: 100px; background: #000; color: #fff; border: none; cursor: pointer; font-size: 14px; }

/* 리스트 */
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-item { padding: 20px 0; border-bottom: 1px solid #f2f2f2; }
.comment-item.reply { padding-left: 30px; }

.comment-info { display: flex; align-items: center; margin-bottom: 10px; font-size: 13px; color: #666; position: relative; }
.comment-info .author { font-weight: bold; color: #333; }
.comment-info .divider { margin: 0 8px; color: #eee; }
.comment-info .date { color: #999; }

.comment-actions { margin-left: auto; color: #bbb; }
.comment-actions button { background: none; border: none; color: #999; cursor: pointer; font-size: 13px; padding: 0; }

.comment-text { font-size: 14px; color: #444; padding-left: 0; }
.reply .comment-text { padding-left: 20px; }
.reply-icon { margin-right: 8px; font-weight: bold; }

@media (max-width: 768px) {
    .comment-container { padding: 20px 15px; }
    .btn-comment-submit { width: 80px; }
}


/* 댓글 영역 신규 CSS */
/* 댓글 영역 컨테이너 */
.comments-wrap { 
padding: 20px 0; 
}

/* 리스트 아이템 공통 */
.comment-list { 
list-style: none; 
padding: 0; 
margin: 0; 
}

.comment-item { 
padding: 15px 0; 
border-bottom: 1px solid #f2f2f2; 
}

/* 대댓글(Reply) 스타일 */
.comment-list-reply { 
background-color: #fcfcfc; /* 대댓글 배경에 미세한 차이 부여 */
}

/* 대댓글 화살표 ↳ */
.comment-list-reply .comment-writer::before {
content: "ㄴ";
display: inline-block;
margin-right: 8px;
color: #ccc;
font-weight: bold;
font-size: 14px;
}

/* 작성자 및 날짜 영역 (폰트 한단계 낮춤) */
.comment-header { 
display: flex; 
align-items: center; 
margin-bottom: 6px; 
font-size: 13px; /* 전체 정보 폰트 다운 */
}

.comment-writer { 
font-weight: bold; 
color: #333; 
margin-right: 18px; /* 작성자와 날짜 사이 간격 확대 */
}

.comment-time { 
color: #999; 
font-size: 11px; /* 날짜는 한 단계 더 작게 */
}

/* 댓글 내용 (폰트 한단계 낮춤) */
.comment-content { 
font-size: 14px; /* 기존 14px -> 13px로 조정 */
color: #444; 
line-height: 1.6; 
word-break: break-all;
padding-left: 0;
}

/* 대댓글일 경우 내용도 화살표만큼 들여쓰기 */
.comment-list-reply .comment-content {
padding-left: 18px;
}

/* 액션 버튼 (답변, 삭제 등) */
.comment-actions { 
margin-left: auto; 
display: flex; 
gap: 10px;
}

.comment-actions a { 
font-size: 11px; 
color: #999; 
text-decoration: none; 
}

.comment-actions a:hover { 
color: #880000; 
text-decoration: underline; 
}

/* 삭제된 댓글 텍스트 */
.comment-content span[style*="color:#c5c5c5"] {
font-size: 12px !important;
font-style: italic;
}




/* 대댓글 전용 입력창 스타일 */
.comment-form-reply {
margin-top: 10px;
margin-left: 20px; /* 대댓글 들여쓰기 */
display: flex;
border: 1px solid #ddd;
background-color: #fafafa; /* 일반 댓글창과 구분되는 연한 배경색 */
height: 80px; /* 대댓글은 조금 더 슬림하게 조정 가능 */
}

.comment-form-reply textarea {
flex: 1;
border: none;
padding: 12px;
resize: none;
outline: none;
font-size: 13px;
background: transparent;
}

.comment-form-reply .btn-submit {
width: 90px;
background: #363853; /* 게시판 포인트 네이비 컬러 활용 */
color: #fff;
border: none;
cursor: pointer;
font-size: 13px;
font-weight: bold;
transition: background 0.2s;
}

.comment-form-reply .btn-submit:hover {
background: #e74438; /* 호버 시 포인트 레드 컬러 */
}

