/* =====================================================
   그누보드5 게시판을 홈페이지 디자인에 맞추는 스타일
   설치 후 /gb/css/ 폴더에 올리고, 게시판 스킨에서 불러옵니다.
   ===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;800&family=Barlow+Condensed:wght@500;600;700&display=swap");

:root {
  --navy: #1b2a4a;
  --navy-deep: #12203a;
  --steel: #2f6fb3;
  --steel-dark: #245a92;
  --accent: #d3232a;
  --accent-dark: #b31b21;
  --paper: #f3f5f8;
  --ink: #1f2733;
  --ink-soft: #4b5563;
  --line: #d9dee6;
  --line-soft: #e8ecf1;
  --sky: #eaf3ff;
  --sky-deep: #d6e7fb;
  --font-body: "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-label: "Barlow Condensed", "Noto Sans KR", sans-serif;
}

/* ---------- 기본 ---------- */
#gb_wrap, #wrapper, .gb-wrap {
  font-family: var(--font-body);
  color: var(--ink);
  word-break: keep-all;
}
#bo_list, #bo_v, #bo_w, #bo_gall, #bo_sch {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.7;
}
#bo_list a, #bo_v a, #bo_w a { color: inherit; text-decoration: none; }

/* ---------- 목록 상단 ---------- */
#bo_list #bo_list_total,
#bo_list .bo_fx { font-size: 13px; color: var(--ink-soft); }
#bo_cate ul { display: flex; gap: 6px; flex-wrap: wrap; }
#bo_cate a {
  display: inline-block; padding: 7px 14px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13.5px; color: var(--ink-soft); background: #fff;
}
#bo_cate #bo_cate_on { background: var(--steel); border-color: var(--steel); color: #fff; font-weight: 700; }

/* ---------- 목록 표 ---------- */
.tbl_head01 { border-top: 2px solid var(--navy); }
.tbl_head01 caption { display: none; }
.tbl_head01 thead th {
  background: var(--paper); color: var(--navy); font-weight: 700;
  font-size: 13.5px; padding: 12px 10px; border-bottom: 1px solid var(--line);
  text-align: center;
}
.tbl_head01 thead a { color: var(--navy); }
.tbl_head01 td {
  padding: 12px 10px; border-bottom: 1px solid var(--line-soft);
  font-size: 14px; color: var(--ink); text-align: center;
}
.tbl_head01 td.td_subject { text-align: left; }
.tbl_head01 td.td_num, .tbl_head01 td.td_datetime, .tbl_head01 td.td_num2 {
  font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 13.5px;
}
.tbl_head01 tbody tr:hover td { background: #f8fafc; }
.bo_notice td { background: #fbfcfe; }
.bo_notice .notice_icon, .bo_notice strong {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11.5px; letter-spacing: .1em; padding: 2px 8px; border-radius: 2px;
  font-weight: 700; margin-right: 8px; vertical-align: 1px;
}
.bo_tit { color: var(--ink); }
td.td_subject a:hover { color: var(--steel-dark); text-decoration: underline; }
.cnt_cmt { color: var(--accent); font-weight: 700; margin-left: 4px; }

/* ---------- 버튼 ---------- */
.btn_b01, .btn_b02, .btn_b03, .btn_submit, .btn_confirm input[type=submit] {
  background: var(--steel); color: #fff; border: 0; border-radius: 3px;
  padding: 10px 20px; font-size: 14px; font-weight: 700; font-family: var(--font-body);
}
.btn_b01:hover, .btn_b02:hover, .btn_submit:hover { background: var(--steel-dark); color: #fff; }
.btn_b02 { background: var(--accent); }
.btn_b02:hover { background: var(--accent-dark); }
.btn_cancel, .btn_close {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 3px; padding: 10px 20px; font-size: 14px;
}
.btn_admin { background: var(--navy); color: #fff; border-radius: 3px; padding: 8px 14px; font-size: 13px; }

/* ---------- 검색 ---------- */
#bo_sch { margin: 18px 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
#bo_sch select, #bo_sch input[type=text] {
  border: 1px solid var(--line); padding: 9px 11px; font-size: 14px;
  border-radius: 3px; font-family: var(--font-body);
}
#bo_sch .btn_submit { padding: 9px 18px; }

/* ---------- 페이지 번호 ---------- */
.pg_wrap { display: flex; justify-content: center; gap: 6px; margin: 24px 0; }
.pg_page, .pg_current {
  display: inline-block; min-width: 34px; padding: 8px 6px; text-align: center;
  border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft);
  border-radius: 2px; background: #fff;
}
.pg_current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.pg_page:hover { border-color: var(--steel); color: var(--steel-dark); }

/* ---------- 글 보기 ---------- */
#bo_v_title, #bo_v_title .bo_v_tit {
  font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.4;
}
#bo_v_info {
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: #8a94a6;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
}
#bo_v_info strong { font-weight: 500; color: var(--ink-soft); }
#bo_v_atc { padding: 28px 4px 32px; font-size: 15px; line-height: 1.9; min-height: 160px; }
#bo_v_atc img { max-width: 100%; height: auto; }
#bo_v_file {
  background: var(--paper); border: 1px solid var(--line-soft);
  padding: 16px 18px; margin-top: 18px; font-size: 14px;
}
#bo_v_file h2, #bo_v_file .bo_v_file_cnt { color: var(--navy); font-size: 13.5px; }
#bo_v_file a { color: var(--steel-dark); text-decoration: underline; }
#bo_v_top, #bo_v_bot { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
#bo_v_nb { border-top: 1px solid var(--line); margin-top: 20px; }
#bo_v_nb li { padding: 12px 6px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
#bo_v_nb .nb_tit { color: #8a94a6; font-size: 13px; margin-right: 12px; }

