.blog #news-list > [hidden],
.blog .news-pagination[hidden] {
  display: none !important;
}

.blog .news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 44px;
}

.blog .news-pagination__summary {
  margin: 0;
  color: #6d777b;
  font-size: 14px;
}

.blog .news-pagination__pages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog .news-pagination__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #e2e6e7;
  border-radius: 999px;
  background: #fff;
  color: #343b40;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.blog .news-pagination__button:hover,
.blog .news-pagination__button:focus-visible {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.blog .news-pagination__button:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 3px;
}

.blog .news-pagination__button[aria-current="page"] {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
}

.blog .news-pagination__button[aria-disabled="true"] {
  border-color: #edf0f0;
  background: #f7f8f8;
  color: #a5adb0;
}

@media (max-width: 575px) {
  .blog .news-pagination {
    flex-direction: column;
    margin-top: 36px;
  }

  .blog .news-pagination__button {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog .news-pagination__button {
    transition: none;
  }
}
