/* ========================================
   기본 스타일
   ======================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: #ffffff;
    min-height: 100vh;
}

#container_wr {
    width: 100% !important;
}

/* ========================================
   게시판 목록 스타일 (list_skin.php 적용)
   ======================================== */

/* 게시판 전체 컨테이너 */
#bo_list {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 10px 20px 50px !important;
    box-sizing: border-box !important;
}

/* 모바일에서 패딩 조정 */
@media (max-width: 768px) {
    #bo_list {
        padding: 10px 10px 30px !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    #bo_list {
        padding: 10px 5px 20px !important;
        margin: 0 auto !important;
    }
}

/* 카테고리 네비게이션 */
#bo_cate {
    margin-bottom: 40px;
}

#bo_cate h2 {
    font-size: 16px;
    color: #516F5F;
    letter-spacing: 8px;
    margin-bottom: 15px;
    font-weight: 400;
    text-align: center;
}

#bo_cate_ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

#bo_cate_ul li {
    display: inline-block;
}

#bo_cate_ul a {
    display: block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

#bo_cate_ul a:hover,
#bo_cate_ul a.active {
    background: #516F5F;
    color: white;
    border-color: #516F5F;
}

/* 상단 버튼 영역 */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

#bo_list_total {
    font-size: 14px;
    color: #666;
}

#bo_list_total span {
    font-weight: 600;
    color: #333;
}

/* 버튼 스타일 */
.btn_bo_user {
    display: flex;
    gap: 8px;
    list-style: none;
}

.btn_bo_user li {
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #516F5F;
    color: white;
    border-color: #516F5F;
}

.btn_b01 {
    padding: 10px 24px !important;
    line-height: 14px !important;
    height: auto !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    background: #A6756A !important;
    color: white !important;;
    border-color: #A6756A !important;;
}

.btn_b01:hover {
    background: #996d63;
}

.btn i {
    margin-right: 5px;
}

/* 더보기 옵션 */
.more_opt {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 150px;
}

.more_opt li {
    list-style: none;
}

.more_opt button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    border: none;
    background: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more_opt button:hover {
    background: #f8f9fa;
    color: #516F5F;
}

.more_opt button i {
    margin-right: 8px;
}

/* 테이블 스타일 */
.tbl_wrap {
    background: white !important;
    overflow-x: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.tbl_head01 table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.tbl_head01 thead {
    border-top: 2px solid #A6756A;
    border-bottom: 1px solid #ddd;
}

.tbl_head01 thead th {
    padding: 18px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: #F4EAEA;
}

.tbl_head01 tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s ease;
}

.tbl_head01 tbody tr:hover {
    background: #f8faf9;
}

.tbl_head01 tbody tr.bo_notice {
    background: #fffbf0;
}

.tbl_head01 tbody tr.bo_notice:hover {
    background: #fff8e6;
}

.tbl_head01 tbody td {
    padding: 20px 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* 체크박스 열 */
.chk_box {
    width: 50px;
}

.chk_box input[type="checkbox"] {
    display: none;
}

.chk_box label {
    cursor: pointer;
    display: inline-block;
}

.chk_box label span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.chk_box input[type="checkbox"]:checked + label span {
    background: #516F5F;
    border-color: #516F5F;
}

.chk_box input[type="checkbox"]:checked + label span::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
}

/* 번호 열 */
.td_num2 {
    width: 100px;
}

/* 상태, 글쓴이, 조회수, 날짜 열 - 동일한 폭 */
.td_qa_status,
.td_name,
.td_num,
.td_datetime {
    width: 120px;
    min-width: 120px;
}

.notice_icon {
    display: inline-block;
    padding: 4px 10px;
    background: #516F5F;
    color: white;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
}

.bo_current {
    display: inline-block;
    padding: 4px 10px;
    background: #999;
    color: white;
    font-size: 12px;
    border-radius: 3px;
    font-weight: 500;
}

/* 제목 열 */
.td_subject {
    text-align: left !important;
    padding-left: 30px !important;
    width: auto; /* 나머지 공간 모두 차지 */
}

.bo_cate_link {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    margin-right: 8px;
}

.bo_cate_link:hover {
    background: #516F5F;
    color: white;
}

.bo_tit a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bo_tit a:hover {
    color: #516F5F;
}

.new_icon {
    display: inline-block;
    padding: 2px 6px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 5px;
}

.cnt_cmt {
    display: inline-block;
    padding: 2px 6px;
    background: #516F5F;
    color: white;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 500;
    margin-left: 5px;
}

/* 작성자, 조회수, 날짜 열 */
.td_name,
.td_num,
.td_datetime {
    color: #666;
}

/* 빈 테이블 */
.empty_table {
    padding: 60px 20px !important;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* 페이지네이션 */
.pg_wrap {
    text-align: center;
    margin-top: 50px;
}

.pg {
    display: inline-flex;
    gap: 5px;
}

.pg a,
.pg strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pg a:hover {
    background: #516F5F;
    color: white;
    border-color: #516F5F;
}

.pg strong {
    background: #516F5F;
    color: white;
    border-color: #516F5F;
    font-weight: 600;
}

/* 하단 버튼 영역 */
.bo_fx {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 30px;
}

/* 검색 영역 */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.bo_sch_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    min-width: 400px;
    max-width: 90%;
    z-index: 1001;
}

.bo_sch h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.bo_sch form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bo_sch select,
.bo_sch .sch_input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.bo_sch select:focus,
.bo_sch .sch_input:focus {
    outline: none;
    border-color: #516F5F;
}

.sch_bar {
    display: flex;
    gap: 10px;
}

.sch_bar .sch_input {
    flex: 1;
}

.sch_btn {
    padding: 12px 25px;
    background: #516F5F;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sch_btn:hover {
    background: #3f5a4f;
}

