@charset "utf-8";
/* ==========================================================================
   MDPS — 그누보드 board basic 스킨 오버라이드 (academy-trust 톤, rem base 10px)
   ========================================================================== */

/* 그누보드 기본 출력 중 우리 mdps-page-head와 중복되는 것 숨김 */
.tbl_head01 caption,
#bo_list > h2,
#bo_list > h3,
.bo_v_top {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 상단 게시판 액션 영역 통째로 숨김 — Total + 검색 + 상단 글쓰기 (우리 mdps-page-head TOTAL과 중복, 하단 글쓰기로 충분) */
.bo_fx:has(#bo_list_total) { display: none !important; }
/* :has() 미지원 fallback — 동일 효과 */
#bo_list_total { display: none !important; }
#bo_list_total ~ .btn_bo_user { display: none !important; }

/* 상단/하단 검색·글쓰기 액션 영역 — 우리 톤으로 깔끔하게 */
.bo_fx {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 2rem;
  padding: 0;
}
.bo_fx + .tbl_wrap { margin-top: 0; }
.tbl_wrap + .bo_fx { margin: 2rem 0 0; }
.btn_bo_user { display: inline-flex; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.btn_bo_user li { display: inline-flex; }
.bo_sch_wrap { position: relative; display: inline-flex; align-items: center; }
.bo_sch_wrap > a, .btn_bo_sch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  background: #fff;
  border: 1px solid var(--mdps-border);
  color: var(--mdps-text);
  font-size: 1.4rem;
  font-weight: 500;
}
.bo_sch_wrap > a:hover, .btn_bo_sch:hover { border-color: var(--mdps-primary); color: var(--mdps-primary); }
.bo_sch_bg { display: none; position: fixed; inset: 0; background: rgba(15,23,42,0.4); z-index: 100; }
.bo_sch_bg.active { display: block; }
.bo_sch {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  background: #fff;
  padding: 3rem;
  z-index: 101;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  display: none;
}
.bo_sch.active { display: block; }
.bo_sch h2, .bo_sch legend {
  font-size: 1.8rem; font-weight: 700; color: var(--mdps-primary); margin-bottom: 1.6rem;
}
.bo_sch select, .bo_sch input[type=text] {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid var(--mdps-border);
  font-size: 1.4rem;
  font-family: inherit;
  margin-bottom: 1rem;
}
.bo_sch_cls { position: absolute; top: 1.2rem; right: 1.2rem; background: transparent; border: none; font-size: 1.6rem; color: var(--mdps-muted); }

/* 게시판 액션 버튼 — 글쓰기는 primary 채움, 검색은 ghost outline */
.btn_b01, .btn_b02, .btn_b03, .btn_admin,
a.btn_b01, a.btn_b02 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 4rem;
  padding: 0 1.6rem;
  background: var(--mdps-primary);
  color: #fff !important;
  border: 1px solid var(--mdps-primary);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn_b01:hover, a.btn_b01:hover { background: var(--mdps-primary-hover); border-color: var(--mdps-primary-hover); color: #fff; }

/* 게시판 검색 버튼은 outline 톤 (글쓰기와 시각적 위계 구분) */
.btn_bo_sch, a.btn_bo_sch,
.btn_bo_user a[href*="search"],
.btn_b02, a.btn_b02 {
  background: #fff !important;
  color: var(--mdps-text-2) !important;
  border-color: var(--mdps-border) !important;
}
.btn_bo_sch:hover, .btn_b02:hover, a.btn_b02:hover {
  border-color: var(--mdps-primary) !important;
  color: var(--mdps-primary) !important;
}
.btn_admin { background: var(--mdps-gold); color: var(--mdps-text) !important; border-color: var(--mdps-gold); }
.btn_admin:hover { background: #E8B832; }

/* fa 아이콘 미세 조정 */
.btn_b01 .fa, .btn_b02 .fa, .btn_bo_sch .fa { font-size: 1.2rem; }

/* 게시판 리스트 테이블 */
.tbl_head01 {
  margin: 0;
  background: #fff;
  border: 0;
  border-top: 3px solid var(--mdps-primary);
}
.tbl_head01 table {
  width: 100%;
  border-collapse: collapse;
}
.tbl_head01 thead th {
  padding: 1.6rem 1.2rem;
  background: #fff;
  border-bottom: 1px solid var(--mdps-border);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mdps-text);
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tbl_head01 tbody td {
  padding: 2rem 1.2rem;
  border-bottom: 1px solid var(--mdps-border-light);
  font-size: 1.5rem;
  color: var(--mdps-text-2);
  text-align: center;
  vertical-align: middle;
}
.tbl_head01 tbody tr:hover { background: var(--mdps-surface-2); }
.tbl_head01 tbody tr.bo_notice td { background: rgba(31,56,100,0.04); font-weight: 600; }
.tbl_head01 .td_subject { text-align: left; padding-left: 2rem; }
.tbl_head01 .td_subject .bo_tit {
  display: inline;
  color: var(--mdps-text);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.tbl_head01 .td_subject a { color: var(--mdps-text); }
.tbl_head01 .td_subject a:hover .bo_tit { color: var(--mdps-primary); }
/* 그누보드 sr-only 클래스 — "댓글", "개" 등 시각적 텍스트 숨김 */
.sound_only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* 단, 게시판 액션 버튼 안의 sound_only는 텍스트 노출 (글쓰기/검색 라벨) */
.btn_bo_user .sound_only,
.btn_bo_user button .sound_only,
.btn_bo_user a .sound_only {
  position: static !important;
  width: auto !important; height: auto !important;
  padding: 0 !important; margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  display: inline !important;
}
/* fontawesome 아이콘은 미로드 환경이라 숨김 */
.btn_bo_user .fa,
.btn_bo_user .xi { display: none; }

/* 댓글 카운트 — 원형/pill 뱃지 */
.tbl_head01 .cnt_cmt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  margin-left: 0.6rem;
  padding: 0 0.5rem;
  background: var(--mdps-primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--mdps-font-en);
  letter-spacing: 0;
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1;
}
/* 댓글 옆 하트 아이콘 정리 */
.tbl_head01 .fa-heart { display: none; }
.tbl_head01 .td_num, .tbl_head01 .td_chk { width: 60px; }
.tbl_head01 .td_name { width: 140px; }
.tbl_head01 .td_date { width: 120px; font-family: var(--mdps-font-en); color: var(--mdps-soft); font-size: 1.3rem; }
.tbl_head01 .td_num, .tbl_head01 .td_numbox { color: var(--mdps-soft); font-size: 1.3rem; }

/* 페이지네이션 */
.pg_wrap, .pg {
  display: flex;
  justify-content: center;
  margin: 4rem 0;
  gap: 0.4rem;
}
.pg_page, .pg_current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1.4rem;
  background: #fff;
  border: 1px solid var(--mdps-border);
  color: var(--mdps-text-2);
  font-size: 1.4rem;
  font-weight: 500;
  font-family: var(--mdps-font-en);
}
.pg_page:hover { border-color: var(--mdps-primary); color: var(--mdps-primary); }
.pg_current {
  background: var(--mdps-primary);
  color: #fff !important;
  border-color: var(--mdps-primary);
  font-weight: 700;
}

/* 글 보기 / 작성 폼 */
.bo_v_tit {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--mdps-text);
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--mdps-border);
  margin-bottom: 2.4rem;
  letter-spacing: -0.03em;
}
.bo_v_info, .bo_v_top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 1.4rem;
  color: var(--mdps-muted);
  margin-bottom: 2.4rem;
}
.bo_v_atc, .view_image {
  font-size: 1.6rem;
  line-height: 1.85;
  color: var(--mdps-text-2);
  padding: 2.4rem 0 4rem;
  letter-spacing: -0.02em;
}
.bo_v_act, .bo_v_com {
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--mdps-border);
}

