/* ============================================================
   인테리스 통합 페이지네이션
   적용 위치: 사이트 전체 (NABBS .pg + 부트스트랩 .pagination 모두 처리)
   업로드: /public_html/theme/MG-basic/css/pagination.css
   작성: 2026-05-07
   ============================================================ */

/* 컨테이너 */
.pg_wrap,
nav .pagination {
  display: flex !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 30px 0 20px;
  padding: 0;
  list-style: none;
}

.pg_wrap .pg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

/* 모든 페이지 버튼 공통 */
.pg_page,
.pg_current,
.pagination .page-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 38px;
  padding: 0 12px;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  color: #bbb !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.15s ease;
  margin: 0 !important;
  box-shadow: none !important;
}

/* 호버 효과 — 살짝 떠오르며 인테리스 블루 */
.pg_page:hover,
.pagination .page-link:hover {
  background-color: #4472C4 !important;
  border-color: #4472C4 !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(68, 114, 196, 0.25) !important;
}

/* 현재 페이지 — 흰색 강조 */
.pg_current,
.pagination .page-item.active .page-link {
  background-color: #fff !important;
  border-color: #fff !important;
  color: #1F4E79 !important;
  font-weight: 700;
  cursor: default;
}

.pg_current:hover,
.pagination .page-item.active .page-link:hover {
  transform: none;
  box-shadow: none !important;
  background-color: #fff !important;
  color: #1F4E79 !important;
}

/* 비활성 (이전·처음 등 갈 수 없는 상태) */
.pagination .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #555 !important;
  cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: #555 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* 화살표 버튼 (« ‹ › ») 살짝 흐리게 */
.pg_start, .pg_prev, .pg_next, .pg_end {
  font-size: 13px;
  color: #999 !important;
}

/* "..." 점 영역 */
.pagination .page-item.disabled .page-link[aria-disabled="true"],
.pg_dot {
  background: transparent !important;
  border: 0 !important;
}

/* 모바일 대응 */
@media (max-width: 600px) {
  .pg_page,
  .pg_current,
  .pagination .page-link {
    min-width: 36px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
  .pg_wrap, nav .pagination { gap: 3px; margin: 20px 0 14px; }
}
