.news-card {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column-reverse;
  padding: 20px;
  overflow: auto;
  min-height: 0;
}

.news-card .panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Card ---------- */
.news-card .card {
  position: relative;
  width: 300px;
  background: #ffffff;
  border: 1px solid #e6e9ee;
  border-radius: 14px;
  box-shadow:
    0 18px 20px rgba(15, 23, 42, 0.1),
    0 2px 4px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* Hero image (placeholder) */
.news-card .hero {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.news-card .hero img {
  width: 100%;
  height: 100%;
}

.news-card .hero.green,
.news-card .badge.green {
  background: linear-gradient(135deg, #43b38d, #2e9070);
}

.news-card .hero.blue,
.news-card .badge.blue {
  background: linear-gradient(135deg, #539ad4, #3278b8);
}

.news-card .hero.purple,
.news-card .badge.purple {
  background: linear-gradient(135deg, #8267d6, #5a3ebf);
}

.news-card .hero.yellow,
.news-card .badge.yellow {
  background: linear-gradient(135deg, #f39d35, #d87c1f);
}

.news-card .hero.red,
.news-card .badge.red {
  background: linear-gradient(135deg, #e26c7a, #c03950);
}

/* Card body */
.news-card .card-body {
  padding: 15px;
}

.news-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
}

.news-card .card-title {
  margin: 14px 0 8px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1f2937;
}

.news-card .card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5b6473;
  opacity: 0.8;
}

.news-card .actions {
  margin-top: 18px;
}

.news-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 11px;
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.9;
  text-decoration: none;
}

.news-card .cta:hover,
.news-card .cta:focus,
.news-card .cta:active,
.news-card .cta:visited {
  color: white;
  opacity: 1;
}

.news-card .cta.green {
  background-color: #43b38d;
}

.news-card .cta.blue {
  background-color: #4f9cde;
}

.news-card .cta.purple {
  background-color: #8267d6;
}

.news-card .cta.yellow {
  background-color: #f39d35;
}

.news-card .cta.red {
  background-color: #e26c7a;
}
