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 {
  max-width: 360px;
  margin-left: auto;
}

.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_blog {
  margin: none;
  width: 100%;
  position: absolute;
  bottom: 130px; /* 🔥 controla a distância do fundo */
  left: 50%;
  line-height: 1.1;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  max-width: 90%;
  padding: 0 20px;
  color: #ffffff;
}

.conteudo_blog h1 {
  font-size: 5.2rem;
  font-weight: 900;
}

.conteudo_blog p {
  width: 100%;
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsivo */
@media (max-width: 900px) {
  .conteudo_blog h1 {
    font-size: 3rem;
  }

  .conteudo_blog p {
    font-size: 1rem;
  }
}

/* ================= LAYOUT PRINCIPAL ================= */

.blogs-layout {
  top: -50px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 60px;
}

.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.10);
  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;
}

.post .lermais {
  width: 150px;
  height: 35px;
  display: inline-flex; /* melhor para botões */
  justify-content: center;
  align-items: center; /* alinha tudo no centro vertical */
  gap: 8px;
  background: #142b6c;
  color: #ffffff;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  border-radius: 16px;
  padding: 0 14px; /* padding realista */
  line-height: 1;
}
.post .lermais:hover { 
  background: linear-gradient(135deg, #06163f,#06184a, #767ac9);

}

/* ícone */
.post .lermais .icone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #fff;
  margin-top: 14px;
}

/* BOTOES DE TROCAR A PAGINA DAS NOTICIAS */
.btn_paginacao {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 20px 80px;
}

.btn_paginacao a {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #1f3c88;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  color: #1f3c88;
  transition: all 0.3s ease;
}

/* ativo */
.btn_paginacao a.ativo {
  background: #1f3c88;
  color: #fff;
}

/* hover */
.btn_paginacao a:hover {
  background: #1f3c88;
  color: #fff;
}

/* seta */
.btn_paginacao a.proximo {
  font-size: 26px;
}

/* ================= SESSÃO 6 ================= */

.sessao6 {
  position: relative;
  width: 100%;
  height: 100vh;

  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;
  }
}
