/* ===================================================
   RESET GERAL
=================================================== */
*,
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #222;
  line-height: 1.6;
}
body {
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

a {
  text-decoration: none;
}

/* ===================================================
   TOPO E MENU PRINCIPAL
=================================================== */
.topo {
  border-bottom: 1px solid #ddd;
  position: relative;
}

.topo-superior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

.icones a {
  margin-left: 12px;
}

.icones img {
  width: 24px;
  height: 24px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 1000;
}

.menu-toggle img {
  width: 45px;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
  background: #000;
}

.menu a {
  color: white;
  font-size: 0.9rem;
  font-weight: 400;
}

.menu a:hover {
  background-color: #f5f50d;
  color: black;
}

/* ===================================================
   DESTAQUES DO TOPO
=================================================== */
.destaques {
    display: flex;
    gap: 20px;
    margin: 10px 0;
    align-items: flex-start; /* Garante que os itens se alinhem ao topo e a altura total seja determinada pelo conteúdo */
    }

 .destaque-grande {
  flex: 2;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.destaque-grande:hover {
  transform: scale(1.02);
}
.coluna-pequenos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Ajustado para 20px para melhor alinhamento com o gap principal */
 }

 .destaque-grande img {
    width: 100%;
    height: 480px; /* Garante que a imagem preencha a altura do seu contêiner */
    object-fit: cover; /* Corta a imagem para preencher o contêiner mantendo a proporção */
}

.destaque-pequeno img {
  width: 100%;
  height: 182px; /* Garante que a imagem preencha a altura do seu contêiner */
  object-fit: cover; /* Corta a imagem para preencher o contêiner mantendo a proporção */
}
 .destaque-pequeno {
  flex: 1; /* Permite que cada destaque pequeno ocupe metade do espaço disponível na coluna */
  display: flex;
  flex-direction: column;
  /* overflow: hidden; Garante que o conteúdo que exceder o contêiner seja cortado */
  transition: transform 0.2s;
}
.destaque-pequeno:hover {
  transform: scale(1.02);
}
.visually-hidden { /* H1 e descrição ocultos - index categorias */
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.destaque-grande h1 {
  font-size: 1.3em;
  text-align: center;
}
.destaque-grande h2 {
  font-size: 1.3em;
  text-align: center;
}

.destaque-grande p {
 font-size: 1em;
 }

.destaque-pequeno h2 {
  font-size: 1.1em;
  text-align: center;
  color: #4d3dff;
}

.destaque-pequeno p {
  margin-bottom: 10px; /* Pequena margem para separar do parágrafo */
  font-size: 0.95em;
  color: #4d3dff;
}
/* ===================================================
   LISTAGEM DE POSTS POR CATEGORIA
=================================================== */
.secao-categoria {
  margin: 20px 10px 30px;
}

.secao-categoria h2 {
  margin: 15px 0 5px 10px;
  font-size: 25px;
}

.grade-categoria {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.card-categoria {
  flex: 1 1 calc(25% - 12px);
  max-width: calc(25% - 12px);
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.card-categoria img {
  width: 100%;
  height: auto;
  /* object-fit: cover; */
  display: block;
  /*aspect-ratio: 16/9;  Garante proporção fixa para imagens de destaque */
}

.card-categoria:hover {
  transform: scale(1.05);
}
.card-categoria h2,
.card-categoria p {
  text-align: center;
  padding: 5px;
}

.card-categoria h2 {
  font-size: 1rem;
  font-weight: 600;
}

.card-categoria p {
  font-size: 0.9rem;
  color: #444;
}

/* ===================================================
   BOTÃO CARREGAR MAIS
=================================================== */
.carregar-mais {
  display: block;
  margin: 20px auto 40px;
  padding: 10px 20px;
  background-color: #4d3dff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.carregar-mais:hover {
  background-color: #222;
}
/* ===================================================
   CONTEÚDO DOS POSTS (DUAS COLUNAS)
=================================================== */
.pagina-post {
  display: flex;
  flex-wrap: row;
  align-items: flex-start;
  gap: 40px;
}

.coluna-post {
  flex: 3;
  min-width: 0;
}

 .coluna-lateral { 
  flex: 1;
  min-width: 240px;
  max-width: 280px;
  align-self: flex-start;
}

.conteudo-lateral-sticky,
.bloco-sugestoes-sticky {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
        .intro {
            font-size: 1.15em;
            color: #555;
            font-style: italic;
            margin-bottom: 30px;
            padding: 20px;
            background-color: #eff6ff;
            border-radius: 5px;
            border-left: 4px solid #3b82f6;
        }
     .info-box {
            background-color: #e8f5e8;
            border: 1px solid #c3e6c3;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
            color: #2d5a2d;
        }
        
        .warning-box {
            background-color: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
            color: #856404;
        }
        
        .tip-box {
            background-color: #d1ecf1;
            border: 1px solid #bee5eb;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
            color: #0c5460;
        }
        
        .footer-note {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #ddd;
            font-style: italic;
            color: #666;
            text-align: center;
        }
              .highlight {
            background-color: #fef3c7;
            padding: 2px 4px;
            border-radius: 3px;
        }
                .stat-highlight {
            background-color: #e6fffa;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            color: #234e52;
        }
                .tech-box {
            background-color: #f0fff4;
            border: 1px solid #9ae6b4;
            border-radius: 5px;
            padding: 15px;
            margin: 20px 0;
            color: #22543d;
        }

/* ===================================================
   BLOCO DE DESTAQUE DO TOPO (POST)
=================================================== */
.destaque-topo {
  /* display: flex; */
  /* flex-wrap: wrap;
  gap: 30px; */
  align-items: center;
  background-color: #f3f3f3;
  border-radius: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.texto-destaque {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.texto-destaque h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.texto-destaque p {
  font-size: 1.5rem;
  color: #333;
  margin-left: 10px;
}

.imagem-destaque {
 /*  flex: 1;
  min-width: 300px; */
   text-align: center; 
}

.imagem-destaque img {
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
}

/* ===================================================
   CONTEÚDO DO POST
=================================================== */
.post-conteudo img {
  display: block;
  max-width: 800px; /* antes era 480px */
  width: 100%;
  height: auto;
  /* margin: 5px auto 24px; */
  margin: 24px auto; /* maior respiro em cima */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.post-conteudo img + h2 {
  margin-top: 40px;
}

.post-conteudo h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
  color: #222;
}

.post-conteudo h2, h3 {
  font-size: 1.5rem;
  text-align: center;
  margin: 20px 0 10px;
  color: #333;
}

.post-conteudo p {
  font-size: 1.3rem;
  margin-left: 10px;
  margin-bottom: 16px;
  color: #444;
}

.post-conteudo ul {
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.post-conteudo li {
  margin-left: 30px;
  margin-bottom: 8px;
  list-style-type: disc;
  font-size: 1.3rem;
}
/* ===================================================
   OPÇÕES DE CSS MELHORADO PARA O BOTÃO
   Escolha a versão que mais gostar!
   =================================================== */

/* 🎯 OPÇÃO 1: BOTÃO MODERNO COM GRADIENTE */
.btn-continue-moderno {
  display: inline-block;
  background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-continue-moderno:hover {
  background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 124, 186, 0.4);
  color: white;
  text-decoration: none;
}

.btn-continue-moderno:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}


/* 🔥 OPÇÃO 4: BOTÃO CALL-TO-ACTION PODEROSO */
.btn-continue-cta {
  display: inline-block;
  background: #ff6b35;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.btn-continue-cta::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.btn-continue-cta:hover {
  background: #e55a2b;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
  color: white;
  text-decoration: none;
}

.btn-continue-cta:hover::after {
  transform: translateY(-50%) translateX(5px);
}

/* 💎 OPÇÃO 5: BOTÃO PREMIUM COM EFEITO GLASS */
.btn-continue-glass {
  display: inline-block;
  background: rgba(0, 124, 186, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 124, 186, 0.3);
  color: #007cba;
  padding: 18px 35px;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 124, 186, 0.1);
}

.btn-continue-glass:hover {
  background: rgba(0, 124, 186, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 124, 186, 0.2);
  color: #005a87;
  text-decoration: none;
}

/* 🎯 OPÇÃO 6: BOTÃO MINIMALISTA CLEAN */
.btn-continue-clean {
  display: inline-block;
  background: #007cba;
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-continue-clean:hover {
  background: #005a87;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* ===================================================
   CONTAINER PARA CENTRALIZAR O BOTÃO
   =================================================== */

.container-botao-destaque {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
}

/* Versão com fundo destacado */
.container-botao-fundo {
  text-align: center;
  margin: 40px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 1px solid #dee2e6;
}





/* Ajustes na estrutura dos destaques */
.destaque-conteudo {
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.destaque-grande .destaque-conteudo {
  padding: 20px;
}

.destaque-pequeno .destaque-conteudo {
  padding: 15px;
}

/* Garante que o botão fique na parte inferior */
.destaque-conteudo p {
  flex-grow: 1;
  margin-bottom: 10px;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .btn-continue-lendo {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .btn-continue-lendo-pequeno {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .destaque-conteudo {
    padding: 12px;
  }
  
  .destaque-grande .destaque-conteudo {
    padding: 15px;
  }
}

/* Variações de cor (opcional) */
.btn-continue-lendo.verde {
  background: #28a745;
}

.btn-continue-lendo.verde:hover {
  background: #1e7e34;
}

.btn-continue-lendo.laranja {
  background: #fd7e14;
}

.btn-continue-lendo.laranja:hover {
  background: #e55a00;
}
/* ===================================================
   BLOCOS EXTRAS LATERAIS
=================================================== */
.bloco-youtube {
  background: #f9f9f9;
  padding: 20px;
  border-left: 6px solid #cc0000;
  border-radius: 6px;
  margin-bottom: 30px;
}

.bloco-youtube p {
  margin: 0;
}

.bloco-youtube .botao-youtube {
  display: inline-block;
  margin-top: 12px;
  background: #cc0000;
  color: #fff;
  padding: 10px 18px;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
}

.bloco-youtube .botao-youtube:hover {
  background-color: #a00000;
}

.sugestoes-lateral h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.sugestoes-lateral a {
  display: block;
  color: #222;
  margin-bottom: 20px;
}

.sugestoes-lateral img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* ===================================================
   COMPONENTES DE SUGESTÃO
=================================================== */
.sugestoes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sugestoes .card-post {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.2s;
}

.sugestoes .card-post:hover {
  transform: translateY(-2px);
}

.card-post img {
  width: 100%;
  height: auto;
  display: block;
}

.card-post h4 {
  font-size: 1rem;
  margin: 0.5rem;
  font-weight: bold;
}

.card-post p {
  font-size: 0.875rem;
  margin: 0.5rem;
  color: #555;
  flex-grow: 1;
}
/* ===================================================
   RODAPÉ
=================================================== */
.footer {
  background-color: #1c1c1c;
  color: #f1f1f1;
  padding: 30px 20px;
  margin-top: 60px;
  font-size: 0.95rem;
  text-align: center;
}

.footer a {
  color: #f1f1f1;
  text-decoration: none;
  margin: 0 10px;
}

.footer a:hover {
  color: #ffd700;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-links {
  margin: 10px 0;
}

.footer-contato {
  font-size: 0.95rem;
  color: #ccc;
}

/* === Fixar o topo do site === */
header.topo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff; /* ajuste conforme a cor do seu topo */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* opcional, dá um efeito visual bonito */
}
.container {
  padding-top: 100px; /* ajuste conforme a altura do topo completo */
}

main {
  padding-top: 20px; /* ajuste conforme a altura do topo completo */
}
/* ===================================================
   RESPONSIVO
=================================================== */
@media (max-width: 1024px) {
  .menu {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    gap: 12px;
    display: none;
  }

  .menu.show {
    display: flex;
  }

  .menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid #333;
  }

  .menu-toggle {
    display: block;
  }

  .topo-superior {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 1.4rem;
  }

  .destaques {
    flex-direction: column;
  }

  .coluna-pequenos {
    flex-direction: row;
    gap: 10px;
  }

  .destaque-pequeno {
    flex: 1;
  }
  .destaque-grande img {
    height: auto;
    max-height: 360px;
    object-fit: cover;
  }

  .destaque-pequeno img {
    height: auto;
    max-height: 182px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .destaques {
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 0 12px;
}

/* Garante que não haja margem lateral exagerada */
.coluna-grande,
.coluna-pequenos {
  width: 100%;
}
  .grade-categoria {
      display: flex;
  flex-direction: column;
  gap: 20px;
  }

   .card-categoria {
      flex: 1 1 100%;
    max-width: 100%;
  }
 .card-categoria img {
    width: 100%;
    height: auto;
    display: block;
  } 
  
  .card-categoria h2 {
    font-size: 1.1rem;
  }

  .card-categoria p {
    font-size: 0.95rem;
  }
 .destaque-pequeno h2 {
  font-size: 1.1rem;
  text-align: center;

 }
  .destaque-grande h1 
 {
    font-size: 1.3rem;
    text-align: center;
  }

  .coluna-pequenos {
    flex-direction: column;
  }

  .pagina-post {
    flex-direction: column;
    align-items: center;
  }

  .coluna-post {
    width: 100%;
  }

  .post-conteudo h1 {
    font-size: 1.5rem;
  }

  .post-conteudo h2 {
    font-size: 1.2rem;
  }

  .destaque-topo {
    flex-direction: column;
    text-align: center;
  }
  .imagem-destaque img {
    width: 100%;
    
  }
  .imagem-destaque {
    text-align: center;
    
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .destaque-grande img {
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }

  .destaque-pequeno img {
    height: auto;
    max-height: 182px;
    object-fit: cover;
  }
  @media (max-width: 768px) {
  .coluna-pequenos {
    display: none !important;
  }
}

}


