.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card .content { padding: 15px; }
.news-card h3 { margin: 0; font-size: 20px; }
.news-card small { color: #666; }
.news-card p { margin-top: 10px; }
.btn-read {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #0077ff, #00c6ff);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.news-title {
  background: linear-gradient(to right, #8B0000, #FF0000); /* gradasi merah */
  color: #fff;
  text-align: center; /* bikin teks rata tengah */
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 auto; /* center block */
  width: fit-content; /* biar background pas dengan teks */
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
