.p-news {
  padding-top: 73px;
}

/* ========== Content wrapper ========== */
.p-news__content {
  padding: 24px 64px 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ========== Card ========== */
.p-news__card {
  width: 100%;
  max-width: 1000px;
  background: #fcfcfc;
  border-radius: 20px;
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ========== Category filter ========== */
.p-news__filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.p-news__filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid #ebebeb;
  border-radius: 120px;
  text-decoration: none;
  color: var(--color-gray);
  transition: border-color 0.15s, color 0.15s;
}

.p-news__filter-tag.is-active {
  color: var(--color-text);
}

.p-news__tag-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ebebeb;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.p-news__filter-tag.is-active .p-news__tag-dot {
  background: var(--color-brand-blue);
}

/* ========== News list ========== */
.p-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.p-news__item {
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 32px;
  padding-right: 32px;
}

.p-news__link {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: var(--color-text);
}

.p-news__link:hover .p-news__title {
  text-decoration: underline;
}

.p-news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-news__date {
  display: block;
  width: 76px;
  flex-shrink: 0;
  color: var(--color-gray);
}

.p-news__tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  color: var(--color-text);
  white-space: nowrap;
}

.p-news__tag-pill-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-brand-blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.p-news__title {
  color: var(--color-text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-news__empty {
  color: var(--color-gray);
  margin: 0;
}

/* ========== Pagination ========== */
.p-news__pagination {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.p-news__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #ccc;
  text-decoration: none;
}

.p-news__pagination .page-numbers.current {
  color: var(--color-brand-blue);
  border-bottom: 2px solid var(--color-brand-blue);
}

.p-news__pagination .page-numbers.prev {
  display: none;
}

.p-news__pagination .page-numbers.next {
  width: 40px;
  height: 40px;
}

/* ========== Single post ========== */
.p-news-single__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 56px;
}

.p-news-single__title {
  color: var(--color-text);
  margin: 0;
}

.p-news-single__body {
  padding-bottom: 56px;
  color: var(--color-text);
  line-height: 1.75;
}

.p-news-single__body h2 {
  padding: 24px 0 32px;
}

.p-news-single__body h3 {
  padding: 8px 0 32px;
}

.p-news-single__body p {
  margin: 0 0 28px;
  line-height: 1.75;
}

.p-news-single__body a {
  color: var(--color-brand-blue);
  text-decoration: underline;
}

.p-news-single__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 56px;
}

.p-news-single__foot {
  padding-top: 16px;
  border-top: 1px solid #ebebeb;
  display: flex;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.p-news-single__return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
}

.p-news-single__return:hover {
  opacity: 0.7;
}

/* ========== SP ========== */
@media (max-width: 768px) {
  .p-news {
    padding-top: 56px;
  }

  .p-news__content {
    padding: 16px 20px 64px;
    gap: 32px;
  }

  .p-news__card {
    padding: 32px 24px;
    border-radius: 12px;
  }

  .p-news__title {
    white-space: normal;
  }

  .p-news__item {
    padding-right: 0;
  }

  .p-news-single__head {
    padding-bottom: 24px;
    margin-bottom: 32px;
  }

  .p-news-single__foot {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