/* ---------- 글쓰기 ---------- */
#bo_w table, .tbl_frm01 table { width: 100%; }
.tbl_frm01 th {
  background: var(--paper); color: var(--navy); font-weight: 600;
  padding: 12px 14px; font-size: 14px; text-align: left; width: 130px;
  border-bottom: 1px solid var(--line-soft);
}
.tbl_frm01 td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.tbl_frm01 input[type=text], .tbl_frm01 input[type=password],
.tbl_frm01 textarea, .tbl_frm01 select, .frm_input {
  border: 1px solid var(--line); padding: 10px 12px; font-size: 14px;
  border-radius: 3px; font-family: var(--font-body); max-width: 100%;
}
.tbl_frm01 textarea { width: 100%; line-height: 1.8; }
.required, textarea.required { background-image: none; border-left: 3px solid var(--accent); }

/* ---------- 댓글 ---------- */
#bo_vc h2 { font-size: 16px; color: var(--navy); margin-bottom: 10px; }
#bo_vc article { border-bottom: 1px solid var(--line-soft); padding: 14px 4px; }
#bo_vc_w { background: var(--paper); padding: 16px; border-radius: 4px; margin-top: 14px; }

/* ---------- 로그인 · 회원 ---------- */
#mb_login, #fregister, #mb_login_od {
  width: min(460px, 100% - 32px); margin: 40px auto;
}
#mb_login h1, #fregister h1 { font-size: 22px; color: var(--navy); text-align: center; margin-bottom: 20px; }
#mb_login .frm_input { width: 100%; margin-bottom: 8px; }
#mb_login .btn_submit { width: 100%; padding: 13px; }