.bo_sch_cls {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bo_sch_cls:hover {
    color: #333;
}

/* 접근성 */
.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 게시판 목록 답변 상태 */
.td_qa_status { text-align: center; } /* 상태 컬럼 가운데 정렬 */
.qa_status {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    line-height: 1.5;
    vertical-align: middle;
}

/* 대기중 */
.qa_status.qa_wait {
    background-color: #9c9c9c;
    font-weight: 400;
    color: #ffffff;
    border: 1px solid #9c9c9c;
}

/* 답변 완료 */
.qa_status.qa_ans {
    background-color: #516F5F; /* 원하는 색상으로 변경 가능 */
    color: #fff;
    border: 1px solid #516F5F;
}

/* ============================================
   모바일 카드형 레이아웃 (768px 이하)
   ============================================ */
@media (max-width: 768px) {
    /* 테이블 숨기기 */
    .tbl_head01 table {
        display: none;
    }
    
    /* 카드 컨테이너 */
    .tbl_head01 {
        display: block;
    }
    
    .tbl_head01 tbody {
        display: block;
    }
    
    /* 각 행을 카드로 변환 */
    .tbl_head01 tbody tr {
        display: block;
        background: white;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 20px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .tbl_head01 tbody tr:hover {
        background: white;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .tbl_head01 tbody tr.bo_notice {
        background: #fffbf0;
        border-color: #ffd700;
    }
    
    /* 체크박스 영역 */
    .tbl_head01 tbody td.chk_box {
        display: block;
        width: 100%;
        text-align: right;
        margin-bottom: 10px;
        padding: 0 !important;
    }
    
    /* 카드 내부 셀 스타일 */
    .tbl_head01 tbody td {
        display: block;
        padding: 8px 0 !important;
        text-align: left !important;
        border: none;
    }
    
    /* 번호 + 상태를 한 줄로 */
    .tbl_head01 tbody td.td_num2 {
        display: inline-block;
        width: auto;
        margin-bottom: 10px;
        padding-right: 10px !important;
    }
    
    .tbl_head01 tbody td.td_qa_status {
        display: inline-block;
        width: auto;
        float: right;
        margin-bottom: 10px;
        padding: 0 !important;
    }
    
    /* 제목 영역 */
    .tbl_head01 tbody td.td_subject {
        padding: 0 0 15px 0 !important;
        margin-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .td_subject .bo_tit a {
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
        color: #1a1a1a;
    }
    
    /* 메타 정보 영역 (글쓴이, 조회, 날짜) */
    .tbl_head01 tbody td.td_name,
    .tbl_head01 tbody td.td_num,
    .tbl_head01 tbody td.td_datetime {
        display: inline-block;
        width: auto;
        padding: 0 !important;
        font-size: 13px;
        color: #999;
        margin-right: 15px;
    }
    
    /* 데이터 앞에 라벨 추가 */
    .tbl_head01 tbody td.td_name::before {
        content: '작성자 ';
        font-weight: 600;
        color: #666;
    }
    
    .tbl_head01 tbody td.td_num::before {
        content: '조회 ';
        font-weight: 600;
        color: #666;
    }
    
    .tbl_head01 tbody td.td_datetime::before {
        content: '날짜 ';
        font-weight: 600;
        color: #666;
    }
    
    /* 추천/비추천 (있는 경우) */
    .tbl_head01 tbody td[class*="td_good"],
    .tbl_head01 tbody td[class*="td_nogood"] {
        display: inline-block;
        width: auto;
        padding: 0 !important;
        font-size: 13px;
        color: #999;
        margin-right: 15px;
    }
    
    /* 빈 테이블 메시지 */
    .empty_table {
        display: block !important;
        text-align: center !important;
        padding: 40px 20px !important;
    }
}

/* ============================================
   게시글 읽기 (view_skin.php) - 심플 & 가독성 최적화
   ============================================ */

/* 메인 컨테이너 */
#bo_v {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 50px auto !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* 모바일에서 여백 조정 */
@media (max-width: 768px) {
    #bo_v {
        margin: 20px 10px !important;
    }
}

@media (max-width: 480px) {
    #bo_v {
        margin: 15px 5px !important;
    }
}

/* 제목 영역 */
#bo_v_title {
    padding: 0 0 35px 0;
    border-bottom: 2px solid #1a1a1a;
    background: transparent;
}

#bo_v_title .bo_v_cate {
    display: inline-block;
    padding: 5px 14px;
    background: #A6756A;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

#bo_v_title .bo_v_tit {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

/* 정보 영역 */
#bo_v_info {
    padding: 25px 0;
    background: transparent;
    border-bottom: 1px solid #e8e8e8;
}

#bo_v_info:after {
    display: block;
    clear: both;
    content: "";
}

#bo_v_info h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.profile_info {
    display: flex;
    align-items: center;
    gap: 0;
}

.profile_info .pf_img {
    display: none; /* 프로필 사진 숨김 */
}

.profile_info .pf_img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e8e8e8;
    object-fit: cover;
}

.profile_info .profile_info_ct {
    flex: 1;
    line-height: 1.8;
}

.profile_info_ct strong {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-right: 8px;
}

.profile_info_ct a,
.profile_info_ct strong:not(:first-child) {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    margin-right: 15px;
    transition: color 0.2s;
}

.profile_info_ct a:hover {
    color: #516F5F;
}

.profile_info_ct i {
    margin-right: 4px;
    font-size: 13px;
    color: #999;
}

.if_date {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

/* 버튼 영역 */
#bo_v_top {
    padding: 100px 0 20px;
    background: transparent;
    border-bottom: 1px solid #e8e8e8;
}

#bo_v_top:after {
    display: block;
    clear: both;
    content: "";
}

.bo_v_com {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bo_v_com li {
    position: relative;
}

.btn_b01 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #A6756A;
    border: 1px solid #A6756A;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn_b01:hover {
    background: #865c53;
    border-color: #865c53;
    color: #fff;
    transform: translateY(-1px);
}

.btn_b01 i {
    font-size: 13px;
}

/* 더보기 옵션 */
.more_opt {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    overflow: hidden;
}

.more_opt li {
    border-bottom: 1px solid #f5f5f5;
}

.more_opt li:last-child {
    border-bottom: none;
}

.more_opt li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.more_opt li a:hover {
    background: #f8f8f8;
    color: #516F5F;
}

.more_opt li i {
    font-size: 13px;
}

/* 본문 영역 */
#bo_v_atc {
    padding: 50px 0 60px;
}

#bo_v_atc_title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* 공유 버튼 */
#bo_v_share {
    display: flex;
    gap: 8px;
    padding-bottom: 5px;
    margin-bottom: 40px;
}

