
/* 메인 컨텐츠 영역 */
.main-content {
    position: relative;
    min-height: 100vh;
}

.content-wrapper {
    margin-top: 60px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ca7a7a;
}

/* 하단 바 및 페이지네이션 */
.footer-bar {
    display: flex;
    justify-content: right;
    align-items: center;
    padding: 20px;
    margin-top: 20px;
    /* border-top: 1px solid #ca7a7a; */
}

/* 게시물 목록 스타일 */
.post-list {
    margin-top: 20px;
    border-top: 1px solid #ca7a7a;
    border-bottom: 1px solid #ca7a7a;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f3b8b8;
    transition: background-color 0.3s;
}

.post-item:hover {
    background-color: #fff5f5;
}

.post-title a {
    color: #333;
    text-decoration: none;
    /* font-size: 16px; */
    font-weight: 500;
}

.post-title a:hover {
    color: #990000;
}

.post-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

/* 페이지네이션 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.page-button {
    padding: 8px 12px;
    border: 1px solid #990000;
    background-color: white;
    color: #990000;
    cursor: pointer;
    border-radius: 4px;
}

.page-button.active {
    background-color: #990000;
    color: white;
}

.page-button:hover {
    background-color: #ffecec;
}


.write-button {
    float: right;
    padding: 15px 20px;
    background-color: #990000;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

/* 헤더 바 */
/* .header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    border-bottom: 1px solid #ca7a7a;
} */

/* 검색 결과 없음 메시지 스타일 */
.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 16px;
}

/* 검색어 하이라이트 스타일 (옵션) */
.highlight {
    background-color: #ffeb3b;
    padding: 0 2px;
}

/* footer */
footer {
  color: #fff; /* White text */
  text-align: center;
  padding: 10px 0;
}

.pagination {
  list-style-type: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  background-color: #b22222; /* Red background for links */
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: #f3b8b8; /* Light red on hover */
}

.current {
  display: block;
  padding: 8px 12px;
  background-color: #f3b8b8; /* Highlighted background */
  color: #990000; /* Dark red text */
  border-radius: 5px;
  font-weight: bold;
}


/* end of footer*/