@import url("./style.css");

body {
  background: #ffffff;
}

.news-hero {
  --banner-image: url("../image/news_banner.jpg");
  --banner-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12) 36%, rgba(0, 0, 0, 0.38) 100%);
}

.news-body .page-main {
  padding-top: 78px;
  background: #ffffff;
}

.news-board {
  padding: 72px 0 80px;
  background: #ffffff;
}

.news-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.news-filter {
  display: inline-flex;
  gap: 6px;
  background: #f2f2f3;
  padding: 4px;
  border-radius: 999px;
}

.news-filter button,
.news-filter a {
  border: 0;
  background: transparent;
  color: #4b5563;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.news-filter button.active,
.news-filter a.active {
  background: #111111;
  color: #ffffff;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  position: relative;
  min-height: 198px;
  padding: 22px 22px 20px;
  background: #ffffff;
  border: 1px solid #efeff2;
  box-shadow: 0 8px 25px rgba(17, 17, 17, 0.03);
}

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card-link:hover {
  transform: translateY(-4px);
  border-color: #dfe3eb;
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.08);
}

.news-card::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  color: #c1c5cf;
}

.news-card-date {
  color: #a3a8b3;
  margin-bottom: 14px;
}

.news-card-date strong {
  display: block;
  font-size: 34px;
  line-height: 1;
  color: #b2b6bf;
  font-weight: 500;
}

.news-card-date span {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.news-card h3 {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
  color: #22252d;
}

.news-card p {
  color: #8a93a4;
  font-size: 12px;
  line-height: 1.85;
}

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

.pagination button {
  width: 28px;
  height: 28px;
  border: 1px solid #dcdfe6;
  background: #ffffff;
  color: #7a8191;
  cursor: pointer;
}

.pagination button.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-body .page-main {
    padding-top: 72px;
  }

  .news-board {
    padding: 56px 0 64px;
  }

  .news-filter {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    min-height: auto;
    padding: 18px 16px 16px;
  }

  .news-card-date strong {
    font-size: 30px;
  }
}