#bo_v_share .btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s;
}

#bo_v_share .btn:hover {
    background: #516F5F;
    border-color: #516F5F;
    color: #fff;
}

/* 이미지 */
#bo_v_img {
    margin: 30px 0;
}

#bo_v_img img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* 본문 내용 */
#bo_v_con {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    word-break: keep-all;
}

#bo_v_con p {
    margin: 25px 0;
}

#bo_v_con h1,
#bo_v_con h2,
#bo_v_con h3 {
    margin: 45px 0 20px;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.5;
}

#bo_v_con h1 {
    font-size: 28px;
}

#bo_v_con h2 {
    font-size: 24px;
}

#bo_v_con h3 {
    font-size: 20px;
}

#bo_v_con a {
    color: #516F5F;
    text-decoration: underline;
    text-decoration-color: rgba(81, 111, 95, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

#bo_v_con a:hover {
    text-decoration-color: #516F5F;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 25px 0;
}

#bo_v_con blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: #f8f8f8;
    border-left: 4px solid #516F5F;
    color: #555;
    font-style: normal;
    font-size: 16px;
}

#bo_v_con ul,
#bo_v_con ol {
    margin: 20px 0;
    padding-left: 30px;
}

#bo_v_con li {
    margin: 10px 0;
    line-height: 1.8;
}

/* 추천/비추천 */
#bo_v_act {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 60px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.bo_v_act_gng {
    position: relative;
}

#bo_v_act a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 110px;
    padding: 30px 35px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

#bo_v_act a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

#bo_v_act .bo_v_good:hover {
    background: #516F5F;
    border-color: #516F5F;
    color: #fff;
}

#bo_v_act .bo_v_nogood:hover {
    background: #999;
    border-color: #999;
    color: #fff;
}

#bo_v_act i {
    font-size: 30px;
}

#bo_v_act strong {
    font-size: 24px;
    font-weight: 700;
}

#bo_v_act_good,
#bo_v_act_nogood {
    display: none;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: #516F5F;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 999;
}

/* 첨부파일 */
#bo_v_file {
    margin: 10px 0;
}

#bo_v_file h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

#bo_v_file ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_v_file li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    margin: 8px 0;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.3s;
}

#bo_v_file li:hover {
    background: #f5f9f5;
    border-color: #516F5F;
    transform: translateX(3px);
}

#bo_v_file li i {
    flex-shrink: 0;
    font-size: 24px;
    color: #999;
}

#bo_v_file li:hover i {
    color: #516F5F;
}

#bo_v_file a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

#bo_v_file a:hover {
    color: #516F5F;
}

#bo_v_file strong {
    font-weight: 600;
}

.bo_v_file_cnt {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}

/* 관련링크 */
#bo_v_link {
    margin: 60px 0;
}

#bo_v_link h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
}

#bo_v_link ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#bo_v_link li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    margin: 8px 0;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    transition: all 0.3s;
}

#bo_v_link li:hover {
    background: #f5f9f5;
    border-color: #516F5F;
    transform: translateX(3px);
}

#bo_v_link li i {
    flex-shrink: 0;
    font-size: 24px;
    color: #999;
}

#bo_v_link li:hover i {
    color: #516F5F;
}

#bo_v_link a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    word-break: break-all;
}

#bo_v_link a:hover {
    color: #516F5F;
}

#bo_v_link strong {
    font-weight: 600;
}

.bo_v_link_cnt {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #999;
}

/* 이전글/다음글 */
.bo_v_nb {
    margin: 60px 0 0;
    padding: 0;
    list-style: none;
    border-top: 2px solid #1a1a1a;
}

.bo_v_nb li {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    background: transparent;
    transition: background 0.3s;
}

.bo_v_nb li:hover {
    background: #fafafa;
}

.bo_v_nb li a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.bo_v_nb li a:hover {
    color: #516F5F;
}

.nb_tit {
    display: inline-block;
    min-width: 80px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    margin-right: 15px;
}

.nb_tit i {
    margin-right: 6px;
}

.nb_date {
    float: right;
    color: #999;
    font-size: 14px;
}

/* 유틸리티 */
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* ============================================
   반응형 (모바일) - 목록/읽기
   ============================================ */

