.news-article { padding-top: 34px; }

.news-cover { margin: 26px 0 0; }
.news-cover img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 27, 68, 0.14); }

.news-article--lateral .news-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; }
.news-article--lateral .news-cover { margin: 0; }

.news-article--destaque .news-hero { display: flex; align-items: flex-end; padding: 40px; overflow: hidden; border-radius: 18px; background-color: #002f6c; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 0 12px 30px rgba(0, 27, 68, 0.18); }
.news-article--destaque .news-hero h1 { max-width: 860px; color: #fff; }

.news-article--texto .news-hero { padding-bottom: 22px; border-bottom: 1px solid #dce6f1; }

.news-body-text { margin-top: 34px; font-size: 1.05rem; }
.news-body-text > :first-child { margin-top: 0; }
.news-body-text h2 { margin: 34px 0 12px; color: #002f6c; font-size: 1.55rem; line-height: 1.3; }
.news-body-text h3 { margin: 28px 0 10px; color: #002f6c; font-size: 1.3rem; }
.news-body-text h4 { margin: 24px 0 8px; color: #002f6c; font-size: 1.1rem; }
.news-body-text p { margin: 0 0 16px; }
.news-body-text ul, .news-body-text ol { margin: 0 0 18px; padding-left: 24px; }
.news-body-text li { margin-bottom: 6px; }
.news-body-text li::marker { color: #0057d9; }
.news-body-text blockquote { margin: 26px 0; padding: 14px 22px; border-left: 4px solid #0057d9; border-radius: 0 12px 12px 0; background: #f2f7ff; color: #244a78; font-size: 1.1rem; font-style: italic; }
.news-body-text hr { margin: 30px 0; border: 0; border-top: 1px solid #dce6f1; }
.news-body-text a { color: #003b8e; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.news-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid #dce6f1; }
.news-tags > strong { color: #002f6c; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.news-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.news-tag-list span { padding: 6px 12px; border: 1px solid #cfe0f5; border-radius: 999px; background: #f2f7ff; color: #003b8e; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; }

@media (max-width: 860px) {
  .news-article--lateral .news-hero { grid-template-columns: 1fr; gap: 22px; }
}

.theme-dark .news-hero h1, .theme-dark .news-body-text h2, .theme-dark .news-body-text h3, .theme-dark .news-body-text h4 { color: #dce9ff; }
.theme-dark .news-body-text { color: #dbe7f7; }
.theme-dark .news-body-text blockquote { background: #1c2c47; color: #dbe7f7; }
.theme-dark .news-tag-list span { border-color: #2b4266; background: #1c2c47; color: #cfe0ff; }
.theme-dark .news-body-text a { color: #8cbcff; }
.theme-dark .news-tags, .theme-dark .news-body-text hr, .theme-dark .news-article--texto .news-hero { border-color: #2b4266; }

.news-article--sobreposto .news-cover { margin: 0; }
.news-article--sobreposto .news-cover img { border-radius: 18px; box-shadow: none; }
.news-columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; margin-top: 34px; }
.news-columns .news-body-text { margin-top: 0; }
.news-aside { display: grid; gap: 26px; padding-left: 24px; border-left: 1px solid #dce6f1; }
.news-aside .news-tags { margin: 0; padding: 0; border: 0; flex-direction: column; align-items: flex-start; }
.news-article--barra .news-main .news-cover { margin-top: 0; }
.news-article--barra .news-main .news-body-text { margin-top: 26px; }

@media (max-width: 900px) {
  .news-columns { grid-template-columns: 1fr; gap: 26px; }
  .news-aside { padding: 22px 0 0; border-left: 0; border-top: 1px solid #dce6f1; }
}
.theme-dark .news-tags > strong { color: #dce9ff; }
.theme-dark .news-aside { border-color: #2b4266; }

.news-hero h1 { margin: 14px 0 12px; color: #002f6c; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.2; font-weight: 400; }

.news-article--barra .news-hero { max-width: none; margin: 0; text-align: left; }
.news-aside .news-tags > strong { display: flex; align-items: center; gap: 8px; }
.news-aside .news-tags > strong::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: #b6df3d; }

.news-cover img, .news-article--lateral .news-cover img, .news-article--sobreposto .news-cover img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.news-article--destaque .news-hero { width: 100%; height: clamp(320px, 42vw, 560px); min-height: 0; } /* largura toda da página (alinha com o texto e a coluna Recentes); altura até 560px */
@media (max-width: 860px) { .news-article--destaque .news-hero { padding: 26px; height: auto; min-height: 320px; } }

.news-hero h1::before { content: ""; display: inline-block; background: #b6df3d; width: 5px; height: 0.8em; margin-right: 14px; border-radius: 3px; vertical-align: -0.02em; }
.news-mini-list[data-news-rotate].is-fading { opacity: 0; transform: translateY(6px); }
.news-rotate-dots { display: flex; gap: 6px; margin-top: 12px; }
.news-rotate-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #cfdcee; cursor: pointer; transition: width .35s cubic-bezier(.4, 0, .2, 1), background .35s ease; }
.news-rotate-dots button:hover { background: #8fb2e0; }
.news-rotate-dots button[aria-current="true"] { width: 22px; background: #0057d9; }
.news-rotate-dots button:focus-visible { outline: 2px solid #0057d9; outline-offset: 2px; }
.theme-dark .news-rotate-dots button { background: #2b4266; }
.theme-dark .news-rotate-dots button[aria-current="true"] { background: #8cbcff; }

.news-mini-list[data-news-rotate] { overflow: hidden; transition: opacity .42s cubic-bezier(.4, 0, .2, 1), transform .42s cubic-bezier(.4, 0, .2, 1), height .45s cubic-bezier(.4, 0, .2, 1); margin: 0 -10px; padding: 0 10px; }

/* Informações abaixo do título (todas as variações): o mesmo visual das páginas do site — ícones, separadores
   e a categoria em destaque (classes .page-meta do portal.css). */
.news-article .news-meta { justify-content: flex-start; margin: 4px 0 0; }
.news-hero h1 + .news-meta { margin-top: 2px; }

/* Imagem ao lado: o topo da imagem alinhado ao topo do título */
.news-article--lateral .news-hero { align-items: start; }
.news-article--lateral .news-hero h1 { margin-top: 0; }
.news-article--lateral .news-meta { padding-bottom: 14px; }

/* Padrão: imagem mais baixa, para título, informações e imagem caberem na tela ao abrir a notícia */
.news-article--padrao .news-cover { margin-top: 22px; }
.news-article--padrao .news-cover img { max-height: min(44vh, 440px); }

/* Destaque (texto sobre a imagem): informações em claro */
.news-article--destaque .news-meta { margin-bottom: 0; padding-bottom: 0; border-color: transparent; color: #dce9ff; }
.news-article--destaque .news-meta .page-meta__icon { stroke: #dce9ff; }
.news-article--destaque .news-meta time, .news-article--destaque .news-meta .page-meta__value { color: #fff; }
.news-article--destaque .news-meta li + li::before { background: rgba(255, 255, 255, 0.35); }
.news-article--destaque .news-meta .page-meta__category { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* Outras notícias — lista lateral (Revista/Padrão, Barra lateral, Tela cheia, Jornal): miniatura arredondada,
   categoria em destaque, data e título; ao passar o mouse o fundo clareia, a miniatura cresce um pouco e a seta
   aparece à direita. */
.news-mini-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.news-mini-list li[hidden] { display: none; }
.news-mini-list a { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-areas: "meta meta" "img title"; align-items: start; column-gap: 12px; row-gap: 8px; margin: 0 -10px; padding: 10px; border-radius: 12px; color: #002f6c; text-decoration: none; transition: background-color .3s ease; }
.news-mini-list a:hover, .news-mini-list a:focus-visible { background: #f2f7ff; }
.news-mini-list a:focus-visible { outline: 3px solid #b6df3d; outline-offset: 1px; }
.news-mini-list img { grid-area: img; width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 27, 68, 0.1); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.news-mini-list a:hover img, .news-mini-list a:focus-visible img { transform: scale(1.05); }
.news-mini-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; grid-area: meta; min-width: 0; }
.news-mini-meta .news-mini-cat { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-mini-meta .news-mini-date { flex: none; }
.news-mini-cat { padding: 1px 8px; border-radius: 999px; background: #eef5fd; color: #003b8e; font-size: 0.7rem; font-weight: 700; }
.news-mini-date { color: #66758c; font-size: 0.72rem; }
.news-mini-title { display: -webkit-box; grid-area: title; padding-right: 30px; overflow: hidden; color: #002f6c; font-size: 0.88rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; transition: color .3s ease; }
.news-mini-list a:hover .news-mini-title, .news-mini-list a:focus-visible .news-mini-title { color: #0057d9; }
.news-mini-arrow { position: absolute; top: calc(50% + 14px); right: 10px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #0057d9; color: #fff; opacity: 0; transform: translate(-6px, -50%); transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.news-mini-arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.news-mini-list a:hover .news-mini-arrow, .news-mini-list a:focus-visible .news-mini-arrow { opacity: 1; transform: translate(0, -50%); }
.theme-dark .news-mini-list a { color: #dce9ff; }
.theme-dark .news-mini-list a:hover, .theme-dark .news-mini-list a:focus-visible { background: #1c2c47; }
.theme-dark .news-mini-cat { background: rgba(140, 188, 255, 0.12); color: #8cbcff; }
.theme-dark .news-mini-date { color: #a9bddb; }
.theme-dark .news-mini-title { color: #dce9ff; }
.theme-dark .news-mini-list a:hover .news-mini-title { color: #8cbcff; }
.theme-dark .news-mini-arrow { background: #8cbcff; color: #0b1a30; }
@media (prefers-reduced-motion: reduce) { .news-mini-list a, .news-mini-list img, .news-mini-title, .news-mini-arrow { transition: none; } }

/* Ao lado: a imagem começa na altura do topo das letras do título (a caixa do título tem um respiro em cima) */
.news-article--lateral .news-cover { margin-top: calc(clamp(1.9rem, 3.2vw, 2.6rem) * 0.3); }
@media (max-width: 860px) { .news-article--lateral .news-cover { margin-top: 0; } }

/* Navegação no fim da notícia: voltar e notícia anterior/próxima */
.news-nav { display: grid; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid #dce6f1; }
.news-nav-item svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.news-nav-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.news-nav-item { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid #dce6f1; border-radius: 14px; background: #fff; color: #002f6c; text-decoration: none; transition: border-color .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.news-nav-item.is-next { text-align: right; }
.news-nav-item small { display: inline-flex; align-items: center; gap: 6px; color: #0057d9; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.news-nav-item.is-next small { justify-content: flex-end; }
.news-nav-item span { display: -webkit-box; overflow: hidden; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.news-nav-item:hover, .news-nav-item:focus-visible { border-color: rgba(0, 87, 217, 0.35); box-shadow: 0 10px 24px rgba(0, 35, 83, 0.1); transform: translateY(-2px); }
@media (max-width: 640px) { .news-nav-pair { grid-template-columns: 1fr; } .news-nav-item.is-next { text-align: left; } .news-nav-item.is-next small { justify-content: flex-start; } }
.theme-dark .news-nav { border-color: #2b4266; }
.theme-dark .news-nav-item { border-color: #2b4266; background: #16233a; color: #dce9ff; }
.theme-dark .news-nav-item small { color: #8cbcff; }

/* Outras notícias — cards no fim da página (Paisagem, Ao lado, Destaque, Só texto) */

@media (prefers-reduced-motion: reduce) { .news-nav-item { transition: none; } }

.news-article--destaque .news-hero h1, .news-article--destaque .news-meta { text-shadow: 0 1px 12px rgba(0, 16, 42, 0.55); }

.news-recent-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: #002f6c; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.news-recent-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #b6df3d; }
.theme-dark .news-recent-title { color: #dce9ff; }
/* Destaque: Outras notícias em linha no fim da página (o visual da coluna Recentes da página Notícias, deitado) */
.news-recent-row { margin-top: 40px; padding: 20px 22px 16px; border: 1px solid #e3eaf3; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(0, 35, 83, 0.06); }
.news-recent-row .news-mini-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
.news-recent-row .news-mini-cat { padding: 2px 8px; background: rgba(120, 190, 32, 0.14); color: #3f7a00; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 1000px) { .news-recent-row .news-mini-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-recent-row .news-mini-list { grid-template-columns: 1fr; } }
.theme-dark .news-recent-row { border-color: #2b4266; background: #16233a; box-shadow: none; }
.theme-dark .news-recent-row .news-mini-cat { background: rgba(182, 223, 61, 0.14); color: #b6df3d; }
/* Em linha: imagem na largura do item e o título embaixo dela (dá para ver as imagens) */
.news-recent-row .news-mini-list a { height: 100%; margin: 0; grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "img" "title"; align-content: start; row-gap: 10px; }
.news-recent-row .news-mini-list img { width: 100%; }
.news-recent-row .news-mini-title { padding-right: 34px; -webkit-line-clamp: 2; }
.news-recent-row .news-mini-arrow { top: auto; bottom: 10px; transform: translate(-4px, 0); }
.news-recent-row .news-mini-list a:hover .news-mini-arrow, .news-recent-row .news-mini-list a:focus-visible .news-mini-arrow { transform: none; }

/* Fim da notícia (todos os layouts menos o Padrão): Voltar/Próxima, linha de Tags e linha de Recentes */
.news-tags-row { margin-top: 28px; }
.news-tags-row + .news-recent-row { margin-top: 20px; }
.news-tags-row .news-recent-title { margin-bottom: 14px; }

/* Padrão: Tags e Recentes na coluna, em cartões no mesmo visual das linhas dos outros layouts */
.news-article--barra .news-aside { gap: 20px; padding-left: 0; border-left: 0; }
.news-side-card { min-width: 0; padding: 18px 18px 14px; border: 1px solid #e3eaf3; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(0, 35, 83, 0.06); }
.news-side-card .news-recent-title { margin-bottom: 14px; }
.news-side-card .news-mini-cat { padding: 2px 8px; background: rgba(120, 190, 32, 0.14); color: #3f7a00; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 900px) { .news-article--barra .news-aside { padding-top: 0; border-top: 0; } }
.theme-dark .news-side-card { border-color: #2b4266; background: #16233a; box-shadow: none; }
.theme-dark .news-side-card .news-mini-cat { background: rgba(182, 223, 61, 0.14); color: #b6df3d; }
