@charset "utf-8";

/* ========================================
   게시판 스킨 - 서브페이지 스타일 (1300px)
   ======================================== */

/* 페이지 전체 */
#bo_page {
  margin-top: 100px;
}

/* 페이지 헤더 배너 */
.page-header {
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
  padding: 60px 20px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
}

.page-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* 컨테이너 1300px */
.page-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  background: #f8f9fa;
}

/* 카테고리 */
#bo_cate { margin-bottom: 20px; }
#bo_cate ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
#bo_cate a { display: block; padding: 8px 18px; background: #fff; color: #666; font-size: 14px; border-radius: 20px; text-decoration: none; border: 1px solid #ddd; }
#bo_cate a:hover, #bo_cate #bo_cate_on { background: #00b9ff; color: #fff; border-color: #00b9ff; }

/* 게시판 카드 */
.board-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  margin-bottom: 20px;
}

/* 카드 헤더 */
.card-header {
  padding: 20px 30px;
  background: #f5f7f9;
  border-bottom: 1px solid #e5e5e5;
}

.card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a3a5c;
}

.card-header h3 i {
  margin-right: 10px;
  color: #1a3a5c;
}

/* 카드 바디 */
.card-body {
  padding: 0;
}

/* 카드 푸터 */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  border-top: 1px solid #eee;
}

.more-link {
  color: #666;
  font-size: 14px;
  text-decoration: none;
}

