/* =======================================================
   VARIÁVEIS GERAIS E RESET
======================================================== */
:root {

  --text-main: #1f2937;

}


/* =======================================================
   HEADER E NAVEGAÇÃO
======================================================== */


/* Barra de Busca no Header */
.header-search { position: relative; flex: 1; max-width: 500px; margin: 0 20px; }
.header-search input {
  width: 100%; padding: 10px 15px; border-radius: 20px; border: none;
  background: rgba(255,255,255,0.1); color: #fff; outline: none; transition: 0.3s;
}
.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search input:focus { background: rgba(255,255,255,0.2); box-shadow: 0 0 0 2px var(--accent); }

/* Sugestões da Busca (Dropdown) */
.search-suggestions {
  position: absolute; top: 45px; left: 0; width: 100%; background: #fff;
  border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); list-style: none;
  max-height: 300px; overflow-y: auto; display: none; z-index: 2000;
}
.search-suggestions.active { display: block; animation: slideDown 0.2s ease; }
.search-suggestions li { padding: 12px 15px; color: var(--text-main); cursor: pointer; border-bottom: 1px solid #eee; transition: 0.2s; }
.search-suggestions li:last-child { border-bottom: none; }
.search-suggestions li:hover { background: #f3f4f6; color: var(--accent); padding-left: 20px; }


/* Barra de Alerta */

/* =======================================================
   FEED DE PUBLICAÇÕES
======================================================== */
.feed-section-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.publicacoes { display: grid; grid-template-columns: 1fr; gap: 30px; }

.artigo-moderno { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eaeaea; }
.artigo-moderno:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); transform: translateY(-3px); }
.post.highlighted .artigo-moderno { box-shadow: 0 0 0 3px var(--accent); }

.top-info { display: flex; justify-content: space-between; padding: 12px 20px; background: #f9fafb; border-bottom: 1px solid #eaeaea; font-size: 0.85em; font-weight: 600; color: var(--text-light); }
.clima.tornado { color: var(--alert-n4); }
.clima.tempestade { color: var(--alert-n2); }

.conteudo_card { display: flex; padding: 25px; gap: 30px; align-items: center; }
.imagem-wrapper { flex: 0 0 45%; position: relative; cursor: pointer; border-radius: 12px; overflow: hidden; }
.imagem-artigo { width: 100%; height: 280px; object-fit: cover; display: block; transition: 0.5s; }
.imagem-wrapper:hover .imagem-artigo { transform: scale(1.05); }
.img-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; color: white; font-weight: bold; font-size: 1.2rem; }
.imagem-wrapper:hover .img-overlay { opacity: 1; }

.texto-wrapper { flex: 1; display: flex; flex-direction: column; }
.titulo { font-size: 1.8rem; color: var(--header-bg); margin-bottom: 10px; line-height: 1.2; }
.sub-info { color: var(--text-light); font-size: 0.9rem; margin-bottom: 15px; }
.descricao { font-size: 1.05rem; color: #4b5563; margin-bottom: 20px; }
.btn-documentacao { align-self: flex-start; background: #f3f4f6; color: var(--header-bg); padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: 0.2s; }
.btn-documentacao:hover { background: var(--header-bg); color: #fff; }

/* =======================================================
   MODAL SLIDER (GALERIA)
======================================================== */
.slider-modal { display: none; position: fixed; z-index: 3000; inset: 0; background: rgba(0,0,0,0.95); backdrop-filter: blur(5px); }
.slider-modal.active { display: flex; flex-direction: column; justify-content: center; align-items: center; animation: fadeIn 0.3s; }
.slider-container { position: relative; width: 90vw; max-width: 1000px; height: 75vh; display: flex; justify-content: center; align-items: center; }
.slide { position: absolute; max-width: 100%; max-height: 100%; opacity: 0; transition: opacity 0.4s ease; object-fit: contain; }
.slide.active { opacity: 1; z-index: 2; }

.close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; z-index: 3010; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; font-size: 30px; padding: 15px; cursor: pointer; border-radius: 50%; z-index: 3010; transition: 0.3s; }
.prev { left: 5%; } .next { right: 5%; }
.prev:hover, .next:hover { background: rgba(255,255,255,0.3); }

.slider-dots { position: absolute; bottom: 30px; display: flex; gap: 10px; z-index: 3010; }
.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.3); border-radius: 50%; cursor: pointer; transition: 0.3s; }
.dot.active { background: #fff; transform: scale(1.2); }

/* =======================================================
   PAGINAÇÃO E MENU MOBILE
======================================================== */
.pagination-wrap { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 40px; }
.page-btn, .page-num { background: #fff; border: 1px solid #ddd; padding: 8px 15px; border-radius: 6px; cursor: pointer; color: var(--text-main); transition: 0.2s; }
.page-num.active, .page-btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }


/* =======================================================
   RESPONSIVIDADE
======================================================== */
@media (max-width: 900px) {
  .conteudo_card { flex-direction: column; padding: 20px; }
  .imagem-wrapper { width: 100%; }
  .imagem-artigo { height: 220px; }
}
@media (max-width: 768px) {
  .header-content { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; margin: 15px 0 0 0; }
  .social-buttons { display: none; }
  .hamburger { display: block; }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { background-color: var(--alert-n4); } 50% { background-color: #991b1b; } 100% { background-color: var(--alert-n4); } }





/* =======================================================
   EFEITO DE ZOOM NOS MODAIS
======================================================== */
.slide {
  cursor: zoom-in; /* Deixa o mouse com ícone de lupa (+) */
  transition: transform 0.3s ease, opacity 0.4s ease; /* Animação suave para o zoom e para aparecer */
}

.slide.zoomed {
  transform: scale(1.8); /* Aumenta a foto em 80%. Você pode mudar para 2.0, 1.5, etc. */
  cursor: zoom-out; /* Muda o mouse para lupa com sinal de menos (-) */
  z-index: 3; /* Garante que a foto ampliada fique por cima das setas, se necessário */
}