/* ==========================================================================
   Área de Notícias — estilos específicos
   Reutiliza os tokens e componentes de style-v2.css
   ========================================================================== */

/* ---------- Hero (listagem e artigo) ---------- */
.news-hero {
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(169, 197, 32, .12), transparent 60%),
    linear-gradient(150deg, var(--green-950), var(--green-800));
  color: #fff;
  padding: calc(var(--header-h) + 48px) 0 64px;
}

.news-hero__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 1.1rem 0 1rem;
  max-width: 900px;
}
.news-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lime-300), var(--lime-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-hero__sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .82);
  max-width: 680px;
}

/* ---------- Meta (categoria, data, leitura) ---------- */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.1rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
}
.news-meta time,
.news-meta span { color: rgba(255, 255, 255, .72); }
.news-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: .3rem; }

/* ---------- Listagem: destaque ---------- */
.news-featured {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-featured:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(169, 197, 32, .5);
}

.news-featured__media {
  position: relative;
  min-height: 380px;
}
.news-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}

.news-featured__body {
  padding: 2.4rem 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
}

.news-featured__meta,
.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  color: var(--ink-mute);
}

.news-featured__body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  color: var(--green-950);
  line-height: 1.25;
}
.news-featured__body h2 a:hover { color: var(--green-700); }

.news-featured__excerpt {
  font-size: .97rem;
  color: var(--ink-soft);
}

.news-more {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .93rem;
  color: var(--green-700);
  margin-top: auto;
  padding-top: .4rem;
}
.news-more:hover { color: var(--green-900); }

/* ---------- Listagem: cards futuros ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-top: 1.6rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(169, 197, 32, .5);
}
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card__body h3 { font-size: 1.08rem; font-weight: 800; color: var(--green-950); line-height: 1.3; }
.news-card__body p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Artigo ---------- */
.article {
  padding: 3.2rem 0 4rem;
}

.article__inner {
  max-width: 780px;
  margin-inline: auto;
}

.article__body { font-size: 1.04rem; color: var(--ink-soft); }
.article__body > * + * { margin-top: 1.3rem; }

.article__lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 500;
}

.article__body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-950);
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.article__body strong { color: var(--green-900); }
.article__body a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article__body a:hover { color: var(--green-900); }

.article__body ul {
  display: grid;
  gap: .7rem;
  padding-left: 0;
}
.article__body ul li {
  position: relative;
  padding-left: 1.9rem;
  font-size: .98rem;
}
.article__body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .32rem;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(169, 197, 32, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6a3c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Citação */
.article__quote {
  position: relative;
  background: linear-gradient(165deg, var(--green-900), var(--green-950));
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem 1.9rem;
  margin: 2.2rem 0;
}
.article__quote::before {
  content: "\201C";
  position: absolute;
  top: .2rem; left: 1.4rem;
  font-family: var(--font-head);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--lime-400);
  opacity: .55;
}
.article__quote p {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.55;
  color: #fff;
  margin: 0;
}
.article__quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: .86rem;
  color: var(--lime-300);
  font-weight: 600;
}

/* Destaque / caixa de contato */
.article__highlight {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: linear-gradient(120deg, rgba(169, 197, 32, .12), rgba(169, 197, 32, .04));
  border: 1px solid rgba(143, 175, 27, .35);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  font-size: .96rem;
}
.article__highlight svg { width: 26px; height: 26px; color: var(--green-700); flex-shrink: 0; margin-top: .15rem; }

/* Figuras e galeria */
.article__figure {
  margin: 2.2rem 0;
}
.article__figure img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.article__figure figcaption {
  margin-top: .7rem;
  font-size: .84rem;
  color: var(--ink-mute);
  text-align: center;
}

.article__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 2.2rem 0;
  align-items: start;
}
.article__gallery figure { margin: 0; }
.article__gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article__gallery figcaption {
  margin-top: .6rem;
  font-size: .82rem;
  color: var(--ink-mute);
  text-align: center;
}

/* Tags */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.article__tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .32rem .9rem;
}

/* Nota institucional */
.article__note {
  margin-top: 2rem;
  font-size: .89rem;
  font-style: italic;
  color: var(--ink-mute);
  border-left: 4px solid var(--lime-400);
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
}

/* Voltar */
.article__back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .93rem;
  color: var(--green-700);
  margin-top: 2.2rem;
}
.article__back:hover { color: var(--green-900); }
.article__back svg { width: 18px; height: 18px; }

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

@media (max-width: 800px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured__media { min-height: 280px; }
  .news-featured__media img { object-position: 50% 20%; }
  .news-featured__body { padding: 1.8rem 1.6rem; }
  .news-grid { grid-template-columns: 1fr; }
  .article__gallery { grid-template-columns: 1fr; }
  .article__quote { padding: 1.9rem 1.6rem 1.6rem; }
}
