/* ===============================
   전체 레이아웃
=============================== */
body {
  font-family: "맑은 고딕", "돋움", sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* 헤더 */
.headerB {
  font-family: 'Oswald', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #4c4cff;
  text-align: center;
  margin: 30px 0;
}

/* 컨텐츠 래퍼 (본문 + 오른쪽 사이드) */
.contentWrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 90%;
  margin: 0 auto;
  gap: 20px;
}

/* 본문 */
.mainContent {
  flex: 1;
  max-width: 900px;
  margin-top: 70px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  white-space: nowrap;
  padding: 20px;
}

/* 오른쪽 사이드 */
.rightAside {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 버튼 그룹 */
.menu-btn {
  font-size: 16px;
  margin: 0 5px;
  padding: 8px 15px;
  border: 1px solid #007bff;
  background: #fff;
  color: #007bff;
  border-radius: 4px;
  cursor: pointer;
}
.menu-btn:hover,
.menu-btn.active {
  background: #007bff;
  color: #fff;
}
.writeBtn {
  background: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.writeBtn:hover {
  background: #0056b3;
}

/* 테이블 */
table.a {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

table.a th,
table.a td {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
  font-size: 14px;
}

table.a th {
  background: #f1f1f1;
  font-weight: bold;
  text-align: center;
}

/* ===============================
   페이징
=============================== */
.pager {
  text-align: center;
  margin: 20px 0;
}

.pager a,
.pager span {
  margin: 0 5px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

.pager a {
  color: #007bff;
  border: 1px solid #007bff;
  transition: all 0.2s;
}

.pager a:hover {
  background: #007bff;
  color: white;
}

.active-page {
  font-weight: bold;
  color: white;
  background: #ff6f00;
  border: 1px solid #ff6f00;
}

/* ===============================
   검색창 & 버튼
=============================== */
.search {
  padding: 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.keyword {
  padding: 6px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  margin-left: 5px;
  width: 200px;
}

.searchB {
  background: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.searchB:hover {
  background: #0056b3;
}

.searchRow {
  display: flex;
  justify-content: space-between; /* 왼쪽 검색, 오른쪽 글쓰기 */
  align-items: center;
  padding: 15px 20px;
}

.searchGroup {
  display: flex;
  align-items: center;
  gap: 5px; /* 검색창과 버튼 간격 */
}