.content-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(77, 111, 126, 0.18);
}

.content-pagination a,
.content-pagination span {
  min-width: 2.65rem;
  height: 2.65rem;
  padding: 0 0.8rem;
  border: 1px solid rgba(77, 111, 126, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4d6f7e;
  background: #fff;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.content-pagination a:hover,
.content-pagination a:focus-visible,
.content-pagination .is-current {
  border-color: #4d6f7e;
  background: #4d6f7e;
  color: #fff;
}

.content-pagination .is-current {
  font-weight: 700;
}

.content-pagination .is-disabled {
  color: #a7afb2;
  background: #f5f5f2;
  cursor: default;
}

.news-detail-original-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0.8rem 1.2rem;
  background: #4d6f7e;
  color: #fff;
  text-decoration: none;
}

/* Scoped refinement for the News & Media category switcher. */
.news-list-section .news-category-tabs {
  width: min(100%, 780px);
  margin: 0 auto clamp(34px, 5vw, 56px);
  padding: 6px;
  border: 1px solid rgba(77, 111, 126, 0.16);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: rgba(128, 159, 159, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.news-list-section .news-category-tab {
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4d6f7e;
  background: transparent;
  box-shadow: none;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  letter-spacing: 0.02em;
  transform: none;
}

.news-list-section .news-category-tab:hover,
.news-list-section .news-category-tab:focus-visible {
  border-color: transparent;
  color: #365866;
  background: rgba(77, 111, 126, 0.09);
  transform: none;
}

.news-list-section .news-category-tab.is-active {
  color: #fff;
  background: #4d6f7e;
  box-shadow: 0 7px 16px rgba(77, 111, 126, 0.2);
}

/* News pagination sits outside the white list panel on the page background. */
.news-list-section > .content-pagination {
  width: fit-content;
  margin: 28px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.news-list-section > .content-pagination a,
.news-list-section > .content-pagination span {
  border-color: rgba(77, 111, 126, 0.3);
  background: transparent;
}

.news-list-section > .content-pagination a:hover,
.news-list-section > .content-pagination a:focus-visible,
.news-list-section > .content-pagination .is-current {
  border-color: #4d6f7e;
  color: #fff;
  background: #4d6f7e;
}

.news-list-section > .content-pagination .is-disabled {
  color: #98a4a8;
  background: transparent;
}

@media (max-width: 640px) {
  .content-pagination {
    gap: 0.4rem;
  }

  .content-pagination a,
  .content-pagination span {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 0.6rem;
  }

  .news-list-section .news-category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
  }

  .news-list-section .news-category-tab {
    width: auto;
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.88rem;
  }
}
