* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f4f4f4;
  color: #333;
}  
/* ####################################### Top Bar  ############################################ */

.topbar {
  background-color: #004080;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: relative;  
}  

.topbar {
  background-color: #004080; /* azul do fundo */
  position: relative;
  z-index: 0;
}
 

.topbar .logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin-left: 20px;
  margin-top: 30px;
}
.topbar .logo img {
  height: 100px; 
  width: auto;
  margin: 0;
  
}
.topbar h1 {
  font-size: 1.4rem;
  font-weight: normal;
}
.topbar h1.paises span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 4px;
}
.topbar h1.paises a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
}
.topbar h1.paises img {
  width: 40px;
  height: 34px;
  object-fit: contain;
  display: inline-block;
}  




@media (max-width: 768px) {
  
  .topbar h1 {
  margin-top: 30px;
  margin-left: 20px;
}
  
  .topbar h1.paises {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 8px 8px; 
    justify-content: center;
    align-items: center;
  }
  .topbar h1.paises span {
    font-size: 0; 
  }
  .topbar h1.paises span img {
    width: 20px;
    height: 18px;
    display: inline-block;
  }
}
/* ################################################################################### */



.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Layout */
.wrapper {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Sidebar */
nav {
  width: 260px;
  background-color: #004080;
  color: #fff;
  overflow-y: auto;
  padding: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;  
  position: relative;
  /* margin-top: -20px;  */
 /*border-top-left-radius: 20px;   */ 
}

nav h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.menu-section {
  margin-bottom: 0px;
}

/* Recuo para <details> internos na sidebar */
.menu-section > details > details {
  margin-left: 20px; /* recua os submenus para indicar hierarquia */
}

/* Links dentro dos submenus */
.menu-section > details > details a {
  margin-left: 25px; /* desloca os links para reforçar visualmente que são subitens */
}

.menu-section summary {
  cursor: pointer;
  padding: 8px;
  background: #0059b3;
  border-radius: 5px;
  margin-bottom: 5px;
}

/* Opcional: se quiser destacar o summary das subcategorias */
.menu-section > details > details summary {
  background: #0066cc; /* cor um pouco diferente para subcategorias */
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.menu-section a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  margin-left: 10px;
  transition: background 0.2s;
  font-size: 0.95rem;
}

.menu-section a:hover {
  background-color: #0066cc;
}

/* Main Content */
main {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

main h1 {
  margin-bottom: 15px;
}

main p {
  line-height: 1.6;
  margin-bottom: 12px;
}

.anuncio {
  margin-top: 30px;
  background: #ddd;
  height: 100px;
  text-align: center;
  line-height: 100px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  nav {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    transform: translateX(-100%);
    z-index: 10;
  }

  nav.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  main {
    padding: 20px;
  }
  .topbar .logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.topbar .logo img {
  height: 60px; 
  width: auto;
  margin: 0;
  margin-left: -20px;
}

  

  .anuncio {
    height: 80px;
    line-height: 80px;
  }
}
 
/* ################################################################################### */



/* home*/

/* Notícias */
.noticias-recentes {
  margin-bottom: 40px;
}

.noticias-recentes h2 {
  margin-bottom: 20px;
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.noticia {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.noticia img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.noticia div {
  padding: 15px;
}

.noticia h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #004080;
}

.noticia .subtitulo {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.noticia .resumo {
  font-size: 0.95rem;
  color: #333;
}


/* ############################## Estilo para páginas de Notícias ############################## */

main.noticia-conteudo {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 30px;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
}

/* Títulos da notícia */
main.noticia-conteudo h1 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #004080;
}

main.noticia-conteudo h2 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: #0059b3;
}

/* Texto */
main.noticia-conteudo p,
main.noticia-conteudo li {
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 15px;
  color: #333;
}

/* Listas */
main.noticia-conteudo ul {
  margin: 15px 0;
  padding-left: 20px;
}

/* Imagens da notícia */
main.noticia-conteudo .image-space {
  text-align: center;
  margin: 30px 0;
}

main.noticia-conteudo .image-space img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responsividade */
@media (max-width: 768px) {
  main.noticia-conteudo {
    padding: 20px 15px;
  }

  main.noticia-conteudo h1 {
    font-size: 1.6rem;
  }

  main.noticia-conteudo h2 {
    font-size: 1.3rem;
  }

  main.noticia-conteudo p,
  main.noticia-conteudo li {
    font-size: 0.95rem;
  }
}
 

.image-space {
  text-align: center;
  margin: 20px 0;
}

.image-space img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}









/* Guia Rápido */
.guia-rapido {
  margin: 40px 0;
}

.guia-rapido ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.guia-rapido li a {
  background: #004080;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s;
}

.guia-rapido li a:hover {
  background: #0066cc;
}
















/* Categorias Populares */
.categorias-populares {
  margin: 40px 0;
}

.categorias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.cat-box {
  background: #0059b3;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.cat-box:hover {
  background: #0074d9;
}















/* Links Úteis */
.links-uteis {
  margin: 40px 0;
}

.links-uteis ul {
  list-style: none;
  padding-left: 0;
}

.links-uteis li {
  margin-bottom: 10px;
}

.links-uteis a {
  color: #004080;
  text-decoration: underline;
}


















/* Rodapé geral */
.footer {
  background-color: #004080;
  color: white;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

/* Container flexível */
.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 5px;
}

/* Colunas */
.footer-col {
  flex: 1 1 300px;
}

/* Esquerda - Links */
.footer-left {
  text-align: left;
}

.footer-left a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-left a:hover {
  color: #ffcc00;
}

/* Centro - Logo e texto */
.footer-center {
  text-align: center;
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 10px;
}

.copyright {
  font-size: 15px;
  margin-top: 8px;
  color: #ffffff;
}

.copyright:hover{
  color: #ffcc00;
}

/* Direita - Redes sociais */
.footer-right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px; /* espaço entre os ícones */
}

.footer-right a {
  color: white;
  font-size: 45px; /* tamanho dos ícones aumentado */
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-right a:hover {
  color: #ffcc00;
  transform: scale(1.2);
}



@media (max-width: 768px) {
  /* Esconder copyright */
  .footer-center {
    display: none;
  }

  /* Container rodapé: empilha e centraliza tudo */
  .container-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px 10px;
    display: block;
  }

  /* Links centralizados em coluna (um embaixo do outro) */
  .footer-left {
    text-align: center;
    margin-bottom: 15px;
  }

  .footer-left a {
    display: inline-block;
    margin: 0 10px 10px 10px;
  }

  /* Redes sociais centralizadas e com espaçamento */
  .footer-right {
    justify-content: center;
    gap: 25px;
  }
}












.subpaginas-lista {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.subpaginas-lista li {
  margin-bottom: 12px;
}

.subpaginas-lista a {
  font-size: 1.1rem;
  color: #004080;
  text-decoration: none;
  border-left: 4px solid #004080;
  padding-left: 12px;
  transition: 0.2s;
}

.subpaginas-lista a:hover {
  background: #f0f4f8;
  padding-left: 16px;
}
