body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

nav {
  background-color: #f0f0f0;
  padding: 10px;
  text-align: center;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 6px 10px; /* ✅ hover와 동일하게 맞춰줌 */
  border-radius: 4px; /* 둥글게 처리는 유지해도 무방 */
  transition: all 0.2s ease-in-out;
}

nav a:hover {
  color: #DAA520; /* 골드 글씨 */
  background-color: #002147; /* 네이비 배경 */
  border-radius: 4px; /* 둥글게 처리하면 더 예쁠 수 있어 */
  padding: 6px 10px;
}

main {
  padding: 20px;
  text-align: center;
}

footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 10px;
  font-size: 0.9em;
  position: fixed;
  width: 100%;
  bottom: 0;
}

ul.notice-list {
  list-style: none;
  padding: 0;
}

ul.notice-list li {
  padding: 12px 0;
  background-color: transparent;
  box-shadow: none; /* 아주 얇은 그림자 */
  border-bottom: none; /* ✅ 선 제거 */
}

ul.notice-list li a {
  font-size: 1.05em;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #DAA520; /* 진한 골드 */
  display: inline-block;
  padding: 6px 12px;
  text-decoration: none;
}
ul.notice-list li a:hover {
  background-color: rgba(218, 165, 32, 0.1); /* 골드 느낌의 투명 배경 */
  border-radius: 6px;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 -2px 0 #DAA520; /* 골드색 얇은 밑줄 느낌 */
  text-decoration: none;
}


#pagination {
  margin-top: 1rem;
  text-align: center;
}

#pagination button {
  margin: 2px 4px;
  padding: 4px 8px;
  font-size: 0.85rem;
  border: none;
  border-radius: 3px;
  background-color: #002147; /* 네이비 */
  color: #DAA520; /* 황금색 골드 */
  margin: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* ✅ active가 아닌 버튼에만 hover 효과 적용 */
#pagination button:not(.active):hover {
  background-color: #003366; /* 네이비 조금 밝게 */
}

#pagination button.active {
  background-color: #DAA520; /* 황금색 골드 배경 */
  color: #002147; /* 네이비 글씨 */
  font-weight: bold;
}



/* 모바일 화면 대응: 화면 너비가 768px 이하일 때만 적용 */
@media (max-width: 768px) {
  html, body {
  padding: 0;
  overflow-x: hidden; /* 좌우 스크롤 방지 */
  box-sizing: border-box;
  height: 100%;
  margin: 0;
  }

  img, .content-box {
  display: block;
  margin: 0 auto;
  }

  
  body {
    font-size: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* 화면 전체 높이 확보 */
  }

  nav {
    padding: 8px;
  }

  nav a {
    display: inline-block;
    margin: 10px;
    font-size: 1rem;
  }

  main {
    padding: 0 16px 60px; /* 푸터 높이만큼 확보 */
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    flex: 1; /* 푸터를 밀어내지 않도록 메인 영역이 유연하게 확장됨 */
  }

  footer {
    font-size: 1em;         /* 너무 작으면 0.9~1em으로 조절 */
    padding: 12px 10px;       /* 상하 여백을 조금 늘려서 안정감 있게 */
    margin-top: 30px;         /* 본문과 푸터 사이 여백 확보 */
    background-color: #f0f0f0;
    text-align: center;
    position: static; /* 모바일에서는 고정 위치가 불편할 수 있어요 */
    width: 100%;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  }

  ul.notice-list {
  display: block;
  flex-wrap: wrap; /* 넘치면 자동 줄바꿈 */
  justify-content: center; /* 가운데 정렬 */
  padding: 0;
  margin: 0 auto;
  max-width: 100vw; /* 화면 너비 넘지 않게 */
  overflow-x: hidden;
}
  
  ul.notice-list li {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
  }

  ul.notice-list li a {
    display: inline-block;
    text-align: center;
    font-size: 1em;
  }
}








