/* Importação da Fonte */
@font-face {
    font-family: 'Poppins';
    src: url('/financas/assets/css/Poppins-Regular.woff2') format('woff2'),
         url('/financas/assets/css/Poppins-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset e Configuração Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-anchor: none;
}

body, 
html, 
button, 
input, 
textarea, 
select, 
a, 
p, 
h1, 
h2, 
h3, 
h4, 
h5, 
h6, 
li, 
span, 
div {
    font-family: "Poppins", Arial, sans-serif; /* Ou a fonte que preferir */
}

body {
    background-color: #f4f7fc;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* Estilização do Cabeçalho */
header {
    background-color: #091f7d;
    color: white;
    padding: 15px 0;
    text-align: center;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 15px solid #091f7d;
}

strong a, #openGooglePlay, #openAppStore {
    color: green !important;
  text-shadow: 0 0 1px #19c2a3;
}

strong {
    color: #001cff;
}

.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}
.imgLogo {
    margin:0 auto;
    aspect-ratio: auto; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: -5px;
}

.nav-links li {
    display: inline;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffcc00;
}

.search-icon img {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

/* Estiliza o dropdown */
.nav-links .dropdown {
    position: relative;
}

/* Esconde o submenu por padrão */
.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    left: -100%;
    top: 100%;
    background: white;
    border-radius: 4px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 100;
}

/* Exibir o menu dropdown ao passar o mouse (desktop) */
.nav-links .dropdown:hover .dropdown-menu {
    display: block;
    border: 1px solid #0056b3;
  box-shadow: 0 4px 10px #0000007a;
}

/* Estilo dos itens do dropdown */
.nav-links .dropdown-menu li {
    list-style: none;
    padding: 8px 15px;
}

.nav-links .dropdown-menu li a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 10px;
}

.nav-links .dropdown-menu li a:hover {
    background: #f5f5f5;
}

/* Responsivo: Ativar dropdown no clique no mobile */
@media (max-width: 768px) {
    .nav-links .dropdown-menu {
        position: relative;
        display: none;
    }

    .nav-links .dropdown.open .dropdown-menu {
        display: block;
    }
}

/* Estilização do Conteúdo Principal */
main {
    flex: 1;
}

/* Estilização dos Posts */
.post-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1100px;
}

.post-title {
    text-align: center;
    font-size: 28px;
    color: #0056b3;
    margin-bottom: 10px;
}

.post-intro {
    font-size: 18px;
    color: #555;
    margin-bottom: 15px;
}

.post-content h2 {
    font-size: 24px;
    color: #003366;
    margin-top: 20px;
    border-left: 5px solid #0056b3;
    padding-left: 10px;
}

.post-content h3 {
    font-size: 20px;
    color: #0056b3;
    margin-top: 15px;
}

.post-content ul,
.post-content ol {
    text-align: left;
    margin: 15px 0;
    padding-left: 20px;
}

.post-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
}

.post-content ol li {
    list-style-type: decimal;
    margin-bottom: 8px;
}

.post-content a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.post-content a:hover {
    color: #fff;
}

.post-content {
  transition: all 0.4s ease-in-out;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 0 0px rgba(0, 0, 0, 0);
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(250, 250, 250, 0.95));
}

.post-content.ativa {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.44);
  font-size: 17px;
  margin: 0;
  border: 1px solid #007bff;
}

.post-image {
  width: 48%;
  height: auto;
  aspect-ratio: 16/9 auto;
  display: flex;
  margin:5px auto;
  border: 1px solid #65a9d6;
  box-shadow: -2px 3px 10px #0000009c;
  border-radius: 3%;
}

/* Estilização do Rodapé */
footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    margin-top: auto;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
}

/* Tabelas
------------------------------------------------------------*/

