/* ---- Public news page (tile grid + article view) ---- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--tmw-surface);
  border: 1px solid var(--tmw-border);
  border-radius: 0.9rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover,
.news-card:focus {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px -25px rgba(32, 26, 20, 0.35);
}

.news-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--tmw-surface-alt);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tmw-text-muted);
}

.news-card-ai-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
}

.news-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.news-card-date {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--tmw-orange-active);
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--tmw-text);
  line-height: 1.3;
}

.news-card-summary {
  font-size: 0.9rem;
  color: var(--tmw-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.pagination .page-link {
  color: var(--tmw-text);
}

.pagination .page-item.active .page-link {
  background-color: var(--tmw-orange);
  border-color: var(--tmw-orange);
  color: #201a14;
}

.pagination .page-item.disabled .page-link {
  color: var(--tmw-text-muted);
}

/* Article view */
.news-article {
  max-width: 760px;
}

.news-back-link {
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--tmw-orange-active);
  text-decoration: none;
}

.news-back-link:hover {
  text-decoration: underline;
}

.news-article-card {
  background: var(--tmw-surface);
  border: 1px solid var(--tmw-border);
  border-radius: 0.9rem;
  box-shadow: 0 24px 60px -30px rgba(32, 26, 20, 0.25);
  padding: 2rem 2.25rem 2.25rem;
}

.news-article-figure {
  margin: 0 0 1.5rem;
}

.news-article-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.7rem;
  margin-bottom: 0;
}

.news-article-caption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--tmw-text-muted);
}

.news-article h1 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0.4rem 0 1.5rem;
}

.news-article-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--tmw-text);
}

.news-article-body p {
  margin-bottom: 1.1rem;
}
