@charset "utf-8";
/* ============================================================
   공지사항 게시판 스타일
     - 사용자 : /notice/notice_list.asp, notice_view.asp
     - 관리자 : /cgv/notice_admin_list.asp, notice_admin_write.asp
   사이트 주조색(#024290) 기준. style.css 뒤에 로드한다.
   작성: 2026-10-07
   ============================================================ */

/* ---------- 공통 변수 느낌의 기본값 ---------- */
.bd_table, .bd_form, .bd_view { font-size: 14px; color: #333; }

/* ---------- 페이지 타이틀 ---------- */
.bd_title_area { padding: 28px 0 18px; text-align: center; }
.bd_page_title {
    margin: 0 0 8px; font-size: 28px; font-weight: 700; color: #222;
    position: relative; padding-bottom: 14px;
}
.bd_page_title:after {
    content: ''; position: absolute; left: 50%; bottom: 0;
    width: 40px; height: 3px; margin-left: -20px; background: #024290;
}
.bd_page_desc { margin: 0; color: #777; font-size: 14px; }

/* ---------- 관리자 헤더 ---------- */
.bd_head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0 14px; border-bottom: 2px solid #024290; margin-bottom: 18px;
    flex-wrap: wrap; gap: 10px;
}
.bd_h2 { margin: 0; font-size: 21px; font-weight: 700; color: #222; }

/* ---------- 분류 탭 ---------- */
.bd_tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; justify-content: center; }
.bd_tabs a {
    display: inline-block; padding: 8px 18px; border: 1px solid #dedede; border-radius: 20px;
    color: #555; font-size: 14px; text-decoration: none; background: #fff; transition: .15s;
}
.bd_tabs a:hover { border-color: #024290; color: #024290; }
.bd_tabs a.on { background: #024290; border-color: #024290; color: #fff; font-weight: 600; }

/* ---------- 검색 ---------- */
.bd_search {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    padding: 14px; background: #f7f8fa; border: 1px solid #e8e8e8; border-radius: 6px;
    margin-bottom: 14px;
}
.bd_search_user { justify-content: center; }
.bd_sel, .bd_inp {
    height: 38px; padding: 0 10px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 14px; color: #333; background: #fff; box-sizing: border-box;
}
.bd_inp_full { width: 100%; }
.bd_sel:focus, .bd_inp:focus { outline: none; border-color: #024290; }
textarea.bd_inp { height: auto; padding: 10px; line-height: 1.6; }

/* ---------- 버튼 ---------- */
.bd_btn {
    display: inline-block; height: 38px; line-height: 36px; padding: 0 16px;
    border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #444;
    font-size: 14px; text-decoration: none; cursor: pointer; box-sizing: border-box;
    vertical-align: middle; transition: .15s; white-space: nowrap;
}
.bd_btn:hover { border-color: #024290; color: #024290; text-decoration: none; }
.bd_btn_primary { background: #024290; border-color: #024290; color: #fff; font-weight: 600; }
.bd_btn_primary:hover { background: #013570; border-color: #013570; color: #fff; }
.bd_btn_danger { border-color: #d9534f; color: #d9534f; }
.bd_btn_danger:hover { background: #d9534f; border-color: #d9534f; color: #fff; }
.bd_btn_ghost { background: #f2f2f2; }
.bd_btn_sm { height: 28px; line-height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 3px; }
.bd_btn_lg { height: 46px; line-height: 44px; padding: 0 34px; font-size: 15px; }
.bd_btns { margin-top: 24px; text-align: center; }
.bd_btns .bd_btn + .bd_btn, .bd_btns .bd_btn + a { margin-left: 6px; }

/* ---------- 목록 테이블 ---------- */
.bd_total { margin: 0 0 8px; color: #666; font-size: 13.5px; }
.bd_total strong { color: #024290; }

.bd_table { width: 100%; border-collapse: collapse; border-top: 2px solid #024290; }
.bd_table th, .bd_table td { padding: 13px 10px; border-bottom: 1px solid #e5e5e5; }
.bd_table th { background: #f7f8fa; color: #333; font-weight: 600; font-size: 14px; }
.bd_table td { color: #444; }
.bd_table tbody tr:hover { background: #fafbfc; }
.bd_c { text-align: center; }
.bd_subj { text-align: left; }
.bd_subj a { color: #333; text-decoration: none; }
.bd_subj a:hover { color: #024290; text-decoration: underline; }
.bd_empty { text-align: center; padding: 60px 10px !important; color: #999; }

/* 상단고정 행 */
.bd_top_row { background: #f4f8ff; }
.bd_top_row:hover { background: #eef4ff !important; }
.bd_top_row .bd_subj a { font-weight: 600; color: #1a1a1a; }

/* 배지 / 분류 / 첨부 */
.bd_badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 11.5px; font-weight: 700; line-height: 1.6; vertical-align: middle;
}
.bd_badge_top { background: #024290; color: #fff; }
.bd_cate {
    display: inline-block; padding: 2px 9px; border: 1px solid #c9d6e8; border-radius: 3px;
    background: #fff; color: #024290; font-size: 12.5px; line-height: 1.7; white-space: nowrap;
}
.bd_clip { margin-left: 4px; font-size: 12.5px; color: #888; }
.bd_on  { color: #1b7f3b; font-weight: 600; }
.bd_off { color: #999; }

/* ---------- 페이징 ---------- */
.bd_paging { margin: 24px 0 8px; text-align: center; }
.bd_paging a {
    display: inline-block; min-width: 34px; height: 34px; line-height: 32px; padding: 0 6px;
    margin: 0 2px; border: 1px solid #dedede; border-radius: 3px;
    color: #555; font-size: 13.5px; text-decoration: none; background: #fff;
}
.bd_paging a:hover { border-color: #024290; color: #024290; }
.bd_paging a.on { background: #024290; border-color: #024290; color: #fff; font-weight: 700; }

/* ---------- 상세 ---------- */
.bd_view { border-top: 2px solid #024290; }
.bd_view_head { padding: 18px 14px 14px; border-bottom: 1px solid #e5e5e5; background: #fafbfc; }
.bd_view_title { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: #1a1a1a; line-height: 1.5; }
.bd_view_meta { color: #777; font-size: 13px; }
.bd_view_meta span { display: inline-block; margin-right: 14px; }
.bd_view_meta b { color: #444; font-weight: 600; }

.bd_view_att { padding: 12px 14px; border-bottom: 1px solid #e5e5e5; background: #fffdf5; }
.bd_att_tit { display: block; margin-bottom: 6px; font-size: 13.5px; color: #8a6d1f; }
.bd_att_list { margin: 0; padding: 0; list-style: none; }
.bd_att_list li { padding: 4px 0; font-size: 13.5px; }
.bd_att_list li a { color: #333; text-decoration: none; }
.bd_att_list li a:hover { color: #024290; text-decoration: underline; }

.bd_view_body {
    padding: 28px 14px; min-height: 220px; line-height: 1.8; font-size: 15px; color: #333;
    border-bottom: 1px solid #e5e5e5; word-break: break-word;
}
/* 에디터 본문 내부 요소 — 레이아웃 깨짐 방지 */
.bd_view_body img { max-width: 100%; height: auto; }
.bd_view_body table { max-width: 100%; border-collapse: collapse; }
.bd_view_body table td, .bd_view_body table th { border: 1px solid #ddd; padding: 6px 8px; }
.bd_view_body p { margin: 0 0 12px; }
.bd_view_body a { color: #024290; text-decoration: underline; }

/* ---------- 작성 폼 ---------- */
.bd_form { width: 100%; border-collapse: collapse; border-top: 2px solid #024290; }
.bd_form th, .bd_form td { padding: 12px 14px; border-bottom: 1px solid #e5e5e5; }
.bd_form th { background: #f7f8fa; text-align: left; font-weight: 600; color: #333; vertical-align: middle; }
.bd_form td { background: #fff; }
.bd_req { color: #d9534f; }
.bd_help { display: inline-block; margin-left: 6px; color: #888; font-size: 12.5px; }
.bd_opts label { display: inline-block; margin-right: 18px; font-weight: 400; cursor: pointer; }
.bd_opts input { vertical-align: middle; margin-right: 4px; }

.bd_editor_tool { margin-bottom: 8px; }
.bd_att_row { margin-bottom: 6px; }
.bd_file { font-size: 13.5px; }
.bd_x { margin-left: 8px; color: #d9534f; font-size: 12.5px; text-decoration: none; }
.bd_x:hover { text-decoration: underline; color: #b52b27; }

/* ---------- 메인 하단 공지 — 분류/고정 표시 보강 ---------- */
/* (style.css 의 .nt_txt 를 유지한 채 배지만 추가) */
.nt_txt li a .nt_badge {
    display: inline-block; margin-right: 6px; padding: 1px 7px;
    background: #024290; color: #fff; border-radius: 9px;
    font-size: 11px; font-weight: 700; line-height: 1.7; vertical-align: middle;
}

/* ---------- 모바일 ---------- */
@media screen and (max-width: 768px) {
    .bd_page_title { font-size: 22px; }
    .bd_head { flex-direction: column; align-items: stretch; }
    .bd_search { flex-direction: column; align-items: stretch; }
    .bd_search .bd_sel, .bd_search .bd_inp, .bd_search .bd_btn { width: 100%; }

    /* 목록: 번호/조회 숨기고 제목 중심으로 */
    .bd_table thead { display: none; }
    .bd_table, .bd_table tbody, .bd_table tr, .bd_table td { display: block; width: 100%; box-sizing: border-box; }
    .bd_table tr { padding: 12px 4px; border-bottom: 1px solid #e5e5e5; }
    .bd_table td { border: none; padding: 2px 6px; }
    .bd_table td.bd_c { display: inline-block; width: auto; color: #888; font-size: 12.5px; }
    .bd_subj { font-size: 15px; padding: 4px 6px !important; }
    .bd_empty { display: block !important; }

    /* 관리자 목록은 가로스크롤로 유지 */
    .bd_table_admin { display: table; }
    .bd_table_admin thead { display: table-header-group; }
    .bd_table_admin tbody { display: table-row-group; }
    .bd_table_admin tr { display: table-row; }
    .bd_table_admin td, .bd_table_admin th { display: table-cell; }

    /* 작성 폼: 라벨 위 / 입력 아래 */
    .bd_form, .bd_form tbody, .bd_form tr, .bd_form th, .bd_form td { display: block; width: 100%; box-sizing: border-box; }
    .bd_form th { border-bottom: none; padding-bottom: 4px; }
    .bd_form td { padding-top: 4px; }

    .bd_view_title { font-size: 17px; }
    .bd_view_body { padding: 20px 10px; font-size: 14.5px; }
    .bd_btn_lg { width: 100%; }
    .bd_btns .bd_btn + .bd_btn, .bd_btns .bd_btn + a { margin-left: 0; margin-top: 6px; }
}
