.board-list-wrapper {
  max-width: var(--max-width);
  margin: 50px auto;
  padding: 0 20px;
}

.board-list-wrapper h1 {
  font-size: 28px;
  margin-bottom: 30px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.search-area {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  gap: 5px;
  width: 100%;
  max-width: 350px;
}

.search-input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  color: #333;
  transition: border-color 0.3s;
}

.search-input:focus {
  border-color: #333;
  outline: none;
}

.search-button {
  flex-shrink: 0;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  border: 1px solid #333;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.search-button:hover {
  background-color: #555;
  border-color: #555;
}

/* 카테고리 필터 스타일 */
.category-filter {
  margin-bottom: 20px;
}

.category-filter a {
  display: inline-block;
  padding: 8px 15px;
  margin-right: 10px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.category-filter a.active {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* 테이블 스타일 */
.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.board-table th,
.board-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.board-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}

.board-table a {
  color: #3498db;
  text-decoration: none;
}

.board-table .no-results {
  text-align: center;
  color: #999;
}

/* 페이지네이션 스타일 */
.pagination-area {
  text-align: center;
}

.pagination-area a,
.pagination-area span {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.pagination-area span.current-page {
  background-color: #333;
  color: #fff;
  border-color: #333;
  font-weight: bold;
}

/* --- 미디어 쿼리 (Max-width: 1024px: 태블릿 환경) --- */
@media (max-width: 1024px) {
  .search-area {
    margin-bottom: 25px;
  }

  .search-form {
    max-width: 300px;
  }

  .search-input,
  .search-button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .board-table th:nth-child(1),
  .board-table td:nth-child(1) {
    display: none;
  }

  .board-table th:nth-child(6),
  .board-table td:nth-child(6) {
    display: none;
  }

  .board-table td:nth-child(3) {
    text-align: left;
    padding-left: 20px;
  }

  .pagination-area a,
  .pagination-area span {
    padding: 6px 10px;
  }
}

/* --- 미디어 쿼리 (Max-width: 768px: 모바일 환경) --- */
@media (max-width: 768px) {
  .board-list-wrapper h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .search-area {
    justify-content: center;
    margin-bottom: 20px;
  }

  .search-form {
    width: 100%;
    max-width: 100%;
    padding: 0 5px;
  }

  .search-input {
    padding: 8px 10px;
  }

  .search-button {
    padding: 8px 10px;
    font-size: 14px;
  }

  .category-filter {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .category-filter a {
    flex-shrink: 0;
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 14px;
  }

  .board-table th:nth-child(2),
  .board-table td:nth-child(2) {
    display: none;
  }

  .board-table th:nth-child(4),
  .board-table td:nth-child(4) {
    display: none;
  }

  .board-table td:nth-child(3) {
    text-align: left;
    padding-left: 15px;
  }

  .board-table th,
  .board-table td {
    padding: 10px 5px;
    font-size: 14px;
  }
}
