/* ============================================================
   CENTRAL DE NOTÍCIAS MARANHÃO — Folha de estilos do portal
   Identidade: azul-marinho (#062653), azul institucional (#0B3D78),
   vermelho (#E31B23), cinza claro (#F4F6F8), branco.
   ============================================================ */

:root {
  --navy: #062653;
  --navy-2: #0B3D78;
  --navy-3: #1B5FAB;
  --navy-light: #E8F1FA;
  --red: #E31B23;
  --red-dark: #C0151C;
  --light: #F4F6F8;
  --gray: #666666;
  --gray-light: #9aa5b1;
  --dark: #141C26;
  --white: #FFFFFF;
  --border: #E4E9F0;
  --shadow: 0 2px 14px rgba(6, 38, 83, 0.08);
  --shadow-lg: 0 10px 30px rgba(6, 38, 83, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --container: min(1720px, 96vw);
  --font: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { flex-shrink: 0; vertical-align: middle; }

/* ============ BARRA URGENTE ============ */
.urgent-bar {
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.urgent-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.urgent-bar .urgent-label {
  background: #fff;
  color: var(--red);
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
}
.urgent-bar .urgent-text {
  animation: urgent-scroll 18s linear infinite;
  display: inline-block;
  line-height: 1;
}
@keyframes urgent-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============ BARRA SUPERIOR ============ */
.topbar {
  background: var(--navy);
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  line-height: 1;
}
.topbar-date { font-weight: 400; display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s; line-height: 1; }
.topbar-links a:hover { color: #fff; text-decoration: underline; }
.topbar-social { display: flex; gap: 10px; align-items: center; }
.topbar-social a {
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  width: 26px; height: 26px;
  align-items: center; justify-content: center;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
}
.topbar-social a:hover { background: var(--red); color: #fff; }

/* ============ CABEÇALHO PRINCIPAL ============ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 132px;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { flex-shrink: 0; display: flex; align-items: center; }
/* Logo do cabeçalho: altura fixa, largura automática (não distorce) */
.brand-mark .brand-img {
  height: 110px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
}
.brand-text { line-height: 1.05; }
.brand-text .b1 {
  display: block;
  font-size: 14px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--navy);
}
.brand-text .b2 {
  display: block;
  font-size: 38px; font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--navy);
  font-family: 'Poppins', var(--font);
}
.brand-text .b3 {
  display: block;
  font-size: 18px; font-weight: 800;
  letter-spacing: 6px;
  color: var(--red);
}
.brand-text .b2 .ma { color: var(--red); }

/* Área do patrocinador no cabeçalho */
.header-ad { width: 100%; max-width: 660px; }

/* ============ PUBLICIDADE (espaços padrão) ============ */
.ad-box {
  border: 1px solid #C9D9EC;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.ad-box.ad-header { height: 100px; border-radius: var(--radius-sm); }
.ad-box.ad-below { height: 120px; border-radius: var(--radius); }
.ad-box.ad-sidebar { min-height: 300px; border-radius: var(--radius); margin-top: 20px; }
.ad-box.ad-between { height: 100px; border-radius: var(--radius); }
.ad-box.ad-footer { height: 150px; border-radius: var(--radius); }
.ad-box img { width: 100%; height: 100%; object-fit: cover; }

.ad-placeholder {
  width: 100%; height: 100%;
  border: 1.5px dashed #B7CBE2;
  background: #FBFCFE;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px;
}
.ad-placeholder .ap-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8A9BB2;
}
.ad-placeholder .ap-sponsor {
  font-size: 12px;
  color: var(--navy-2);
  font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.ad-placeholder .ap-sponsor img { height: 22px; width: auto; }

/* ============ MENU PRINCIPAL ============ */
.main-nav {
  background: var(--navy);
  height: 52px;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(6, 38, 83, 0.25);
}
.main-nav .container { height: 100%; position: relative; }
.nav-list {
  height: 100%;
  display: flex;
  align-items: stretch;
}
.nav-list li {
  display: flex;
  align-items: stretch;
}
.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 17px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  transition: background 0.25s ease, color 0.25s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.nav-list a:last-child { border-right: none; }
.nav-list a:hover { background: var(--navy-2); }
.nav-list a.active,
.nav-list a.home { background: var(--red); }
.nav-list a.active:hover { background: var(--red-dark); }
.nav-search-btn {
  position: absolute;
  right: 0; top: 0;
  height: 100%;
  background: transparent;
  border: none;
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.nav-search-btn:hover { background: var(--red); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  height: 100%;
  padding: 0 14px;
}

/* ============ BUSCA OVERLAY ============ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 38, 83, 0.96);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 20px 0;
}
.search-overlay.open { display: flex; }
.search-overlay .search-box { width: 100%; max-width: 640px; }
.search-overlay .search-field {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 6px 8px 6px 22px;
  box-shadow: var(--shadow-lg);
}
.search-overlay .search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--font);
  background: transparent;
  color: var(--dark);
  padding: 10px 0;
}
.search-overlay .search-field button {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 11px 26px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font);
  transition: background 0.2s;
}
.search-overlay .search-field button:hover { background: var(--red-dark); }
.search-close {
  position: absolute;
  top: 24px; right: 28px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.search-close:hover { background: var(--red); }

/* ============ ÁREA PRINCIPAL ============ */
.main-content { padding: 30px 0 46px; }

.hero-section {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
}

/* Notícia principal */
.hero-main { position: relative; }
.hero-main .hero-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-main .hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-main .hero-img:hover img { transform: scale(1.04); }
.hero-main .hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 12, 26, 0.92) 0%, rgba(3, 12, 26, 0.35) 45%, rgba(3, 12, 26, 0.05) 70%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
}
.hero-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 22px 8px 20px;
  z-index: 2;
  color: #fff;
}
.hero-info h1 {
  font-size: clamp(22px, 2.5vw + 8px, 38px);
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 10px;
  transition: color 0.25s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
}
.hero-main:hover .hero-info h1 { color: #FFD2D4; }
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

/* Coluna secundária */
.hero-side { display: flex; flex-direction: column; justify-content: space-between; gap: 0; }
.hero-side-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.hero-side-item:first-child { padding-top: 0; }
.hero-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.hero-side-item .side-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}
.hero-side-item .side-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.hero-side-item:hover .side-img img { transform: scale(1.08); }
.side-cat {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.side-title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  transition: color 0.2s;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.hero-side-item:hover .side-title { color: var(--navy-3); }
.side-date {
  font-size: 14px;
  color: var(--gray);
  display: flex; align-items: center; gap: 5px;
}

/* ============ SEÇÕES (títulos) ============ */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 42px 0 22px;
}
.section-title .bar {
  width: 5px;
  height: 30px;
  background: var(--red);
  border-radius: 2px;
}
.section-title h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.section-title .see-all {
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-2);
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s, gap 0.2s;
}
.section-title .see-all:hover { color: var(--red); gap: 8px; }

/* ============ ÚLTIMAS NOTÍCIAS + MAIS LIDAS ============ */
.latest-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 38px;
  align-items: start;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card .card-img {
  position: relative;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}
.news-card .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.news-card:hover .card-img img { transform: scale(1.07); }
.card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}
.card-cat.blue { background: var(--navy-2); }
.card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark);
  margin-bottom: 9px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.news-card:hover .card-title { color: var(--navy-3); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 8px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-excerpt {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: auto;
}

/* Mais lidas */
.most-read { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--white); }
.most-read .section-title { margin: 0 0 16px; }
.mr-item {
  display: grid;
  grid-template-columns: 48px 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.mr-item:last-child { border-bottom: none; padding-bottom: 0; }
.mr-num {
  width: 44px; height: 44px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(227, 27, 35, 0.35);
  line-height: 1;
}
.mr-item .mr-img { border-radius: 4px; overflow: hidden; aspect-ratio: 16/10; }
.mr-item .mr-img img { width: 100%; height: 100%; object-fit: cover; }
.mr-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.mr-item:hover .mr-title { color: var(--navy-3); }
.mr-date { font-size: 13.5px; color: var(--gray); margin-top: 4px; display: flex; align-items: center; gap: 4px; }

/* ============ NOTÍCIAS POR CATEGORIA ============ */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.cat-card .cc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.cat-card:hover .cc-bg { transform: scale(1.1); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 38, 83, 0.35) 0%, rgba(6, 38, 83, 0.88) 100%);
  transition: background 0.35s;
}
.cat-card:hover::after { background: linear-gradient(180deg, rgba(6, 38, 83, 0.45) 0%, rgba(227, 27, 35, 0.85) 100%); }
.cc-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 16px;
  transform: translateY(0);
  transition: transform 0.3s;
}
.cat-card:hover .cc-content { transform: translateY(-6px); }
.cc-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.cc-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.cc-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.cat-card:hover .cc-link { opacity: 1; transform: translateX(0); }

