

/* 페이지네이션 전체 컨테이너 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  background-color: #111b22;/*#1a2a3a;*/ /* 배경색보다 살짝 밝거나 다른 톤의 어두운 색 */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* 어두운 배경에 맞는 더 깊은 그림자 */
  flex-wrap: wrap;
}

/* '<' '>' 화살표 아이콘 */
.page-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  margin: 0 5px;
  border-radius: 50%;
  color: #88c0d0; /* 강조색 (청록색 계열에 잘 어울리는 하늘색) */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.page-arrow svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.page-arrow:hover:not(.disabled) {
  background-color: rgba(136, 192, 208, 0.2); /* 강조색의 투명한 버전 */
  color: #61a6b8; /* 호버 시 약간 더 진한 강조색 */
}

.page-arrow.disabled {
  color: #4a5d6e; /* 비활성화 시 어두운 배경에 어울리는 회색 */
  cursor: not-allowed;
  background-color: transparent;
}

/* 페이지 번호 컨테이너 */
.page-numbers {
  display: flex;
  margin: 0 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 각 페이지 번호 링크 */
.page-num {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  margin: 0 4px;
  background-color: #2b3a4a; /* 어두운 배경에 어울리는 약간 밝은 회색 */
  color: #c0c0c0; /* 글자색 */
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: bold;


}

.page-num:hover:not(.active) {
  background-color: #3b4d61; /* 호버 시 배경색 변경 */
  color: #e0e0e0;
}

/* 활성화된 (현재 페이지) 번호 */
.page-num.active {
  background-color: #88c0d0; /* 강조색 (화살표 색상과 통일) */
  color: #1a2a3a; /* 활성화된 페이지의 글자색 (배경색과 대비되도록 어둡게) */
  cursor: default;
}

/* 모바일 화면 최적화 */
@media (max-width: 600px) {
  .pagination {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 5px;
  }

  .page-numbers {
    flex-grow: 1;
    margin: 0 5px;
  }

  .page-arrow {
    margin: 0;
  }
}