/*
 * News & Events styling.
 *
 * The Django site's old news templates used a separate, unmigrated set
 * of classes that didn't match the rest of the design system. This file
 * instead reuses the exact same CSS variables defined in main.css
 * (--clr-forest, --clr-gold, --font-display, --font-body, etc.) so News
 * posts look like a native part of the site, not a bolted-on section.
 */

.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.news-filter-bar a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--clr-cream-dk);
  color: var(--clr-forest);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.news-filter-bar a:hover,
.news-filter-bar a.is-active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: var(--clr-forest);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.news-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--clr-white);
  border: 1px solid var(--clr-cream-dk);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 58, 42, 0.12);
}
.news-card-img {
  aspect-ratio: 16 / 10;
  background: var(--clr-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}
.news-cat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-gold);
  margin-bottom: 0.6rem;
}
.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clr-forest);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.news-card-body p {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--clr-muted);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.news-card-meta {
  font-size: 0.78rem;
  color: var(--clr-muted);
  margin-bottom: 0.6rem;
}
.news-card-meta span + span { margin-left: 0.5rem; }
.news-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-terra);
}

.news-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--clr-muted);
}
.news-empty h3 {
  font-family: var(--font-display);
  color: var(--clr-forest);
  margin-bottom: 0.5rem;
}

/* -- Single post -- */
.news-single-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}
.news-single-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.news-single-image img { width: 100%; height: auto; display: block; }
.news-single-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--clr-ink);
  max-width: 720px;
}
.news-single-body p { margin-bottom: 1.2rem; }

.news-related {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--clr-cream-dk);
}