/* ============ OPINIÃO + VÍDEOS + CLIMA ============ */
.opinion-video-wrap {
  display: grid;
  grid-template-columns: 1fr 1.35fr 350px;
  gap: 30px;
  align-items: start;
}
.opinion-col .section-title { margin-top: 0; }
.opinion-card {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.opinion-card:last-child { border-bottom: none; }
.opinion-card .op-photo {
  width: 62px; height: 62px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--navy-light);
}
.opinion-card .op-photo img { width: 100%; height: 100%; object-fit: cover; }
.op-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.op-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 6px;
  transition: color 0.2s;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.opinion-card:hover .op-title { color: var(--navy-3); }
.op-date { font-size: 14px; color: var(--gray); display: flex; align-items: center; gap: 5px; }

/* Vídeos */
.videos-col .section-title { margin-top: 0; }
.video-featured { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow); }
.video-featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.5s; }
.video-featured:hover img { transform: scale(1.04); }
.video-featured::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(3, 12, 26, 0.85), transparent 55%);
}
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  background: rgba(227, 27, 35, 0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 2;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 6px 20px rgba(227, 27, 35, 0.5);
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.12); background: var(--red); }
.video-featured .vf-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 16px;
  z-index: 2;
  color: #fff;
}
.vf-info h3 { font-size: 18.5px; font-weight: 700; line-height: 1.35; }
.vf-info .vf-date { font-size: 14px; opacity: 0.85; display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.video-list-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.video-list-item:last-child { border-bottom: none; }
.video-list-item .vl-thumb {
  position: relative;
  width: 108px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  aspect-ratio: 16/10;
}
.video-list-item .vl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-list-item .vl-thumb .mini-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 38, 83, 0.4);
  color: #fff;
}
.vl-title { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--dark); transition: color 0.2s; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.video-list-item:hover .vl-title { color: var(--navy-3); }
.vl-date { font-size: 13.5px; color: var(--gray); margin-top: 4px; display: flex; align-items: center; gap: 4px; }

