.news-list {
  margin-top: 116px;
  margin-bottom: 180px;
}

.news-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20.2px 58px;
  border-bottom: 1px solid #c7c7c7;
  transition: all 0.3s ease;
}

.news-item:first-child {
  border-top: 1px solid #c7c7c7;
}

.news-date {
  font-size: 18px;
  color: #004097;
  font-weight: 700;
  min-width: 130px;
}

.news-category {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 21px;
  background-color: #e5f2ff;
  color: #004097;
  padding: 6px 18px;
  font-size: 18px;
  min-width: 192px;
  max-width: 192px;
  margin-right: 40px;
  font-weight: 700;
  flex-shrink: 0;
}

.news-category span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.news-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.9;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.pagination {
  margin-top: 52px;
  text-align: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.page-numbers a,
.page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: #004097;
  font-family: "Roboto Slab", sans-serif;
  font-size: 30px;
  font-weight: 700;
  width: 48px;
  height: 48px;
  text-decoration: none;
  border-radius: 50%;
}

.page-numbers .current {
  background-color: #004097;
  color: white;
}

.page-numbers .disabled {
  color: #ccc;
  cursor: not-allowed;
}

.prev.page-number,
.next.page-number {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev.page-number::before {
  content: "";
  width: 15px;
  height: 15px;
  border-top: 3px solid #004097;
  border-left: 3px solid #004097;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.next.page-number::before {
  content: "";
  width: 15px;
  height: 15px;
  border-top: 3px solid #004097;
  border-right: 3px solid #004097;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.prev.page-number.disabled::before,
.next.page-number.disabled::before {
  border-color: #ccc;
}

@media (max-width: 1148px) {
  .page-content > .container {
    max-width: 96%;
  }
  .news-item {
    padding: 20.2px 1%;
  }
}

@media (max-width: 767px) {
  .page-content > .container {
    max-width: 86.6%;
  }

  .news-list {
    margin-top: 7.5vw;
    margin-bottom: 13.6vw;
  }

  .news-item {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 5.4vw 0;
    border-width: 0.3vw;
  }

  .news-item:first-child {
    border-top: unset;
  }

  .news-date {
    font-size: 4.2vw;
    min-width: 25vw;
  }

  .news-category {
    border-radius: 5.6vw;
    padding: 1vw 3vw;
    font-size: 3.4vw;
    min-width: 22.4vw;
    max-width: 60vw;
    margin-right: 0;
  }

  .news-title {
    font-size: 4.2vw;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    flex: unset;
    margin-top: 1vw;
    line-height: 1.7;
  }

  .pagination {
    margin-top: 11vw;
  }

  .nav-links {
    gap: 3vw;
    justify-content: space-between;
  }

  .page-numbers {
    gap: 3vw;
    width: 100%;
    justify-content: space-evenly;
  }

  .page-numbers a,
  .page-numbers span {
    padding: 1.6vw 2.4vw;
    font-size: 5vw;
    width: 8.2vw;
    height: 8.2vw;
  }

  .prev.page-number,
  .next.page-number {
    width: 8.2vw;
    height: 8.2vw;
  }

  .prev.page-number::before {
    width: 3vw;
    height: 3vw;
    border-top: 0.7vw solid #004097;
    border-left: 0.7vw solid #004097;
  }

  .next.page-number::before {
    width: 3vw;
    height: 3vw;
    border-top: 0.7vw solid #004097;
    border-right: 0.7vw solid #004097;
  }
}

@media (hover: hover) {
  .news-item:hover {
    opacity: 0.6;
  }
}