/* ---------- 알림 · 오류 ---------- */
.empty_list, .empty_table { padding: 48px 10px; text-align: center; color: #8a94a6; font-size: 14px; }
#validation_check { width: min(600px, 100% - 32px); margin: 60px auto; text-align: center; }

/* ---------- 모바일 ---------- */
@media (max-width: 640px) {
  #bo_list, #bo_v, #bo_w { font-size: 14.5px; }
  .tbl_head01 thead { display: none; }
  .tbl_head01 tbody, .tbl_head01 tbody tr { display: block; }
  .tbl_head01 tbody td { display: none; border: 0; padding: 0; text-align: left; }
  .tbl_head01 tbody tr { display: block; padding: 14px 2px 13px; border-bottom: 1px solid var(--line-soft); }
  .tbl_head01 td.td_subject { display: block; font-size: 15px; line-height: 1.5; }
  .tbl_head01 td.td_name, .tbl_head01 td.td_datetime {
    display: inline-block; font-size: 12.5px; color: #8a94a6; margin-top: 7px;
  }
  .tbl_head01 td.td_datetime::before { content: "·"; margin: 0 7px; color: #c6ccd6; }
  .tbl_frm01 th { display: block; width: auto; border-bottom: 0; padding-bottom: 4px; }
  .tbl_frm01 td { display: block; }
  .tbl_frm01 input[type=text], .tbl_frm01 select { width: 100%; font-size: 16px; }
  #bo_v_title, #bo_v_title .bo_v_tit { font-size: 18px; }
  .pg_page, .pg_current { min-width: 38px; padding: 9px 5px; }
}

/* ---------- 홈페이지 헤더 · 푸터를 붙였을 때 ---------- */
.gb-adminbar { background: var(--navy-deep); color: #c9d2e3; font-size: 12px; }
.gb-adminbar .wrap { display: flex; justify-content: flex-end; gap: 16px; height: 30px; align-items: center; width: min(1180px, 100% - 32px); margin-inline: auto; }
.gb-adminbar a { color: #c9d2e3; }
.gb-adminbar a:hover { color: #fff; }

.gb-wrapper { width: min(1180px, 100% - 32px); margin-inline: auto; padding-block: 40px 64px; min-height: 40vh; }
.gb-wrapper::before {
  content: ""; display: block; height: 0;
}

/* 그누보드가 남겨두는 요소 정리 */
#wrapper > hr, body > hr { display: none; }
.sound_only { position: absolute; left: -9999px; }

/* 게시판 제목 줄 */
#bo_list .bo_fx, #bo_v_top, #bo_v_bot { margin-bottom: 14px; }

/* ---------- 게시판 제목 · 본문 영역 ---------- */
#container_title {
  font-size: 28px; font-weight: 700; color: var(--navy);
  border-bottom: 2px solid var(--navy); padding-bottom: 14px; margin-bottom: 30px;
}
#container_wr { width: min(1180px, 100% - 32px); margin-inline: auto; padding-block: 44px 72px; }
#container { min-width: 0; }
#aside { display: none; }
#bo_list, #bo_v, #bo_w, #bo_sch, #bo_gall { width: auto; }

/* 상단 관리 링크 띠 */
.gb-adminbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.gb-adminbar .wrap { height: 34px; gap: 14px; }
.gb-adminbar a { color: var(--ink-soft); font-size: 12.5px; }
.gb-adminbar a:hover { color: var(--steel-dark); }

@media (max-width: 640px) {
  #container_title { font-size: 22px; margin-bottom: 20px; }
  #container_wr { padding-block: 28px 48px; }
}

/* ---------- 그누보드 테마의 고정 폭 해제 (모바일 대응) ---------- */
#wrapper { width: auto !important; max-width: none !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important; }
#container_wr { width: min(1180px, 100% - 32px) !important; margin-inline: auto !important; padding-block: 44px 72px; float: none !important; }
#container { width: auto !important; min-width: 0 !important; float: none !important; margin: 0 !important; padding: 0 !important; }
#container_title, #bo_list, #bo_v, #bo_w, #bo_sch, #bo_gall, #fboardlist { width: auto !important; min-width: 0 !important; }
.tbl_wrap, .tbl_head01 { width: auto !important; min-width: 0 !important; }
.tbl_head01 table, .tbl_wrap table { width: 100% !important; min-width: 0 !important; table-layout: auto; }

@media (max-width: 640px) {
  #container_wr { padding-block: 24px 44px; }
  .tbl_head01 tbody tr { padding: 14px 2px 13px; }
  .tbl_head01 tbody td.td_subject { display: block !important; font-size: 15px; line-height: 1.5; }
  .tbl_head01 tbody td.td_name, .tbl_head01 tbody td.td_datetime {
    display: inline-block !important; font-size: 12.5px; color: #8a94a6; margin-top: 7px; background: none !important;
  }
  .tbl_head01 tbody td.td_datetime::before { content: "·"; margin: 0 7px; color: #c6ccd6; }
  .tbl_head01 tbody td.td_num, .tbl_head01 tbody td.td_num2 { display: none !important; }
  .bo_notice td { background: transparent !important; }
  .bo_notice td.td_num { display: block !important; margin-bottom: 6px; text-align: left; }
}

/* ---------- 2026-09-21 : 테마 head/tail 교체 후 정리 ---------- */
#hd_login_msg { display: none; }
.gb-adminbar span { color: var(--ink-soft); font-size: 12.5px; }
.policy h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.policy h3:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.policy ul { padding-left: 20px; margin: 6px 0 12px; }
.policy li { list-style: disc; margin: 4px 0; }
.policy a { color: var(--steel-dark); text-decoration: underline; }