/* Clima */
.weather-widget {
  background: var(--navy-light);
  border: 1px solid #CFE0F2;
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 0;
}
.weather-widget .section-title { margin: 0 0 14px; }
.weather-widget .section-title h2 { font-size: 19px; }
.weather-now { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.weather-now .w-temp { font-size: 48px; font-weight: 800; color: var(--navy); line-height: 1; }
.weather-now .w-info .w-city { font-size: 15px; font-weight: 700; color: var(--navy-2); }
.weather-now .w-info .w-cond { font-size: 14.5px; color: var(--gray); }
.weather-now .w-ico {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}
.w-minmax {
  font-size: 15px;
  color: var(--navy-2);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  display: inline-block;
}
.w-forecast {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.w-day {
  background: #fff;
  border-radius: 8px;
  padding: 10px 4px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray);
}
.w-day .wd-name { font-weight: 800; color: var(--navy-2); display: block; margin-bottom: 3px; }
.w-day .wd-hi { font-weight: 700; color: var(--dark); display: block; }
.w-day .wd-lo { color: var(--gray); display: block; }

/* ============ LAYOUTS INTERNOS (categoria, busca, página) ============ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 38px;
  align-items: start;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--navy);
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: 31px;
  font-weight: 800;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-header .ph-icon {
  width: 48px; height: 48px;
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.breadcrumb {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--navy-2); }
.breadcrumb a:hover { color: var(--red); }

/* Lista de notícias (categoria/busca) */
.post-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  border-radius: var(--radius-sm);
}
.post-row:hover { background: var(--light); }
.post-row .pr-img { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; }
.post-row .pr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-row:hover .pr-img img { transform: scale(1.06); }
.pr-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin: 6px 0 8px;
  transition: color 0.2s;
}
.post-row:hover .pr-title { color: var(--navy-3); }
.pr-meta { font-size: 15px; color: var(--gray); display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.pr-meta .cat { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.pr-excerpt { font-size: 16.5px; color: var(--gray); line-height: 1.55; }

/* Paginação */
.pagination { display: flex; gap: 8px; margin-top: 26px; justify-content: center; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-2);
  background: #fff;
  transition: all 0.2s;
}
.pagination a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ============ PÁGINA DA NOTÍCIA ============ */
.post-page .pp-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 7px 16px;
  border-radius: 5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.post-page h1.pp-title {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  color: var(--dark);
  margin-bottom: 14px;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  text-wrap: balance;
}
.pp-subtitle {
  font-size: 22px;
  color: var(--gray);
  line-height: 1.5;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.pp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 16px;
  color: var(--gray);
}
.pp-meta .author { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-2); }
.pp-meta .author img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.pp-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pp-main-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; box-shadow: var(--shadow); }
.pp-main-img img { width: 100%; }
.pp-caption {
  font-size: 13.5px;
  color: var(--gray);
  font-style: italic;
  margin-bottom: 24px;
}

