@charset "utf-8";

/* ========================================
   성경원 게시판 스킨 CSS (모던)
   ======================================== */

/* 목록 */
#bo_list { border: none; width: 100% !important; max-width: 100%; position: relative; margin-bottom: 20px; }
#bo_list:after { display: block; visibility: hidden; clear: both; content: ""; }

#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
#bo_list_total { font-size: 14px; color: #666; }
#bo_list_total span { font-weight: 700; color: #333; }

.btn_bo_user { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.btn_bo_user > li { position: relative; }
.btn_bo_user li a,
.btn_bo_user li button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn_bo_user li a:hover,
.btn_bo_user li button:hover { border-color: #007F28; color: #007F28; }

/* 테이블 */
.tbl_head01 { border-top: 2px solid #007F28; width: 100%; }
.tbl_wrap { overflow-x: auto; width: 100%; }
.tbl_head01 table { width: 100%; border-collapse: collapse; table-layout: auto; }
.tbl_head01 caption { display: none; }
.tbl_head01 thead th {
    background: #f8f9fa;
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    white-space: nowrap;
}
.tbl_head01 tbody td {
    padding: 14px 12px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}
.tbl_head01 tbody tr:hover { background: #fafffe; }
.tbl_head01 tbody tr.bo_notice { background: #f8fdf5; }

.td_subject { text-align: left !important; }
.bo_tit { display: inline; }
.bo_tit a { color: #333; font-size: 14px; text-decoration: none; }
.bo_tit a:hover { color: #007F28; }

.notice_icon {
    display: inline-block;
    background: #007F28;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.new_icon {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 4px;
    font-weight: 700;
}
.cnt_cmt { color: #007F28; font-size: 12px; font-weight: 700; margin-left: 4px; }
.bo_current { font-size: 12px; color: #007F28; font-weight: 700; }
.empty_table { padding: 60px 0 !important; color: #999; font-size: 15px; }
.td_num2, .td_num, .td_datetime { font-size: 13px; color: #888; white-space: nowrap; }
.td_name { font-size: 13px; white-space: nowrap; }
.sv_use { position: relative; }

/* 체크박스 */
.chk_box input[type="checkbox"] { accent-color: #007F28; }
.selec_chk { cursor: pointer; }

/* 페이지네이션 */
.pg_wrap { text-align: center; margin: 24px 0; }
.pg_wrap a, .pg_wrap strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    margin: 0 2px;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
.pg_wrap a:hover { background: #f0f0f0; color: #333; }
.pg_wrap .pg_current, .pg_wrap strong {
    background: #007F28;
    color: #fff;
    font-weight: 700;
}
.pg_page { border: 1px solid #e9ecef; }
.pg_start, .pg_prev, .pg_next, .pg_end { border: 1px solid #e9ecef; }

/* 카테고리 */
#bo_cate { margin-bottom: 16px; }
#bo_cate h2 { display: none; }
#bo_cate_ul { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
#bo_cate_ul li a {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}
#bo_cate_ul li a:hover,
#bo_cate_ul li.active a { background: #007F28; color: #fff; border-color: #007F28; }
.bo_cate_link { font-size: 12px; color: #007F28; margin-right: 4px; }

/* 검색 */
.bo_sch_wrap { margin-top: 24px; display: none; }
.bo_sch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bo_sch h3 { display: none; }
.bo_sch select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    background: #fff;
    outline: none;
}
.sch_bar { display: flex; align-items: center; }
.sch_input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
    min-width: 200px;
}
.sch_input:focus { border-color: #007F28; }
.sch_btn {
    height: 40px;
    width: 40px;
    border: 1px solid #007F28;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: #007F28;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.bo_sch_cls {
    background: none; border: none; font-size: 18px; color: #999; cursor: pointer; padding: 8px;
}
.bo_sch_bg { display: none; }

/* 하단 */
.bo_fx { margin-top: 16px; }

/* 글쓰기 */
#bo_w { width: 100% !important; }
.write_div { margin-bottom: 16px; }
.frm_input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s;
    outline: none;
    font-family: inherit;
}
.frm_input:focus { border-color: #007F28; }
.full_input { width: 100%; }
.half_input { width: 48%; margin-right: 2%; }

.btn_confirm { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.btn_confirm .btn {
    padding: 12px 40px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn_submit {
    background: #007F28 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 24px;
    cursor: pointer;
}
.btn_submit:hover { background: #005a1c !important; }
.btn_cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}
.btn_frmline {
    height: 36px; padding: 0 12px; border: 1px solid #e9ecef; border-radius: 8px;
    background: #fff; font-size: 13px; color: #666; cursor: pointer;
}

.bo_v_option { display: flex; gap: 12px; list-style: none; margin: 0; padding: 8px 0; }
.bo_v_option .chk_box { display: flex; align-items: center; gap: 4px; font-size: 14px; }

/* 게시물 보기 */
#bo_v { width: 100% !important; }
#bo_v header { margin-bottom: 0; }
#bo_v_title { font-size: 22px; font-weight: 700; color: #333; padding: 16px 0; border-bottom: 2px solid #222; margin-bottom: 0; line-height: 1.4; }
.bo_v_tit { display: inline; }
.bo_v_cate { font-size: 13px; color: #007F28; font-weight: 600; margin-right: 8px; }

#bo_v_info { padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: #666; display: flex; align-items: center; justify-content: space-between; }
#bo_v_info > h2 { display: none; }
.profile_info { display: flex; align-items: center; gap: 0; }
.pf_img { display: none; }
.profile_info_ct { line-height: 1.6; }
.profile_info_ct strong { font-weight: 500; font-size: 14px; color: #555; }
.profile_info_ct strong a { display: none; }
.profile_info_ct br { display: none; }
.profile_info_ct > strong:first-of-type { display: inline; }
.if_date { color: #999; font-size: 13px; }
.if_date:before { content: none !important; }

#bo_v_top { display: flex; justify-content: flex-end; padding: 8px 0; }
.bo_v_com { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bo_v_com li a,
.bo_v_com li button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid #e9ecef; background: #fff;
    color: #666; font-size: 14px; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.bo_v_com li a:hover,
.bo_v_com li button:hover { border-color: #007F28; color: #007F28; }

/* 본문 */
#bo_v_atc { border: none; }
#bo_v_atc h2 { display: none; }
#bo_v_act { border: none; padding: 0; }
#bo_v_act .bo_v_act_scrap { font-size: 13px; color: #888; }
#bo_v_con { padding: 24px 0; line-height: 1.8; font-size: 15px; color: #444; min-height: 120px; word-break: break-word; }
#bo_v_con img { max-width: 100%; height: auto; }

/* 첨부파일 */
#bo_v_file { padding: 16px 0; border-top: 1px solid #f0f0f0; }
#bo_v_file h2 { display: none; }
#bo_v_file ul { list-style: none; padding: 0; margin: 0; }
#bo_v_file li { padding: 6px 0; }
#bo_v_file li a { color: #007F28; font-size: 14px; text-decoration: none; }
#bo_v_file li a:hover { text-decoration: underline; }

/* 추천/비추천 */
#bo_v_act { text-align: center; padding: 16px 0; }
.bo_v_good, .bo_v_nogood { display: inline-block; margin: 0 8px; }

/* 하단 버튼 */
#bo_v_bot { border-top: 1px solid #e9ecef; padding: 16px 0; }
#bo_v_bot .btn_bo_user { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
#bo_v_bot .btn_bo_user > li { position: relative; }

/* 이전글/다음글 */
.bo_v_nb { list-style: none; padding: 0; margin: 16px 0 0; }
.bo_v_nb li { display: flex; align-items: center; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #f0f0f0; background: #fafafa; transition: background 0.15s; }
.bo_v_nb li:first-child { border-top: 1px solid #f0f0f0; }
.bo_v_nb li:hover { background: #f0f0f0; }
.bo_v_nb li i { margin-right: 10px; color: #999; font-size: 12px; }
.bo_v_nb li strong { font-weight: 600; color: #888; font-size: 13px; min-width: 50px; margin-right: 12px; }
.bo_v_nb li a { color: #333; text-decoration: none; flex: 1; }
.bo_v_nb li a:hover { color: #007F28; }
.bo_v_nb li .nb_date { font-size: 12px; color: #aaa; margin-left: 12px; white-space: nowrap; }

/* 댓글 */
#bo_vc { margin-top: 32px; border-top: 1px solid #e9ecef; padding-top: 24px; }
#bo_vc > h2 { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding: 8px 14px; border: 1px solid #e9ecef; display: inline-block; color: #555; }
.cmt_list { list-style: none; padding: 0; margin: 0; }
.cmt_list li { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.cmt_empty { color: #999; font-size: 14px; padding: 16px 0; }

/* 댓글 토글 버튼 */
.cmt_btn { background: none; border: 1px solid #e9ecef; padding: 8px 16px; font-size: 14px; color: #555; cursor: pointer; }
.cmt_btn b { font-weight: 600; }

/* 댓글 목록 */
#bo_vc_empty { color: #999; font-size: 14px; padding: 12px 0; }

/* 댓글 쓰기 폼 */
#bo_vc_w { margin-top: 20px; }
#bo_vc_w h2 { font-size: 15px; font-weight: 600; margin-bottom: 12px; color: #333; }
#bo_vc_w textarea,
textarea#wr_content {
    width: 100% !important;
    min-height: 100px;
    padding: 14px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border 0.2s;
    box-sizing: border-box;
}
#bo_vc_w textarea:focus,
textarea#wr_content:focus { border-color: #007F28; }

.bo_vc_w_wr { margin-top: 12px; }
.bo_vc_w_info { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.bo_vc_w_info label { font-size: 14px; color: #555; cursor: pointer; }
.bo_vc_w_info .btn_submit { padding: 10px 28px; font-size: 14px; }

/* 관리자 옵션 */
.more_opt {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 4px 0;
    z-index: 10;
    min-width: 120px;
    list-style: none;
}
.more_opt li button,
.more_opt li a {
    display: block; width: 100%; padding: 8px 16px;
    border: none; background: none; font-size: 13px; color: #555;
    cursor: pointer; text-align: left; text-decoration: none;
    height: auto; border-radius: 0; justify-content: flex-start;
}
.more_opt li button:hover,
.more_opt li a:hover { background: #f8f9fa; color: #007F28; }

/* 임시저장 팝업 */
#autosave_pop {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #e9ecef; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); padding: 16px; z-index: 10;
}
#autosave_wrapper { position: relative; }

/* 파일 */
.frm_file { font-size: 14px; }
.file_del { font-size: 13px; color: #888; margin-left: 8px; }
.file_wr { margin-bottom: 8px; }
.lb_icon { font-size: 16px; margin-right: 8px; color: #666; }

/* 소리전용 */
.sound_only { position: absolute; overflow: hidden; clip: rect(0 0 0 0); width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; }

/* 반응형 */
@media (max-width: 768px) {
    /* 테이블 → 카드형 리스트 */
    .tbl_head01 thead { display: none; }
    .tbl_head01 tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .tbl_head01 tbody tr.bo_notice { background: #f8fdf5; padding: 14px 12px; }
    .tbl_head01 tbody td { border: none; padding: 0; text-align: left; }

    /* 체크박스 숨김 */
    .td_chk { display: none !important; }

    /* 번호 */
    .td_num2 { font-size: 13px; color: #999; min-width: 40px; padding-right: 8px !important; }

    /* 제목: 전체 폭 */
    .td_subject { flex: 1; min-width: 0; padding-left: 0 !important; font-size: 14px; }
    .td_subject .bo_tit a { font-size: 14px; }

    /* 날짜: 우측 */
    .td_datetime { font-size: 12px; color: #aaa; margin-left: auto; padding-left: 8px !important; white-space: nowrap; }

    /* 글쓴이/조회 숨김 (모바일에서 불필요) */
    .td_name, .td_num { display: none !important; }

    /* 다운로드 버튼 (e_book) */
    .td_download { width: 100%; margin-top: 8px; text-align: left !important; }
    .btn-download { font-size: 12px; padding: 4px 12px; }

    /* 기타 */
    .sch_input { min-width: 120px; }
    .half_input { width: 100%; margin-right: 0; margin-bottom: 8px; }
    #bo_v_info { gap: 8px; flex-direction: column; align-items: flex-start; }
    .btn_confirm .btn { padding: 10px 24px; font-size: 14px; }
    #bo_btn_top { flex-wrap: wrap; gap: 8px; }
}
