/* style.css */
/* Adicione suas regras de estilo aqui */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    padding-top: 125px; /* Ajuste o valor conforme a altura do header para evitar sobreposição de conteúdo */
}
.top-header {
    background-color: #182c61;
    color: #fff;
    height: 29px;
    line-height: 29px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    position: fixed;
    width: 100%;
    z-index: 999;
    top: 0;
    left: 0;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.top-header .date {
    margin-left: 10px;
}

.top-header .top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.top-header .top-nav ul li {
    margin-right: 20px;
}

.top-header .top-nav ul li a {
    color: #fff;
    text-decoration: none;
}

.top-header .top-nav ul li a:hover {
    text-decoration: underline;
}

header,
h1,
section h2,
section h3,
form button {
    font-family: 'Poppins', sans-serif;
    font-weight: normal;
}
body, input, textarea {
    font-family: 'Nunito', sans-serif;
}
header {
    padding: 16px 0;
    background-color: #fff;
    color: #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 29px;
    left: 0;
    width: 100%;
    z-index: 1000;
}
header .container .logo {
    display: flex;
    justify-content: center;
}
/* Container do Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    margin: 0 auto;
    width: 100%;
    max-width: 1280px;
}

/* Estilos do Menu Hamburguer */
.menu-toggle {
    width: 30px;
    height: auto;
    cursor: pointer;
}

.hamburger {
    width: 100%;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    width: 100%;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Estilos da Logo */
.logo {
    text-align: center;
    flex-grow: 1;
    margin-left: 170px;
}

.logo img {
    height: 40px; /* Ajuste conforme o tamanho da logo */
}

/* Estilizando o ícone de lupa */
.search-icon-mobile {
    display: none; /* Escondido por padrão, será exibido apenas no mobile */
    cursor: pointer;
}

/* Estilos da Busca */
.search-container {
    display: flex;
    align-items: center;
}

.search-container input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px;
}

.search-container button {
    background-color: transparent;
    color: #1d1c1c;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.search-container button i {
    font-size: 16px;
}

/* Estilizando o modal de busca */
.search-modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo escuro com transparência */
}

.search-modal-content {
    margin: 15% auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    width: 80%;
    text-align: center;
}

#search-input {
    width: 70%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#search-btn {
    padding: 10px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 25px;
    cursor: pointer;
    color: white;
}

/* Estilos do Menu Lateral */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: #fff;
    padding: 40px 20px 40px 20px;
    transition: left 0.3s ease;
    z-index: 9999;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    margin-bottom: 15px;
}

.side-menu ul li a {
    color: #fff;
    text-decoration: none;
}

/* Mostrar o menu ao clicar */
.side-menu.active {
    left: 0;
}
/* Botão de Fechar "X" */
.menu-close {
    position: absolute;
    top: 30px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}
.titulo-index h1, .titulo-busca h1 {
    font-size: 35px;
    text-align: center;
    margin-bottom: 20px; 
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-style: normal;
    font-optical-sizing: auto;
    padding: 24px 0;
}

footer .container .footer-logo {
    display: flex;
    justify-content: center;
}
footer .container .footer-logo img {
    height: 25px;
}
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
#single-content .content-area{
    display: flex;
    justify-content: space-around;
}
#single-content .post-download {
    margin: 20px 0;
}
#single-content h1, h3 {
    font-weight: bold;
    margin: 10px 0;
}
.main-post {
    width: 65%; /* Área principal do post */
}
.sidebar {
    width: 30%; /* Sidebar com posts recentes */
}
.featured-image img {
    max-width: 100%;
    height: auto;
}
.post-meta p {
    margin: 0.5em 0;
}
.btn-download {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}
.btn-download:hover {
    background-color: #005177;
}
.sidebar h3 {
    margin-bottom: 1em;
    font-weight: bold;
}
.sidebar ul {
    list-style: none;
    padding-left: 0;
}
.sidebar ul li {
    margin-bottom: 0.5em;
}
.sidebar ul li a {
    text-decoration: none;
    color: #0073aa;
    font-weight: normal;
}
.sidebar ul li a:hover {
    text-decoration: underline;
}
section .container {
    display: block;
    /* align-items: center;
    justify-content: space-between; */
}
section .container {
    align-items: flex-start;
}

section {
    padding: 30px 0;
}