/* Conteúdo do artigo */
.post-content { font-size: 20px; line-height: 1.85; color: #232B33; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.post-content p { margin-bottom: 22px; }
.post-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 34px 0 15px;
  line-height: 1.3;
}
.post-content h3 {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 13px;
}
.post-content a { color: var(--navy-3); text-decoration: underline; }
.post-content a:hover { color: var(--red); }
.post-content ul, .post-content ol { margin: 0 0 22px 26px; }
.post-content ul li { list-style: disc; margin-bottom: 9px; }
.post-content ol li { list-style: decimal; margin-bottom: 9px; }
.post-content blockquote {
  border-left: 4px solid var(--red);
  background: var(--light);
  padding: 19px 24px;
  margin: 26px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy-2);
  font-size: 19.5px;
}
.post-content blockquote::before { content: '“'; font-size: 42px; color: var(--red); line-height: 0; display: block; height: 20px; }
.post-content img { border-radius: 8px; margin: 22px auto; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 17.5px;
}
.post-content th { background: var(--navy); color: #fff; text-align: left; padding: 11px 15px; }
.post-content td { border: 1px solid var(--border); padding: 11px 15px; }
.post-content tr:nth-child(even) td { background: var(--light); }
.post-content hr { border: none; border-top: 2px dashed var(--border); margin: 30px 0; }
.post-content iframe { max-width: 100%; border-radius: 8px; margin: 22px 0; }
.post-content .youtube-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 20px 0;
}
.post-content .youtube-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
}

