.board-container {
  display: flex;
  gap: 30px;
  width: 1260px;
  margin: 30px auto 120px auto;
  font-family: 'Pretendard', sans-serif;
}

.board-content {
  flex: 1;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 게시판 테이블 */
.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th, .board-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 14px;
}

.board-table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.board-table td a {
  color: #333;
  text-decoration: none;
}

.board-table td a:hover {
  color: #377dff;
}

/* 페이징 */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 5px;
}

.pagination a {
  padding: 6px 12px;
  margin: 0 2px;
  color: #444;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
}

.pagination a:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  cursor: pointer;
}

.pagination a.active {
  background-color: #377dff;
  color: white;
  font-weight: bold;
  border-radius: 8px;
}


/* 글쓰기 버튼 */
.write-btn {
  padding: 8px 16px;
  background-color: #377dff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

/* 배지 (댓글, 하트) */
/* 공통 배지 스타일 */
.badge {
  display: inline-block;
  padding: 2px 4px;
  margin-left: 3px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  line-height: 1.2;
  vertical-align: middle;
  user-select: none;
  box-sizing: border-box;
}

/* 댓글 배지 */
.comment-badge {
  background: #e2f1cf;
  color: #1b4d3e;
}

/* 하트 배지 */
.heart-badge {
  border-radius: 999px; /* pill 스타일 */
  background: rgba(255, 76, 76, 0.15);
  color: #dc3545;
}


.board-search-form {
  width: 100%;
  margin: 0px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 10px 16px;
}

.search-icon {
  margin-right: 10px;
  font-size: 18px;
  color: #666;
}

.search-wrapper input[type="text"] {
  border: none;
  outline: none;
  font-size: 15px;
  width: 100%;
  background: transparent;
  font-family: 'Pretendard', sans-serif;
}

/* ===== 리스트 카드 컨테이너 ===== */
.board-content {
  flex: 1;
  background-color: #fff0; /* 투명: 카드가 자체 배경 */
  border-radius: 10px;
  box-shadow: none;
}

/* 툴바: 검색 + 우측 버튼 */
.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.board-search-form { flex: 1; margin: 0; }
.search-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #e4e7ee;
  background: #f9fafc;
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 520px;
}
.search-icon { margin-right: 10px; font-size: 18px; color: #7a8292; }
.search-wrapper input[type="text"] {
  border: none; outline: none; background: transparent;
  font-size: 15px; width: 100%; font-family: 'Pretendard', sans-serif;
}

.toolbar-actions { margin-left: 16px; }
.write-btn {
  padding: 8px 14px; background-color: #377dff; color: #fff;
  text-decoration: none; border-radius: 8px; font-size: 14px;
  transition: background-color .15s ease;
}
.write-btn:hover { background-color: #2f6ee8; }

/* ===== 목록 카드 + 테이블 ===== */
.board-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

.board-table {
  width: 100%;
  border-collapse: collapse;
}
.board-table thead th {
  background: linear-gradient(180deg, #f8f9fc 0%, #f3f5f9 100%);
  color: #4a4f5a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  padding: 14px 10px;
  border-bottom: 1px solid #e9ecf3;
}
.board-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f3f7;
  text-align: center;
  font-size: 14px;
  color: #2a2f36;
  background: #fff;
}

/* 제목 셀: 좌정렬 + 말줄임 + 배지 정렬 */
.title-cell { text-align: left; }
.title-cell a {
  display: inline-flex; align-items: center; gap: 6px;
  color: #1d2430; text-decoration: none;
}
.title-cell a:hover { color: #377dff; }
.title-text {
  max-width: 520px; display: inline-block; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; vertical-align: bottom;
}

/* 행 호버 */
.hover-row:hover td { background: #f8fbff; }

/* 공지 행 강화 */
.notice-row td { background: #fff; }
.notice-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #c21730;
  background: #ffecef; border: 1px solid #ffd0d6;
}

/* 배지(네 기존 클래스 유지) */
.badge {
  display: inline-block; padding: 2px 6px; margin-left: 4px;
  font-size: 12px; font-weight: 600; border-radius: 6px; line-height: 1.2;
  vertical-align: middle; user-select: none; box-sizing: border-box;
}
.comment-badge { background: #4d52df; color: #1b4d3e; }
.heart-badge   { border-radius: 999px; background: rgba(255,76,76,.15); color: #dc3545; }

/* 페이징 보강 */
.pagination {
  display: flex; justify-content: center; margin: 18px 0 8px; gap: 6px;
}
.pagination a {
  padding: 8px 12px; color: #4a4f5a; text-decoration: none;
  border: 1px solid #e4e7ee; border-radius: 8px;
  transition: all .15s ease; background: #fff;
}
.pagination a:hover { background: #f5f7fb; border-color: #cfd6e5; }
.pagination a.active {
  background-color: #377dff; color: #fff; font-weight: 700; border-color: #377dff;
}

/* 기존에 쓰던 검색바/헤더 블록은 더 이상 사용 안 함 — 주석 처리해도 좋

