/* ======================== */
/* ===== VARIÁVEIS ====== */
/* ======================== */
:root {
  --cor-primaria: #1a2d45;
  --cor-primaria-clara: #2e3e56;
  --cor-secundaria: #f8cc3d;
  --cor-texto: #1a2d45;
  --cor-texto-claro: #6c6c6c;
  --cor-branco: #ffffff;
  --cor-cinza: #f9f9f9;
  --cor-rodape: #111a24;
}
/* Tema escuro */
body.dark-theme {
  --cor-primaria: #353535;
  --cor-primaria-clara: #252323;
  --cor-secundaria: #ffc107;
  --cor-texto: #e0e0e0;
  --cor-texto-claro: #0f0f0f;
  --cor-branco: #ffffff;
  --cor-cinza: #0f0f0f;
  --cor-rodape: #575757;
}

/* ======================== */
/* ===== RESET GERAL ===== */
/* ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--cor-cinza);
  color: var(--cor-texto);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

/* ======================== */
/* ====== HEADER/NAV ===== */
/* ======================== */
header {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: top 0.4s ease;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
header.nav-hide {
  top: -100px;
}

header h1 {
  font-size: 1.8rem;
}
a{
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

nav a {
  color: var(--cor-branco);
  text-decoration: none; /* 🔹 Remove o sublinhado */
  font-weight: 500;
  display: flex;
  align-items: center;    /* 🔹 Alinha verticalmente */
  height: 100%;           /* 🔹 Ajuda a manter alinhamento */
}

nav a:hover {
  text-decoration: underline;
}

.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: none;
  margin-left: auto;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  background-color: var(--cor-primaria-clara);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  color: var(--cor-branco);
}

.user-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: #333;
    padding: 1rem;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    z-index: 1000;
    margin-top: 3%;
  }

  nav.show {
    display: flex;
  }

  nav a {
    color: white;
    padding: 0.5rem 0;
    border-bottom: 1px solid #555;
  }
}

/* ======================== */
/* ==== INTRODUÇÃO/FORUM = */
/* ======================== */
.intro {
  background-color: var(--cor-secundaria);
  padding: 2rem;
  text-align: center;
}

.intro h2 {
  color: var(--cor-primaria);
  margin-bottom: 0.5rem;
}

.intro p {
  color: var(--cor-texto-claro);
  font-size: 1rem;
}

