/* ==========================================================
   Notícias — complemento a style.css (usa as mesmas variáveis)
   ========================================================== */

/* ---- Lista de notícias (noticias.html) ---- */
.news-list {
  display: grid;
  gap: 1.4rem;
  margin: 1.2rem 0 3rem;
}
.news-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.news-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.news-card-media {
  background: var(--line);
  min-height: 100%;
}
.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.news-card-media--stat {
  background: var(--navy-deep);
  border-right: 4px solid var(--gold);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem;
  gap: .4rem;
}
.news-card-media--stat strong {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--gold-soft);
}
.news-card-media--stat small {
  font-size: .45em;
  color: rgba(255,255,255,.7);
}
.news-card-media--stat span {
  font-size: var(--step--1);
  color: rgba(255,255,255,.75);
}
.news-card-media--logo {
  background: var(--paper-raised);
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem;
}
.news-card-media--logo img {
  height: auto;
  object-fit: contain;
}
.news-card-body {
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.news-date {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}
.news-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.25;
  color: var(--navy-deep);
  margin: 0;
}
.news-card p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: 0;
}
.news-more {
  margin-top: auto;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--navy);
}

/* ---- Página de notícia ---- */
.course-hero h1.news-title {
  font-size: var(--step-3);
  max-width: 32ch;
}
.news-article { margin-inline: auto; }
.news-article p { margin-bottom: 1.1em; }
.news-figure {
  margin: 0 0 1.8rem;
}
.news-figure img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.news-figure figcaption {
  margin-top: .6rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
  border-left: 2px solid var(--gold);
  padding-left: .7rem;
}
.news-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 2rem;
}
.news-stats div {
  background: var(--paper-raised);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.news-stats strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--navy-deep);
}
.news-stats div:nth-child(3) strong,
.news-stats div:nth-child(4) strong { color: var(--gold); }
.news-stats span {
  font-size: .8rem;
  color: var(--ink-soft);
}
.news-names {
  columns: 2;
  column-gap: 2rem;
}
.news-closing {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--navy-deep);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 1.8rem;
}
.news-back {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.4rem;
}

/* ---- Responsivo ---- */
@media (max-width: 760px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card-media { aspect-ratio: 16 / 9; }
  .news-card-media--stat { aspect-ratio: auto; border-right: 0; border-bottom: 4px solid var(--gold); }
  .news-stats { grid-template-columns: repeat(2, 1fr); }
  .news-names { columns: 1; }
}
