.news-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  border: 1px solid var(--color-border);
  padding-bottom: 14px; /* space for date badge */
}

.news-card:hover {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-border) 80%, var(--color-blue));
}

.news-card__body {
  padding: var(--space-lg);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

.news-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
  font-weight: 600;
  transition: color var(--transition);
}

.news-card:hover .news-card__title {
  color: var(--color-blue);
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-soft);
}

/* Article page */
.news-article {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.news-article__header { margin-bottom: var(--space-2xl); }

.news-article__meta {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.news-article__title {
  font-size: var(--text-4xl);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.news-article__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  line-height: 1.5;
}

.news-article__content {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.news-article__content p { margin-bottom: var(--space-lg); }

.news-article__cta {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  margin-top: var(--space-2xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
}

.news-article__cta p {
  margin-bottom: var(--space-lg);
  font-size: var(--text-xs);
  width: 100%;
  flex: 0 0 100%;
}


.block-section {
  margin-bottom: var(--space-3xl);
  position: relative;
}

.block-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.block-section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.page-title { margin-bottom: var(--space-2xl); }

.genre-label {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  color: var(--color-text-soft);
  white-space: nowrap;
}

.genre-label--press_release { background: #E8F5E9; color: #2E7D32; }
.genre-label--journalistic { background: #FFF3E0; color: #E65100; }
.genre-label--qa { background: #E3F2FD; color: #1565C0; }
.genre-label--fact_card { background: #F3E5F5; color: #7B1FA2; }

.block-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-border);
}

.block-empty__text {
  font-size: var(--text-lg);
  color: var(--color-text-soft);
  margin-bottom: var(--space-sm);
}

.block-empty__hint {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
}

.block-empty__hint a { color: var(--color-blue); }

/* ============================================
   Date badge — hangs half out of card bottom
   ============================================ */
.news-card__date-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  color: var(--color-text-soft);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px 14px;
  white-space: nowrap;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

/* ============================================
   Mobile overrides — keep here, not just in layout,
   because layout.css loads before news-card.css
   ============================================ */
@media (max-width: 640px) {
  .news-article__title { font-size: var(--text-2xl); }
  .news-article { padding: var(--space-lg); }
}