table {
    width: 100%;
    border-collapse: collapse;
}
td,
th {
    text-align: left;
    padding: 12px;
    border: 1px solid #ccc;
}
th {
    background-color: #f4f4f4;
}
tr:nth-child(2n) {
    background-color: #f9f9f9;
}
tbody tr:nth-child(2n) td:first-child,
tbody tr:nth-child(odd) td:first-child {
    font-size: 16px;
    font-weight: 700;
}
tbody tr:nth-child(2n) td:nth-child(2),
tbody tr:nth-child(odd) td:nth-child(2) {
    background-color: #e8f5e9;
}
tbody tr:nth-child(2n) td:nth-child(3),
tbody tr:nth-child(odd) td:nth-child(3) {
    background-color: #ede7f6;
}
tbody tr:nth-child(2n) td:nth-child(4),
tbody tr:nth-child(odd) td:nth-child(4) {
    background-color: #e3f2fd;
}
tbody tr:nth-child(2n) td:nth-child(5),
tbody tr:nth-child(odd) td:nth-child(5) {
    background-color: #fffde7;
}
tbody tr:nth-child(2n) td:nth-child(6),
tbody tr:nth-child(odd) td:nth-child(6) {
    background-color: #feedeb;
}
@media (max-width: 768px) {
    table caption,
    tr {
        margin-bottom: 10px;
    }
    td,
    tr {
        display: block;
    }
    table {
        border: 0;
    }
    table caption {
        font-size: 1.3em;
    }
    thead {
        display: none;
    }
    tr {
        border-bottom: 1px solid #ddd;
    }
    td {
        text-align: center;
        font-size: 0.9em;
        border-bottom: 1px dotted #ccc;
        white-space: normal;
        word-wrap: break-word;
    }
    td[data-label] {
        text-align: center;
        vertical-align: middle;
        display: inline-block;
        width: 100%;
    }
    td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 8px;
    }
    td::before {
        content: attr(data-label);
        text-transform: uppercase;
        font-weight: 700;
    }
    td:last-child {
        border-bottom: 0;
    }
}

.search-icon img {
    filter: invert(1) brightness(2) contrast(100%);
}

/* Estilização do Menu Hambúrguer */
@media screen and (max-width: 768px) {
    header {
        height: 70px;
    border-top: 0;
    }
    .celMenu {
    display: flex;
  align-items: center;
  width: auto;
    }
    .menu-icon {
    display: block;
    border: 2px solid;
    border-radius: 5px;
    width: 42px;
    margin: -7px -7px 0 2px;
    line-height: 38px;
    font-weight: bold;
    }
    .imgLogo {
        margin-left: 10px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 73px;
        left: 0;
        width: 100%;
        background: #0056b3;
        text-align: center;
        padding: 10px 0;
        z-index: 9;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 10px 0;
    }
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .post-container {
        max-width: 99%;
        padding: 15px;
    }
    .post-title {
        font-size: 24px;
    }
    .post-intro {
        font-size: 16px;
    }
    .post-content h2 {
        font-size: 22px;
    }
    .post-content h3 {
        font-size: 18px;
    }
    .post-content ul,
    .post-content ol {
        padding-left: 15px;
    }
    footer {
        text-align: center;
        padding: 15px 10px;
    }
}

/* Menu de Tags */
.tag-filter {
    margin: 20px 0;
    background: #f8f8f8;
    text-align: center;
    border-radius: 5px;
    position: relative;
}
#tag-list {
    display: block;
}


/* Estilização da lista de tags (exibição padrão) */
.tag-filter ul {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
}

/* Itens da lista */
.tag-filter li {
    flex: 0 0 auto;
}