.more-link:hover { color: #00b9ff; }

/* 테이블 */
.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table thead th {
  padding: 15px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  text-align: center;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.board-table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: #333;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.board-table tbody tr:hover { background: #fafbfc; }
.board-table tbody tr.is-notice td { background: #fffef8; }

/* 컬럼 */
.col-no { width: 80px; color: #888; }
.col-subject { text-align: left !important; }
.col-date { width: 120px; color: #888; }
.col-hit { width: 80px; color: #888; }

/* 공지 뱃지 */
.badge-notice {
  display: inline-block;
  padding: 3px 10px;
  background: #1a3a5c;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 3px;
}

/* 제목 링크 */
.col-subject a {
  color: #333;
  text-decoration: none;
}
.col-subject a:hover { color: #00b9ff; }
.col-subject i { color: #999; margin-right: 5px; }

/* 새글 뱃지 */
.badge-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #ff5722;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 2px;
  vertical-align: middle;
}

/* 댓글 수 */
.comment-cnt {
  color: #00b9ff;
  font-size: 13px;
  margin-left: 5px;
}

/* 빈 행 */
.empty-row {
  padding: 80px 20px !important;
  text-align: center !important;
  color: #999 !important;
}

/* 페이징 */
.pg_wrap { margin: 25px 0; text-align: center; }
.pg { display: inline-flex; gap: 3px; }
.pg a, .pg strong, .pg span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}
.pg a:hover { background: #f5f5f5; }
.pg .pg_current, .pg strong { background: #00b9ff; color: #fff; border-color: #00b9ff; }

/* 버튼 영역 */
.board-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.btn-left, .btn-right { display: flex; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: #00b9ff; color: #fff; }
.btn-primary:hover { background: #0099dd; }

.btn-white { background: #fff; color: #333; border: 1px solid #ccc; }
.btn-white:hover { background: #f5f5f5; }

.btn-gray { background: #f5f5f5; color: #555; border: 1px solid #ddd; }
.btn-gray:hover { background: #eee; }

/* 검색 모달 */
.search-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10000;
}

.search-modal-bg {
  position: absolute;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.search-modal-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  max-width: 90%;
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-modal-content select {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
}

.search-input-wrap {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.search-input-wrap input {
  flex: 1;
  height: 46px;
  padding: 0 15px;
  border: none;
  font-size: 14px;
}

.search-input-wrap button {
  width: 50px;
  height: 46px;
  background: #00b9ff;
  color: #fff;
  border: none;
  cursor: pointer;
}

.search-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}

/* ========================================
   상세보기
   ======================================== */
.view-body { padding: 0; }

.view-title {
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
}

.view-title h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.view-cate {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: #e8f4fd;
  color: #1976d2;
  font-size: 12px;
  border-radius: 3px;
}

.view-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 30px;
  background: #f8f9fa;
  font-size: 14px;
  color: #888;
}

.view-info strong { color: #555; margin-right: 5px; }

.view-link {
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
}

.view-link strong { font-size: 14px; color: #555; }
.view-link ul { list-style: none; padding: 10px 0 0; margin: 0; }
.view-link a { color: #1976d2; text-decoration: none; }

.view-content {
  padding: 35px 30px;
  min-height: 200px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.view-content img { max-width: 100%; height: auto; }

.view-file {
  padding: 20px 30px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.view-file strong { display: block; margin-bottom: 10px; font-size: 14px; color: #555; }
.view-file ul { list-style: none; padding: 0; margin: 0; }
.view-file a { color: #1976d2; font-size: 14px; text-decoration: none; }

.view-act {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 25px;
  border-top: 1px solid #eee;
}

.act-good, .act-nogood {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.act-good:hover { border-color: #2196f3; color: #2196f3; background: #e3f2fd; }
.act-nogood:hover { border-color: #f44336; color: #f44336; background: #ffebee; }

/* 이전/다음글 */
.view-nav { padding: 0; }

.nav-row {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid #eee;
}

.nav-row:last-child { border-bottom: none; }

.nav-label {
  width: 100px;
  font-weight: 500;
  color: #00b9ff;
  font-size: 14px;
}

.nav-row a { color: #555; font-size: 14px; text-decoration: none; }
.nav-row a:hover { color: #00b9ff; }

.view-btns {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* ========================================
   글쓰기
   ======================================== */
.write-body { padding: 30px; }

.write-row { margin-bottom: 20px; }
.write-row.row-half { display: flex; gap: 15px; }
.write-row.row-half .form-group { flex: 1; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group .req { color: #ff5722; }

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-input:focus { border-color: #00b9ff; outline: none; }

.write-link .form-input { margin-bottom: 10px; }

.write-file {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.file-item { margin-bottom: 15px; }
.file-item:last-child { margin-bottom: 0; }

.file-item input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 6px;
  background: #fff;
}

.file-exist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #fff;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 13px;
}

.file-exist label { color: #ff5722; cursor: pointer; }

.write-opt {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.opt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.write-btns {
  justify-content: center;
  gap: 10px;
  padding-top: 20px;
}

.write-btns .btn { padding: 14px 50px; font-size: 15px; }

/* ========================================
   댓글
   ======================================== */
#bo_vc { margin-top: 30px; }
#bo_vc h2 { display: none; }

.cmt_btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border: none;
  background: #f8f9fa;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.cmt_btn .total { color: #00b9ff; }

#bo_vc article { padding: 20px; border-bottom: 1px solid #f0f0f0; background: #fff; }
#bo_vc .pf_img { float: left; margin-right: 12px; }
#bo_vc .pf_img img { width: 42px; height: 42px; border-radius: 50%; }
#bo_vc .cm_wrap { overflow: hidden; }
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member { font-weight: 600; color: #333; font-size: 14px; }
.bo_vc_hdinfo { color: #999; font-size: 12px; margin-left: 8px; }
#bo_vc .cmt_contents { padding: 8px 0; font-size: 14px; line-height: 1.7; color: #555; }
#bo_vc_empty { padding: 50px 20px; color: #999; text-align: center; background: #fff; }

.bo_vc_w { padding: 20px; background: #f8f9fa; }
.bo_vc_w h2 { display: none; }
.bo_vc_w textarea { width: 100%; min-height: 100px; padding: 15px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; resize: vertical; box-sizing: border-box; }
.bo_vc_w_info { margin: 12px 0; }
.bo_vc_w_info .frm_input { margin-right: 8px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; }
.bo_vc_w .btn_confirm { margin-top: 12px; }
.bo_vc_w .btn_submit { padding: 10px 25px; background: #00b9ff; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
  #bo_page { margin-top: 70px; }
  
  .page-header { padding: 40px 15px; }
  .page-title { font-size: 26px; }
  .page-desc { font-size: 14px; }
  
  .page-container { padding: 25px 15px 80px; }
  
  .card-header { padding: 15px 20px; }
  .card-header h3 { font-size: 16px; }
  
  .board-table thead { display: none; }
  .board-table tbody tr { display: block; padding: 15px 20px; border-bottom: 1px solid #eee; }
  .board-table tbody td { display: block; padding: 3px 0; text-align: left !important; border: none; }
  .col-no { display: none !important; }
  .col-subject { font-size: 15px; margin-bottom: 8px; }
  .col-date, .col-hit { display: inline-block !important; width: auto !important; font-size: 13px; margin-right: 15px; }

  .board-btns { flex-direction: column; gap: 10px; }
  .btn-left, .btn-right { width: 100%; justify-content: center; }

  .view-title { padding: 20px; }
  .view-title h4 { font-size: 18px; }
  .view-info { flex-direction: column; gap: 8px; padding: 12px 20px; }
  .view-content { padding: 20px; font-size: 14px; }
  .nav-row { flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px 20px; }
  .nav-label { width: auto; }

  .write-body { padding: 20px; }
  .write-row.row-half { flex-direction: column; }
  .write-btns { flex-direction: column; }
  .write-btns .btn { width: 100%; justify-content: center; }
  
  .empty-row { padding: 50px 15px !important; }
}

@media (max-width: 480px) {
  #bo_page { margin-top: 60px; }
  
  .page-header { padding: 30px 12px; }
  .page-title { font-size: 22px; }
  
  .card-header { padding: 12px 15px; }
  .card-header h3 { font-size: 15px; }
  
  .board-table tbody tr { padding: 12px 15px; }
}

/* 자동등록방지 */
.write-captcha {
  margin-top: 20px;
}

.captcha-box {
  padding: 15px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.captcha-box img {
  display: block;
  margin-bottom: 10px;
}

.captcha-box input[type="text"] {
  width: 200px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* view-content 내 HTML 스타일 */
#bo_v_con,
.view-content {
  padding: 35px 30px;
  min-height: 200px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  word-break: break-word;
}

#bo_v_con img,
.view-content img {
  max-width: 100%;
  height: auto;
}

#bo_v_con p,
.view-content p {
  margin: 0 0 15px 0;
}

#bo_v_con ul,
#bo_v_con ol,
.view-content ul,
.view-content ol {
  margin: 0 0 15px 20px;
}

#bo_v_con table,
.view-content table {
  max-width: 100%;
  border-collapse: collapse;
}

#bo_v_con table td,
#bo_v_con table th,
.view-content table td,
.view-content table th {
  padding: 8px;
  border: 1px solid #ddd;
}

/* 내용 옵션 (HTML/비밀글) - 에디터 위에 배치 */
.content-options {
  display: flex;
  gap: 20px;
  padding: 10px 15px;
  margin-bottom: 10px;
  background: #f0f4f8;
  border: 1px solid #e0e5eb;
  border-radius: 5px;
}

.content-options .opt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.content-options .opt-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* 2열 레이아웃 */
.row-2col {
  display: flex;
  gap: 20px;
}

.row-2col .form-group {
  flex: 1;
}

@media (max-width: 768px) {
  .row-2col {
    flex-direction: column;
    gap: 15px;
  }
}

/* 체크박스 컬럼 */
.col-chk { width: 50px; }
.col-chk input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 버튼 영역 수정 */
.btns-left, .btns-right { display: flex; gap: 8px; }

.btn-gray { background: #e9ecef; color: #333; }
.btn-gray:hover { background: #ddd; }

/* 빈 행 스타일 */
.empty {
  padding: 80px 20px !important;
  text-align: center !important;
  color: #999 !important;
}

/* 총 건수 */
.total-count {
  font-size: 14px;
  color: #666;
}

/* 버튼 박스 스타일 */
.btn-outline {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-outline:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