.forum-chamada {
  background-color: var(--cor-secundaria);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

.forum-chamada h2 {
  color: var(--cor-primaria);
  margin-bottom: 0.5rem;
}

.forum-chamada p {
  color: var(--cor-texto-claro);
  margin-bottom: 1rem;
}

.btn-forum {
  display: inline-block;
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-forum:hover {
  background-color: var(--cor-primaria-clara);
}

/* ======================== */
/* ======= NOTÍCIAS ====== */
/* ======================== */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.card {
  background: var(--cor-branco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 250px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.card h3 {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 1.4rem;
  color: var(--cor-primaria);
  font-weight: bold;
  line-height: 1.3;
}

.card p {
  flex-grow: 1;
  padding: 0 1.5rem 1rem;
  font-size: 1rem;
  color: var(--cor-texto-claro);
  line-height: 1.5;
}

.card .btn {
  align-self: start;
  margin: 0 1.5rem 1.5rem;
  padding: 0.6rem 1.4rem;
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.card .btn:hover {
  background-color: var(--cor-primaria-clara);
  transform: scale(1.05);
}
.swiper-slide {
   aspect-ratio: 16 / 9; /* Mantém proporção tipo YouTube */
  background-size: cover; /* Faz a imagem cobrir toda a área */
  background-position: center center; /* Centraliza a imagem */
  background-repeat: no-repeat; /* Evita repetição */
  border-radius: 10px; /* Opcional: deixa com cantos arredondados */
  height: 250px; /* Ajuste conforme necessário */
}


/* ======================== */
/* ======= FORMULÁRIO ==== */
/* ======================== */
.form-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--cor-branco);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input,
.auth-form button {
  padding: 0.7rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.auth-form button {
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  cursor: pointer;
}

.auth-form button:hover {
  background-color: var(--cor-primaria-clara);
}

/* ======================== */
/* ========= RODAPÉ ======= */
/* ======================== */
footer {
  background-color: var(--cor-rodape);
  color: var(--cor-branco);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ======================== */
/* ===== SWIPER / SLIDE == */
/* ======================== */
.destaque {
  background: var(--cor-cinza);
  padding: 2rem;
}

.destaque h2 {
  color: var(--cor-texto);
  margin-bottom: 1rem;
}

.swiper {
  width: 100%;
  padding: 2rem 0;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  transition: transform 0.3s ease;
  background-size: cover;
}

.swiper-slide:hover {
  transform: scale(1.02);
}

.destaque-info {
  background: rgba(36, 39, 36, 0.85);
  color: #fff;
  width: 100%;
  padding: 1rem;
  font-size: 0.9rem;
  position: absolute;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
}

.destaque-info h3 {
  font-size: 1.2rem;
  margin: 0;
}

.destaque-info p {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  color: #ddd;
}

@media (min-width: 768px) {
  .swiper-slide {
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .swiper-slide {
    height: 300px;
  }
}

/* ======================== */
/* ====== BANNER IMAGEM == */
/* ======================== */
.banner-destaque {
  width: 100%;
  height: 60vh;
  background-color: var(--cor-cinza);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.banner-destaque img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.theme-switch {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--cor-primaria-clara);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.theme-switch .icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-switch .sun {
  background: radial-gradient(circle at center, #fdd835 40%, #fbc02d 100%);
  border-radius: 50%;
  box-shadow: 0 0 6px #fdd835;
  opacity: 1;
  transform: rotate(0deg);
}

.theme-switch .moon {
  background: radial-gradient(circle at center, #ffffff 40%, #ccc 100%);
  border-radius: 50%;
  box-shadow: inset -2px -2px 0 #999;
  opacity: 0;
  transform: scale(0.6);
}

/* Tema escuro: inverter visibilidade dos ícones */
body.dark-theme .theme-switch .sun {
  opacity: 0;
  transform: scale(0.6);
}

body.dark-theme .theme-switch .moon {
  opacity: 1;
  transform: scale(1);
}
.noticias h2{
  margin-left: 3%;
}
.toast-container {
  position: fixed;
   top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: white;
  font-size: 0.9rem;
  animation: fadeOut 4s forwards;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.toast.sucesso {
  background-color: #4caf50;
}

.toast.erro {
  background-color: #f44336;
}

.toast.info {
  background-color: #2196f3;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
/* Propaganda do topo — como faixa */
.propaganda-topo {
  padding: 5px;
  margin: 5px auto;
  max-width: 650px;
  width: 100%;
  position: relative;
}

.propaganda-topo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px; /* Ajuste esse valor conforme necessário */
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.propaganda-baixo .banner-item {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Propaganda do rodapé — estilo card com texto */
.propaganda-baixo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  border-radius: 6px;
  padding: 30px;
  
}

.propaganda-baixo img {
  width: 500px;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.propaganda-baixo .texto {
  max-width: 500px;
  font-size: 1.2rem;
  color: var(--cor-texto);
  text-align: center;
  line-height: 1.6;
  padding: 10px;
}
.propaganda-baixo a{
  text-decoration: none;
}

@media (max-width: 900px) {
  .editorial-conteudo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .propaganda-topo{
     height: 100px; /* fixa a altura do container */
  }
}
@media (max-width: 600px) {
  .propaganda-topo,
  .propaganda-rodape {
    height: 100px;
    margin: 0.5rem 0;
  }
}
#editorial {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--cor-cinza);
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

.editorial-conteudo {
  background-color: var(--cor-branco);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  transition: box-shadow 0.3s ease;
}

.editorial-conteudo:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.editorial-conteudo .coluna {
  background: var(--cor-branco);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-conteudo .coluna:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.editorial-conteudo h3 {
  color: var(--cor-primaria);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-left: 4px solid var(--cor-secundaria);
  padding-left: 0.6rem;
}

.editorial-conteudo p {
  color: #0f0f0f;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 1.5rem 0px 2rem;
  flex-grow: 1;
}

.leia-materia {
  align-self: flex-start;
  background-color: var(--cor-primaria);
  color: var(--cor-branco);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(26, 45, 69, 0.2);
  transition: all 0.3s ease;
}

.leia-materia:hover {
  background-color: var(--cor-primaria-clara);
  box-shadow: 0 6px 16px rgba(26, 45, 69, 0.35);
}

/* Cards externos */
.editorial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.editorial-item {
  background-color: var(--cor-fundo-clara, #fdfbfb);
  border-radius: 16px;
  padding: 1.4rem;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.editorial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.editorial-subtitulo {
  margin: 0 0 1rem 0;
  color: var(--cor-primaria);
  font-size: 1.25rem;
  font-weight: 700;
  padding-left: 0.4rem;
  border-left: 4px solid var(--cor-secundaria);
}

/* Responsivo */
@media (max-width: 900px) {
  .editorial-conteudo {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .editorial-conteudo {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .editorial-conteudo .coluna {
    padding: 1rem;
  }

  .editorial-conteudo h3 {
    font-size: 1.05rem;
  }

  .editorial-conteudo p,
  .leia-materia {
    font-size: 0.85rem;
  }

  .editorial-title {
    font-size: 1.4rem;
    margin: 1rem auto;
  }
}

.form-pesquisa {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.form-pesquisa input {
  padding: 5px 30px;
  border-radius: 6px;
  background-color: var(--cor-branco);
  color: #0f0f0f;
}

.form-pesquisa input::placeholder {
  color: var(--cor-texto-claro);
}

.form-pesquisa button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  font-size: 22px;
  color: var(--cor-secundaria);
}
.form-pesquisa button :hover{
  color: #f8db7b;
}

.autocomplete-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  background: var(--cor-branco);
  z-index: 1000;
  width: 100%;
}

.autocomplete-list li {
  padding: 8px;
  cursor: pointer;
  color: var(--cor-primaria);
}

.autocomplete-list li:hover {
  background-color: var(--cor-primaria-clara);
  color: var(--cor-branco);
}
.autocomplete-container {
  position: relative;
  width: 100%;
}
.btnGoogle {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #054cbe; /* Azul Google */
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.btnGoogle:hover {
  background-color: #1e5ce2;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.3);
}

.btnGoogle:active {
  background-color: #274fb4;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.4);
}