/* Tags */
.post-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags .pt-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.post-tags a {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.post-tags a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Compartilhamento */
.share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0;
  padding: 16px 18px;
  background: var(--light);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.share-box .sb-label { font-size: 15px; font-weight: 700; color: var(--navy); margin-right: 6px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.92; }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-twitter { background: #0F1419; }
.share-copy { background: var(--navy-2); }

/* Comentários */
.comments-section { margin-top: 36px; }
.comment-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item .cm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-item .cm-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--navy-2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.comment-item .cm-name { font-weight: 700; color: var(--dark); font-size: 15px; }
.comment-item .cm-date { font-size: 13px; color: var(--gray); }
.comment-item .cm-text { font-size: 16px; color: #333; line-height: 1.6; }
.comment-form { background: var(--light); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.comment-form h3 { font-size: 17px; color: var(--navy); margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-2); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 15px;
  font-family: var(--font);
  background: #fff;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(27, 95, 171, 0.15);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  padding: 11px 22px;
  transition: all 0.2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: #fff; color: var(--navy-2); border: 1.5px solid var(--navy-3); }
.btn-outline:hover { background: var(--navy-light); }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }

/* Notícias relacionadas */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 18px;
}

/* Notificação de comentário enviado */
.alert-ok {
  background: #e7f6ec;
  color: #1a7a3c;
  border: 1px solid #b9e5c5;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 16px;
}

/* ============ PÁGINAS INSTITUCIONAIS ============ */
.prose { font-size: 17.5px; line-height: 1.8; color: #2a3038; }
.prose p { margin-bottom: 16px; }
.prose h2 { font-size: 22px; color: var(--navy); margin: 26px 0 12px; }
.prose ul { list-style: disc; margin: 0 0 18px 24px; }
.prose ul li { margin-bottom: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: all 0.25s;
}
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.contact-card .cc-icon {
  width: 50px; height: 50px;
  margin: 0 auto 12px;
  background: var(--navy-light);
  color: var(--navy-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.contact-card p { font-size: 15px; color: var(--gray); }

/* ============ RODAPÉ ============ */
.site-footer { background: #031226; color: #AAB7C9; margin-top: 56px; }
.footer-top { padding: 54px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 42px;
}
.footer-brand .fb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
/* Nome do blog no rodapé (sem imagem) */
.footer-brand .fb-logo .fb-text .b2 {
  font-size: 28px; font-weight: 800; color: #fff; letter-spacing: 1px;
  line-height: 1.2;
  font-family: 'Poppins', var(--font);
}
.footer-brand p { font-size: 16px; line-height: 1.7; margin-bottom: 18px; color: #8FA0B5; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #C7D2E0;
  transition: all 0.25s;
}
.footer-social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer-col h4 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a {
  font-size: 16px;
  color: #8FA0B5;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul a:hover { color: #fff; padding-left: 5px; }
.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  color: #8FA0B5;
  align-items: flex-start;
}
.footer-contact li .icon { color: var(--red); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 15px;
  color: #75879E;
}
.footer-bottom .dev { display: flex; align-items: center; gap: 5px; }
.footer-bottom .dev .heart { color: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ============ MENU MOBILE ============ */
.mobile-nav {
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--navy);
  z-index: 1100;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-nav .mn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  margin-bottom: 18px;
}
.mobile-nav .mn-head .mn-close {
  background: none; border: none; color: #fff; cursor: pointer;
}
.mobile-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover { color: var(--red); padding-left: 10px; }
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1050;
}
.nav-backdrop.show { display: block; }

/* ============ 404 ============ */
.error-404 {
  text-align: center;
  padding: 80px 20px;
}
.error-404 .code {
  font-size: 120px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.error-404 .code span { color: var(--red); }
.error-404 h1 { font-size: 26px; color: var(--dark); margin: 14px 0 10px; }
.error-404 p { color: var(--gray); margin-bottom: 24px; }

/* ============ RESPONSIVIDADE ============ */
@media (max-width: 1200px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-cards { grid-template-columns: repeat(3, 1fr); }
  .opinion-video-wrap { grid-template-columns: 1fr 1fr; }
  .weather-widget { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; flex-wrap: wrap; }
  .hero-side-item { width: calc(50% - 10px); border-bottom: 1px solid var(--border); }
  .latest-wrap { grid-template-columns: 1fr; }
  .most-read { margin-top: 6px; }
  .page-layout { grid-template-columns: 1fr; }
  .header-ad { max-width: 460px; }
  .ad-box.ad-header { height: 100px; }
}

@media (max-width: 860px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-cards { grid-template-columns: repeat(2, 1fr); }
  .opinion-video-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { max-width: 100%; padding: 0 16px; }
  .nav-list { display: none; }
  .nav-toggle { display: flex; align-items: center; }
  .main-nav .container { display: flex; align-items: center; justify-content: flex-start; }
  .site-header .container { height: auto; min-height: 100px; padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .header-ad { order: 3; max-width: 100%; margin-top: 2px; }
  .ad-box.ad-header { height: 84px; }
  .topbar-links { display: none; }
}

@media (max-width: 560px) {
  .container { max-width: 100%; padding: 0 12px; }
  .brand-mark .brand-img { height: 70px; max-width: 210px; }
  /* Compartilhamento: grade 2x2 organizada no mobile */
  .share-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
  }
  .share-box .sb-label {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    font-size: 14px;
  }
  .share-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 10px;
    font-size: 13.5px;
    white-space: nowrap;
  }
  .share-btn .icon { flex-shrink: 0; }
  /* Hero mais imponente no mobile */
  .hero-main .hero-img img { aspect-ratio: 4 / 3.4; }
  .hero-badge { top: 12px; left: 12px; font-size: 12px; padding: 5px 11px; }
  .hero-info { padding: 14px 2px 12px; }
  .hero-info h1 { font-size: clamp(19px, 4.6vw, 25px); line-height: 1.32; margin-bottom: 8px; -webkit-line-clamp: 4; }
  .hero-meta { font-size: 12.5px; gap: 12px; margin-bottom: 7px; }
  .hero-desc { font-size: 14.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  /* Cards de notícias maiores no mobile */
  .news-card .card-img { aspect-ratio: 16 / 9; }
  .card-title { font-size: 20px; -webkit-line-clamp: 2; }
  .card-excerpt { font-size: 15px; -webkit-line-clamp: 2; }
  .card-body { padding: 16px 18px 18px; }
  .cards-grid { grid-template-columns: 1fr; gap: 18px; }
  .cat-cards { grid-template-columns: 1fr; }
  .cat-card { height: 190px; }
  .hero-side-item { width: 100%; }
  .hero-side { display: block; }
  .post-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .search-overlay { padding-top: 18vh; }
  .search-overlay .search-field { flex-direction: column; border-radius: 16px; padding: 10px; gap: 10px; }
  .search-overlay .search-field button { width: 100%; justify-content: center; }
  .weather-widget .w-forecast { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .container { max-width: 100%; padding: 0 10px; }
  .site-header .container { padding: 12px 10px; gap: 6px; }
  .header-ad { margin-top: 0; }
}

/* Print-friendly */
@media print {
  .topbar, .main-nav, .site-footer, .share-box, .ad-box { display: none !important; }
}
