.news-page-categories {
  width: 100%;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

.news-scroll-wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 25px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: auto;
  scrollbar-color: #265aa6 #f0f0f0;
  align-items: center;
}

.news-scroll-wrapper.active {
  cursor: grabbing;
}

.news-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.news-scroll-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 0;
}

.news-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #265aa6;
  border-radius: 0;
  border: 1px solid #f0f0f0;
}

.news-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: #1e4885;
}

.news-scroll-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #555555;
  background-color: #f4f4f4;
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
  user-select: none;
  border-radius: 0;
  font-family: "Roboto", sans-serif;
}

.news-scroll-item:hover {
  background-color: #e0e0e0;
  color: #000000;
}

.news-scroll-item._active {
  background-color: #265aa6;
  color: #ffffff;
  pointer-events: none;
  border-color: #265aa6;
}

.news-page__main {
  margin-top: 1.3rem;
}

.news-page-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

.news-page-list > li,
.news-card-wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
}

.news-card-wrapper:hover {
  transform: translateY(-5px);
}

.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fff;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  font-family: "Roboto", sans-serif;
  position: relative;
}

.news-card__image-box {
  position: relative;
  width: 100%;
  padding-top: 100%;
  height: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.news-card__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card__image {
  transform: scale(1.05);
}

.news-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  z-index: 2;
  font-family: "Roboto", sans-serif;
}

.news-card__content {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__title {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #1a1a1a;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Roboto", sans-serif;
}

.news-card:hover .news-card__title {
  color: #265aa6;
}

.news-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Roboto", sans-serif;
}

.news-card__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #265aa6;
  margin-top: auto;
  font-family: "Roboto", sans-serif;
}

.news-card__link svg {
  transition: transform 0.3s;
}

.news-card:hover .news-card__link svg {
  transform: translateX(5px);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #eee;
  transition: all 0.2s;
  font-family: "Roboto", sans-serif;
}

.page-numbers.current,
.page-numbers:hover {
  background: #265aa6;
  color: #fff;
  border-color: #265aa6;
}

@media (max-width: 1100px) {
  .news-page-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  .news-page-categories {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-scroll-wrapper {
    padding-right: 20px;
  }

  .news-scroll-item {
    font-size: 13px;
    padding: 10px 16px;
  }
}

@media (max-width: 768px) {
  .news-page-list {
    grid-template-columns: 1fr;
  }
}
