/* 목록 */
.news-board {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 30px 200px;
}
.news-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 50px;
}
.news-filter[hidden] {
  display: none;
}
.news-filter-button {
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a8491;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
}
.news-filter-button.is-active {
  border-bottom-color: #191621;
  color: #191621;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 60px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-card-link {
  display: block;
}
.news-card-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 14px 30px rgba(70, 40, 100, .12);
}
.news-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.news-card-link:hover .news-card-image img {
  transform: scale(1.04);
}
.news-card-image.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.news-card-image.is-empty span {
  color: rgba(255, 255, 255, .85);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}
.news-card-info {
  padding: 22px 4px 0;
}
.news-category {
  display: block;
  margin-bottom: 10px;
  color: #8b3f9a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.news-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-date {
  color: #8a8491;
  font-size: 13px;
}
.news-empty {
  margin: 40px 0;
  color: #8a8491;
  font-size: 16px;
  text-align: center;
}
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 90px;
}
.news-page-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6f6977;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.news-page-button:hover {
  color: #191621;
}
.news-page-button.is-active {
  color: #fff;
  background: #191621;
}

/* 상세 */
.news-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 170px 30px 200px;
}
.news-back {
  display: inline-block;
  margin-bottom: 50px;
  color: #6f6977;
  font-size: 14px;
  font-weight: 700;
}
.news-back::before {
  content: "← ";
}
.news-back:hover {
  color: #191621;
}
.news-article-header {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(25, 22, 33, .15);
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.news-meta .news-category {
  margin: 0;
}
.news-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: -.04em;
}
.news-gallery {
  display: grid;
  gap: 20px;
  margin-top: 50px;
}
.news-gallery:empty {
  display: none;
}
.news-gallery img {
  width: 100%;
  display: block;
  border-radius: 20px;
}
.news-body {
  margin-top: 50px;
  color: #3f3a46;
  font-size: 17px;
  line-height: 1.85;
}
.news-body p {
  margin: 0 0 1.4em;
  white-space: pre-line;
}
.news-adjacent {
  display: grid;
  margin-top: 70px;
  border-top: 1px solid rgba(25, 22, 33, .15);
}
.news-adjacent:empty {
  display: none;
}
.news-adjacent-link {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(25, 22, 33, .15);
}
.news-adjacent-link span {
  color: #8a8491;
  font-size: 13px;
  font-weight: 700;
}
.news-adjacent-link strong {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.news-adjacent-link:hover strong {
  color: #8b3f9a;
}
.news-view-page .news-list-button {
  display: flex;
  margin: 60px auto 0;
}

@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .news-board {
    padding: 0 20px 120px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .news-card-image {
    border-radius: 16px;
  }
  .news-card-title {
    font-size: 17px;
  }
  .news-article {
    padding: 110px 20px 120px;
  }
  .news-back {
    margin-bottom: 34px;
  }
  .news-body {
    font-size: 15px;
  }
  .news-adjacent-link {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}


/* 목록 간소화 */

.news-filter {
  gap: 8px;
}
.news-filter-button {
  padding: 10px 22px;
  border: 1px solid rgba(25, 22, 33, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  color: #6f6977;
  font-size: 13px;
  letter-spacing: .04em;
}
.news-filter-button.is-active {
  border-color: #191621;
  color: #fff;
  background: #191621;
}
.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 24px;
}
.news-card-image {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(70, 40, 100, .1);
}
.news-card-info {
  padding: 16px 2px 0;
}
.news-card-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 1000px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {

  .news-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 0 -20px 30px;
    padding: 0 20px;
    scrollbar-width: none;
  }
  .news-filter::-webkit-scrollbar {
    display: none;
  }
  .news-filter-button {
    flex: 0 0 auto;
    padding: 9px 18px;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 10px;
  }
  .news-card-image {
    border-radius: 10px;
    box-shadow: none;
  }
  .news-card-info {
    padding-top: 10px;
  }
  .news-card-title {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.45;
  }
  .news-card .news-category {
    margin-bottom: 6px;
    font-size: 11px;
  }
  .news-card .news-date {
    font-size: 12px;
  }
}


/* 상세 간격 */
.news-article {
  padding-top: 130px;
}
.news-back {
  margin-bottom: 32px;
}
.news-meta {
  margin-bottom: 12px;
}
.news-article-header {
  padding-bottom: 24px;
}
.news-gallery {
  margin-top: 32px;
}
.news-body {
  margin-top: 36px;
}
@media (max-width: 700px) {
  .news-article {
    padding-top: 96px;
  }
  .news-back {
    margin-bottom: 22px;
  }
  .news-meta {
    margin-bottom: 8px;
  }
  .news-article-header {
    padding-bottom: 18px;
  }
  .news-gallery {
    gap: 12px;
    margin-top: 22px;
  }
  .news-gallery img {
    border-radius: 14px;
  }
  .news-body {
    margin-top: 26px;
  }
}
