/*
Theme Name: Portal Novo
Theme URI: https://seusite.com/
Author: JOERI
Author URI: https://www.joeri.com.br/
Description: Tema personalizado portal de notícias
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-novo
*/

/* INCIO CSS POST UNICO */
img.aligncenter,
.wp-block-image .aligncenter {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    text-align: center !important;
}

img.alignleft {
    float: left;
    margin-right: 1em;
}

img.alignright {
    float: right;
    margin-left: 1em;
}

.content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 20px;
}

.main-content {
    flex: 3;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.sidebar {
    flex: 1;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho da postagem */
.post-header {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.post-title {
    font-size: 24px;
    color: #333;
}

/* Metadados (autor e data) */
.post-meta {
    font-size: 14px; /* Tamanho padrão */
    color: #000; /* Cor preta */
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap; /* Garante que os elementos fiquem na mesma linha */
}

.post-meta i {
    font-size: 14px; /* Tamanho dos ícones */
    color: #000; /* Ícones na cor preta */
    margin-right: 5px; /* Espaçamento entre o ícone e o texto */
}

.post-meta strong {
    font-weight: bold; /* Negrito para o texto */
    color: #000; /* Cor preta */
}

/* Conteúdo da postagem */
.post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
}

/* Seção de comentários */
.comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #ddd;
}

.comments-section h3 {
    font-size: 20px;
    color: #333;
}

/* Legendas de imagens */
figure {
    margin: 0;
    padding: 0;
}

figcaption {
    background-color: #ccc; /* Fundo cinza */
    font-size: 8px; /* Tamanho pequeno */
    color: #000; /* Texto preto */
    text-align: center; /* Centraliza o texto */
    padding: 5px; /* Espaçamento interno */
    border-radius: 4px; /* Bordas arredondadas */
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    /* Layout: Sidebar abaixo do conteúdo principal */
    .content-wrapper {
        flex-direction: column;
    }

    .main-content {
        flex: none;
        margin-bottom: 20px;
    }

    .sidebar {
        flex: none;
        box-shadow: none; /* Opcional: remove sombra em dispositivos menores */
    }

    /* Ajustes nos metadados */
    .post-meta {
        font-size: 12px; /* Reduz tamanho do texto */
        gap: 5px; /* Reduz espaçamento entre os elementos */
        flex-wrap: nowrap; /* Garante que tudo fique em linha única */
    }

    .post-meta i {
        font-size: 12px; /* Reduz tamanho dos ícones */
    }

    .post-meta strong {
        font-size: 12px; /* Reduz tamanho do texto */
    }

    /* Ajustes nas legendas */
    figcaption {
        font-size: 7px; /* Fonte menor para dispositivos móveis */
        padding: 3px; /* Reduz o espaçamento interno */
    }
}
/* FIM CSS POST UNICO */


/* REMOVE ESPAÇOS EXTERNOS */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background-color: #f0f0f0; /* Fundo cinza claro */
  font-family: 'Segoe UI', sans-serif;
  color: #333; /* Texto em preto */
}

/* LINKS */
a {
  color: #ff7300; /* Garantindo contraste nos links */
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  text-decoration: underline;
  color: #ffaa50; /* Cor no hover */
}

/* HEADER COMPLETAMENTE PRETO */
.site-header {
  background-color: #000; /* Fundo preto absoluto */
  padding: 10px 0;
  width: 100%;
}

.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo img {
  height: 70px;
  image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: bicubic;
}