@media screen and (max-width: 768px) {
    /* 게시판 목록 모바일 최적화 */
    #bo_list {
        padding: 10px 15px 30px;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* 상단 버튼 영역 */
    #bo_btn_top {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        margin-bottom: 15px;
    }

    .btn_bo_user {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .btn_b01 {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* ** 카드형 UI (Grid)로 변경 **
    */
    .tbl_wrap {
        overflow-x: visible;
        width: 100%;
    }

    .tbl_head01 {
        border: none;
        overflow: visible;
        width: 100%;
    }

    .tbl_head01 table {
        width: 100% !important;
    }

    .tbl_head01 thead {
        display: none;
    }

    .tbl_head01 table,
    .tbl_head01 tbody,
    .tbl_head01 tr {
        display: block;
        width: 100%;
    }

    .tbl_head01 tbody tr {
        display: grid; /* Grid 사용 */
        grid-template-columns: 1fr auto; /* 2열 (내용 | 상태) */
        grid-template-rows: auto auto auto; /* 3행 (번호, 제목, 날짜) */
        grid-template-areas:
            "number ."
            "subject subject"
            "date status";
        gap: 10px 15px; /* 행간 10px, 열간 15px */
        
        margin-bottom: 12px;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        padding: 20px 25px; /* 카드 내부 여백 */
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        background: #fff;
    }

    .tbl_head01 tbody tr:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .tbl_head01 tbody tr.bo_notice {
        border-color: #516F5F;
        background: #fffbf0;
    }

    .tbl_head01 tbody td {
        display: block;
        padding: 0 !important;
        border: none !important;
        text-align: left !important;
        width: auto !important;
        min-width: auto !important;
        background: none !important;
        float: none !important;
    }
    
    /* === 모바일 카드 UI 그리드 영역 지정 === */

    /* 숨길 항목들 */
    .tbl_head01 tbody td.td_chk,
    .tbl_head01 tbody td.td_name,
    .tbl_head01 tbody td.td_num,
    .tbl_head01 tbody td.td_good,
    .tbl_head01 tbody td.td_nogood {
        display: none !important;
    }

    /* 1. 번호 */
    .tbl_head01 tbody td.td_num2 { 
        grid-area: number; 
        font-size: 16px;
        font-weight: 600;
        color: #333;
        align-self: start;
    }
    .td_num2::before {
        content: 'No. ' !important;
        color: #333 !important;
    }
    .notice_icon, .bo_current {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #516F5F !important;
        padding: 0 !important;
        background: none !important;
    }

    /* 2. 제목 */
    .tbl_head01 tbody td.td_subject { 
        grid-area: subject; 
    }
    .bo_tit a {
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        color: #333 !important;
    }
    .bo_cate_link, .cnt_cmt, .new_icon {
        display: none !important; /* 카테고리, 댓글, 새글 아이콘 숨김 */
    }


    /* 3. 날짜 */
    .tbl_head01 tbody td.td_datetime { 
        grid-area: date; 
        font-size: 14px;
        color: #999;
        align-self: end; /* 그리드 셀 하단에 정렬 */
    }
    .td_datetime::before {
        display: none !important; /* 🕐 아이콘 숨김 */
    }
    
    /* 4. 상태 */
    .tbl_head01 tbody td.td_qa_status { 
        grid-area: status; 
        align-self: end; /* 그리드 셀 하단에 정렬 */
        text-align: right !important; /* 우측 정렬 */
    }
    .qa_status {
        font-size: 12px !important;
        padding: 5px 12px !important;
    }
    
    /* === 카드 UI 종료 === */


    /* 페이지네이션 */
    .pg_wrap {
        margin-top: 30px;
    }

    .pg a,
    .pg strong {
        min-width: 36px;
        height: 32px;
        font-size: 12px;
        padding: 0 8px;
    }

    /* 빈 테이블 */
    .empty_table {
        padding: 50px 20px !important;
        font-size: 14px;
    }

    /* 하단 버튼 */
    .bo_fx {
        margin-top: 20px;
    }

    .bo_fx .btn_b01 {
        width: 100%;
        justify-content: center;
    }

    /* 게시글 상세보기 */
    #bo_v {
        margin: 20px 15px;
        border-radius: 0;
    }

    #bo_v_title {
        padding: 0 0 25px 0;
    }

    #bo_v_title .bo_v_tit {
        font-size: 24px;
    }

    #bo_v_info {
        padding: 20px 0;
    }

    .profile_info {
        gap: 12px;
    }

    .profile_info .pf_img img {
        width: 40px;
        height: 40px;
    }

    .profile_info_ct strong {
        font-size: 14px;
    }

    .profile_info_ct a,
    .profile_info_ct strong:not(:first-child) {
        font-size: 13px;
        margin-right: 10px;
    }

    #bo_v_top {
        padding: 20px 0;
    }

    .bo_v_com {
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn_b01 {
        padding: 9px 16px;
        font-size: 13px;
    }

    #bo_v_atc {
        padding: 35px 0 50px;
    }

    #bo_v_share {
        padding-bottom: 20px;
        margin-bottom: 30px;
    }

    #bo_v_con {
        font-size: 16px;
        line-height: 1.8;
    }

    #bo_v_con h1 {
        font-size: 24px;
        margin: 35px 0 15px;
    }

    #bo_v_con h2 {
        font-size: 21px;
        margin: 30px 0 12px;
    }

    #bo_v_con h3 {
        font-size: 18px;
        margin: 25px 0 10px;
    }

    #bo_v_act {
        flex-direction: row;
        padding: 0;
        gap: 10px;
        margin: 50px 0;
    }

    #bo_v_act a {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        padding: 25px 20px;
    }

    #bo_v_file li,
    #bo_v_link li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    #bo_v_file li i,
    #bo_v_link li i {
        font-size: 22px;
    }

    .bo_v_nb {
        margin: 50px 0 0;
    }

    .bo_v_nb li {
        padding: 18px 0;
    }

    .nb_date {
        float: none;
        display: block;
        margin-top: 8px;
    }
}

@media screen and (max-width: 480px) {
    #bo_v_title .bo_v_tit {
        font-size: 21px;
    }

    #bo_v_con {
        font-size: 15px;
    }

    .btn_b01 {
        padding: 8px 14px;
        font-size: 12px;
    }

    #bo_v_act a {
        padding: 22px 18px;
    }
}


/* ========================================
   게시판 글쓰기 (write_skin.php) - 신규 추가
   ======================================== */

#bo_w { /* 그누보드 기본 글쓰기 ID */
    width: 100% !important; /* 스킨에서 강제하는 width: 값 무시 */
    margin: 0;
    padding: 0;
}

/* 폼 컨테이너 */
.form-container {
    width: 100% !important;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px 20px 150px !important;
}

/* 폼 헤더 */
.form-header {
    text-align: center;
    margin-bottom: 60px;
}

.form-subtitle {
    font-size: 18px;
    color: #516F5F;
    letter-spacing: 8px;
    margin-bottom: 15px;
    font-weight: 400;
}

.form-main-title {
    font-size: 42px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 30px;
}

.form-description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.form-description strong {
    color: #516F5F;
    font-weight: 600;
}

.required-notice {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: #999;
}

/* 글쓰기 폼 전체 섹션 */
#bo_w {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

#bo_w form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 폼 컨테이너 */
.form-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0px 40px 150px !important;
    box-sizing: border-box !important;
}

/* 폼 헤더 */
.form-header {
    text-align: center !important;
    margin-bottom: 60px !important;
}

.form-subtitle {
    font-size: 15px !important;
    color: #516F5F !important;
    letter-spacing: 8px !important;
    margin-bottom: 20px !important;
    font-weight: 400 !important;
}

.form-main-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    line-height: 1.3 !important;
}

.form-description {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.8 !important;
    margin-bottom: 20px !important;
}

.required-notice {
    display: block !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    color: #999 !important;
}

/* 폼 스타일 */
.consultation-form {
    background: white !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    padding: 50px !important;
    box-sizing: border-box !important;
}

