/* =========================================================
   [아이케이텍] 그누보드 게시판 스킨 브랜드 스타일
   basic(목록) / gallery(갤러리) 스킨을 사이트 디자인에 맞춤
   ========================================================= */

/* 검색 패널은 기본 숨김 (검색 버튼 클릭 시 JS로 표시) */
#bo_list .bo_sch_wrap,
#bo_v   .bo_sch_wrap { display: none; }

/* ---- 카테고리 탭 ---- */
#bo_cate { margin-bottom: 24px; }
#bo_cate h2 { position: absolute; left: -9999px; }
#bo_cate ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
#bo_cate ul li a {
  display: inline-block; padding: 8px 18px;
  border: 1px solid var(--color-border); border-radius: 999px;
  color: var(--color-text-mute); font-size: 14px; text-decoration: none;
  transition: all .15s;
}
#bo_cate ul li a:hover { border-color: var(--color-navy); color: var(--color-navy); }
#bo_cate ul li a#bo_cate_on { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

/* ---- 목록 상단(Total, 버튼) ---- */
#bo_btn_top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
#bo_list_total { color: var(--color-text-mute); font-size: 14px; }
#bo_btn_top .btn_bo_user { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.btn_bo_user .btn, .btn_bo_sch {
  padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 6px;
  background: #fff; color: var(--color-text); font-size: 14px; cursor: pointer; line-height: 1;
}
.btn_bo_user .btn:hover, .btn_bo_sch:hover { border-color: var(--color-navy); color: var(--color-navy); }

/* ---- 목록 테이블 ---- */
.tbl_head01 { width: 100%; border-collapse: collapse; }
.tbl_head01 caption { position: absolute; left: -9999px; }
.tbl_head01 thead th {
  background: var(--color-bg-soft); border-top: 2px solid var(--color-navy);
  border-bottom: 1px solid var(--color-border); padding: 14px 8px; font-size: 14px; color: var(--color-text); font-weight: 600;
}
.tbl_head01 tbody td {
  border-bottom: 1px solid var(--color-border); padding: 15px 8px; font-size: 14px;
  color: var(--color-text-mute); text-align: center; vertical-align: middle;
}
.tbl_head01 tbody tr:hover td { background: var(--color-bg-soft); }
.td_subject { text-align: left !important; }
.bo_tit { display: block; color: var(--color-text); font-weight: 500; }
.bo_tit a { color: var(--color-text); text-decoration: none; }
.bo_tit a:hover { color: var(--color-navy); text-decoration: underline; }
.bo_cate_link {
  display: inline-block; padding: 3px 10px; background: var(--color-bg-mute);
  border-radius: 4px; font-size: 12px; color: var(--color-navy); margin-right: 8px;
  text-decoration: none; font-weight: 500; vertical-align: middle;
}

/* ---- 갤러리 ---- */
#bo_gall .gall_row { display: flex; flex-wrap: wrap; gap: 22px; padding: 0; margin: 0; list-style: none; }
#bo_gall li.gall_li { width: calc(25% - 17px); margin: 0; float: none; border: 0; }
#bo_gall .gall_box { border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; }
#bo_gall .gall_box:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
#bo_gall .gall_img { border: 0; height: 210px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--color-bg-mute); }
#bo_gall .gall_img img { width: 100%; height: 100%; object-fit: cover; }
#bo_gall .gall_con { padding: 14px 16px; }
#bo_gall .gall_text_href { display: block; font-size: 15px; font-weight: 500; color: var(--color-text); line-height: 1.4; max-height: 2.8em; overflow: hidden; }
#bo_gall .gall_text_href:hover { color: var(--color-navy); }
#bo_gall .gall_info { margin-top: 8px; font-size: 12px; color: var(--color-text-light); }
#bo_gall .gall_info a { color: var(--color-text-light); }
#bo_gall .gall_chk { display: none; }

/* ---- 페이지네이션 ---- */
.pg_wrap { text-align: center; margin: 30px 0 10px; }
.pg { display: inline-flex; gap: 4px; }
.pg a, .pg strong {
  display: inline-block; min-width: 38px; padding: 9px 6px; border: 1px solid var(--color-border);
  border-radius: 6px; color: var(--color-text-mute); text-decoration: none; font-size: 14px; line-height: 1;
}
.pg a:hover { border-color: var(--color-navy); color: var(--color-navy); }
.pg strong { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }

