/* HERO */
.notice-hero {
  min-height: 180px;
  padding: 58px 48px 44px;
  background:
    linear-gradient(rgba(255,255,255,.18), rgba(255,255,255,.18)),
    url("/images/notice-bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.notice-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
}

.notice-hero h1 {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -1.6px;
  line-height: 1.16;
  color: #07183f;
}

/* NOTICE */
.notice-section {
  padding: 60px 48px 96px;
}

.notice-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.board-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.board-tab {
  border: none;
  background: transparent;
  padding: 0 4px 16px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 900;
  color: var(--gray-2);
  cursor: pointer;
  position: relative;
}

.board-tab.active {
  color: var(--black);
}

.board-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.notice-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 16px;
}

.notice-count {
  font-size: 15px;
  color: var(--gray);
  font-weight: 700;
}

.notice-search {
  width: 280px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.notice-search:focus {
  border-color: var(--blue);
}

.notice-list {
  border-top: 2px solid var(--black);
}

.notice-item {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.notice-head {
  width: 100%;
  border: none;
  background: #fff;
  padding: 24px 8px;
  display: grid;
  grid-template-columns: 96px 1fr 120px 36px;
  gap: 16px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  height: 32px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.notice-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
}

.notice-title .pin {
  display: inline-block;
  margin-right: 6px;
  color: var(--blue);
}

.notice-date {
  font-size: 14px;
  color: var(--gray-2);
  text-align: right;
}

.notice-arrow {
  font-size: 22px;
  color: var(--gray-2);
  transition: 0.2s ease;
  text-align: center;
}

.notice-item.active .notice-arrow {
  transform: rotate(180deg);
}

.notice-body {
  display: none;
  padding: 0 8px 28px 120px;
}

.notice-item.active .notice-body {
  display: block;
}

.notice-content {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.9;
}

.empty-message {
  display: none;
  padding: 60px 0;
  text-align: center;
  color: var(--gray-2);
  font-size: 15px;
}

.empty-message.show {
  display: block;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--gray);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.page-btn:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
}

.page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .notice-hero {
    min-height: 150px;
    padding: 46px 20px 34px;
  }

  .notice-hero h1 {
    font-size: 42px;
  }

  .notice-section {
    padding: 48px 20px 72px;
  }

  .notice-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice-search {
    width: 100%;
  }

  .notice-head {
    grid-template-columns: 72px 1fr 28px;
    gap: 10px;
    padding: 20px 0;
  }

  .notice-date {
    display: none;
  }

  .notice-title {
    font-size: 16px;
  }

  .notice-body {
    padding: 0 0 22px 0;
  }
}

@media (max-width: 430px) {
  .notice-hero {
    min-height: 125px;
    padding: 38px 18px 28px;
  }

  .notice-hero h1 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }

  .notice-section {
    padding: 42px 16px 64px;
  }

  .board-tabs {
    gap: 18px;
    margin-bottom: 22px;
  }

  .board-tab {
    font-size: 18px;
    padding-bottom: 13px;
  }

  .notice-badge {
    min-width: 62px;
    height: 30px;
    font-size: 12px;
  }

  .notice-content {
    padding: 20px 18px;
    border-radius: 18px;
    font-size: 14px;
  }

  .pagination {
    gap: 6px;
    margin-top: 28px;
  }

  .page-btn {
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
  }
}