html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f7fb;
}

/* TOPO */
.topo1 {
  text-decoration: none;
  width: 250px;
  height: 54px;
  color: #fff;
  font-size: 11pt;
  min-width: 180px;
  position: fixed;
  top: 45px;
  left: 250px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 18px;
  background: rgba(5, 20, 60, 0.857);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  z-index: 10;
}

.topo {
  width: 12%;
  min-width: 180px;
  position: fixed;
  top: 45px;
  left: 40px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 18px;
  background: rgba(5, 20, 60, 0.857);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  z-index: 1000;
}

.logo img {
  height: 36px;
  padding-right: 10px;
  border-right: 2px solid #ffffff96;
}

/* BOTÃO HAMBURGER */
.btn_menu {
  width: 36px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.btn_menu span {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

/* ÍCONE X (quando ativo) */
.btn_menu.ativo span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.btn_menu.ativo span:nth-child(2) {
  opacity: 0;
}

.btn_menu.ativo span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.5s ease;
  z-index: 900;
}

.overlay.ativo {
  opacity: 1;
  pointer-events: all;
}

/* MENU LATERAL */
.menu_lateral {
  position: fixed;
  top: 0;
  left: -370px;
  width: 370px;
  height: 100vh;
  background: #0d2a63;
  color: #fff;
  padding: none;
  transition: 0.35s ease;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 0 15px 15px 0;
}

.menu_lateral.ativo {
  left: 0;
}

.menu_links a {
  font-weight: 200;
  display: block;
  font-size: 28pt;
  color: #fff;
  padding: 3px 0 3px 35px;
  text-decoration: none;
  margin-bottom: 25px;
  margin-bottom: 3px solid #fff;
}

.menu_links a:nth-child(2) {
  font-size: 28pt;
}

.menu_links .ativo {
  background: #071629;
}

.menu_links a:hover {
  margin: none;
  width: 100%;
  background: #071629;
  color: #fff;
  opacity: 0.8;
}

.menu_footer a {
  font-weight: 200;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  margin-left: 35px;
  margin-bottom: 50px;
  display: inline-block;
}

/* ================= FUNDO FIXO ================= */

.tela_fundo {
  position: fixed;
  inset: 0;
  background: #f5f7fb;
  z-index: 0;
  padding: 80px;
}

.filtro {
  margin-top: 50px;
  max-width: 360px;
  margin-right: 10px;
}

.pesquisa {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.pesquisa input {
  flex: 1;
  padding: 12px 15px;
  border-radius: 25px;
  border: 1px solid #ccc;
  outline: none;
}

.pesquisa button {
  padding: 12px 22px;
  border-radius: 25px;
  border: none;
  background: #162e6d;
  color: #ffffff;
  cursor: pointer;
}

.categorias {
  background: #ffffff;
  padding: 25px;
  border-radius: 18px;
}

.categorias h3 {
  margin-bottom: 15px;
}

.categorias a {
  display: inline-block;
  margin: 6px 5px;
  padding: 8px 16px;
  background: #162e6d;
  color: #ffffff;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
}

/* =============IMAGEM INICIAL DO BLOGS ============= */
/* =========================
   TELA INICIAL - BLOG
========================= */
.bg {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fb;
}

/* container da imagem */
.bg .img_principal {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* imagem */
.bg .img_principal img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 85%;
  object-fit: cover;
  object-position: center;
}

/* Overlay azul escuro */
.img_principal::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 85%;
  background: radial-gradient(
    circle at center,
    rgba(10, 25, 80, 0.19) 60%,
    rgba(10, 25, 80, 0.7) 90%,
    rgba(25, 39, 93, 0.48) 100%
  );

  z-index: 1;
}

/* Conteúdo central (texto) */
.conteudo_artigo {
  position: absolute;
  width: 100%;
  bottom: 160px;
  left: 50%;
  z-index: 2;
  max-width: 100%;
  padding: 0;
  color: #ffffff;
  display: flex;
  justify-content: center; /* centra o <p> */
  transform: translateX(-50%);
}

/* Parágrafo centralizado */
/* Parágrafo centralizado */
.conteudo_artigo p {
  width: 95%;
  max-width: 950px;
  font-size: 3.2rem;
  font-weight: 1000;
  line-height: 1.1;
  opacity: 0.9;
  text-align: center;
  margin: 0 auto;
}

/* Responsivo */
@media (max-width: 900px) {
  .conteudo_artigo h1 {
    font-size: 3rem;
  }

  .conteudo_artigo p {
    font-size: 1rem;
  }
}

/* ================= LAYOUT PRINCIPAL ================= */
.blogs-layout {
  position: relative;
  top: -50px;
  z-index: 1;

  display: grid;
  grid-template-columns: 89%;
  gap: 40px;

  width: 100%;
  max-width: 1550px;

  margin-left: auto; /* EMPURRA PARA A DIREITA */
  margin-right: 0;

  padding-left: 600px;
}

.blogs-vazio {
  background: transparent;
}

/* ================= POSTS ================= */

.blogs-lista {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.post {
  background: #f5f7fb;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 15px;
}

/* Informacoes do publicador */
.publicador {
  display: flex;
  align-items: center;
  width: 100%;
  height: auto;
  padding: 8px 20px;
  background: #f5f7fb;
  border-radius: 14px;
  gap: 15px;
  box-shadow: 0 8px 25px rgba(168, 171, 168, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publicador .foto_pub {
  width: 80px;
  height: 80px;
  object-fit: cover;
  align-items: center;
  border-radius: 50%;
  border: 1px solid #071629;
}

.publicador .conteudo {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
  margin-left: 10px;
  color: #0d2a63;
}

.publicador .conteudo h3 {
  font-weight: 400;
}

.publicador .conteudo span {
  font-weight: 300;
  font-size: 10pt;
}

.post h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 20pt;
  margin-bottom: 10px;
}

.post p {
  font-size: 13pt;
  opacity: 0.85;
  margin-bottom: 15px;
}

/* MAIS CONTEUDOS */

.bloco-artigo {
    margin-top: 40px;
  font-size: 14pt;
  line-height: 1.7;
  color: #222;
}

.bloco-artigo img{
    width: 300px;
}

.img-flutuante {
  float: left;              /* FAZ O TEXTO CONTORNAR */
  width: 260px;
  margin: 0 25px 15px 0;    /* ESPAÇO ENTRE IMAGEM E TEXTO */
  border-radius: 14px;
  object-fit: cover;
}

/* LIMPA O FLOAT PARA O PRÓXIMO CONTEÚDO */
.bloco-artigo::after {
  content: "";
  display: block;
  clear: both;
}


/* IMAGEM CENTRAL GRANDE */
.imagem-grande {
  margin: 40px 0 0 0;
}

.imagem-grande img {
    display: block;
  width: 90%;
  height: 260px;
  object-fit: cover;
  border-radius: 16px; 
  margin: 0 auto 10px  auto;
}

/* TEXTO FINAL */
.conteudo3 p { 
  line-height: 1.6;
  color: #222;
}

.conteudo3 .titulo {
  font-weight: 600;
  color: #000;
}

/* FORMULÁRIO DE COMENTÁRIOS */
.comentarios-container {
  width: 100%;
  max-width: 1670px;
  margin: 40px auto;
  padding: 20px;
}

/* CARD */
.form-comentario {
    width: 100%;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

/* TÍTULO */
.form-comentario h2 {
  margin-bottom: 20px;
  color: #1e3a8a;
  font-size: 22px;
  font-weight: 500;
}

/* TEXTAREA */
.form-comentario textarea {
  width: 100%;
  height: 140px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  padding: 15px;
  font-size: 15px;
  resize: vertical;
  outline: none;
}

/* CAMPOS */
.campos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.campo label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #1e3a8a;
}

.campo span {
  color: #1e3a8a;
}

.campo input {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 0 18px;
  font-size: 14px;
  outline: none;
}

/* ARTIGOS RELACIONADOS */
.artigos-relacionados {
  width: 100%;
  padding: 50px 0;
  margin-bottom: -70px;
  font-family: Arial, sans-serif;
}

/* TOPO */
.top-nav {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: auto;
  margin-bottom: 30px;
}

.top-nav span {
background: #0d2a63;
color: #fff;
font-size: 20pt;
width: 50px;
height: 50px;
padding: 8px;
border-radius: 50%;
align-items: center;
justify-content: center;
}

.top-nav button {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  color: #132c6b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px; 
}

/* BOX */
.box-artigos {
  width: 85%;
  margin: auto;
  background: #F4F4FB;
  border-radius: 10px;
  padding: 0 0 30px 0;
  text-align: center;
  border: 1px solid #ccc;
}

.artigo_header{
    border: 1px solid #9aa3c7;
    margin: 0;
    background: #E7E7FC;
    border-radius: 10px 10px 0 0;
}

.box-artigos h2 {
  margin-top: 20px;
  font-size: 26px;
  color: #132c6b; 
  text-align: center;
  justify-content: center;
}

.linha {
  width: 150px;
  height: 3px;
  background: #132c6b;
  margin: 15px auto 0 auto;
  border-radius: 5px;
}

/* SLIDER */
.slider-container {
  overflow: hidden;
  width: 100%;
  padding: 30px;
  background: #F4F4FB;
}

.slider {
  display: flex;
  transition: transform 0.6s ease;
}

.artigo {
  min-width: 33.33%;
  padding: 10px;
}

.artigo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 8px;
}

/* INDICADORES */
.indicadores {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.indicadores span {
  width: 10px;
  height: 10px;
  background: #9aa3c7;
  border-radius: 50%;
  cursor: pointer;
}

.indicadores span.ativo {
  background: #132c6b;
  width: 45px;
  border-radius: 10px;
}


/* BOTÃO */
.form-comentario button {
  margin-top: 25px;
  background: #102a6b;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.form-comentario button:hover {
  background: #0b1f4a;
}

 
/* ================= SESSÃO 6 ================= */

.sessao6 {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: -50px;
  background: #162e6d; /* azul escuro */

  color: #ffffff;
  padding: 60px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;
}

/* Texto superior esquerdo */
.sessao6-topo p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-top: 20px;
  font-size: 22pt;
  line-height: 1.4;
  max-width: 520px;
}

/* Título central */
.sessao6-centro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sessao6-centro h1 {
  font-size: clamp(60px, 10vw, 140px);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  letter-spacing: 2px;
}

/* Navegação inferior direita */
.sessao6-nav {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  margin-bottom: -40px;
}

.sessao6-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.sessao6-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.rodape {
  position: relative; /* MUITO IMPORTANTE */
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
  z-index: 10;
  width: 100%;
  text-align: center;
  padding: 20px 10px;
  border-top: 1px solid #ffffff5d;
  background: #142b6c;
  color: #fff;
}

.rodape p {
  margin: 0;
  font-size: 17px;
}

/* ================= RESPONSIVO ================= */

@media (max-width: 900px) {
  .blogs-layout {
    grid-template-columns: 1fr;
  }

  .blogs-vazio {
    display: none;
  }

  .tela_fundo {
    position: relative;
    padding: 40px;
  }
}
