.news-section {
  background-color: #151530;
  padding: 4rem 2rem;
  text-align: center;
  overflow-x: hidden;
}

.news-carousel {
  display: flex;
  justify-content: center; /* Центрируем по горизонтали */
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  margin: 0 auto;
  max-width: 100%;
  touch-action: pan-x;
}

.news-carousel::-webkit-scrollbar {
  display: none;
}

.news-card {
  min-width: 280px;
  max-width: 320px;
  background-color: #1f1f3a;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.news-card:hover {
  transform: scale(1.03);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-card h4 {
  font-size: 1.1rem;
  padding: 1rem;
  margin: 0;
  color: #e0d9ff;
  line-height: 1.4;
}

.news-image-centered {
  background-color: #eae6f8;
  height: 180px; /* такой же как .news-card img */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.news-image-centered img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

