.news-scroll-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ✅ Center child items */
  gap: 20px;
  margin: 0 auto; /* ✅ Center the container itself */
  max-width: 1200px; /* ✅ Optional: controls overall width */
  padding: 20px 10px;
}

.news-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 280px; /* ✅ Prevents uneven stretching */
  box-sizing: border-box;
}

@media (min-width: 481px) {
  .news-item {
    width: 48%;
  }
}

@media (min-width: 768px) {
  .news-item {
    width: 31%;
  }
}

@media (min-width: 1024px) {
  .news-item {
    width: 23%;
  }
}

.news-media {
  font-size: 18px;
  color: #555;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
  min-height: 60px;
}

.read-more {
  background: #0073aa;
  color: white;
  padding: 8px 14px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-block;
  margin-top: auto;
}

.read-more:hover {
  background: #005f8d;
}