/* News Page — Notice List Style */

/* ── Toolbar (검색 + 총 건수) ── */
.wd-news__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wd-news__total {
  color: var(--wd-text-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.wd-news__total b {
  color: var(--wd-text-primary);
  font-weight: 600;
}

/* ── Search ── */
.wd-news__search {
  width: 440px;
}

.wd-news__search-inner {
  display: flex;
  align-items: center;
  max-width: 440px;
  height: 44px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: var(--wd-surface-white);
  border-radius: 50px;
  box-sizing: border-box;
  overflow: hidden;
}

.wd-news__search-select {
  display: block;
  width: 110px;
  height: 100%;
  padding-left: 1.2rem;
  border: 0;
  background-color: transparent;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--wd-font-primary);
  color: var(--wd-text-primary);
  letter-spacing: -0.05em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}

.wd-news__search-select:focus { outline: none; }

.wd-news__search-input {
  flex: 1;
  height: 100%;
  border: 0;
  background-color: transparent;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--wd-font-primary);
  color: var(--wd-text-primary);
  letter-spacing: -0.05em;
  text-indent: 0.8rem;
}

.wd-news__search-input::placeholder { color: rgba(114, 114, 114, 0.6); }
.wd-news__search-input:focus { outline: none; }
.wd-news__search-input::-webkit-search-cancel-button { display: none; }

.wd-news__search-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  margin: 0 5px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--wd-primary);
  color: #fff;
  cursor: pointer;
  transition: opacity var(--wd-duration-default);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wd-news__search-btn svg {
  display: block;
  width: 14px;
  height: 14px;
}

.wd-news__search-btn:hover { opacity: 0.85; }

/* ── List ── */
.wd-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid #000;
}

.wd-news__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 7rem;
  box-sizing: border-box;
  border-bottom: 1px solid var(--wd-border-light);
  background-color: var(--wd-surface-white);
  text-decoration: none;
  transition: all var(--wd-duration-default);
}

.wd-news__item:hover .wd-news__title { color: var(--wd-primary); }
.wd-news__item:hover .wd-news__arrow { color: var(--wd-primary); }

/* ── Info (뱃지 + 제목) ── */
.wd-news__info {
  display: flex;
  align-items: center;
  width: 83%;
}

.wd-news__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 4.8rem;
  height: 2.2rem;
  padding: 0 1rem;
  margin-right: 1.4rem;
  background-color: var(--wd-primary);
  border-radius: 6rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.wd-news__title {
  display: inline-block;
  overflow: hidden;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.25px;
  transition: color var(--wd-duration-default);
}

.wd-news__badge + .wd-news__title {
  width: calc(100% - 6.2rem);
}

/* ── Meta (날짜 + 화살표) ── */
.wd-news__meta {
  display: flex;
  align-items: center;
  text-align: right;
}

.wd-news__date {
  font-family: var(--wd-font-secondary);
  font-size: 1.4rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
  margin-right: 1.2rem;
  white-space: nowrap;
}

.wd-news__arrow {
  display: block;
  color: rgba(0, 0, 0, 0.15);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.065em;
  transition: color var(--wd-duration-default);
}

/* ── Paging ── */
.wd-news__paging {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
}

.wd-news__paging-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.wd-news__paging-num,
.wd-news__paging-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #f5f5f5;
  border-radius: 4px;
  background-color: #f3f3f3;
  font-size: 13px;
  font-weight: 500;
  color: rgba(4, 4, 4, 0.5);
  letter-spacing: -0.065em;
  text-decoration: none;
  transition: all var(--wd-duration-fast);
}

.wd-news__paging-num.is-active {
  border-color: #040404;
  background-color: var(--wd-surface-white);
  font-weight: 600;
  color: #040404;
}

.wd-news__paging-arrow {
  background: transparent;
  border: none;
}

.wd-news__paging-arrow i {
  font-size: 16px;
  margin: 0 -6px;
}

.wd-news__paging-input {
  display: flex;
  align-items: center;
}

.wd-news__paging-cur input {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  border: 1px solid #040404;
  border-radius: 4px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--wd-font-secondary);
  color: #040404;
  letter-spacing: -0.065em;
  background-color: var(--wd-surface-white);
}

.wd-news__paging-slash {
  font-size: 16px;
  color: #000;
  margin: 0 8px;
}

.wd-news__paging-total {
  font-size: 13px;
  color: #000;
  font-weight: 600;
}

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */

@media all and (max-width: 800px) {
  .wd-news__toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wd-news__search { width: 100%; }

  .wd-news__search-inner {
    max-width: none;
    height: 40px;
  }

  .wd-news__search-select { width: 90px; font-size: 13px; }
  .wd-news__search-input { font-size: 13px; }

  .wd-news__search-btn {
    width: 30px;
    height: 30px;
  }

  .wd-news__total { font-size: 15px; }

  .wd-news__item {
    flex-wrap: wrap;
    height: auto;
    min-height: 50px;
    padding: 16px 12px;
    gap: 10px 0;
  }

  .wd-news__info {
    width: 100%;
    order: 1;
  }

  .wd-news__meta {
    width: 100%;
    order: 2;
    justify-content: space-between;
  }

  .wd-news__badge {
    min-width: auto;
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
    margin-right: 12px;
  }

  .wd-news__title { font-size: 15px; }

  .wd-news__date {
    font-size: 13px;
    margin-right: 8px;
    color: rgba(0,0,0,0.4);
  }

  .wd-news__arrow { font-size: 1.4rem; }

  .wd-news__paging-num,
  .wd-news__paging-arrow {
    width: 28px;
    height: 28px;
  }

  .wd-news__paging-cur input {
    width: 28px;
    height: 28px;
    line-height: 28px;
  }

  .wd-news__paging-slash { font-size: 14px; }
}

@media all and (max-width: 480px) {
  .wd-news__paging {
    flex-direction: column;
  }

  .wd-news__paging-nav { margin-bottom: 16px; }
}
