/* News Card Component */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.news-card {
  background-color: var(--md-sys-color-background);
  border-radius: var(--md-sys-shape-corner-small);
  padding: 1.5rem;
  box-shadow: var(--md-sys-elevation-level1);
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid var(--md-sys-color-primary);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--md-sys-elevation-level2);
}

.news-date {
  font-size: var(--md-sys-typescale-body-small-font-size);
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 0.75rem;
}

.news-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--md-sys-shape-corner-full);
  font-size: var(--md-sys-typescale-label-small-font-size);
  font-weight: var(--md-sys-typescale-label-small-font-weight);
  margin-bottom: 0.75rem;
}

.news-badge.new {
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
}

.news-badge.important {
  background-color: var(--md-sys-color-error);
  color: var(--md-sys-color-on-error);
}

.news-title {
  font-family: var(--md-sys-typescale-title-medium-font-family);
  font-size: var(--md-sys-typescale-title-medium-font-size);
  font-weight: var(--md-sys-typescale-title-medium-font-weight);
  color: var(--md-sys-color-on-background);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-excerpt {
  font-size: var(--md-sys-typescale-body-small-font-size);
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
