/* 웹마당넷 게시판 목록 */

.wm-board-section {
  padding: 52px 0 0;
}

.wm-board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.wm-board-title {
  min-width: 0;
}

.wm-board-kicker {
  display: block;
  margin-bottom: 9px;
  color: #8a94a3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.wm-board-title h1 {
  margin: 0;
  color: #111827;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1.2px;
}

.wm-board-title p {
  margin: 11px 0 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.7;
}

.wm-write-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: #25487b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.wm-write-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.wm-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.wm-board-count {
  color: #6b7280;
  font-size: 14px;
}

.wm-board-count strong {
  color: #25487b;
  font-size: 15px;
}

.wm-board-search {
  display: flex;
  align-items: center;
  height: 42px;
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
}

.wm-board-search select {
  width: 118px;
  height: 40px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  outline: 0;
  padding: 0 12px;
  color: #4b5563;
  font-size: 13px;
  background: #fff;
}

.wm-board-search input {
  width: 230px;
  height: 40px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: #222;
  font-size: 13px;
}

.wm-board-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 78px;
  height: 42px;
  margin: -1px -1px -1px 0;
  border: 0;
  background: #374151;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wm-board-search button:hover {
  background: #111827;
}

.wm-board-list {
  overflow: hidden;
  border-top: 2px solid #25487b;
  border-bottom: 1px solid #dfe4ea;
  background: #fff;
}

.wm-board-list-head,
.wm-board-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 120px 120px 80px;
  align-items: center;
}

.wm-board-list-head {
  min-height: 52px;
  border-bottom: 1px solid #dfe4ea;
  background: #f8fafc;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.wm-board-row {
  min-height: 63px;
  border-bottom: 1px solid #edf0f4;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
  transition: background .18s ease;
}

.wm-board-row:last-child {
  border-bottom: 0;
}

.wm-board-row:hover {
  background: #f9fbff;
}

.wm-board-row.is-notice {
  background: #f7faff;
}

.wm-col-num,
.wm-col-writer,
.wm-col-date,
.wm-col-hit {
  padding: 12px 10px;
}

.wm-col-title {
  min-width: 0;
  padding: 12px 18px;
  text-align: left;
}

.wm-title-link {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #253041;
  text-decoration: none;
}

.wm-title-link:hover {
  color: #1d4ed8;
}

.wm-title-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 500;
}

.wm-comment-count {
  flex-shrink: 0;
  margin-left: 5px;
  color: #2563eb;
  font-size: 12px;
}

.wm-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: 7px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.wm-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25px;
  padding: 0 9px;
  border-radius: 13px;
  background: #25487b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.wm-board-empty {
  padding: 90px 20px;
  color: #9ca3af;
  text-align: center;
}

.wm-board-empty i {
  display: block;
  margin-bottom: 18px;
  font-size: 42px;
}

.wm-board-empty strong {
  display: block;
  margin-bottom: 7px;
  color: #4b5563;
  font-size: 17px;
}

.wm-board-empty span {
  font-size: 13px;
}

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

.wm-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wm-pagination a,
.wm-pagination strong,
.wm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border: 1px solid #dfe4ea;
  border-radius: 7px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  text-decoration: none;
}

.wm-pagination a:hover {
  border-color: #25487b;
  color: #25487b;
}

.wm-pagination .is-current {
  border-color: #25487b;
  background: #25487b;
  color: #fff;
}

.wm-pagination .is-disabled {
  color: #c7ccd4;
  cursor: default;
}

.wm-page-arrow {
  font-size: 12px !important;
  cursor: pointer;
}

.wm-mobile-write {
  display: none;
  margin-top: 22px;
  text-align: right;
}

/* 1024 이하 */

