.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 20px;
  gap: 8px;
  margin-bottom: 50px;
}

.page-btn {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.page-btn:hover {
  background: #f5f5f5;
}

.page-btn.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

.error {
  text-align: center;
  padding: 40px;
  color: #dc3545;
}

.news-list {
  margin: 0 auto;
  width: 1200px;
  min-height: 500px;
  list-style: none;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
.news-list .news-item a {
  text-decoration: none;
  color: black;
}
.news-list .news-item a .img {
  width: 100%;
  height: 200px;
}
.news-list .news-item a .img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.news-list .news-item a h2 {
  line-height: 140%;
  padding: 0;
  margin: 10px 0;
  font-weight: normal;
  font-size: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-list .news-item a h3 {
  font-size: 14px;
  color: #999;
  font-weight: normal;
}