/* ---- 하단 글쓰기 버튼 ---- */
#bo_list #bo_list_write { margin-top: 20px; text-align: right; }
.btn_b01, .btn_b02, a.btn_admin, #bo_list_write a {
  display: inline-block; padding: 11px 26px; border-radius: 6px;
  background: var(--color-navy); color: #fff; border: 0; text-decoration: none; font-size: 14px;
}
.btn_b02, a.btn_admin { background: var(--color-red); }
.btn_b01:hover, .btn_b02:hover { opacity: .92; color: #fff; }

/* 게시물 없음 */
.empty_table, .empty_list { padding: 60px 0; text-align: center; color: var(--color-text-light); }

/* =========================================================
   회원(로그인/회원가입/비밀번호찾기 등) 폼 컨트롤
   ========================================================= */
/* 글쓰기 폼 레이아웃 */
#bo_w { max-width: 860px; margin: 0 auto; }
.write_div { margin-bottom: 14px; }
.bo_w_info { display: flex; flex-wrap: wrap; gap: 8px; }
input.frm_input {
  border: 1px solid var(--color-border); border-radius: 6px;
  padding: 12px 14px; font-size: 15px; background: #fff;
  box-sizing: border-box; width: 100%;
}
input.frm_input.full_input { width: 100%; }
input.frm_input.half_input { flex: 1 1 200px; width: auto; }
input.frm_input:focus { border-color: var(--color-navy); outline: none; box-shadow: 0 0 0 3px rgba(0,50,119,.08); }
input.frm_file { font-size: 14px; }
#bo_w select { border: 1px solid var(--color-border); border-radius: 6px; padding: 10px 12px; font-size: 15px; background: #fff; width: 100%; box-sizing: border-box; }
#bo_w textarea { width: 100%; min-height: 180px; border: 1px solid var(--color-border); border-radius: 6px; padding: 12px 14px; font-size: 15px; box-sizing: border-box; resize: vertical; }
#bo_w textarea:focus, #bo_w select:focus { border-color: var(--color-navy); outline: none; box-shadow: 0 0 0 3px rgba(0,50,119,.08); }

.btn_confirm { display:flex; gap:8px; justify-content:flex-end; margin-top:16px; }
.btn_cancel.btn { padding:12px 26px; border-radius:6px; border:1px solid var(--color-border); background:#fff; color:var(--color-text); font-size:15px; text-decoration:none; }
.btn_cancel.btn:hover { border-color:var(--color-navy); color:var(--color-navy); }
.btn_submit, input[type="submit"].btn_submit, button.btn_submit{
  display:inline-block; width:100%; padding:14px 20px;
  background:var(--color-navy); color:#fff; border:0; border-radius:6px;
  font-size:16px; font-weight:600; cursor:pointer; line-height:1.2;
}
.btn_confirm .btn_submit { width:auto; min-width:120px; }
.btn_submit:hover{ opacity:.92; }

/* 로그인/회원가입 상단 탭 */
#login_frm legend, .win_desc, fieldset legend{ }
.member-tabs, .login_tab{ display:flex; }

/* 회원가입 완료/확인 등 공용 버튼 링크 */
.win_btn a, .btn_confirm a, a.btn01, a.btn02{
  display:inline-block; padding:12px 26px; border-radius:6px;
  background:var(--color-navy); color:#fff; text-decoration:none; font-size:15px;
}
.win_btn a.btn02, a.btn02{ background:#fff; color:var(--color-text); border:1px solid var(--color-border); }

@media (max-width: 768px) {
  #bo_gall li.gall_li { width: calc(50% - 11px); }
}
@media (max-width: 480px) {
  #bo_gall li.gall_li { width: 100%; }
  input.frm_input.half_input { flex-basis: 100%; width: 100%; }
  .btn_confirm { flex-wrap: wrap; }
  .btn_confirm .btn_submit { width: 100%; min-width: 0; }
}