.form-row {
    display: grid !important;
    grid-template-columns: 180px 1fr !important;
    gap: 30px !important;
    margin-bottom: 35px !important;
    align-items: start !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.form-row.full-width {
    grid-template-columns: 1fr !important;
}
.form-row.full-width .form-label {
    padding-top: 0 !important; /* Full-width일 땐 라벨 패딩 제거 */
    margin-bottom: 10px !important;
}

.form-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding-top: 12px !important;
}

.form-label.required::after {
    content: ' *' !important;
    color: #e74c3c !important;
    font-weight: bold !important;
}

.form-input-wrapper {
    width: 100% !important;
}

/* 입력 필드 공통 스타일 */
.form-input,
.form-select,
.form-textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    background: white !important;
    box-sizing: border-box !important;
}

/* 그누보드 frm_input 클래스에도 동일 스타일 적용 */
.frm_input.form-input {
    height: auto !important; /* 그누보드 기본값 무시 */
    line-height: normal !important;
}


.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none !important;
    border-color: #516F5F !important;
    box-shadow: 0 0 0 3px rgba(81, 111, 95, 0.1) !important;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #999 !important;
}

/* 선택 박스 */
.form-select {
    cursor: pointer !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 40px !important;
    height: auto !important; /* 그누보드 기본값 무시 */
}

/* 텍스트 영역 */
.form-textarea {
    min-height: 200px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

/* 그누보드 에디터 영역 스타일링 */
.form-input-wrapper .wr_content {
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    overflow: hidden !important; /* 에디터 테두리 */
}
.form-input-wrapper .wr_content:focus-within {
     border-color: #516F5F !important;
    box-shadow: 0 0 0 3px rgba(81, 111, 95, 0.1) !important;
}
/* CKEditor */
.cke_chrome {
    border: none !important;
}
/* Summernote */
.note-editor.note-frame {
    border: none !important;
}
#char_count_wrap {
    text-align: right !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #999 !important;
    background: #fdfdfd !important;
}

/* 도움말 텍스트 */
.input-help {
    font-size: 13px !important;
    color: #999 !important;
    margin-top: 8px !important;
    line-height: 1.5 !important;
}

/* 옵션 (공지, 비밀글 등) */
.bo_v_option {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}
.bo_v_option .chk_box {
    width: auto !important;
}
.bo_v_option .chk_box label {
    display: flex !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #333 !important;
}
.bo_v_option .chk_box label span {
    margin-right: 8px !important;
    border-radius: 5px !important;
    width: 20px !important;
    height: 20px !important;
}
.bo_v_option .chk_box input[type="checkbox"]:checked + label span::after {
    font-size: 14px !important;
}

/* ========================================
   파일 업로드
   ======================================== */
.file-upload-area {
    position: relative !important;
    width: 100% !important;
}

.file-input {
    display: none !important; /* 실제 input 숨기기 */
}

/* 그누보드 파일첨부 input(frm_file) 숨기기 */
.bo_w_flie .frm_file {
    display: none !important;
}

/* 그누보드 파일첨부 label을 디자인 블럭으로 변경 */
.bo_w_flie .lb_icon {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 20px !important;
    border: 2px dashed #ddd !important;
    border-radius: 8px !important;
    background: #f9f9f9 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    color: #666 !important;
}

.bo_w_flie .lb_icon:hover {
    border-color: #516F5F !important;
    background: #f5f8f6 !important;
    color: #516F5F !important;
}

/* 아이콘과 텍스트 추가 (CSS로) */
.bo_w_flie .lb_icon::before {
    content: '💾' !important; /* 아이콘 (이모지 또는 font-awesome) */
    font-size: 36px !important;
    margin-bottom: 15px !important;
}

.bo_w_flie .lb_icon .sound_only { /* 숨겨진 텍스트 대신 새 텍스트 표시 */
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    font-size: 15px !important;
    color: #333 !important;
    font-weight: 500 !important;
    margin-bottom: 8px !important;
}

.bo_w_flie .lb_icon::after {
    content: '최대 <?php echo $upload_max_filesize ?> / 클릭하여 파일 선택' !important;
    font-size: 13px !important;
    color: #999 !important;
}


/* 파일 설명 입력란 */
.bo_w_flie input[name="bf_content[]"] {
    margin-top: 10px !important;
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 13px !important;
}

/* 파일 삭제 체크박스 */
.bo_w_flie .file_del {
    display: inline-block !important;
    margin-top: 10px !important;
}
.bo_w_flie .file_del label {
    font-size: 13px !important;
    color: #e74c3c !important;
}
.bo_w_flie .file_del input[type="checkbox"] {
    margin-right: 5px !important;
    accent-color: #e74c3c !important;
}

/* ========================================
   개인정보 동의 (기본 스킨에 없으므로 생략)
   ======================================== */

/* ========================================
   버튼
   ======================================== */
.form-buttons {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    margin-top: 50px !important;
    padding-top: 40px !important;
    border-top: 1px solid #e8e8e8 !important;
}

.btn-cancel,
.btn-submit {
    min-width: 180px !important;
    padding: 16px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
    height: auto !important; /* 그누보드 기본값 무시 */
    line-height: normal !important; /* 그누보드 기본값 무시 */
}

.btn-cancel {
    background: white !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.btn-cancel:hover {
    background: #f8f9fa !important;
    border-color: #ccc !important;
}

.btn-submit {
    background: #516F5F !important;
    color: white !important;
    border: 1px solid #516F5F !important;
}

.btn-submit:hover {
    background: #3f5a4f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(81, 111, 95, 0.3) !important;
}

.btn-submit:active {
    transform: translateY(0) !important;
}

/* ========================================
   반응형 - 태블릿
   ======================================== */
@media (max-width: 1024px) {
    .form-container {
        max-width: 900px;
        padding: 10px 20px 120px;
    }

    .consultation-form {
        padding: 40px;
    }

    .form-row {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }
}

/* ========================================
   반응형 - 모바일 (글쓰기 폼)
   ======================================== */
@media (max-width: 768px) {
    /* 글쓰기 반응형 */
    #bo_w {
        padding: 0 10px !important;
    }
    
    .form-container {
        padding: 10px 15px 100px !important;
        max-width: 100% !important;
    }

    .form-header {
        margin-bottom: 40px !important;
    }

    .form-subtitle {
        font-size: 14px !important;
        letter-spacing: 5px !important;
    }

    .form-main-title {
        font-size: 28px !important;
    }

    .form-description {
        font-size: 14px !important;
    }

    .consultation-form {
        padding: 30px 20px !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 30px !important;
    }

    .form-label {
        padding-top: 0 !important;
        font-size: 14px !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    .form-textarea {
        min-height: 180px !important;
    }
    
    .bo_w_flie .lb_icon {
        padding: 30px 15px !important;
    }
    .bo_w_flie .lb_icon::before {
        font-size: 30px !important;
        margin-bottom: 10px !important;
    }
    .bo_w_flie .lb_icon .sound_only {
        font-size: 14px !important;
    }
    .bo_w_flie .lb_icon::after {
        font-size: 12px !important;
    }

    .form-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 40px !important;
        padding-top: 30px !important;
    }

    .btn-cancel,
    .btn-submit {
        width: 100% !important;
        min-width: auto !important;
        padding: 15px 30px !important;
        font-size: 15px !important;
    }
}

