/* Página Notícias: banner das mais recentes no topo e, abaixo, título, categorias, cartões e as recentes com a data (visual da Home) */
/* Banner do topo: as notícias mais recentes passando na largura toda (visual do layout Tela cheia) */
.news-banner { position: relative; display: grid; min-height: min(72vh, 620px); overflow: hidden; color: #fff; background: #002b69; -webkit-mask-image: none; mask-image: none; }
.news-banner-slide { position: relative; display: flex; grid-area: 1 / 1; min-height: inherit; opacity: 0; visibility: hidden; transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .9s; }
.news-banner-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.news-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7.5s ease-out; }
.news-banner-slide.is-active .news-banner-image { transform: scale(1); }
.news-banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 27, 68, 0.6) 0%, rgba(0, 27, 68, 0.25) 28%, rgba(0, 27, 68, 0.78) 60%, rgba(0, 20, 52, 0.95) 100%); }
.news-banner-inner { position: relative; display: flex; width: 100%; align-self: stretch; margin-top: 0; margin-bottom: 0; flex-direction: column; padding-top: 30px; padding-bottom: 84px; justify-content: flex-end; }
.news-banner .site-breadcrumb { margin: 0; color: #dce9ff; }
.news-banner .site-breadcrumb a { color: #dce9ff; }
.news-banner .site-breadcrumb [aria-current] { color: #8cbcff; }
.news-banner-title h2 { max-width: 900px; margin: 0 0 18px; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.news-banner-title h2 a { color: #fff; text-decoration: none; }
.news-banner-title h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 3px; background: #b6df3d; }
.news-banner-title h2, .news-banner-meta, .news-banner .site-breadcrumb { text-shadow: 0 1px 12px rgba(0, 16, 42, 0.55); }
.news-banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 22px; color: #dce9ff; font-size: 0.9rem; }
.news-banner-cat { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 700; backdrop-filter: blur(4px); }
.news-banner-info { display: inline-flex; align-items: center; gap: 6px; }
.news-banner-info svg, .news-banner-button svg, .news-banner-arrows svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.news-banner-button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: #b6df3d; color: #002b69; font-weight: 700; text-decoration: none; transition: background .3s ease; }
.news-banner-button svg { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.news-banner-button:hover { background: #c8ea5a; }
.news-banner-button:hover svg { transform: translateX(3px); }
.news-banner-controls { position: absolute; right: 0; bottom: 30px; left: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.news-banner-dots, .news-banner-arrows { display: flex; align-items: center; gap: 8px; pointer-events: auto; }
.news-banner-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: width .35s ease, background .35s ease; }
.news-banner-dots button[aria-current="true"] { width: 28px; background: #b6df3d; }
.news-banner-arrows button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; background: rgba(0, 27, 68, 0.35); color: #fff; cursor: pointer; backdrop-filter: blur(4px); transition: background .3s ease, border-color .3s ease; }
.news-banner-arrows button:hover { border-color: #b6df3d; background: rgba(0, 27, 68, 0.6); }
.news-banner a:focus-visible, .news-banner button:focus-visible { outline: 3px solid #b6df3d; outline-offset: 3px; }
@media (max-width: 760px) { .news-banner { min-height: 480px; } .news-banner-inner { padding-bottom: 76px; } .news-banner-arrows { display: none; } }
@media (prefers-reduced-motion: reduce) { .news-banner-slide, .news-banner-slide.is-active, .news-banner-image, .news-banner-dots button { transition: none; } .news-banner-image { transform: none; } }

.news-portal-crumb { padding-top: 26px; }
.news-portal-crumb .site-breadcrumb { margin: 0; }
.news-portal-section.portal-news { padding-top: 40px; }

/* Notícias em cartões e, ao lado, as recentes com a data (fixas ao rolar, com 24px de folga abaixo da barra do topo) */
.news-portal-columns { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
.news-portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.news-portal-side { position: sticky; top: 48px; padding: 20px; border: 1px solid #e3eaf3; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(0, 35, 83, 0.06); }
.news-portal-side-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-portal-side-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #b6df3d; }
@media (max-width: 1100px) { .news-portal-columns { grid-template-columns: 1fr; } .news-portal-side { position: static; } }
.theme-dark .news-portal-side { border-color: #2b4266; background: #16233a; box-shadow: none; }
.theme-dark .news-portal-side-title { color: #dce9ff; }

/* Título no padrão das seções: chamada em verde e título grande */
.news-portal-head h1 { margin: 2px 0 0; color: var(--portal-text, #002f6c); font-size: 32px; font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; text-transform: uppercase; }
.news-portal-empty { color: #526b91; }

/* Categorias: pílulas como a categoria dos cartões */
.news-portal-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 26px; }
.news-portal-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(0, 87, 217, 0.35); border-radius: 999px; background: rgba(0, 87, 217, 0.06); color: #0047b3; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; transition: background .3s ease, border-color .3s ease, color .3s ease; }
.news-portal-filter a span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 999px; background: rgba(0, 87, 217, 0.12); font-size: 0.7rem; letter-spacing: 0; }
.news-portal-filter a:hover { border-color: #0057d9; background: rgba(0, 87, 217, 0.12); }
.news-portal-filter a[aria-current] { border-color: #b6df3d; background: #b6df3d; color: #002b69; }
.news-portal-filter a[aria-current] span { background: rgba(0, 43, 105, 0.14); }
.news-portal-filter a:focus-visible { outline: 3px solid #b6df3d; outline-offset: 2px; }

.news-portal-grid > .news-card { display: flex; flex-direction: column; }
.news-portal-grid .news-body { display: flex; flex: 1; flex-direction: column; }

@media (max-width: 620px) { .news-portal-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .news-portal-filter a { transition: none; } }

.theme-dark .news-portal-head h1 { color: #eff6ff; }
.theme-dark .news-portal-filter a { border-color: rgba(140, 188, 255, 0.4); background: rgba(140, 188, 255, 0.1); color: #8cbcff; }
.theme-dark .news-portal-filter a span { background: rgba(140, 188, 255, 0.16); }
.theme-dark .news-portal-filter a[aria-current] { border-color: #b6df3d; background: #b6df3d; color: #002b69; }
.theme-dark .news-portal-empty { color: #a9bddb; }

/* Caminho e título da página fixos no topo do banner (as notícias passam por baixo deles) */
.news-banner-head { position: absolute; top: 0; right: 0; left: 0; z-index: 2; padding-top: 30px; pointer-events: none; }
.news-banner-head a { pointer-events: auto; }
.news-banner-head .section-title { margin: 14px 0 0; }
.news-banner .news-portal-head h1 { color: #fff; text-shadow: 0 1px 12px rgba(0, 16, 42, 0.55); }
.news-banner .section-eyebrow { text-shadow: 0 1px 8px rgba(0, 16, 42, 0.5); }
.news-portal-crumb .section-title { margin: 14px 0 0; }

/* Cartões da grade mais baixos: duas fileiras cabem na tela (imagem menor e resumo em 2 linhas) */
.news-portal-grid .news-image { height: 150px; }
.news-portal-grid .news-card .news-body { padding: 14px 18px 16px; }
.news-portal-grid .news-card .news-body h3 { margin-bottom: 6px; font-size: 1.1rem; }
.news-portal-grid .news-card .news-summary { margin-bottom: 12px; -webkit-line-clamp: 2; }
.news-portal-grid .news-tag { margin-bottom: 8px; }
.news-portal-grid .news-author-avatar { width: 32px; height: 32px; }
.news-portal-grid .news-author-avatar img { width: 20px; height: 20px; }

/* Grade de notícias: grupos de 4 cartões que passam para o lado (deslizando), com setas e bolinhas */
.news-groups-viewport { margin: -14px; padding: 14px; overflow: hidden; }
.news-groups-track { display: flex; align-items: flex-start; gap: 28px; transition: transform .7s cubic-bezier(.45, 0, .25, 1); }
.news-groups-track > .news-portal-grid { flex: 0 0 100%; min-width: 0; transition: opacity .7s ease; }
.news-groups-track > .news-portal-grid[aria-hidden="true"] { opacity: .35; }
.news-groups-arrow { display: grid; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid #dce6f1; border-radius: 50%; background: #fff; color: #002f6c; cursor: pointer; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.news-groups-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news-groups-arrow:hover { border-color: #0057d9; background: #0057d9; color: #fff; }
.news-groups-dots { display: flex; gap: 8px; }
.news-groups-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #c9d6e6; cursor: pointer; transition: width .35s ease, background .35s ease; }
.news-groups-dots button[aria-current="true"] { width: 28px; background: #0057d9; }
.news-groups-arrow:focus-visible, .news-groups-dots button:focus-visible { outline: 3px solid #b6df3d; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .news-groups-track, .news-groups-track > .news-portal-grid, .news-groups-dots button { transition: none; } }
.theme-dark .news-groups-arrow { border-color: #2b4266; background: #16233a; color: #dce9ff; }
.theme-dark .news-groups-dots button { background: #2b4266; }
.theme-dark .news-groups-dots button[aria-current="true"] { background: #8cbcff; }

/* Coluna Recentes: o mesmo visual da lista "Outras notícias" da página da notícia */
.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; } }

/* Disposição: categorias e setas no alto (coluna 1), cartões, bolinhas embaixo; Recentes ao lado dos cartões */
.news-portal-columns { grid-template-rows: auto auto auto; row-gap: 0; align-items: start; }
.news-portal-toolbar { display: flex; grid-column: 1; grid-row: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 22px; }
.news-portal-toolbar .news-portal-filter { margin: 0; }
.news-groups-arrows { display: flex; gap: 8px; margin-left: auto; }
.news-portal-columns > .news-groups-viewport { grid-column: 1; grid-row: 2; }
.news-portal-columns > .news-portal-side { display: flex; grid-column: 2; grid-row: 2; flex-direction: column; overflow: hidden; }
.news-portal-side .news-mini-list { flex: 1; min-height: 0; margin-right: -8px; padding-right: 8px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #c9d6e6 transparent; }
.news-portal-columns > .news-groups-dots { grid-column: 1; grid-row: 3; justify-content: center; margin-top: 22px; }
@media (max-width: 1100px) {
  .news-portal-columns > .news-portal-side { grid-column: 1; grid-row: 4; margin-top: 30px; max-height: none !important; }
}

/* Recentes: categoria em caixa alta, em verde */
.news-portal-side .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; }
.theme-dark .news-portal-side .news-mini-cat { background: rgba(182, 223, 61, 0.14); color: #b6df3d; }
.news-portal-side .news-mini-list a { margin: 0; } /* sem a margem negativa da lista da notícia: o fundo do hover fica inteiro, com os cantos arredondados */

/* Banner como o da Home: a imagem nasce do azul do menu (degradê no topo) e o banner se dissolve na página embaixo */

.news-banner-image, .news-banner-shade { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 14%, #000 30%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 14%, #000 30%); }
.theme-dark .news-banner { background: #101a2d; }

/* Embaixo: divisão mais definida, só um fade curto na borda */
@media (min-width: 761px) {
  .news-banner { min-height: min(72vh, 620px); }
  .news-banner-shade { background: linear-gradient(180deg, rgba(0, 27, 68, 0.6) 0%, rgba(0, 27, 68, 0.25) 28%, rgba(0, 27, 68, 0.78) 60%, rgba(0, 20, 52, 0.9) 100%); }
}
/* Sem fade embaixo: o banner termina reto (o degradê fica só no topo, saindo do menu) */

@media (min-width: 761px) {
  .news-banner-inner { padding-bottom: 84px; }
  .news-banner-controls { bottom: 30px; }
}
