body {
  overflow-x: hidden;
  background: #f6f6f6;
}

.desktop-only {
  top: 3rem;
}

.box {
  padding: 9rem 0 5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.box.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.notice-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #212121;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  display: flex;
  border-bottom: 2px solid #091a4c;
  justify-content: space-between;
  align-items: end;
}

/* 검색창 */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
}

.search-bar input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 2px solid #e4e4e4;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #091a4c;
}

.search-bar button {
  height: 44px;
  padding: 0 22px;
  background: #091a4c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}

.search-bar button:hover {
  background: #122266;
}

/* 건수 */
.total-info {
  font-size: 14px;
  color: #777;
  margin-bottom: 8px;
}

/* 테이블 */
.notice-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e4e4e4;
}

.notice-table thead tr {
  background: #091a4c;
}

.notice-table thead th {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 14px 16px;
  text-align: center;
}

.notice-table thead th:nth-child(2) {
  text-align: left;
}

.notice-table thead th:first-child {
  width: 70px;
}
.notice-table thead th:nth-child(3) {
  width: 100px;
}
.notice-table thead th:last-child {
  width: 120px;
}

.notice-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.notice-table tbody tr:last-child {
  border-bottom: none;
}

.notice-table tbody tr:hover {
  background: #f8f9ff;
}

.notice-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  text-align: center;
}

.notice-table td:nth-child(2) {
  text-align: left;
  cursor: pointer;
}

.notice-table td:nth-child(2):hover {
  color: #091a4c;
  text-decoration: underline;
}

.badge-notice {
  display: inline-block;
  background: #091a4c;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

/* 페이지네이션 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 1.5rem;
}

.pagination button {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.pagination button.active {
  background: #091a4c;
  color: #fff;
  border-color: #091a4c;
}

.pagination button:hover:not(.active) {
  background: #f0f2f8;
}

@media (max-width: 768px) {
  .box {
    padding: 5rem 0 3rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .notice-table thead th:nth-child(3),
  .notice-table td:nth-child(3) {
    display: none;
  }
}
