.news-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  text-align: center;

  background: var(--color-surface);
  border: 1px solid var(--color-surface-dark);
  border-radius: var(--border-radius);

  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 18px rgba(43, 43, 43, 0.16);

  cursor: pointer;
  transform: translateY(-2px);
}

.news-card:hover img {
  transform: scale(1.03);
}

.news-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;

  border-radius: var(--border-radius);

  transition: transform 0.3s ease;
}

.news-card-title {
  margin: 0;
  padding: 10px;

  color: var(--color-text-primary);
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  white-space: nowrap;

  border: 0;
  clip: rect(0 0 0 0);
}

#news-form {
  width: 90%;
  max-width: 1100px;
}

@media (min-width: 1024px) {
  .news-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-card img {
    height: 400px;
  }
}