/* ========================================
   반응형 - 작은 모바일 (글쓰기 폼)
   ======================================== */
@media (max-width: 480px) {
    /* 글쓰기 반응형 */
    #bo_w {
        padding: 0 5px !important;
    }
    
    .form-container {
        padding: 10px 10px 80px !important;
    }

    .form-main-title {
        font-size: 24px !important;
    }

    .consultation-form {
        padding: 25px 15px !important;
    }

    .form-row {
        margin-bottom: 25px !important;
    }

    .form-label {
        font-size: 13px !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 11px 13px !important;
        font-size: 13px !important;
    }

    .btn-cancel,
    .btn-submit {
        padding: 14px 25px !important;
        font-size: 14px !important;
    }
}

/* ========================================
   댓글 영역 - view_comment.php 포함 (mathpia 스타일)
   ======================================== */

/* 댓글 전체 영역 */
article#bo_v #bo_vc,
article#bo_v section#bo_vc,
article#bo_v aside#bo_vc,
#bo_vc,
aside#bo_vc {
    margin-top: 80px !important;
    padding-top: 50px !important;
    border-top: 2px solid #1a1a1a !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 댓글 제목 */
#bo_vc h2,
#bo_vc > h2,
#bo_vc_title,
#bo_vc .sound_only + strong {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 30px !important;
    letter-spacing: -0.5px !important;
    display: block !important;
}

#bo_vc h2 span,
#bo_vc_title span {
    color: #516F5F !important;
    font-weight: 700 !important;
}

/* 댓글 목록 - 모든 ul 태그 */
#bo_vc ul,
#bo_vc > ul,
#bo_vc ul.cmt_list,
article#bo_v #bo_vc ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 개별 댓글 li */
#bo_vc ul > li,
#bo_vc > ul > li,
#bo_vc ul.cmt_list > li,
article#bo_v #bo_vc ul > li {
    padding: 30px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: transparent !important;
    margin: 0 !important;
    list-style: none !important;
}

#bo_vc ul > li:first-child {
    padding-top: 0 !important;
}

#bo_vc ul > li:last-child {
    border-bottom: none !important;
}

/* 댓글 작성자 - 모든 가능한 선택자 */
#bo_vc li > div > div > strong,
#bo_vc li strong,
#bo_vc .sv_member,
#bo_vc .sv_guest,
#bo_vc span.sv_member,
#bo_vc span.sv_guest,
#bo_vc strong.cmt_name,
#bo_vc .cmt_name,
#bo_vc .name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    display: inline-block !important;
    margin: 0 !important;
}

/* 댓글 날짜 */
#bo_vc li span.bo_vc_hdinfo,
#bo_vc li .bo_vc_hdinfo,
#bo_vc .if_date,
#bo_vc span.if_date,
#bo_vc li > div > div > span {
    font-size: 14px !important;
    color: #888 !important;
    margin-left: 12px !important;
    font-weight: 400 !important;
}

/* 댓글 내용 - 모든 가능한 div 선택자 */
#bo_vc li > div.cmt_contents,
#bo_vc li div[id^="cmt_"],
#bo_vc li div.cmt_content,
#bo_vc li > div > div:not([class]),
#bo_vc li .view_comment_contents,
#bo_vc .cmt_contents {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
    background: transparent !important;
    border: none !important;
}

#bo_vc .cmt_contents p {
    margin: 10px 0 !important;
}

/* 댓글 버튼 영역 */
#bo_vc li ul.bo_vc_act,
#bo_vc ul.bo_vc_act,
#bo_vc .bo_vc_act,
#bo_vc li .cmt_opt {
    display: flex !important;
    gap: 8px !important;
    margin-top: 15px !important;
    list-style: none !important;
    padding: 0 !important;
}

#bo_vc .bo_vc_act li,
#bo_vc ul.bo_vc_act > li {
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

#bo_vc .bo_vc_act a,
#bo_vc .bo_vc_act button,
#bo_vc ul.bo_vc_act a,
#bo_vc ul.bo_vc_act button {
    padding: 8px 16px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

#bo_vc .bo_vc_act a:hover,
#bo_vc .bo_vc_act button:hover {
    background: #f8f9fa !important;
    border-color: #516F5F !important;
    color: #516F5F !important;
    transform: translateY(-1px) !important;
}

/* 대댓글 */
#bo_vc ul ul,
#bo_vc li ul,
#bo_vc > ul > li > ul {
    list-style: none !important;
    margin: 25px 0 0 50px !important;
    padding: 0 !important;
    border-left: 3px solid #f0f0f0 !important;
}

#bo_vc ul ul > li,
#bo_vc li ul > li {
    padding: 25px 0 25px 35px !important;
    border-bottom: 1px solid #f8f9fa !important;
}

#bo_vc ul ul > li:last-child {
    border-bottom: none !important;
}

/* 댓글 작성 폼 - aside 태그 */
article#bo_v aside#bo_vc_w,
aside#bo_vc_w,
#bo_vc aside,
#bo_vc .bo_vc_w {
    margin-top: 50px !important;
    padding: 40px !important;
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#bo_vc_w h2,
aside#bo_vc_w h2,
#bo_vc aside h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 25px !important;
    letter-spacing: -0.5px !important;
}

/* 댓글 입력 테이블 */
#bo_vc_w table,
aside#bo_vc_w table,
#bo_vc table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
}