.bo_w fieldset {
  border: 1px solid var(--mdps-border);
  padding: 2.8rem;
  background: #fff;
}
.bo_w label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--mdps-text);
}

/* ==========================================================================
   글쓰기 폼 — 그누보드 write.skin (write_div, bo_w_info, bo_w_tit, ...) 톤 정리
   ========================================================================== */
#fwrite,
form[id*="fwrite"],
form[name="fwrite"] {
  display: block;
  max-width: 96rem;
  margin: 4rem auto;
  padding: 4rem;
  background: #fff;
  border: 1px solid var(--mdps-border);
  border-radius: 1rem;
}

#fwrite .write_div {
  margin-bottom: 1.6rem;
}
#fwrite .bo_w_info.write_div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.4rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--mdps-border-light);
}
@media (max-width: 640px) {
  #fwrite .bo_w_info.write_div { grid-template-columns: 1fr; }
}

#fwrite input[type=text],
#fwrite input[type=password],
#fwrite input[type=email],
#fwrite input[type=number],
#fwrite input[type=tel],
#fwrite input[type=url],
#fwrite textarea,
#fwrite select {
  width: 100%;
  height: 4.6rem;
  padding: 0 1.4rem;
  border: 1px solid var(--mdps-border);
  border-radius: 0.6rem;
  font-size: 1.45rem;
  font-family: inherit;
  background: #fff;
  letter-spacing: -0.02em;
  color: var(--mdps-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
#fwrite textarea {
  height: auto;
  min-height: 30rem !important;
  padding: 1.4rem;
  line-height: 1.7;
  resize: vertical;
}
#fwrite input::placeholder, #fwrite textarea::placeholder {
  color: var(--mdps-disabled);
  font-weight: 400;
}
#fwrite input:focus,
#fwrite textarea:focus,
#fwrite select:focus {
  outline: none;
  border-color: var(--mdps-primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

#fwrite .bo_w_tit.write_div input { font-size: 1.7rem; font-weight: 600; }

/* 파일 첨부 */
#fwrite .file_wr.write_div,
#fwrite .bo_w_flie.write_div {
  background: var(--mdps-surface);
  border: 1px solid var(--mdps-border-light);
  border-radius: 0.6rem;
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
#fwrite input[type=file] {
  font-size: 1.3rem;
  flex: 1;
}
#fwrite input[type=file]::file-selector-button {
  height: 3.4rem;
  padding: 0 1.4rem;
  background: #fff;
  border: 1px solid var(--mdps-border);
  border-radius: 0.4rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mdps-text-2);
  cursor: pointer;
  margin-right: 1rem;
}
#fwrite input[type=file]::file-selector-button:hover {
  border-color: var(--mdps-primary);
  color: var(--mdps-primary);
}

