.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.news-card {
  border-left: 6px solid transparent;
  background: #fefefe;
  padding: 1rem 1.5rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  flex: 1 1 320px;
  min-width: 280px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
  transition: box-shadow 0.3s ease;
}

.news-card:hover {
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

/* Pastel color borders and subtle background highlights */
.news-card.talk {
  border-color: #a3cef1;        /* soft sky blue */
  background-color: #eaf4fc;    /* very light blue */
}

.news-card.publication {
  border-color: #f7cac9;        /* soft coral */
  background-color: #fdefef;    /* very light coral */
}

.news-card.event {
  border-color: #92d7c2;        /* soft mint green */
  background-color: #e6f7f2;    /* very light mint */
}

.news-card.other {
  border-color: #d3c0f9;        /* soft lavender */
  background-color: #f4f1ff;    /* very light lavender */
}

.news-date {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.news-headline a {
  color: #3178c6;
  text-decoration: none;
}

.news-headline a:hover {
  text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 400px) {
  .news-card {
    flex-basis: 100%;
    min-width: auto;
  }
}