/* MENU PRINCIPAL */
.main-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.main-nav .menu {
  list-style: none; /* Remove os pontos dos itens do menu */
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.main-nav .menu li {
  margin: 0; /* Garante que não haja margens inesperadas */
}

.main-nav .menu li a {
  color: #fff; /* Texto do menu branco */
  text-decoration: none; /* Remove sublinhado */
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav .menu li a:hover {
  color: #ff7300; /* Cor no hover */
}

/* ICONES E BUSCA NO HEADER */
.header-icons {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.header-icons a {
  color: #fff; /* Ícones com texto branco */
  font-size: 18px;
  transition: color 0.3s;
}

.header-icons a:hover {
  color: #ff7300;
}
/* RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS */
@media (max-width: 768px) {
  .site-header .container {
    display: flex;
    flex-direction: column; /* Elementos empilhados em coluna */
    align-items: center; /* Centraliza os itens horizontalmente */
  }

  .header-top {
    display: flex;
    justify-content: space-between; /* Logo e menu hambúrguer alinhados */
    align-items: center;
    width: 100%; /* Ocupa toda a largura do cabeçalho */
    padding: 0 15px;
  }

  .header-top .logo img {
    height: 50px; /* Reduz o tamanho da logo para telas menores */
  }

  .header-top .hamburger-menu {
    font-size: 24px; /* Tamanho adequado do menu hambúrguer */
    cursor: pointer;
    color: #fff;
  }

  .header-bottom {
    display: flex;
    justify-content: center; /* Centraliza os ícones de redes sociais */
    gap: 15px; /* Espaçamento entre os ícones */
    margin-top: 10px; /* Espaço entre as linhas superior e inferior */
    width: 100%;
  }
}



/* CONTEÚDO PRINCIPAL */
.site-main {
  padding: 20px 0;
  background-color: #fff;
}

/* CONTEÚDO CENTRALIZADO */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
}

/* ARTIGOS NO CONTEÚDO */
article {
  margin-bottom: 30px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* CATEGORIAS EM QUADRADO LARANJA */
.category {
  display: inline-block;
  background-color: #ff7300;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
  width: auto;
}

/* POSTAGENS DESTAQUE */
.featured-posts {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 20px auto;
  width: 100%;
  box-sizing: border-box;
}

.featured-post {
  flex: 1 1 45%;
  max-width: 600px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  background-color: #fff;
  box-sizing: border-box;
}

.featured-thumb {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.featured-thumb:hover {
  transform: scale(1.02);
}

.featured-content {
  position: absolute;
  bottom: 0;
  color: white;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  width: 100%;
  box-sizing: border-box;
}

.featured-category {
  background-color: #ff7300;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 4px;
  text-transform: uppercase;
  text-align: center;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
  .featured-post {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .featured-thumb {
    height: 300px;
  }
}

@media (max-width: 600px) {
  .content {
    padding: 15px;
  }

  .featured-post {
    margin: 0 10px; /* Espaço lateral nos cards em celular */
  }

  .featured-thumb {
    height: 220px;
  }

  .featured-content {
    padding: 10px;
    font-size: 14px;
  }

  .category,
  .featured-category {
    font-size: 11px;
    padding: 4px 8px;
  }
}


/* GRID DE POSTAGENS */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Força 4 colunas no desktop */
  gap: 16px; /* Espaço entre os itens */
  padding: 25px;
  width: 95%; /* Ajusta à largura do contêiner pai */
  max-width: 100%; /* Garante que o grid não ultrapasse o conteúdo */
  box-sizing: border-box; /* Inclui o padding no cálculo de tamanho */
  margin: 0 auto; /* Centraliza o grid horizontalmente */
}

.post-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; /* Garante que nenhum conteúdo ultrapasse o limite do quadrado */
  background-color: #fff; /* Fundo branco para cada item */
  display: flex;
  flex-direction: column; /* Organiza imagem, categoria e título verticalmente */
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-item img {
  width: 100%; /* Garante que a imagem ocupe toda a largura */
  height: 180px; /* Define uma altura fixa para a imagem */
  object-fit: cover; /* Ajusta a imagem para preencher o espaço sem distorção */
  object-position: center; /* Centraliza o conteúdo da imagem */
}

.post-location {
  font-size: 12px;
  color: #fff; /* Texto branco */
  background-color: #ff7300; /* Fundo laranja */
  padding: 5px 10px;
  border-radius: 4px;
  margin: 10px auto; /* Centraliza a localização com espaçamento */
  display: inline-block; /* Impede que a categoria ocupe o espaço todo */
}

.post-location a {
  color: #fff; /* Texto do link em branco */
  text-decoration: none; /* Remove sublinhado */
}

.post-location a:hover {
  text-decoration: underline; /* Sublinha ao passar o mouse */
}

.post-item h3 {
  font-size: 18px;
  color: #333; /* Texto preto */
  margin: 10px 0; /* Espaçamento entre a categoria e o título */
}

.post-item h3 a {
  text-decoration: none; /* Remove sublinhado */
}

.post-item h3 a:hover {
  color: #ff7300; /* Cor do título ao passar o mouse */
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr); /* Ajusta para 2 colunas em tablets */
  }

  .post-item img {
    height: 150px; /* Altura reduzida para tablets */
  }
}

@media (max-width: 480px) {
  .post-grid {
    grid-template-columns: 1fr; /* Ajusta para 1 coluna em celulares */
  }

  .post-item img {
    height: 120px; /* Altura reduzida para celulares */
  }
}



/* INICIO CSS POSTAGEM UMA ABAIXO DA OUTRA */
/* Conteiner Principal */
.content-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 15px;
  background-color: #fff; /* Fundo branco */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Seção de Postagens */
.main-content {
  flex: 3; /* Ocupa mais espaço */
}

.post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd; /* Linha separando postagens */
  align-items: flex-start; /* Alinha a imagem e informações no topo */
}

/* Imagem destacada */
.post-thumbnail {
  flex-shrink: 0;
  width: 200px; /* Tamanho inicial maior para imagens */
  height: 200px; /* Força altura igual à largura */
}

.post-thumbnail img {
  width: 100%; /* Imagem ocupa toda a largura do quadrado */
  height: 100%; /* Imagem ocupa toda a altura do quadrado */
  object-fit: cover; /* Garante que a imagem se ajuste ao tamanho */
  border-radius: 8px; /* Bordas arredondadas */
}

/* Informações do post */
.post-info {
  flex-grow: 1;
}

/* Categoria */
.category {
  display: inline-block;
  background-color: #ff7300; /* Fundo laranja */
  color: #fff !important; /* Texto branco forçado */
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px; /* Reduz a distância entre categoria e título */
  text-align: center;
  width: auto; /* Garante ajuste ao conteúdo */
}

.category a {
  color: #fff !important; /* Força o texto branco nos links */
  text-decoration: none;
}

.category a:hover {
  text-decoration: underline; /* Sublinhado no hover */
}

/* Título */
.post-title a {
  font-size: 18px;
  font-weight: bold;
  color: #333; /* Texto preto */
  text-decoration: none;
}

.post-title a:hover {
  color: #ff7300; /* Cor laranja no hover */
}

/* Data */
.post-date {
  font-size: 12px;
  color: #555; /* Texto cinza escuro */
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-icon {
  font-size: 14px;
  color: #ff7300; /* Ícone laranja */
}

/* Barra Lateral */
.sidebar {
  flex: 1; /* Menor largura */
  background-color: #f0f0f0; /* Fundo cinza claro */
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ad {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #ff7300; /* Fundo laranja para destaque */
  color: #fff; /* Texto branco */
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
}

.ad:last-child {
  margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 768px) {
  /* Ajusta o container principal para exibir em coluna */
  .content-container {
    flex-direction: column; /* Layout vertical em telas menores */
  }

  .main-content, .sidebar {
    flex: 1; /* Ambos ocupam a mesma largura em telas pequenas */
  }

  .post {
    flex-direction: column; /* Layout vertical para posts */
    gap: 10px; /* Reduz espaçamento em telas menores */
  }

  .post-thumbnail {
    width: 100%; /* Imagem ocupa 100% da largura disponível */
    height: auto; /* Altura ajustada dinamicamente */
    max-width: 300px; /* Tamanho máximo para quadrados */
    margin: 0 auto; /* Centraliza em dispositivos menores */
  }

  .post-thumbnail img {
    width: 100%; /* Garante que a imagem preencha o quadrado */
    height: 100%; /* Altura preenche o quadrado */
    object-fit: cover; /* Garante consistência com o desktop */
  }

  .category {
    font-size: 10px; /* Fonte menor em telas menores */
    margin-bottom: 5px; /* Mantém proximidade com o título */
  }

  .post-title a {
    font-size: 16px; /* Reduz tamanho do título em dispositivos menores */
  }

  .sidebar {
    margin-top: 20px; /* Espaço adicional abaixo das postagens */
  }

  .ad {
    font-size: 12px; /* Texto ajustado para telas menores */
  }
}

/* FIM CSS POSTAGEM UMA ABAIXO DA OUTRA */

/* INICIO SIDEBAR */
.sidebar {
  width: 30%;
  background-color: #f9f9f9;
  padding: 20px;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.sidebar * {
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar iframe,
.sidebar embed,
.sidebar object,
.sidebar video,
.sidebar img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Estilo dos widgets */
.sidebar .widget {
  margin-bottom: 20px;
}

.sidebar .titulo-widget {
  font-size: 18px;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #ccc;
}

/* Responsivo: sidebar abaixo do conteúdo */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    margin-top: 20px;
  }
}
/* FIM SIDEBAR */

/* INICIO CSS PAGINA UNICA */
.entry-header {
    text-align: center;
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2em;
    font-weight: bold;
}

.entry-content {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
}

.entry-footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
}
/* FIM CSS PAGINA UNICA */

/* INICIO CSS PAGINA 404 */
.error-404 {
    text-align: center;
    padding: 50px 0;
}

.page-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-content {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-content ul {
    list-style-type: none;
    padding: 0;
}

.page-content ul li {
    margin: 10px 0;
}

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

.page-content a:hover {
    text-decoration: underline;
}

/* FIM CSS PAGINA 404 */