/* =========================================================
   archive-board.css
   자료실 / 커뮤니티 게시판 공통
   ========================================================= */

/* Description */
.board-desc {
  max-width: 1100px;
  margin: 0 auto 28px;
  font-size: 16px;
  color: #444;
  text-align: center;
}

/* =========================================================
   Search (Right Aligned)
   ========================================================= */

.board-search {
  max-width: 1100px;
  margin: 0 auto 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.board-search select,
.board-search input {
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.board-search input {
  width: 220px;
}

.board-search button {
  height: 36px;
  padding: 0 16px;
  background: #005EB8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.board-search button:hover {
  background: #004a94;
}

/* =========================================================
   Board Table
   ========================================================= */

.board-table {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #ffffff;
}

.board-table th,
.board-table td {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
}

.board-table thead th {
  background: #f8fafc;
  font-weight: 700;
  color: #111;
}

/* 게시글 hover */
.board-table tbody tr.post-row:hover {
  background: #f9fafb;
}

/* 빈 상태 hover 제거 */
.board-table tbody tr.empty-row:hover {
  background: transparent;
  cursor: default;
}

.board-table .num {
  width: 80px;
  text-align: center;
}

.board-table .date {
  width: 140px;
  text-align: center;
  color: #555;
}

.board-table .title a {
  color: #111;
}

.board-table .title a:hover {
  text-decoration: underline;
}

/* =========================================================
   Empty Board State
   ========================================================= */

.board-table .empty-row td {
  padding: 48px 0;
  text-align: center;
  font-size: 15px;
  color: #9ca3af;   /* 연한 회색 */
}

/* =========================================================
   Pagination (Arrow Included)
   ========================================================= */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 35px;
}

.pagination a {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d1d5db;
  border-radius: 3px;

  font-size: 14px;
  font-weight: 500;
  color: #222;

  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a:hover {
  background: #f1f5f9;
}

.pagination a.active {
  background: #fff;
  color: #0261b5;
  border: 1px solid #0261b5;
}

/* =========================
   Arrow Button Style
   ========================= */

.pagination a.arrow {
    font-size: 25px;
    font-weight: 100;
    color: #555;
    border-color: #c7d2fe;
    padding-bottom: 6px;
}

.pagination a.arrow:hover {
  background: #e8f0fe;
}

/* 비활성 화살표 */
.pagination a.arrow.disabled {
  color: #cbd5e1;
  border-color: #e5e7eb;
  background: #fff;
  pointer-events: none;
}