/* Botões de filtro */
.tag-filter a {
    text-decoration: none;
    padding: 8px 12px;
    background: #e6ecf5;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

/* Estilização ativa e hover */
.tag-filter a.active,
.tag-filter a:hover {
    background: #007bff;
    color: white;
}

/* Dropdown inicialmente oculto */
.tag-dropdown {
    display: none;
    width: 100%;
    padding: 8px;
    font-size: 18px;
    background-color: #eff6fe;
    border: 1px solid #0056b3;
    border-radius: 5px;
    background: #fff;
    text-align: center;
  box-shadow: 0 0 4px #0000007d;
}

/* Exibir dropdown apenas quando houver muitas tags */
@media (max-width: 768px) {
    .tag-filter ul {
        display: none; /* Esconde o menu de tags normal */
    }
    .tag-dropdown {
        display: inline-block; /* Exibe o dropdown */
    }
    #tag-list {
        display: none;
    }
}


/* listagem de posts */
/* Configuração geral do layout */
.container {
    max-width: 1099px;
    margin: 0 auto;
    padding: 20px;
}

/* Wrapper dos cards */
.cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; /* Centraliza os cards */
}

/* Estilo dos cards */
.card {
    background: #fff;
    border: 1px solid #b7ceeb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    flex: 1 1 calc(33.333% - 20px);
    max-width: 350px; /* Limita o tamanho máximo do card */
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
}

/* Card maior (para destaque, se necessário) */
.card-large {
    flex: 1 1 calc(50% - 20px);
}

.card-image {
    margin-top: -5px;
}
/* Imagem dentro do card */
.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Conteúdo do card */
.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3em;
    margin: 0 0 10px;
}

.card-content p {
    font-size: 0.9em;
    color: #666;
    text-align: justify;
}

/* Estilização do botão "Carregar Mais" */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

#load-more {
  padding: 10px 20px;
  background-color: #0056b3;
  color: #dadcde;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease-in-out;
  margin: -5px auto 0;
  width: 95%;
  font-weight: bold;
}

#load-more:hover {
    background-color: #036;
  color: #c2a718;
}

/* Responsividade */
@media (max-width: 768px) {
    .cards-wrapper {
        display: block;
    }

    .card {
        margin-bottom: 10px;
        max-width: 100%; /* Ocupa toda a largura disponível */
    }
}

/* 🔍 Estilo da Modal */
.search-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Fundo escuro */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.search-modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
    position: relative;
}

