@charset "utf-8";

:root {
  --navy: #1B3A6B;
  --navy2: #162F5A;
  --gold: #C9A84C;
  --gold2: #b8973e;
  --gray1: #f8f9fa;
  --gray2: #E8EEF7;
  --text: #1a1f2e;
  --text2: #555;
}

/* ── 공통 래퍼 ── */
#bo_list, #bo_v, #bo_w {
  max-width: 100%;
  margin: 40px 0;
  padding: 0;
  font-family: 'Pretendard', -apple-system, sans-serif;
}

.content_area.board.clearfix {
  max-width: 1250px;
  margin: 50px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ── 카테고리 ── */
#bo_cate { margin: 0 0 24px; }
#bo_cate h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_cate ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#bo_cate li { display: inline-block; }
#bo_cate a { display: inline-block; padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--gray2); color: var(--text2); font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
#bo_cate a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
#bo_cate_on, #bo_cate li a.on { background: var(--navy); color: #fff !important; border-color: var(--navy) !important; font-weight: 700; }

/* ── 상단 버튼 ── */
#bo_btn_top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
#bo_list_total { font-size: 13px; color: var(--text2); line-height: 34px; }
#bo_list_total span { font-weight: 700; color: var(--navy); }

.btn_bo_user { float: right; margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; }
.btn_bo_user li { float: none; width: auto; margin: 0; background: none; position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; font-family: inherit; }
.btn_b01 { background: var(--navy) !important; color: #fff !important; }
.btn_b01:hover { background: var(--gold) !important; color: #1B3A6B !important; }
.btn_admin { background: #f0f0f0 !important; color: var(--text2) !important; }
.btn_bo_sch { background: var(--navy) !important; color: #fff !important; border: none; border-radius: 8px; padding: 8px 18px; cursor: pointer; font-size: 13px; font-weight: 600; font-family: inherit; }

/* ── 자료실 목록 ── */
.pds-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pds-empty {
  text-align: center;
  padding: 80px 0;
  color: #aaa;
  font-size: 15px;
}

.pds-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--gray2);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.25s;
  position: relative;
}
.pds-item:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(27,58,107,0.1);
  transform: translateY(-1px);
}
.pds-notice { background: #fffbf0; border-color: rgba(201,168,76,0.4); }
.pds-current { border-color: var(--navy); background: #f0f5ff; }

/* 파일 아이콘 */
.pds-icon-wrap { flex-shrink: 0; }
.pds-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.pds-icon-file { background: #EEF3FA; color: var(--navy); }
.pds-icon-notice { background: rgba(201,168,76,0.15); color: var(--gold2); }
.pds-icon-default { background: var(--gray1); color: #aaa; }

/* 본문 */
.pds-body { flex: 1; min-width: 0; }
.pds-cate { display: inline-block; background: rgba(201,168,76,0.15); color: var(--gold2); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; margin-bottom: 4px; text-decoration: none; }
.pds-title-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pds-notice-badge { display: inline-block; background: var(--gold); color: #1B3A6B; border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.pds-title { font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none; transition: color 0.2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pds-item:hover .pds-title { color: var(--gold2); }
.pds-new { display: inline-block; background: #e74c3c; color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 10px; font-weight: 700; margin-left: 4px; }
.pds-cmt { display: inline-block; background: var(--gold); color: #1B3A6B; border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.pds-meta { display: flex; gap: 14px; font-size: 12px; color: #aaa; flex-wrap: wrap; }
.pds-meta i { margin-right: 3px; }

/* 오른쪽 버튼 */
.pds-right { flex-shrink: 0; }
.pds-dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: var(--navy); color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: all 0.2s;
  white-space: nowrap;
}
.pds-dl-btn:hover { background: var(--gold); color: #1B3A6B; }
.pds-view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--gray1); color: var(--navy);
  border-radius: 8px; text-decoration: none; transition: all 0.2s;
}
.pds-view-btn:hover { background: var(--navy); color: #fff; }

/* 체크박스 */
.pds-chk { position: absolute; top: 12px; right: 60px; }
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; outline: 0; z-index: -1; overflow: hidden; }
.chk_box { position: relative; }
.chk_box input[type="checkbox"] + label span { float: left; width: 16px; height: 16px; display: block; background: #fff; border: 1.5px solid var(--gray2); border-radius: 4px; }
.chk_box input[type="checkbox"]:checked + label span { background: var(--navy); border-color: var(--navy); }

/* ── 페이지 ── */
.pg_wrap { text-align: center; margin: 28px 0; }
.pg_wrap a, .pg_wrap strong { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; font-size: 13px; margin: 0 2px; text-decoration: none; transition: all 0.2s; }
.pg_wrap a { color: var(--text2); border: 1px solid var(--gray2); }
.pg_wrap a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pg_wrap strong { background: var(--navy); color: #fff; border: 1px solid var(--navy); font-weight: 700; }
.pg_wrap .pg_prev, .pg_wrap .pg_next, .pg_wrap .pg_start, .pg_wrap .pg_end { width: auto; padding: 0 12px; }

/* ── 하단 버튼 ── */
.bo_fx { margin: 16px 0; text-align: right; }
.bo_fx ul { margin: 0; padding: 0; list-style: none; display: inline-flex; gap: 6px; }

/* ── 더보기 옵션 ── */
.more_opt { display: none; position: absolute; top: 45px; right: 0; background: #fff; border: 1.5px solid var(--gray2); border-radius: 10px; z-index: 999; min-width: 120px; box-shadow: 0 8px 24px rgba(10,22,40,0.12); list-style: none; padding: 0; margin: 0; }
.more_opt li { border-bottom: 1px solid var(--gray2); }
.more_opt li:last-child { border-bottom: 0; }
.more_opt li button { display: block; width: 100%; padding: 10px 16px; text-align: left; font-size: 13px; background: none; border: none; cursor: pointer; font-family: inherit; color: var(--text2); }
.more_opt li button:hover { color: var(--navy); background: var(--gray1); }

/* ── 검색 ── */
.bo_sch_wrap { margin-top: 24px; }
.bo_sch { background: #fff; border: 1.5px solid var(--gray2); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bo_sch h3 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.bo_sch select { padding: 8px 12px; border: 1px solid var(--gray2); border-radius: 8px; font-size: 13px; color: var(--text2); background: #fff; }
.sch_bar { display: flex; gap: 8px; flex: 1; }
.sch_input { flex: 1; padding: 10px 14px; border: 1px solid var(--gray2); border-radius: 8px; font-size: 13px; transition: border-color 0.2s; }
.sch_input:focus { outline: none; border-color: var(--navy); }
.sch_btn { padding: 10px 18px; background: var(--navy); color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.sch_btn:hover { background: var(--gold); color: #1B3A6B; }
.bo_sch_cls { padding: 8px 14px; background: #f0f0f0; color: var(--text2); border: none; border-radius: 8px; cursor: pointer; font-size: 13px; }
.bo_sch_bg { display: none; }

/* ══════════════════════════════
   게시물 읽기
══════════════════════════════ */
#bo_v { margin-bottom: 40px; }
#bo_v_title { font-size: 22px; font-weight: 700; color: var(--navy); padding: 20px 0 16px; margin-bottom: 0; border-bottom: 2px solid var(--navy); letter-spacing: -0.5px; line-height: 1.4; word-break: keep-all; }
.bo_v_cate { display: inline-block; background: var(--gold); color: #1B3A6B; border-radius: 4px; padding: 2px 10px; font-size: 12px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
#bo_v_info { padding: 16px 0; border-bottom: 1px solid var(--gray2); }
.profile_info { display: flex; align-items: center; gap: 14px; }
.pf_img img { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.profile_info_ct { font-size: 13px; color: var(--text2); }
.profile_info_ct strong { color: var(--navy); font-weight: 700; margin-right: 12px; }
.profile_info_ct a { color: var(--text2); text-decoration: none; }
.profile_info_ct i { margin-right: 4px; color: #aaa; }
.if_date { font-size: 12px; color: #999; }
#bo_v_top { zoom: 1; margin: 0; }
#bo_v_top:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_v_top h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.bo_v_com { margin: 12px 0; float: right; display: flex; gap: 6px; list-style: none; padding: 0; }
.bo_v_com > li { position: relative; float: none; margin-left: 0; }
#bo_v_atc { min-height: 200px; }
#bo_v_atc_title { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_v_share { padding: 12px 0; }
#bo_v_share:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_v_con { margin: 24px 0; line-height: 1.8; min-height: 200px; word-break: break-all; overflow: hidden; font-size: 15px; color: var(--text2); }
#bo_v_con a { color: var(--navy); text-decoration: underline; }
#bo_v_con img { max-width: 100%; height: auto; }

/* 첨부파일 - 자료실 강조 */
#bo_v_file { background: #EEF3FA; border: 1.5px solid var(--gray2); border-radius: 12px; padding: 20px 24px; margin: 24px 0; }
#bo_v_file h2 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--gray2); }
#bo_v_file ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pds-file-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--gray2); border-radius: 10px; transition: all 0.2s; }
.pds-file-item:hover { border-color: var(--navy); }
.pds-file-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pds-file-info i { font-size: 24px; color: var(--navy); flex-shrink: 0; }
.pds-file-info div { font-size: 14px; }
.view_file_download { color: var(--navy); text-decoration: none; font-weight: 600; }
.view_file_download:hover { color: var(--gold2); }
.pds-file-size { font-size: 12px; color: #aaa; margin-left: 6px; }
.bo_v_file_cnt { display: block; font-size: 11px; color: #aaa; margin-top: 2px; }
.pds-dl-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--navy); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; transition: all 0.2s; white-space: nowrap; flex-shrink: 0; }
.pds-dl-badge:hover { background: var(--gold); color: #1B3A6B; }

/* 관련링크 */
#bo_v_link { background: var(--gray1); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }
#bo_v_link h2 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
#bo_v_link ul { list-style: none; padding: 0; margin: 0; }
#bo_v_link li { padding: 8px 0; border-bottom: 1px solid var(--gray2); font-size: 13px; }
#bo_v_link li:last-child { border-bottom: none; }
#bo_v_link li i { color: var(--gold); margin-right: 8px; }
#bo_v_link li a { color: var(--navy); text-decoration: none; font-weight: 500; }
#bo_v_link li a:hover { color: var(--gold2); }
.bo_v_link_cnt { font-size: 11px; color: #aaa; margin-left: 8px; }

/* 이전/다음 */
.bo_v_nb { margin: 20px 0; clear: both; border: 1.5px solid var(--gray2); border-radius: 10px; overflow: hidden; list-style: none; padding: 0; }
.bo_v_nb li { padding: 14px 18px; border-bottom: 1px solid var(--gray2); font-size: 13px; display: flex; align-items: center; gap: 12px; }
.bo_v_nb li:last-child { border-bottom: none; }
.bo_v_nb li:hover { background: var(--gray1); }
.bo_v_nb .nb_tit { color: #aaa; font-size: 12px; white-space: nowrap; }
.bo_v_nb li a { color: var(--navy); text-decoration: none; flex: 1; }
.bo_v_nb li a:hover { color: var(--gold); }
.bo_v_nb .nb_date { color: #aaa; font-size: 12px; white-space: nowrap; }
.more_opt.is_view_btn { display: none; position: absolute; top: 40px; right: 0; background: #fff; border: 1.5px solid var(--gray2); border-radius: 10px; z-index: 999; min-width: 100px; box-shadow: 0 8px 24px rgba(10,22,40,0.12); list-style: none; padding: 0; margin: 0; }
.more_opt.is_view_btn li { border-bottom: 1px solid var(--gray2); }
.more_opt.is_view_btn li:last-child { border-bottom: none; }
.more_opt.is_view_btn li a { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; font-size: 13px; color: var(--text2); text-decoration: none; }
.more_opt.is_view_btn li a:hover { color: var(--navy); background: var(--gray1); }

/* ══════════════════════════════
   글쓰기
══════════════════════════════ */
#bo_w { margin-bottom: 40px; }
.write_div { margin: 12px 0; position: relative; }
.write_div:after { display: block; visibility: hidden; clear: both; content: ""; }
.frm_input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray2); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--text); transition: border-color 0.2s; box-sizing: border-box; }
.frm_input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,58,107,0.08); }
.half_input { width: 49%; margin-right: 1%; }
.bo_w_select select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray2); border-radius: 8px; font-size: 14px; background: #fff; }
textarea#wr_content { width: 100%; min-height: 280px; padding: 14px; border: 1.5px solid var(--gray2); border-radius: 8px; font-size: 14px; font-family: inherit; line-height: 1.7; resize: vertical; transition: border-color 0.2s; box-sizing: border-box; }
textarea#wr_content:focus { outline: none; border-color: var(--navy); }
.bo_w_link label { position: absolute; top: 1px; left: 1px; border-radius: 8px 0 0 8px; height: 42px; line-height: 42px; width: 40px; font-size: 1.2em; text-align: center; color: #aaa; }
.bo_w_link .frm_input { padding-left: 50px; }
.bo_w_flie .lb_icon { position: absolute; top: 0; left: 0; border-radius: 8px 0 0 8px; height: 42px; line-height: 42px; width: 40px; font-size: 1.2em; text-align: center; color: #aaa; }
.bo_w_flie .file_wr { position: relative; border: 1.5px solid var(--gray2); background: #fff; border-radius: 8px; padding: 5px; height: 44px; }
.bo_w_flie .frm_file { padding-left: 50px; }
.bo_w_flie .file_del { position: absolute; top: 10px; right: 10px; font-size: 12px; color: #aaa; }
.bo_w_flie .frm_input { margin: 10px 0 0; }
.bo_w_tit .frm_input { padding-right: 140px; }
.bo_w_tit #btn_autosave { position: absolute; top: 6px; right: 6px; line-height: 30px; height: 30px; padding: 0 12px; background: var(--gray1); border: 1px solid var(--gray2); border-radius: 6px; font-size: 12px; cursor: pointer; }
.btn_confirm { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray2); }
.btn_submit { padding: 12px 32px; background: var(--navy); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.btn_submit:hover { background: var(--gold); color: #1B3A6B; }
.btn_cancel { padding: 12px 24px; background: #fff; color: var(--text2); border: 1.5px solid var(--gray2); border-radius: 8px; font-size: 15px; cursor: pointer; font-family: inherit; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; }
.btn_cancel:hover { border-color: var(--navy); color: var(--navy); }
.bo_v_option { list-style: none; padding: 0; margin: 0; display: flex; gap: 16px; }
.selec_chk { position: absolute; top: 0; left: 0; width: 0; height: 0; opacity: 0; outline: 0; z-index: -1; overflow: hidden; }
.chk_box input[type="checkbox"] + label { position: relative; color: #676e70; }
.chk_box input[type="checkbox"] + label span { float: left; width: 15px; height: 15px; display: block; background: #fff; border: 1px solid #d0d4df; border-radius: 3px; }
.write_div .chk_box input[type="checkbox"] + label { padding-left: 20px; }
.write_div .chk_box input[type="checkbox"] + label span { position: absolute; top: 2px; left: 0; }
.chk_box input[type="checkbox"]:checked + label span { background: var(--navy); border-color: var(--navy); }
#autosave_wrapper { position: relative; }

/* ══════════════════════════════
   댓글
══════════════════════════════ */
.cmt_btn { width: 100%; text-align: left; border: none; border-bottom: 2px solid var(--navy); background: #fff; font-weight: 700; margin: 30px 0 0; padding: 0 0 14px; cursor: pointer; font-family: inherit; }
.cmt_btn span.total { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--navy); }
.cmt_btn b { font-size: 15px; color: var(--navy); }
.cmt_btn span.cmt_more { float: right; display: inline-block; width: 20px; height: 20px; margin-top: 2px; }
#bo_vc h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
#bo_vc article { margin: 20px 0; position: relative; border-bottom: 1px solid var(--gray2); padding-bottom: 16px; }
#bo_vc article:after { display: block; visibility: hidden; clear: both; content: ""; }
#bo_vc article .pf_img { float: left; margin-right: 12px; }
#bo_vc article .pf_img img { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
#bo_vc article .cm_wrap { float: left; max-width: 870px; width: calc(100% - 60px); }
#bo_vc header { position: relative; width: 100%; margin-bottom: 8px; }
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest { font-weight: 700; color: var(--navy); font-size: 13px; }
.bo_vc_hdinfo { color: #aaa; font-size: 12px; margin-left: 8px; }
#bo_vc .cmt_contents { line-height: 1.8; padding: 0 0 12px; font-size: 14px; color: var(--text2); }
#bo_vc_empty { margin: 0; padding: 60px 0 !important; color: #aaa; text-align: center; font-size: 14px; }
.bo_vl_opt { position: absolute; top: 0; right: 0; }
.btn_cm_opt { background: none; border: none; cursor: pointer; color: #aaa; padding: 4px 8px; border-radius: 6px; transition: all 0.2s; }
.btn_cm_opt:hover { background: var(--gray1); color: var(--navy); }
.bo_vc_act { display: none; position: absolute; right: 0; top: 32px; min-width: 80px; border: 1.5px solid var(--gray2); margin: 0; list-style: none; background: #fff; z-index: 9999; border-radius: 10px; box-shadow: 0 8px 24px rgba(10,22,40,0.1); padding: 0; }
.bo_vc_act li { border-bottom: 1px solid var(--gray2); }
.bo_vc_act li:last-child { border-bottom: 0; }
.bo_vc_act li a { display: block; padding: 9px 16px; font-size: 13px; color: var(--text2); text-decoration: none; }
.bo_vc_act li a:hover { color: var(--navy); background: var(--gray1); }
.bo_vc_w { position: relative; margin: 16px 0; display: block; }
.bo_vc_w:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_vc_w h2 { position: absolute; font-size: 0; line-height: 0; overflow: hidden; }
.bo_vc_w textarea { border: 1.5px solid var(--gray2); background: #fff; color: var(--text); border-radius: 8px; padding: 12px 14px; width: 100%; height: 100px; font-size: 14px; font-family: inherit; resize: vertical; transition: border-color 0.2s; }
.bo_vc_w textarea:focus { outline: none; border-color: var(--navy); }
.bo_vc_w_wr:after { display: block; visibility: hidden; clear: both; content: ""; }
.bo_vc_w_info { margin: 10px 0; float: left; display: flex; gap: 8px; flex-wrap: wrap; }
.bo_vc_w_info .frm_input { width: 180px; float: none; }
.bo_vc_w .btn_confirm { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; float: right; padding-top: 0; border-top: none; }
.bo_vc_w .btn_submit { height: 42px; padding: 0 24px; font-size: 14px; }
.secret_cm { display: inline-flex; align-items: center; float: left; margin-top: 10px; }
.secret_cm label { font-size: 13px !important; display: flex; align-items: center; gap: 6px; }

/* 반응형 */
@media (max-width: 640px) {
  .pds-item { flex-wrap: wrap; }
  .pds-right { width: 100%; }
  .pds-dl-btn { width: 100%; justify-content: center; }
  .content_area.board.clearfix { padding: 0 16px; }
}
