/* ===== 게시판 공통 ===== */
.board-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #222;
}

.board-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

.board-btn-write {
  display: inline-block;
  padding: 8px 20px;
  background: #222;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
}

.board-btn-write:hover {
  background: #444;
  color: #fff;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.board-table th {
  padding: 12px 10px;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.board-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.board-table tbody tr:hover {
  background: #fafafa;
}

.col-num    { width: 70px;  text-align: center; }
.col-date   { width: 110px; text-align: center; }
.col-name   { width: 100px; text-align: center; }
.col-status { width: 90px;  text-align: center; }

.col-subject a {
  color: #222;
  text-decoration: none;
}

.col-subject a:hover {
  text-decoration: underline;
}

.board-empty {
  padding: 50px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* 페이징 */
.board-paging {
  text-align: center;
  margin-top: 24px;
}

.board-paging .pg_wrap { display: inline-block; }

.board-paging .pg {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.board-paging .pg li a,
.board-paging .pg_current strong {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.board-paging .pg_current strong {
  background: #222;
  color: #fff;
  border-color: #222;
}

.board-paging .pg li a:hover {
  background: #f0f0f0;
}

/* 상세보기 */
.view-wrap {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.view-title-bar {
  padding: 20px 24px;
  background: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.view-subject {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
}

.view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #888;
}

.view-content {
  padding: 30px 24px;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  min-height: 150px;
}

/* 이전/다음글 */
.view-nav {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
  font-size: 13px;
}

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

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

.nav-label {
  width: 60px;
  color: #888;
  flex-shrink: 0;
}

.nav-row a {
  color: #333;
  text-decoration: none;
}

.nav-row a:hover { text-decoration: underline; }

/* 버튼 */
.view-btn-wrap {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

.board-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #555;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.board-btn:hover {
  background: #333;
  color: #fff;
}

.board-btn-del { background: #e74c3c; }
.board-btn-del:hover { background: #c0392b; }

/* 상태 배지 */
.badge-answered {
  display: inline-block;
  padding: 2px 10px;
  background: #27ae60;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
}

.badge-pending {
  display: inline-block;
  padding: 2px 10px;
  background: #95a5a6;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
}

/* 문의 답변 */
.inquiry-answer {
  background: #f0f8ff;
  border-left: 4px solid #3498db;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
}

.inquiry-answer h4 {
  color: #2980b9;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.inquiry-reply-form {
  background: #fffbf0;
  border-left: 4px solid #f39c12;
  padding: 20px 24px;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
}

.inquiry-reply-form h4 {
  color: #e67e22;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.inquiry-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
  margin-bottom: 10px;
}

/* 검색 */
.board-search-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.board-search {
  display: flex;
  gap: 8px;
  align-items: center;
}

.board-search select,
.board-sch-input {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

.board-sch-input {
  max-width: 200px;
}

/* 글쓰기 폼 */
#bo_w h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #222;
}

.write_guide {
  background: #f0f4f8;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}

.write_div { margin-top: 10px; }

.w_info { margin-bottom: 16px; }

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

.w_info .frm_input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.w_info textarea.frm_input {
  height: 200px;
  resize: vertical;
}

.btn_confirm {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.btn_submit {
  padding: 10px 24px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.btn_submit:hover { background: #444; }

.btn_cancel {
  display: inline-block;
  padding: 10px 24px;
  background: #eee;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
}

.btn_cancel:hover { background: #ddd; }

/* ===== 갤러리 목록 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.gallery-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f4f4f4;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 13px;
}

.gallery-info { padding: 12px 14px 14px; }

.gallery-subject {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-meta {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* ===== 갤러리 상세 ===== */
.gallery-view-images { margin-bottom: 24px; }

.gallery-view-img {
  display: block;
  max-width: 100%;
  margin: 0 auto 16px;
  border-radius: 4px;
}

.view-files {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 14px;
}

.view-files ul { margin: 8px 0 0; padding-left: 18px; }
.view-files li { margin-bottom: 4px; }
.view-files a { color: #333; text-decoration: underline; }
