#news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 18px;
  justify-content: start;
}

.news-item {
  display: grid;
  grid-template-rows: 260px 1fr auto;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(123, 104, 238, 0.16);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(78, 58, 145, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(78, 58, 145, 0.14);
}

.news-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #f5f0ff;
}

.news-item h3 {
  padding: 16px 16px 6px;
  color: #333;
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.news-item p {
  padding: 0 16px 16px;
  font-size: 13px;
  color: #7a7288;
  margin: 0;
}

.no-news {
  padding: 24px;
  border: 1px solid rgba(123, 104, 238, 0.16);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(78, 58, 145, 0.08);
}

.no-news img {
  display: block;
  max-width: 180px;
  width: 100%;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  #news-container {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-rows: 240px 1fr auto;
  }
}