section h2 {
    margin-bottom: 16px;
    font-weight: bold;
}

section, h1 {
    color: #182c61;
}

section p {
    margin-bottom: 25px;
}

form textarea {
    resize: none;
    height: 180px;
}

section h3 {
    margin-bottom: 16px;
}

form button {
    background-color: #182c61;
    color: #ecf0f1;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-weight: bold;
    font-size: 14px;
}

input:focus, textarea:focus {
    outline-color: #182c61;
}

footer {
    background-color: #182c61;
    color: #ecf0f1;
    padding: 16px 0;
}
.img-fluid{
    max-width: 100%;
    height: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
table th, .arquivo_anexo, .data-post {
    text-align: center;
}
.arquivo_anexo img {
    height: 30px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
th {
    background-color: #f4f4f4;
}
footer {
    color: #fff;
}
.footer-bottom p {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}
#posts-empresas .form-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
#posts-empresas .barra-bottom, .form-pagination .barra-bottom {
    padding: 15px;
}
.barra-bottom p{
    margin: 0;
}
.form-pagination {
    margin: 15px 0;
}
#texto-form {
    background-color: #f9f9f9;
}
.posts-per-page-form {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.posts-per-page-form select {
    margin: 10px;
    padding: 5px;
}

.pagination {
    text-align: right;
    padding: 10px;
}
.contact-section {
    margin-bottom: 20px;
}

.contact-text, .contact-form {
    padding: 0 10px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #45a049;
}
.back-link {
    text-align: center;
    margin: 30px 0; /* espaçamento opcional acima e abaixo */
}

.back-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-link a:hover {
    background-color: #005177;
}

#category-grid .filters {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

#category-grid .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

#category-grid .post-item {
    border: 1px solid #ddd;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#category-grid .post-item:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#category-grid .post-item h2 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

#category-grid .post-item .thumb {
    margin-bottom: 0.5rem;
}

.post-item p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
}
.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin: 3px 0;
}
.search-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.search-table th,
.search-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.search-table th {
    background-color: #f4f4f4;
}
.btn-voltar {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #ccc;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-voltar:hover {
    background-color: #aaa;
}
.btn-limpar-filtros {
    display: inline-block;
    padding: 4px;
    background-color: #eee;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
    margin-left: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
    font-size: 14px;
}
.btn-limpar-filtros:hover {
    background-color: #ddd;
}
select#filter_empresa {
    width: 40%;
}
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  src: url(/fonts/material-symbols/outlined.woff2) format('woff2');
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.5em;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito/static/Nunito-Regular.ttf') format('ttf'),
       url('fonts/Nunito/static/Nunito-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito/static/Nunito-Bold.ttf') format('ttf'),
       url('fonts/Nunito/static/Nunito-Bold.ttf') format('ttf');
  font-weight: 700;
  font-style: normal;
}

/* Mesma coisa para Poppins */
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins/Poppins-Regular.ttf') format('ttf'),
       url('fonts/Poppins/Poppins-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins/Poppins-Bold.ttf') format('ttf'),
       url('fonts/Poppins/Poppins-Bold.ttf') format('ttf');
  font-weight: 700;
  font-style: normal;
}


/* Estilos para dispositivos móveis */
@media (max-width: 768px) {
    
    body {
        padding-top: 97;
    }
    .top-header {
        display: none;
    }
    header {
        top: 0;
    }
    .header-container {
        flex-wrap: wrap;
    }
    .search-container input {
        width: 150px;
    }
    .logo{
        margin-left: 0;
    }
    table {
        width: 100%; /* Garante que a tabela ocupe 100% da largura disponível */
        border-collapse: collapse; /* Remove espaços extras entre células da tabela */
        display: block;
        overflow-x: auto; /* Permite rolar horizontalmente se a tabela for muito larga */
    }

    td, th {
        padding: 10px; /* Adiciona padding nas células da tabela para evitar que o texto fique muito colado nas bordas */
        text-align: left; /* Alinha o texto à esquerda */
    }
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px; /* Adiciona espaço nas laterais do container em dispositivos móveis */
    }
    .search-icon-mobile {
        display: inline-block;
    }

    /* Esconder a barra de busca */
    .search-container {
        display: none;
    }
    #single-content .content-area{
        display: block;
    }
    .main-post, .sidebar{
        width: 100%;
    }
    
}