#bo_vc_w table td,
aside#bo_vc_w table td {
    padding: 0 !important;
    border: none !important;
    vertical-align: top !important;
}

/* 아이디/비밀번호 한 줄 배치 */
#bo_vc_w table tr:first-child td,
aside#bo_vc_w table tr:first-child td {
    display: inline-block !important;
    width: calc(50% - 6px) !important;
    margin-right: 12px !important;
    margin-bottom: 12px !important;
}

#bo_vc_w table tr:first-child td:last-child,
aside#bo_vc_w table tr:first-child td:last-child {
    margin-right: 0 !important;
}

/* 자동완성 방지 영역도 한 줄 배치 */
#bo_vc_w table tr td[colspan],
aside#bo_vc_w table tr td[colspan] {
    display: block !important;
    width: 100% !important;
}

/* 댓글 입력 필드 */
#bo_vc_w input[type="text"],
#bo_vc_w input[type="password"],
aside#bo_vc_w input[type="text"],
aside#bo_vc_w input[type="password"],
#bo_vc input.frm_input {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: white !important;
}

#bo_vc_w input[type="text"]:focus,
#bo_vc_w input[type="password"]:focus,
#bo_vc input.frm_input:focus {
    outline: none !important;
    border-color: #A6756A !important;
    box-shadow: 0 0 0 3px rgba(81, 111, 95, 0.08) !important;
}

/* 댓글 텍스트 영역 */
#bo_vc_w textarea,
aside#bo_vc_w textarea,
#bo_vc textarea,
#bo_vc_w #wr_content,
#wr_content {
    width: 100% !important;
    min-height: 140px !important;
    padding: 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    background: white !important;
}

#bo_vc_w textarea:focus,
#bo_vc textarea:focus,
#wr_content:focus {
    outline: none !important;
    border-color: #516F5F !important;
    box-shadow: 0 0 0 3px rgba(81, 111, 95, 0.08) !important;
}

/* 댓글 버튼 영역 */
#bo_vc_w .btn_confirm,
aside#bo_vc_w .btn_confirm,
#bo_vc .btn_confirm {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
}

/* 비밀댓글 체크박스 */
#bo_vc_w input[type="checkbox"],
aside#bo_vc_w input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    accent-color: #A6756A !important;
    margin: 0 8px 0 0 !important;
}

#bo_vc_w label,
aside#bo_vc_w label {
    width: 150px;
    font-size: 14px !important;
    color: #666 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* 댓글 제출 버튼 */
#bo_vc_w button[type="submit"],
#bo_vc_w input[type="submit"],
aside#bo_vc_w button[type="submit"],
aside#bo_vc_w input[type="submit"],
#bo_vc .btn_submit {
    padding: 14px 32px !important;
    background: #A6756A !important;
    border: 1px solid #A6756A !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-left: auto !important;
}

#bo_vc_w button[type="submit"]:hover,
#bo_vc_w input[type="submit"]:hover,
#bo_vc .btn_submit:hover {
    background: #A6756A !important;
    border-color: #A6756A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(81, 111, 95, 0.3) !important;
}

/* 댓글 없음 메시지 */
#bo_vc .empty_comment,
#bo_vc p {
    padding: 80px 20px !important;
    text-align: center !important;
    color: #888 !important;
    font-size: 16px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
}

/* sound_only 숨김 */
#bo_vc .sound_only,
aside#bo_vc_w .sound_only {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ========================================
   댓글 반응형 - 태블릿
   ======================================== */
@media (max-width: 768px) {
    article#bo_v #bo_vc,
    #bo_vc {
        margin-top: 60px !important;
        padding-top: 40px !important;
    }

    #bo_vc h2,
    #bo_vc_title {
        font-size: 20px !important;
        margin-bottom: 25px !important;
    }

    #bo_vc ul > li {
        padding: 25px 0 !important;
    }

    #bo_vc ul ul {
        margin-left: 30px !important;
    }

    #bo_vc ul ul > li {
        padding-left: 25px !important;
    }

    aside#bo_vc_w,
    #bo_vc_w {
        padding: 30px 25px !important;
    }

    #bo_vc_w .btn_confirm {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #bo_vc_w button[type="submit"],
    #bo_vc_w input[type="submit"] {
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
}

/* ========================================
   댓글 반응형 - 모바일
   ======================================== */
@media (max-width: 480px) {
    article#bo_v #bo_vc,
    #bo_vc {
        margin-top: 50px !important;
        padding-top: 30px !important;
    }

    #bo_vc h2,
    #bo_vc_title {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }

    #bo_vc ul > li {
        padding: 20px 0 !important;
    }

    #bo_vc li strong,
    #bo_vc .sv_member,
    #bo_vc .sv_guest {
        font-size: 15px !important;
    }

    #bo_vc .if_date {
        font-size: 13px !important;
    }

    #bo_vc .cmt_contents {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    #bo_vc .bo_vc_act a,
    #bo_vc .bo_vc_act button {
        padding: 7px 14px !important;
        font-size: 12px !important;
    }

    #bo_vc ul ul {
        margin-left: 20px !important;
    }

    #bo_vc ul ul > li {
        padding-left: 20px !important;
    }

    aside#bo_vc_w,
    #bo_vc_w {
        padding: 25px 20px !important;
    }

    #bo_vc_w h2 {
        font-size: 17px !important;
        margin-bottom: 20px !important;
    }

    #bo_vc_w textarea,
    #wr_content {
        min-height: 120px !important;
        padding: 15px !important;
        font-size: 14px !important;
    }

    #bo_vc_w input[type="text"],
    #bo_vc_w input[type="password"] {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    #bo_vc_w button[type="submit"],
    #bo_vc_w input[type="submit"] {
        padding: 12px 28px !important;
        font-size: 14px !important;
    }
}/* ========================================
   그누보드 basic 스킨 댓글 전용 CSS
   ======================================== */

/* 댓글 전체 영역 */
#bo_vc {
    margin-top: 80px !important;
    padding-top: 50px !important;
    border-top: 2px solid #1a1a1a !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
}

/* 댓글 제목 */
#bo_vc h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 30px !important;
    letter-spacing: -0.5px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

#bo_vc h2 span {
    color: #516F5F !important;
}