.search-form input {
    width: 80%;
    padding: 10px;
    margin-right: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.search-form button {
    padding: 10px;
    background: #0073e6;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.search-form button:hover {
    background: #005bb5;
}

/* Botão de Fechar */
.close-modal {
  position: absolute;
  width: 22px;
  height: 20px;
  font-size: 24px;
  color: #fff;
  top: 0;
  left: 0;
  cursor: pointer;
  background-color: #0073e6;
  text-align: center;
  display: block;
  line-height: 24px;
  border-top-left-radius: 10px;
}


/* estilos para breadcrumb */
.breadcrumb {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.breadcrumb a {
    text-decoration: none;
    color: #0073e6;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    font-weight: bold;
}

/* indice
/* 🔹 Estilização do Índice (TOC) */
.toc {
    position: relative;
    background: #f2f2f2;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.toc h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/*
.toc h2 {
font-size: 14px;
  text-align: center;
  background-color: #037cff;
  width: 100%;
  position: absolute;
  top: -20px;
  left: 0;
  color: #fff;
  border-top-left-radius: 5px;
  border: 1px solid #4696ec;
  border-top-right-radius: 5px;
  text-transform: uppercase;
}
*/

.toc ul{
    display: grid;
  gap: 0;
  justify-content: left;
}

/* 🔹 Lista organizada */
.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc li {
    margin: 8px 0;
    padding-left: 12px;
    position: relative;
}

@media (max-width: 768px) {
    .toc h2 {
  margin-bottom: 10px;
  color: #333;
  text-transform: uppercase;
  border-bottom: 2px solid #007bff;  
  text-align: center;
  position: absolute;
  border-left: 0;
  width: 100%;
  left: 0;
  right: 5px;
  top: -20px;
  font-size: 17px;
  background-color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.toc ul {
margin-top: 55px;
}
}

/* 🔹 Marcador de lista (para evitar bullets padrões) */
.toc li::before {
    color: #007bff;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 2px;
}
.faq-toggle {
    cursor: pointer;
}
.emoji-faq {
    display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid lightgray;
  color: gray;
  font-weight: bold;
  font-family: Arial, sans-serif;
  font-size: 18px;
}
    
/* 🔹 Estilização dos links */
.toc a {
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
    display: contents;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 🔹 Sub-itens (h3) ficam indentados */
.toc .sub-item {
    padding-left: 20px;
}

.toc .sub-item::before {
    content: "•"; /* Bullet diferente para sub-itens */
    color: #666;
    font-size: 14px;
}

/* 🔹 Estilização da barra fixa no rodapé */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f2f2f2;
    border-top: 2px solid #ddd;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 🔹 Layout da barra */
.bottom-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 800px;
}

/* 🔹 Espaço da logo à esquerda */
.nav-left {
    display: flex;
    align-items: center;
    line-height: 1px;
}

.bottom-logo {
    height: 30px;
    width: auto;
    border-radius: 10px;
}

/* 🔹 Botões do menu fixo */
.nav-right {
    display: flex;
    gap: 10px;
}

.nav-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.nav-button:hover {
    background: #0056b3;
}

/* 🔹 Estilização do índice */


/* 🔹 Índice minimizado como botão fixo */
.toc.minimized {
    display: none;
}

/* Link final artigo */
.cta-oficial {
    background-color: #E3F2FD; /* Azul claro suave */
    border-left: 5px solid #1565C0; /* Azul escuro para destaque */
    padding: 15px;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    border-radius: 5px;
}

.cta-oficial a {
    display: inline-block;
    background-color: #1565C0; /* Azul forte */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-oficial a:hover {
    background-color: #0D47A1; /* Azul ainda mais escuro no hover */
}

.copy, .linkCopy {
    margin: -30px 0 30px 0;
}

/* ♦ Posts Relacionados ♦*/
.related-posts {
    padding: 20px;
    margin-top: 0;
    background: #f8f9fa;
    border-top: 2px solid #ddd;
    text-align: center;
}

.related-posts h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

.related-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.related-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 320px;
    transition: transform 0.3s ease-in-out;
}

.related-card:hover {
    transform: scale(1.05);
}

.related-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.related-content {
    padding: 10px;
}

.related-content h3 {
    font-size: 1rem;
    margin: 5px 0;
}

.related-content p {
    font-size: 0.875rem;
    color: #666;
}

.related-card a {
    text-decoration: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .linkOficial {
  text-align: center !important;
  font-weight: bold;
}

.btnOficial, .btnAnaliseSecundaria {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #6084da, #321090);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  transition: 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
    box-shadow: 3px 3px 5px #00000075;
  border: 1px solid #fff;
  border-radius: 10px;
}

.btnOficial:hover {
  background: linear-gradient(45deg, #93cb88, #195822);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btnAnaliseSecundaria {
    background: linear-gradient(45deg, #9acf4c, #10501d);
}

.btnAnaliseSecundaria:hover {
    background: linear-gradient(45deg, #707da3, #0b1b9e);
}

.fundoimg {
    background-image: url("/financas/assets/images/fundoimg.webp");
  display: flex;
  background-repeat: no-repeat, repeat;
  background-size: 100%;
}

@media screen and (max-width: 768px) {
    .post-image {
  width: 100%;
    }
    .fundoimg {
        background-image: none;
    }
}


.ads-topo {
  max-width: 336px; /* Mantém bloco quadrado */
  margin: -10px auto 10px auto;
  text-align: center;
}

.ads-label {
    display: block;
    font-size: 10px;
    color: #a09f9f;
    text-align: left;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}


@media screen and (min-width: 768px) {
  .ads-topo {
    max-width: 100%; /* Deixa expandir no desktop */
  }
}

@media (max-width: 768px) {
		.ads-topo {
    max-width: 336px;
    max-height: 280px;
    text-align: center;
	margin: 0 auto;
}
}
