  /* ============================================================
   NOTICIA.CSS — página de artigo singular UJES
   Segue o padrão de design tokens de main.css
   ============================================================ */

/* ── Scroll-reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Barra de progresso de leitura ── */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  z-index: 9999;
  transition: width .1s linear;
}

/* ════════════════════════════════════════════════
   HERO / BANNER  (semelhante ao index.html)
   ════════════════════════════════════════════════ */
.noticia-hero,
.hero-ss {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.noticia-hero-slide {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  position: relative;
}

.noticia-hero-slide::before,
.noticia-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
}

.noticia-hero-slide::before {
  background: var(--bg-alt);
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.noticia-hero-slide::after {
  background: linear-gradient(100deg, rgba(4,16,26,.82), rgba(4,16,26,.42) 48%, rgba(4,16,26,.62));
  z-index: -1;
}

.noticia-hero-content {
  padding-bottom: 4.8rem;
  padding-top: 7.8rem;
  max-width: 780px;
  color: #edf8ff;
  display: grid;
  gap: .85rem;
}

.noticia-hero-content .eyebrow {
  color: color-mix(in srgb, var(--primary) 90%, white);
}

.noticia-hero-content h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.1;
  text-wrap: balance;
}

.noticia-hero-date {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .03em;
  padding: .35rem .85rem;
  background: rgba(255,255,255,.13);
  border-left: 3px solid var(--primary);
  border-radius: 0 4px 4px 0;
  width: fit-content;
}

.noticia-hero-meta {
  margin: 0;
  font-size: .85rem;
  color: rgba(237,248,255,.65);
  font-family: "Space Grotesk", sans-serif;
}

/* ════════════════════════════════════════════════
   LAYOUT PRINCIPAL: 2 colunas
   ════════════════════════════════════════════════ */
.noticia-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  align-items: start;
}

/* ════════════════════════════════════════════════
   COLUNA ESQUERDA — corpo do artigo
   ════════════════════════════════════════════════ */

/* Breadcrumb */
.noticia-breadcrumb { margin-bottom: 1.8rem; }
.noticia-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: .8rem;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
}
.noticia-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.noticia-breadcrumb a:hover { color: var(--primary); }
.noticia-breadcrumb li:last-child { color: var(--text); font-weight: 600; }
.noticia-breadcrumb-sep { color: var(--line); }

/* Parágrafo de abertura em destaque */
.noticia-lead {
  font-size: 1.1rem;
  line-height: 1.78;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1.5rem;
}

.noticia-body p {
  line-height: 1.82;
  color: var(--text);
  margin: 0 0 1.2rem;
}

.noticia-body h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 800;
  margin: 2rem 0 .9rem;
  color: var(--text);
}

/* Bloco de imagem dentro do artigo */
.noticia-img-block {
  margin: 2rem 0;
  border-radius: 0;
  overflow: hidden;
}
.noticia-img-block img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 0;
  transition: transform .45s ease;
}
.noticia-img-block:hover img { transform: scale(1.02); }
.noticia-img-block figcaption {
  font-size: .77rem;
  color: var(--muted);
  font-style: italic;
  padding: .55rem .6rem 0;
  font-family: "Space Grotesk", sans-serif;
}

/* ════════════════════════════════════════════════
   COLUNA DIREITA — sidebar
   ════════════════════════════════════════════════ */
.noticia-sidebar {
  position: sticky;
  top: calc(78px + 1.5rem);
  display: grid;
  gap: 1.1rem;
}

/* ─ Botão Partilhar ─ */
.noticia-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .82rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--primary);
  color: #03212e;
  font-family: "Space Grotesk", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.noticia-share-btn:hover { background: #18c0ff; transform: translateY(-2px); }
.noticia-share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ─ Ícones das redes sociais ─ */
.noticia-social {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.noticia-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform .22s ease, background .22s, color .22s, border-color .22s;
}
.noticia-social-icon svg { width: 20px; height: 20px; }
.noticia-social-icon:hover { transform: translateY(-3px); }
.noticia-social-fb:hover  { background: #1877f2; color: #fff; border-color: #1877f2; }
.noticia-social-yt:hover  { background: #ff0000; color: #fff; border-color: #ff0000; }
.noticia-social-wa:hover  { background: #25d366; color: #fff; border-color: #25d366; }
.noticia-social-ig:hover  {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
  border-color: #d6249f;
}

/* ─ Número de visualizações ─ */
.noticia-views {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  color: var(--muted);
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.noticia-views svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }

/* ─ Caixa de categoria ─ */
.noticia-cat-box {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.noticia-cat-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
}

.noticia-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.noticia-cat-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  font-family: "Space Grotesk", sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: rgba(0,176,240,.78);
  padding: .3rem .72rem;
  border-radius: 999px;
  transition: transform .2s ease, background-color .2s ease;
}

.noticia-cat-value:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: #18c0ff;
}

/* ════════════════════════════════════════════════
   NOTÍCIAS RELACIONADAS
   ════════════════════════════════════════════════ */
.noticia-relacionadas {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.noticia-relacionadas-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
}

.noticia-rel-list {
  display: grid;
  gap: .55rem;
}

/* Card com imagem e texto sobreposto */
.noticia-rel-card {
  position: relative;
  height: 130px;
  overflow: hidden;
  border-radius: 0;
}

.noticia-rel-link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.noticia-rel-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,25,38,.88) 0%, rgba(7,25,38,.15) 58%, transparent 80%);
  pointer-events: none;
  transition: opacity .3s;
}
.noticia-rel-link:hover::after { opacity: .92; }

.noticia-rel-media {
  position: absolute;
  inset: 0;
}
.noticia-rel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.noticia-rel-link:hover .noticia-rel-media img { transform: scale(1.06); }

.noticia-rel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .55rem .75rem;
  z-index: 1;
  display: grid;
  gap: .2rem;
}

.noticia-rel-cat {
  display: inline-block;
  width: fit-content;
  padding: .18em .52em;
  border-radius: 999px;
  background: rgba(0,176,240,.78);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.noticia-rel-overlay h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botão Notícias */
.noticia-all-news-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-size: .92rem;
  font-weight: 700;
  padding: .78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #03212e;
  transition: transform .2s ease, background-color .2s ease;
}
.noticia-all-news-btn:hover { background: #18c0ff; transform: translateY(-2px); }

/* ════════════════════════════════════════════════
   RESPONSIVO
   ════════════════════════════════════════════════ */
@media (max-width: 905px) {
  .noticia-layout {
    grid-template-columns: 1fr;
  }
  .noticia-sidebar {
    position: static;
  }
  .noticia-hero,
  .hero-ss {
    min-height: 64vh;
    height: 64vh;
  }

  .noticia-hero-content {
    padding-top: 7.1rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 560px) {
  .noticia-hero,
  .hero-ss {
    height: 58vh;
    min-height: 300px;
  }
  .noticia-layout {
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
  .noticia-hero-content h1 {
    font-size: clamp(1.35rem, 6vw, 2rem);
  }
}