/* 댓글 목록 */
#bo_vc ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 개별 댓글 */
#bo_vc > ul > li {
    padding: 30px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: transparent !important;
    margin: 0 !important;
    list-style: none !important;
}

#bo_vc > ul > li:first-child {
    padding-top: 0 !important;
}

#bo_vc > ul > li:last-child {
    border-bottom: none !important;
}

/* 댓글 작성자 */
#bo_vc li div div strong,
#bo_vc .sv_member,
#bo_vc .sv_guest {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    display: inline-block !important;
    margin: 0 5px 0 0 !important;
}

/* 댓글 날짜 */
#bo_vc li div div span,
#bo_vc .if_date {
    font-size: 14px !important;
    color: #888 !important;
    font-weight: 400 !important;
}

/* 댓글 내용 */
#bo_vc li > div:last-of-type {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
}

/* 댓글 버튼 영역 */
#bo_vc ul.bo_vc_act {
    display: flex !important;
    gap: 8px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    list-style: none !important;
}

#bo_vc ul.bo_vc_act li {
    padding: 0 !important;
    border: none !important;
    margin: 0 !important;
}

#bo_vc ul.bo_vc_act a {
    padding: 8px 16px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    color: #666 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

#bo_vc ul.bo_vc_act a:hover {
    background: #f8f9fa !important;
    border-color: #516F5F !important;
    color: #516F5F !important;
}

/* 대댓글 */
#bo_vc > ul > li > ul {
    margin: 25px 0 0 50px !important;
    padding: 0 !important;
    border-left: 3px solid #f0f0f0 !important;
    list-style: none !important;
}

#bo_vc > ul > li > ul > li {
    padding: 25px 0 25px 35px !important;
    border-bottom: 1px solid #f8f9fa !important;
}

/* 댓글 작성 폼 */
aside#bo_vc_w {
    margin-top: 50px !important;
    padding: 40px !important;
    background: #f8f9fa !important;
    border: none !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

aside#bo_vc_w h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 25px !important;
}

/* 댓글 작성 폼 - fviewcomment */
form#fviewcomment {
    width: 100% !important;
}

/* 테이블 스타일 제거 */
aside#bo_vc_w table {
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
}

aside#bo_vc_w table tr {
    border: none !important;
}

aside#bo_vc_w table td {
    border: none !important;
    padding: 5px 0 !important;
    vertical-align: top !important;
}

/* 아이디/비밀번호 한 줄 배치 */
aside#bo_vc_w table tbody > tr:nth-child(1) td:nth-child(1),
aside#bo_vc_w table tbody > tr:nth-child(1) td:nth-child(2) {
    display: inline-block !important;
    width: calc(50% - 6px) !important;
    vertical-align: top !important;
}

aside#bo_vc_w table tbody > tr:nth-child(1) td:nth-child(1) {
    margin-right: 12px !important;
}

/* 입력 필드 */
aside#bo_vc_w input[type="text"],
aside#bo_vc_w input[type="password"] {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background: white !important;
    margin-bottom: 10px;
}

aside#bo_vc_w input:focus {
    outline: none !important;
    border-color: #516F5F !important;
    box-shadow: 0 0 0 3px rgba(81, 111, 95, 0.08) !important;
}

/* 자동등록방지 - 캡차 */
aside#bo_vc_w .captcha_box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 10px 0 !important;
}

/* 댓글 내용 textarea */
aside#bo_vc_w textarea#wr_content {
    width: 100% !important;
    min-height: 140px !important;
    padding: 18px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    resize: vertical !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    background: white !important;
    margin: 10px 0 !important;
}

aside#bo_vc_w textarea#wr_content:focus {
    outline: none !important;
    border-color: #516F5F !important;
    box-shadow: 0 0 0 3px rgba(81, 111, 95, 0.08) !important;
}

/* 버튼 영역 */
aside#bo_vc_w .btn_confirm {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 20px !important;
}

/* 비밀댓글 체크박스 */
aside#bo_vc_w input[type="checkbox"]#wr_secret {
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    accent-color: #516F5F !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
}

aside#bo_vc_w label[for="wr_secret"] {
    font-size: 14px !important;
    color: #666 !important;
    cursor: pointer !important;
    vertical-align: middle !important;
}

/* 등록 버튼 */
aside#bo_vc_w button#btn_submit {
    padding: 14px 32px !important;
    background: #A6756A !important;
    border: 1px solid #A6756A !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

aside#bo_vc_w button#btn_submit:hover {
    background: #90655b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(81, 111, 95, 0.3) !important;
}

/* sound_only 숨김 */
#bo_vc .sound_only,
aside#bo_vc_w .sound_only {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* 반응형 - 태블릿 */
@media (max-width: 768px) {
    #bo_vc {
        margin-top: 60px !important;
        padding-top: 40px !important;
    }
    
    #bo_vc h2 {
        font-size: 20px !important;
    }
    
    aside#bo_vc_w {
        padding: 30px 20px !important;
    }
    
    /* 아이디/비밀번호 세로 배치 */
    aside#bo_vc_w table tbody > tr:nth-child(1) td:nth-child(1),
    aside#bo_vc_w table tbody > tr:nth-child(1) td:nth-child(2) {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
    
    aside#bo_vc_w .btn_confirm {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    aside#bo_vc_w button#btn_submit {
        width: 100% !important;
        order: 1 !important;
    }
    
    aside#bo_vc_w label[for="wr_secret"] {
        order: 2 !important;
        margin-top: 15px !important;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 480px) {
    #bo_vc {
        margin-top: 50px !important;
        padding-top: 30px !important;
    }
    
    #bo_vc h2 {
        font-size: 18px !important;
    }
    
    #bo_vc > ul > li {
        padding: 20px 0 !important;
    }
    
    #bo_vc > ul > li > ul {
        margin-left: 20px !important;
    }
    
    #bo_vc > ul > li > ul > li {
        padding-left: 20px !important;
    }
    
    aside#bo_vc_w {
        padding: 25px 15px !important;
    }
    
    aside#bo_vc_w h2 {
        font-size: 17px !important;
    }
    
    aside#bo_vc_w textarea#wr_content {
        min-height: 120px !important;
        font-size: 14px !important;
    }
}