/* 자동등록방지 */
#captcha,
#fwrite #captcha,
#fwrite fieldset {
  background: var(--mdps-surface);
  border: 1px solid var(--mdps-border-light);
  border-radius: 0.6rem;
  padding: 1.6rem;
  margin: 1.6rem 0 0;
}
#captcha legend {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--mdps-text);
  padding: 0 0 0.8rem;
}
#captcha img,
#captcha canvas { border-radius: 0.4rem; margin-right: 0.8rem; vertical-align: middle; }
#captcha button { margin-left: 0.4rem; }

/* HTML 옵션 라벨 */
#fwrite label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.3rem;
  color: var(--mdps-text-2);
  margin-bottom: 0;
}

/* 작성완료/취소 버튼 영역 */
.btn_confirm,
#fwrite .btn_confirm {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--mdps-border-light);
}
.btn_confirm input[type=submit],
.btn_confirm button[type=submit],
.btn_confirm .btn_submit,
#fwrite input[type=submit],
#fwrite .btn_submit {
  height: 4.6rem;
  padding: 0 2.4rem;
  background: var(--mdps-primary);
  color: #fff;
  border: 1px solid var(--mdps-primary);
  border-radius: 0.6rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn_confirm input[type=submit]:hover,
.btn_confirm button[type=submit]:hover,
.btn_confirm .btn_submit:hover {
  background: var(--mdps-primary-hover);
  border-color: var(--mdps-primary-hover);
}
.btn_confirm a,
.btn_confirm .btn_cancel,
.btn_confirm input[type=button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.6rem;
  padding: 0 2.4rem;
  background: #fff;
  color: var(--mdps-text-2);
  border: 1px solid var(--mdps-border);
  border-radius: 0.6rem;
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn_confirm a:hover,
.btn_confirm .btn_cancel:hover {
  border-color: var(--mdps-primary);
  color: var(--mdps-primary);
}

.bo_vc { padding: 1.6rem; background: var(--mdps-surface); margin-top: 2.4rem; }
.bo_vc_w textarea { width: 100%; min-height: 9rem; padding: 1.2rem; border: 1px solid var(--mdps-border); font-size: 1.45rem; font-family: inherit; resize: vertical; }

@media (max-width: 820px) {
  /* 모바일 게시판 — 카드 형태 (제목 한 줄 + 메타 인라인) */
  .tbl_head01 { border-top: 0; }
  .tbl_head01 thead { display: none; }
  .tbl_head01 table,
  .tbl_head01 tbody,
  .tbl_head01 tr,
  .tbl_head01 td { display: block; }
  .tbl_head01 tbody tr {
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--mdps-border-light);
    border-top: 0;
  }
  .tbl_head01 tbody tr:first-child { padding-top: 1.6rem; }
  .tbl_head01 tbody tr:last-child { border-bottom: none; }
  .tbl_head01 tbody tr:hover { background: transparent; }

  /* 번호·체크박스 숨김 */
  .tbl_head01 tbody td.td_num,
  .tbl_head01 tbody td.td_num2,
  .tbl_head01 tbody td.td_numbox,
  .tbl_head01 tbody td.td_chk { display: none !important; }

  /* 제목은 한 줄 차지 */
  .tbl_head01 tbody td.td_subject {
    display: block !important;
    width: 100% !important;
    padding: 0 0 1rem !important;
    border: 0 !important;
    text-align: left !important;
  }
  .tbl_head01 tbody td.td_subject .bo_tit {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--mdps-text);
    letter-spacing: -0.04em;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
  }

  /* 메타 (작성자·조회·날짜)는 인라인 + 사이에 디바이더 */
  .tbl_head01 tbody td.td_name,
  .tbl_head01 tbody td.td_date,
  .tbl_head01 tbody td.td_datetime {
    display: inline-block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: left !important;
    font-size: 1.3rem;
    color: var(--mdps-soft);
    vertical-align: middle;
  }
  .tbl_head01 tbody td.td_name + td.td_date::before,
  .tbl_head01 tbody td.td_name + td.td_datetime::before,
  .tbl_head01 tbody td.td_date + td.td_datetime::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 1.1rem;
    background: var(--mdps-border);
    margin: 0 1rem;
    vertical-align: middle;
  }
}
