@charset "utf-8";

:root {
    --brand: #af1e57;
    --brand-light: #fdf2f6;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e5e5e5;
    --bg: #f8f9fa;
}

/* ===== 공통 ===== */
#bo_list, #bo_v, #bo_w { margin: 0 auto; padding: 15px; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn_write { background: var(--brand); color: #fff !important; border-color: var(--brand); }
.btn_write:hover { background: #8b1846; }
.btn_del { color: #dc3545; border-color: #dc3545; }
.btn_del:hover { background: #dc3545; color: #fff; }
.btn_submit { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn_submit:hover { background: #8b1846; }

/* ===== 목록 ===== */
#bo_cate { margin-bottom: 15px; }
#bo_cate ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
#bo_cate a { display: block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-light); font-size: 13px; text-decoration: none; }
#bo_cate a:hover, #bo_cate #bo_cate_on { background: var(--brand); color: #fff; border-color: var(--brand); }

#bo_btn_top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
#bo_list_total { font-size: 14px; color: var(--text-light); }
.btn_bo_user { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }

.tbl_wrap { overflow-x: auto; }
.tbl_wrap table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--brand); }
.tbl_wrap th { padding: 12px 8px; background: var(--bg); font-size: 13px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
.tbl_wrap td { padding: 12px 8px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl_wrap .chk { width: 40px; text-align: center; }
.tbl_wrap .no { width: 60px; text-align: center; }
.tbl_wrap .name { width: 100px; text-align: center; }
.tbl_wrap .date { width: 90px; text-align: center; color: var(--text-muted); font-size: 13px; }
.tbl_wrap .hit { width: 60px; text-align: center; color: var(--text-muted); font-size: 13px; }
.tbl_wrap .good { width: 50px; text-align: center; }
.tbl_wrap .subject { text-align: left; }
.tbl_wrap .empty_table { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.bo_notice td { background: var(--brand-light); }
.notice_txt { display: inline-block; padding: 2px 8px; background: var(--brand); color: #fff; font-size: 11px; border-radius: 3px; }
.current_txt { color: var(--brand); font-weight: bold; }

.bo_tit { color: var(--text); text-decoration: none; }
.bo_tit:hover { color: var(--brand); }
.cate_link { display: inline-block; margin-right: 8px; padding: 2px 8px; background: #e2eaf6; color: #3a8afd; font-size: 12px; border-radius: 3px; text-decoration: none; }
.new_icon { display: inline-block; margin-left: 4px; padding: 1px 4px; background: #b9ffda; color: #23db79; font-size: 10px; font-weight: bold; border-radius: 2px; vertical-align: middle; }
.cnt_cmt { display: inline-block; margin-left: 4px; padding: 1px 6px; background: #e9eff5; color: #3a8afd; font-size: 11px; border-radius: 3px; vertical-align: middle; }

.bo_info_m { display: none; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.bo_info_m span { margin-right: 10px; }

#bo_btn_bottom { margin-top: 15px; text-align: right; }

/* 검색 */
.bo_sch { margin-top: 20px; padding: 15px; background: var(--bg); border-radius: 8px; text-align: center; }
.bo_sch select { padding: 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.bo_sch .sch_input { padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; width: 200px; }
.bo_sch .sch_btn { padding: 8px 16px; background: var(--brand); color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }

/* 페이지네이션 */
.pg_wrap { margin: 20px 0; text-align: center; }
.pg { display: inline-flex; gap: 4px; }
.pg a, .pg strong { display: inline-block; min-width: 32px; height: 32px; line-height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; text-decoration: none; color: var(--text); }
.pg a:hover { border-color: var(--brand); color: var(--brand); }
.pg .pg_current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ===== 읽기 ===== */
#bo_v_header { padding-bottom: 15px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.bo_v_cate { display: inline-block; margin-bottom: 8px; padding: 4px 10px; background: var(--brand-light); color: var(--brand); font-size: 13px; border-radius: 4px; }
#bo_v_title { margin: 0 0 12px; font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.4; }
#bo_v_info { font-size: 13px; color: var(--text-muted); }
#bo_v_info span { margin-right: 15px; }
#bo_v_info .name { color: var(--text); font-weight: 500; }

#bo_v_atc { padding: 20px 0; min-height: 200px; }
#bo_v_con { line-height: 1.8; font-size: 15px; color: var(--text); word-break: break-word; }
#bo_v_con img { max-width: 100%; height: auto; }
#bo_v_img { margin-bottom: 20px; }
#bo_v_img img { max-width: 100%; height: auto; }

#bo_v_act { display: flex; justify-content: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bo_v_good, .bo_v_nogood { display: flex; flex-direction: column; align-items: center; padding: 15px 30px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); transition: all 0.2s; }
.bo_v_good:hover { border-color: var(--brand); color: var(--brand); }
.bo_v_nogood:hover { border-color: #666; }
.bo_v_good span, .bo_v_nogood span { font-size: 13px; }
.bo_v_good strong, .bo_v_nogood strong { font-size: 20px; margin-top: 4px; }

#bo_v_file, #bo_v_link { margin: 20px 0; padding: 15px; background: var(--bg); border-radius: 8px; }
#bo_v_file h2, #bo_v_link h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
#bo_v_file ul, #bo_v_link ul { list-style: none; padding: 0; margin: 0; }
#bo_v_file li, #bo_v_link li { padding: 8px 0; border-bottom: 1px solid var(--border); }
#bo_v_file li:last-child, #bo_v_link li:last-child { border-bottom: none; }
#bo_v_file a, #bo_v_link a { color: var(--text); text-decoration: none; }
#bo_v_file a:hover, #bo_v_link a:hover { color: var(--brand); }
.file_cnt { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

#bo_v_nb { list-style: none; padding: 0; margin: 20px 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
#bo_v_nb li { padding: 12px 15px; border-bottom: 1px solid var(--border); }
#bo_v_nb li:last-child { border-bottom: none; }
#bo_v_nb span { display: inline-block; width: 60px; color: var(--text-muted); font-size: 13px; }
#bo_v_nb a { color: var(--text); text-decoration: none; }
#bo_v_nb a:hover { color: var(--brand); }

#bo_v_btn { display: flex; justify-content: center; gap: 8px; padding: 20px 0; flex-wrap: wrap; }

/* ===== 댓글 ===== */
#bo_vc { margin-top: 30px; padding-top: 20px; border-top: 2px solid var(--brand); }
#bo_vc h2 { margin: 0 0 20px; font-size: 16px; }
#bo_vc h2 strong { color: var(--brand); }
#bo_vc article { padding: 15px; margin-bottom: 10px; background: var(--bg); border-radius: 8px; }
#bo_vc article.reply { margin-left: 30px; background: #fff; border: 1px solid var(--border); }
#bo_vc header { margin-bottom: 10px; font-size: 13px; }
#bo_vc header .name { font-weight: 600; color: var(--text); margin-right: 10px; }
#bo_vc header .date { color: var(--text-muted); }
.cmt_content { line-height: 1.6; color: var(--text); }
.cmt_action { margin-top: 10px; }
.btn_cmt { padding: 4px 10px; font-size: 12px; color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); border-radius: 3px; margin-right: 4px; }
.btn_cmt:hover { color: var(--brand); border-color: var(--brand); }
.cmt_empty { text-align: center; padding: 40px; color: var(--text-muted); }

#bo_vc_w { margin-top: 20px; padding: 20px; background: var(--bg); border-radius: 8px; }
#bo_vc_w h2 { margin: 0 0 15px; font-size: 15px; }
#bo_vc_w .frm_input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; margin-bottom: 10px; box-sizing: border-box; }
#bo_vc_w textarea { min-height: 100px; resize: vertical; }
.cmt_btn_area { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.chk_secret { font-size: 13px; color: var(--text-light); }

/* ===== 글쓰기 ===== */
#bo_w h2 { margin: 0 0 20px; font-size: 18px; padding-bottom: 15px; border-bottom: 2px solid var(--brand); }
.write_div { margin-bottom: 15px; }
.write_div label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.write_div .frm_input, .write_div select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; box-sizing: border-box; }
.write_div .frm_input:focus, .write_div select:focus { border-color: var(--brand); outline: none; }
.write_div textarea { min-height: 300px; resize: vertical; }
.write_div .frm_file { padding: 8px 0; }
.write_option { display: flex; gap: 15px; flex-wrap: wrap; }
.chk_label { font-size: 14px; color: var(--text-light); }
.file_del { display: block; margin-top: 5px; font-size: 13px; color: var(--text-muted); }
.btn_confirm { display: flex; justify-content: center; gap: 10px; padding: 20px 0; }
.btn_cancel { background: #6c757d; color: #fff; border-color: #6c757d; }

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    #bo_list, #bo_v, #bo_w { padding: 10px; }
    
    /* 목록 - 테이블 숨기고 카드형으로 */
    .tbl_wrap table { display: block; }
    .tbl_wrap thead { display: none; }
    .tbl_wrap tbody { display: block; }
    .tbl_wrap tr { display: block; padding: 12px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
    .tbl_wrap tr.bo_notice { background: var(--brand-light); border-color: #f8d7e3; }
    .tbl_wrap td { display: block; padding: 0; border: none; text-align: left !important; width: 100% !important; }
    .tbl_wrap td.chk { position: absolute; top: 12px; right: 12px; width: auto !important; }
    .tbl_wrap td.no { display: inline-block; width: auto !important; margin-bottom: 6px; font-size: 12px; color: var(--text-muted); }
    .tbl_wrap td.no .notice_txt { font-size: 11px; padding: 2px 6px; }
    .tbl_wrap td.subject { font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
    .tbl_wrap td.name, .tbl_wrap td.date, .tbl_wrap td.hit, .tbl_wrap td.good { display: none; }
    .tbl_wrap .empty_table { display: block; padding: 40px 20px; }
    .bo_info_m { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-muted); }
    .bo_info_m span { margin: 0; }
    .bo_tit { display: block; font-weight: 500; }
    
    /* 상단 버튼 */
    #bo_btn_top { flex-direction: column; align-items: stretch; gap: 10px; }
    #bo_list_total { font-size: 13px; }
    .btn_bo_user { width: 100%; justify-content: flex-end; }
    .btn_bo_user .btn { padding: 8px 12px; font-size: 13px; }
    
    /* 검색 */
    .bo_sch { padding: 12px; }
    .bo_sch form { display: flex; flex-direction: column; gap: 8px; }
    .bo_sch select { width: 100%; }
    .bo_sch .sch_input { width: 100%; }
    .bo_sch .sch_btn { width: 100%; padding: 10px; }
    
    /* 페이지네이션 */
    .pg_wrap { margin: 15px 0; }
    .pg a, .pg strong { min-width: 28px; height: 28px; line-height: 28px; font-size: 12px; }
    
    /* 읽기 */
    #bo_v_header { padding-bottom: 12px; margin-bottom: 15px; }
    #bo_v_title { font-size: 17px; line-height: 1.5; }
    #bo_v_info { font-size: 12px; }
    #bo_v_info span { display: inline-block; margin-right: 12px; margin-bottom: 4px; }
    
    #bo_v_atc { padding: 15px 0; }
    #bo_v_con { font-size: 14px; line-height: 1.7; }
    
    #bo_v_act { padding: 15px 0; gap: 10px; }
    .bo_v_good, .bo_v_nogood { padding: 12px 20px; flex-direction: row; gap: 10px; }
    .bo_v_good span, .bo_v_nogood span { font-size: 12px; }
    .bo_v_good strong, .bo_v_nogood strong { font-size: 16px; margin: 0; }
    
    #bo_v_file, #bo_v_link { padding: 12px; margin: 15px 0; }
    #bo_v_file h2, #bo_v_link h2 { font-size: 13px; }
    #bo_v_file a, #bo_v_link a { font-size: 13px; word-break: break-all; }
    
    #bo_v_nb li { padding: 10px 12px; }
    #bo_v_nb span { width: 50px; font-size: 12px; }
    #bo_v_nb a { font-size: 13px; }
    
    #bo_v_btn { gap: 6px; padding: 15px 0; }
    #bo_v_btn .btn { flex: 1; min-width: calc(33% - 6px); padding: 10px 8px; font-size: 13px; text-align: center; }
    
    /* 댓글 */
    #bo_vc { margin-top: 20px; padding-top: 15px; }
    #bo_vc h2 { font-size: 14px; margin-bottom: 15px; }
    #bo_vc article { padding: 12px; margin-bottom: 8px; }
    #bo_vc article.reply { margin-left: 12px; }
    #bo_vc header { font-size: 12px; }
    .cmt_content { font-size: 14px; }
    .btn_cmt { padding: 3px 8px; font-size: 11px; }
    
    #bo_vc_w { padding: 15px; margin-top: 15px; }
    #bo_vc_w h2 { font-size: 14px; }
    #bo_vc_w .frm_input { padding: 8px 10px; font-size: 14px; }
    #bo_vc_w textarea { min-height: 80px; }
    .cmt_btn_area { flex-direction: column; gap: 10px; align-items: stretch; }
    .cmt_btn_area .btn_submit { width: 100%; padding: 12px; }
    
    /* 글쓰기 */
    #bo_w h2 { font-size: 16px; margin-bottom: 15px; padding-bottom: 12px; }
    .write_div { margin-bottom: 12px; }
    .write_div label { font-size: 13px; margin-bottom: 5px; }
    .write_div .frm_input, .write_div select { padding: 10px; font-size: 14px; }
    .write_div textarea { min-height: 200px; }
    .write_option { gap: 10px; }
    .chk_label { font-size: 13px; }
    .btn_confirm { padding: 15px 0; gap: 8px; }
    .btn_confirm .btn { flex: 1; padding: 12px; font-size: 14px; }
}

@media (max-width: 480px) {
    .tbl_wrap td.subject { font-size: 14px; }
    .bo_info_m { font-size: 11px; }
    .cnt_cmt, .new_icon { font-size: 10px; }
    
    #bo_v_title { font-size: 16px; }
    #bo_v_btn .btn { min-width: calc(50% - 6px); font-size: 12px; padding: 8px 6px; }
    
    .pg a, .pg strong { min-width: 26px; height: 26px; line-height: 26px; font-size: 11px; padding: 0 4px; }
}

/* ===== 상담신청 박스 ===== */
#bo_v_consult {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 25px 30px;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
    background: #fff;
}

#bo_v_consult .consult_info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #6a3ea1;
}

#bo_v_consult .consult_info p {
    margin: 5px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

#bo_v_consult .consult_info .consult_name {
    font-size: 18px;
}

#bo_v_consult .consult_info .consult_phone,
#bo_v_consult .consult_info .consult_tel {
    font-size: 17px;
    color: #555;
}

#bo_v_consult .consult_btn a {
    display: inline-block;
    padding: 18px 50px;
    background: #f5a623;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 8px;
    transition: all 0.3s;
}

#bo_v_consult .consult_btn a:hover {
    background: #e6951a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

@media (max-width: 768px) {
    #bo_v_consult {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    #bo_v_consult .consult_info h3 {
        font-size: 20px;
    }
    
    #bo_v_consult .consult_btn a {
        padding: 15px 40px;
        font-size: 18px;
        letter-spacing: 5px;
    }
}