@media (max-width: 1024px) {
  .wm-board-section {
    padding-top: 42px;
  }

  .wm-board-title h1 {
    font-size: 33px;
  }

  .wm-board-list-head,
  .wm-board-row {
    grid-template-columns: 76px minmax(0, 1fr) 105px 110px 70px;
  }

  .wm-col-title {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* 768 이하: 모바일 카드형 목록 */

@media (max-width: 768px) {
  .wm-board-section {
    padding-top: 34px;
  }

  .wm-board-header {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .wm-board-title h1 {
    font-size: 29px;
  }

  .wm-board-title p {
    font-size: 14px;
  }

  .wm-board-header > .wm-write-button {
    display: none;
  }

  .wm-board-toolbar {
    display: block;
  }

  .wm-board-count {
    margin-bottom: 11px;
  }

  .wm-board-search {
    width: 100%;
  }

  .wm-board-search select {
    width: 105px;
    flex-shrink: 0;
  }

  .wm-board-search input {
    min-width: 0;
    width: auto;
    flex: 1;
  }

  .wm-board-search button {
    width: 68px;
    flex-shrink: 0;
  }

  .wm-board-list {
    border-top-width: 2px;
    border-bottom: 0;
    background: transparent;
  }

  .wm-board-list-head {
    display: none;
  }

  .wm-board-row {
    position: relative;
    display: block;
    min-height: 0;
    margin-bottom: 12px;
    padding: 18px 17px 16px;
    border: 1px solid #e1e6ee;
    border-radius: 11px;
    background: #fff;
    text-align: left;
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.035);
  }

  .wm-board-row:last-child {
    border-bottom: 1px solid #e1e6ee;
  }

  .wm-board-row.is-notice {
    border-color: #cfdbef;
    background: #f8fbff;
  }

  .wm-col-num {
    position: absolute;
    top: 14px;
    right: 15px;
    padding: 0;
    color: #a0a7b2;
    font-size: 12px;
  }

  .wm-col-title {
    padding: 0 54px 13px 0;
  }

  .wm-title-link {
    display: block;
  }

  .wm-title-text {
    display: inline;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
  }

  .wm-comment-count,
  .wm-new-badge {
    vertical-align: middle;
  }

  .wm-col-writer,
  .wm-col-date,
  .wm-col-hit {
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: #8b93a0;
    font-size: 12px;
  }

  .wm-col-writer::before,
  .wm-col-date::before,
  .wm-col-hit::before {
    content: attr(data-label);
    margin-right: 5px;
    color: #aeb4bd;
  }

  .wm-col-writer::after,
  .wm-col-date::after {
    content: "";
    width: 1px;
    height: 11px;
    margin: 0 9px;
    background: #d8dde5;
  }

  .wm-notice-badge {
    min-width: 38px;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  .wm-pagination {
    margin-top: 27px;
  }

  .wm-pagination a,
  .wm-pagination strong,
  .wm-pagination span {
    min-width: 36px;
    height: 36px;
  }

  .wm-page-numbers a:nth-child(n+6),
  .wm-page-numbers strong:nth-child(n+6) {
    display: none;
  }

  .wm-mobile-write {
    display: block;
  }
}

/* 600 이하 */

@media (max-width: 600px) {
  .wm-board-kicker {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .wm-board-title h1 {
    font-size: 27px;
  }

  .wm-board-search select {
    width: 92px;
    padding-left: 9px;
    padding-right: 7px;
  }

  .wm-board-search input {
    padding-left: 11px;
    padding-right: 11px;
  }

  .wm-board-search button {
    width: 48px;
  }

  .wm-board-search button span {
    display: none;
  }

  .wm-board-row {
    padding-left: 15px;
    padding-right: 15px;
  }

  .wm-pagination {
    gap: 4px;
  }

  .wm-page-numbers {
    gap: 4px;
  }

  .wm-pagination a,
  .wm-pagination strong,
  .wm-pagination span {
    min-width: 34px;
    height: 34px;
    border-radius: 6px;
  }

  .wm-page-numbers a:nth-child(n+5),
  .wm-page-numbers strong:nth-child(n+5) {
    display: none;
  }
}

/* 480 이하 */

@media (max-width: 480px) {
  .wm-board-section {
    padding-top: 29px;
  }

  .wm-board-title h1 {
    font-size: 25px;
  }

  .wm-board-title p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  .wm-board-row {
    padding-top: 16px;
    padding-bottom: 14px;
  }

  .wm-col-title {
    padding-right: 44px;
  }

  .wm-title-text {
    font-size: 14px;
  }

  .wm-col-writer,
  .wm-col-date,
  .wm-col-hit {
    font-size: 11px;
  }

  .wm-col-writer::after,
  .wm-col-date::after {
    margin-left: 6px;
    margin-right: 6px;
  }

  .wm-pagination {
    justify-content: center;
    gap: 4px;
  }

  .wm-page-numbers {
    flex: none;
    justify-content: center;
  }

  .wm-page-numbers a:nth-child(n+4),
  .wm-page-numbers strong:nth-child(n+4) {
    display: none;
  }

  .wm-pagination a,
  .wm-pagination strong,
  .wm-pagination span {
    min-width: 32px;
    height: 32px;
  }

  .wm-write-button {
    width: 100%;
    height: 45px;
  }
}
