/*
Theme Name: My Modern Blog Theme
Theme URI: https://chameleoncomponents.com/
Author: Chameleon Components
Author URI: https://chameleoncomponents.com/
Description: Um tema WordPress moderno e responsivo para o blog da Chameleon Components, seguindo a identidade visual principal com layout de destaque similar a revista.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-modern-blog-theme
*/

/* ---- ESTILOS GERAIS E VARIÁVEIS ---- */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-black: #111111;
    --secondary-black: #1C1C1C;
    --text-color: #FFFFFF;
    --text-gray: #BDBDBD;
    --brand-yellow: #FFD700;
    --gradient-green-blue: linear-gradient(90deg, #00C9A7, #00A9E0);
    --gradient-standard: linear-gradient(90deg, #00A9E0, #00C9A7, #FFD700, #d53a9d);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Public Sans", sans-serif;
    background-color: var(--primary-black);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-yellow);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- BOTÃO PADRÃO ---- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gradient {
    color: var(--text-color);
    border: 2px solid transparent;
    background: 
        linear-gradient(var(--primary-black), var(--primary-black)) padding-box,
        var(--gradient-standard) border-box;
}

.btn-gradient:hover {
    color: var(--primary-black);
    background: var(--gradient-standard);
    transform: scale(1.05);
}

/* ---- CABEÇALHO E NAVEGAÇÃO ---- */
.main-header {
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 20px;
    gap: 80px;
}

.logo {
    width: 220px;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

/* --- ANIMAÇÃO DOS LINKS DO MENU --- */
.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--brand-yellow);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar a:hover,
.navbar a:focus {
    color: var(--brand-yellow);
}

.navbar a:hover::after,
.navbar a:focus::after {
    width: 100%;
}

.navbar a.active-page {
    color: var(--brand-yellow);
}

.navbar a.active-page::after {
    width: 100%;
}
/* --- FIM DA ANIMAÇÃO DOS LINKS DO MENU --- */

/* ---- ESTILOS DO SUBMENU (Desktop) ---- */
.nav-links .has-submenu {
    position: relative;
}

.submenu {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-black);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    z-index: 1001;
    border-radius: 5px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
}

.submenu li {
    width: 100%;
}

.submenu a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: var(--text-color);
}

.submenu a:hover {
    background-color: var(--primary-black);
    color: var(--brand-yellow);
}

/* Remover a linha de baixo nos links do submenu */
.submenu a::after {
    display: none;
}

/* Mostra o submenu ao passar o mouse sobre o ITEM PAI (has-submenu) */
.nav-links .has-submenu:hover .submenu {
    visibility: visible;
    opacity: 1;
}

.submenu-arrow {
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

/* Gira a seta quando o submenu está aberto */
.nav-links .has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}

/* ---- FIM ESTILOS DO SUBMENU ---- */

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
}

/* Adicionado para o menu mobile no CSS, crucial para o JS */
@media (max-width: 992px) {
    /* Lógica do Menu Hambúrguer */
    .social-icons {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        position: fixed;
        top: 28px;
        right: 20px;
        z-index: 1200;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(5px);
        transition: right 0.4s ease-in-out;
        z-index: 1100;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
    /* Fim da Lógica do Menu */

    /* ---- SUBMENU NO MOBILE/TABLET (MENU HAMBÚRGUER) ---- */
    .nav-links .has-submenu .submenu {
        position: static;
        visibility: visible;
        opacity: 1;
        background: none;
        box-shadow: none;
        padding: 0;
        text-align: center;
        margin-top: 10px;
        display: none; /* ESCONDE por padrão no mobile, será controlado pelo JS */
        flex-direction: column;
        gap: 15px;
    }

    .nav-links .submenu.active {
        display: flex;
    }

    .nav-links .has-submenu .submenu li {
        width: auto;
    }

    .nav-links .has-submenu .submenu a {
        font-size: 1.2rem;
        padding: 5px 0;
    }
    
    .submenu-arrow {
        display: inline-block;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .footer-top .has-submenu-footer .submenu-footer {
        display: none !important;
    }
    /* FIM SUBMENU NO MOBILE/TABLET */

    .footer-top .container, .footer-top nav ul {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 25px;
    }
}

/* ---- Main Content (Área do Blog) --- */
.site-main {
    padding: 120px 0 60px 0;
    background-color: var(--primary-black);
    color: var(--text-color);
}

.site-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estilos de Título e Meta Info para o Blog */
.post-title a, .card-title a {
    color: var(--text-color);
    transition: color 0.3s ease;
}
.post-title a:hover, .card-title a:hover {
    color: var(--brand-yellow);
}

.post-meta, .card-meta {
    font-size: 0.9em;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.post-meta span, .card-meta span {
    margin-right: 15px;
}

.post-meta i, .card-meta i {
    margin-right: 5px;
    color: var(--brand-yellow);
}

/* --- NOVO: Seção de Notícias de Destaque (Grid Customizado da Imagem) --- */
.featured-news-grid {
    display: grid;
    /* Grid com 2 colunas de larguras iguais (1fr) */
    /* A altura das linhas é automática para se ajustar ao conteúdo */
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: auto; 
    gap: 25px;
    margin-bottom: 60px;
    align-items: stretch; /* Garante que os itens se estiquem */
}

/* Estilos para os itens do grid de destaque */
.featured-news-item {
    background-color: var(--secondary-black);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
    position: relative; /* Para overlay/conteúdo sobre a imagem */
}

.featured-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.featured-news-item-image {
    width: 100%;
    height: 100%; /* Ocupa a altura total do card para preencher */
    overflow: hidden;
    position: absolute; /* Posiciona a imagem por trás do conteúdo */
    top: 0; left: 0;
    z-index: 1; /* Abaixo do conteúdo */
}

.featured-news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra a área */
    transition: transform 0.3s ease;
}

.featured-news-item:hover .featured-news-item-image img {
    transform: scale(1.05);
}

.featured-news-item-content {
    position: relative; /* Conteúdo por cima da imagem */
    z-index: 2;
    padding: 25px; /* Padding interno */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alinha o conteúdo à parte inferior */
    height: 100%; /* Ocupa a altura total do card */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%); /* Gradiente escuro para legibilidade */
}

/* Estilo para a categoria (como "GAMES", "TRAVEL" na imagem) */
.featured-news-item .category-tag {
    background-color: rgba(255, 215, 0, 0.8); /* Amarelo da sua marca */
    color: var(--primary-black); /* Texto preto */
    font-size: 0.75em;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
    align-self: flex-start; /* Alinha à esquerda */
}


.featured-news-item-content h3 {
    font-size: 1.5em; /* Título maior */
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7); /* Sombra para legibilidade sobre a imagem */
}

.featured-news-item-content .post-meta {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7); /* Meta info mais clara sobre a imagem */
    margin-bottom: 0; /* Remover margin-bottom aqui, pois não há excerpt visível como no exemplo */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* No layout da imagem, os itens de destaque não têm excerpt visível, apenas título e meta */
.featured-news-item-content .post-excerpt {
    display: none; 
}
.featured-news-item-content .read-more-link {
    display: none; /* Não visível nos cards de destaque */
}

/* Definição dos tamanhos diferentes no grid (BASEADO NA IMAGEM) */
/* Item 1: Ocupa 1 coluna (metade da largura) e a altura de 2 linhas completas */
.featured-news-item:nth-child(1) {
    grid-column: 1 / 2; /* Coluna 1 */
    grid-row: 1 / 3; /* Ocupa as 2 linhas */
    min-height: 550px; /* Altura mínima para o card grande */
}

.featured-news-item:nth-child(1) .featured-news-item-content {
    padding: 30px; /* Mais padding para o conteúdo do card grande */
}

.featured-news-item:nth-child(1) .featured-news-item-content h3 {
    font-size: 2.2em; /* Título maior para o item principal */
}
.featured-news-item:nth-child(1) .featured-news-item-content .category-tag {
    font-size: 0.85em; /* Tag maior para o item principal */
}


/* Item 2: Coluna 2, Linha 1 */
.featured-news-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    min-height: 260px; /* Altura para os cards menores (aprox. metade do grande - gap) */
}

.featured-news-item:nth-child(2) .featured-news-item-content h3 {
    font-size: 1.4em; /* Título menor para os cards secundários */
}
.featured-news-item:nth-child(2) .featured-news-item-content .category-tag {
    font-size: 0.75em;
}


/* Item 3: Coluna 2, Linha 2, ocupa a metade de cima da célula */
/* Nota: Se o objetivo é que o 3 e o 4 ocupem a outra metade, a estrutura do grid precisa ser diferente
   ou usaremos flexbox dentro da segunda coluna para empilhar.
   A imagem que você mandou tem um layout 1 grande à esquerda, e 3 pequenos à direita,
   onde os 3 pequenos são 1 no topo, e 2 na linha de baixo (um à direita do outro).
   Para este layout, precisaremos de 3 colunas, ou aninhar grids/flexbox.

   Vamos recriar o grid com 3 colunas para replicar o layout da imagem:
   [Grande] [Pequeno Topo]
   [Grande] [Pequeno Esq] [Pequeno Dir]
*/

/* VAMOS REFAZER O GRID PARA O LAYOUT DA IMAGEM: 3 COLUNAS */
.featured-news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Grande à esquerda (2fr), 2 menores à direita (1fr cada) */
    grid-template-rows: repeat(2, minmax(200px, 1fr)); /* 2 linhas para os itens da direita */
    gap: 25px;
    margin-bottom: 60px;
    align-items: stretch;
    height: 550px; /* Altura fixa para o container do grid, para os itens se esticarem corretamente */
}

/* Item 1: Ocupa 2 primeiras colunas (coluna 1 e 2) e as 2 linhas */
.featured-news-item:nth-child(1) {
    grid-column: 1 / 3; /* Da linha 1 da coluna à linha 3 da coluna (inclui coluna 1 e 2) */
    grid-row: 1 / 3; /* Ocupa as 2 linhas */
    /* min-height não é mais tão crítico aqui se o pai tiver altura fixa */
}

.featured-news-item:nth-child(1) .featured-news-item-content h3 {
    font-size: 2.2em;
}
.featured-news-item:nth-child(1) .featured-news-item-content .category-tag {
    font-size: 0.85em;
}

/* Item 2: Coluna 3, Linha 1 */
.featured-news-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    min-height: 250px; /* Altura explícita para os itens menores */
}
.featured-news-item:nth-child(2) .featured-news-item-content h3 {
    font-size: 1.4em;
}
.featured-news-item:nth-child(2) .featured-news-item-content .category-tag {
    font-size: 0.75em;
}

/* Item 3: Coluna 1 da segunda linha (mas ele precisa estar à direita do item 1 e na segunda linha) */
/* Isso significa que o item 3 e 4 devem ser o 3º e 4º posts da query. */
/* Eles estarão na segunda linha, mas nas colunas 2 e 3 do grid original de 4 colunas.
   No nosso grid de 3 colunas, eles ocuparão a 2ª e 3ª colunas da 2ª linha. */
.featured-news-item:nth-child(3) {
    grid-column: 1 / 2; /* Inicia na 1ª coluna (mas é o 3º item, então precisa empurrar) */
    grid-row: 2 / 3; /* Na segunda linha */
    min-height: 250px;
}
.featured-news-item:nth-child(3) .featured-news-item-content h3 {
    font-size: 1.4em;
}
.featured-news-item:nth-child(3) .featured-news-item-content .category-tag {
    font-size: 0.75em;
}

/* Item 4: Coluna 2 da segunda linha */
.featured-news-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    min-height: 250px;
}
.featured-news-item:nth-child(4) .featured-news-item-content h3 {
    font-size: 1.4em;
}
.featured-news-item:nth-child(4) .featured-news-item-content .category-tag {
    font-size: 0.75em;
}


/* CORREÇÃO DO LAYOUT DA IMAGEM: A imagem tem 1 grande à esquerda (ocupa 2 linhas)
   e 3 pequenos à direita. O layout de 3 pequenos é 1 em cima, e 2 embaixo.
   Para isso, teríamos um grid 2x2 para os pequenos, OU 3 colunas.

   Vou adotar um grid de 4 colunas no total para simplificar e replicar o layout de 1 grande à esquerda e 3 pequenos à direita:
   [1 (ocupa 2x2)] [2 (ocupa 1x1)] [3 (ocupa 1x1)]
                     [4 (ocupa 1x1)] [5 (ocupa 1x1)]
   Mas você quer 1 grande e 3 pequenos. A imagem na verdade sugere:
   [GRANDE] [PEQ1]
   [GRANDE] [PEQ2]
   [GRANDE] [PEQ3]

   Este é um layout 2xN com um grande item `grid-column: span 1; grid-row: span 3;` e os outros em `grid-column: 2`.
   Ou melhor: 1 grande 2x1, e 3 pequenos que se distribuem.
   A imagem mostrada é:
   [BIG]   [TOP_RIGHT]
   [BIG]   [BOTTOM_LEFT] [BOTTOM_RIGHT]

   Para isso, o grid deve ter 3 colunas (big = 2 colunas, top_right = 1, bottom_left = 1, bottom_right = 1)
   E o BIG item deve ocupar as 2 linhas.
*/

.featured-news-grid {
    display: grid;
    /* Coluna 1: Grande. Coluna 2: Pequeno (topo ou esquerdo inferior). Coluna 3: Pequeno (direita inferior) */
    grid-template-columns: 2fr 1fr 1fr; /* Proporções aproximadas: 2 partes para o grande, 1 para cada pequeno */
    grid-template-rows: auto auto; /* Duas linhas de altura automática */
    gap: 25px;
    margin-bottom: 60px;
    align-items: stretch;
    /* Ajuste a altura total para que os itens se alinhem verticalmente */
    height: 600px; /* Altura aproximada do layout da imagem, ajuste conforme necessário */
}

.featured-news-item:nth-child(1) {
    grid-column: 1 / 2; /* Ocupa a primeira coluna */
    grid-row: 1 / 3; /* Ocupa as duas linhas */
}

.featured-news-item:nth-child(2) {
    grid-column: 2 / 4; /* Ocupa as colunas 2 e 3 na primeira linha */
    grid-row: 1 / 2;
}

.featured-news-item:nth-child(3) {
    grid-column: 2 / 3; /* Ocupa a coluna 2 na segunda linha */
    grid-row: 2 / 3;
}

.featured-news-item:nth-child(4) {
    grid-column: 3 / 4; /* Ocupa a coluna 3 na segunda linha */
    grid-row: 2 / 3;
}


/* Estilos visuais adicionais para os cards de destaque */
.featured-news-item-image::after { /* Overlay para escurecer a imagem levemente */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Escurecimento sutil da imagem */
    z-index: 1.5; /* Entre a imagem e o conteúdo */
}

.featured-news-item-content {
    /* ... (estilos anteriores) ... */
    justify-content: flex-end; /* Alinha o conteúdo à parte inferior do card */
    padding: 25px;
    /* Background gradient para garantir legibilidade do texto na parte inferior */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    position: relative; /* Para z-index sobre a imagem */
    z-index: 2;
}

/* Ajustes finos de tipografia e espaçamento para o conteúdo dos cards de destaque */
.featured-news-item-content h3 {
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-weight: 700; /* Títulos em negrito como na imagem */
}

.featured-news-item:nth-child(1) .featured-news-item-content h3 {
    font-size: 2.5em; /* Título bem grande para o item principal */
    line-height: 1.1;
    margin-bottom: 20px;
}

.featured-news-item:nth-child(2) .featured-news-item-content h3,
.featured-news-item:nth-child(3) .featured-news-item-content h3,
.featured-news-item:nth-child(4) .featured-news-item-content h3 {
    font-size: 1.2em; /* Títulos menores para os itens secundários */
    line-height: 1.3;
}

.featured-news-item-content .post-meta {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Esconder excerpt e read-more-link nos cards de destaque */
.featured-news-item-content .post-excerpt,
.featured-news-item-content .read-more-link {
    display: none;
}


/* Grid de Blog Posts (Normal) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background-color: var(--secondary-black);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 20px;
}

.blog-card .card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--text-color);
}

.blog-card .card-excerpt {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.read-more-link {
    display: inline-block;
    color: var(--brand-yellow);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}

/* Paginação */
.pagination {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    border: 1px solid #333;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-gray);
    background-color: var(--secondary-black);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--brand-yellow);
    color: var(--primary-black);
    border-color: var(--brand-yellow);
}

.pagination .page-numbers.current {
    font-weight: bold;
}

/* Responsividade do Main Content */
@media (max-width: 992px) {
    .site-main {
        padding-top: 100px;
    }
    /* Ajustes para o grid de destaque em tablets/mobile grande */
    .featured-news-grid {
        grid-template-columns: 1fr; /* Empilha tudo em uma coluna */
        grid-template-rows: auto;
        height: auto; /* Remove altura fixa */
    }

    .featured-news-item {
        grid-column: auto !important; /* Desfaz grid-column específico */
        grid-row: auto !important; /* Desfaz grid-row específico */
        min-height: 300px; /* Altura mínima para todos os cards de destaque */
    }
    
    .featured-news-item:nth-child(1) .featured-news-item-content h3 {
        font-size: 1.8em; /* Título grande continua grande, mas não tanto */
    }

    .featured-news-item-content h3 {
        font-size: 1.3em; /* Títulos dos cards secundários ajustados */
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-news-item-content h3 {
        font-size: 1.2em;
    }
    .featured-news-item-content .post-meta {
        font-size: 0.7em;
    }
}

/* --- Single Post (Página de Post Individual) --- */
.single-post-page .container {
    
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--secondary-black);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
    border: 1px solid #333;
}

.single-post-page .entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-page .entry-title {
    font-size: 3em;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--text-color);
}

.single-post-page .entry-meta {
    font-size: 0.9em;
    color: var(--text-gray);
}

.single-post-page .entry-meta span {
    margin: 0 10px;
}

.single-post-page .entry-meta i {
    margin-right: 5px;
    color: var(--brand-yellow);
}

.single-post-page .post-thumbnail {
    margin-bottom: 40px;
}

.single-post-page .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post-page .entry-content {
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--text-color);
}

.single-post-page .entry-content p {
    margin-bottom: 1.5em;
}

.single-post-page .entry-content h2,
.single-post-page .entry-content h3,
.single-post-page .entry-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--brand-yellow);
}

.single-post-page .entry-content ul,
.single-post-page .entry-content ol {
    margin-bottom: 1.5em;
    margin-left: 20px;
    color: var(--text-color);
}

.single-post-page .entry-content blockquote {
    border-left: 5px solid var(--brand-yellow);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--primary-black);
    font-style: italic;
    color: var(--text-gray);
}

.single-post-page .entry-content pre {
    background-color: #333;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #eee;
}

.single-post-page .entry-footer {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.single-post-page .post-tags {
    font-size: 0.9em;
    color: var(--text-gray);
}

.single-post-page .post-tags a {
    background-color: var(--secondary-black);
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    color: var(--text-color);
    margin-right: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.single-post-page .post-tags a:hover {
    background-color: var(--brand-yellow);
    color: var(--primary-black);
}

/* Comentários */
#comments {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

#comments h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background-color: var(--primary-black);
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: var(--text-color);
}

.comment-author {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 5px;
}

.comment-metadata {
    font-size: 0.85em;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.comment-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.comment-reply-link {
    display: inline-block;
    background-color: var(--secondary-black);
    color: var(--text-color);
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.comment-reply-link:hover {
    background-color: var(--brand-yellow);
    color: var(--primary-black);
}

.comment-respond {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--primary-black);
    border: 1px solid #333;
    border-radius: 8px;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-weight: 500;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: var(--secondary-black);
    color: var(--text-color);
    font-size: 1rem;
    font-family: "Public Sans", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
    box-sizing: border-box;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: var(--secondary-black);
    color: var(--text-color);
    font-size: 1rem;
    font-family: "Public Sans", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--brand-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.form-submit input[type="submit"] {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--brand-yellow);
    color: var(--primary-black);
    border: none;
    font-size: 1em;
}

.form-submit input[type="submit"]:hover {
    background-color: var(--primary-black);
    color: var(--brand-yellow);
    transform: scale(1.05);
}

/* Posts Relacionados */
.related-posts {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.related-posts h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-color);
}
.related-posts .blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* --- Footer (Rodapé) --- */
#footer {
    background-color: #000000;
    color: var(--text-color);
}

.site-footer {
    background-color: #000000;
    color: var(--text-color);
    padding: 40px 0;
    font-size: 0.9em;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 0 15px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-nav a:hover {
    color: var(--brand-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    color: var(--text-color);
    border: 1.5px solid var(--text-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--brand-yellow);
    color: var(--primary-black);
    transform: scale(1.1);
    border-color: var(--brand-yellow);
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: var(--text-gray);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-nav, .social-links {
        margin-bottom: 20px;
    }

    .footer-nav li {
        margin: 5px 10px;
    }

    .social-links a {
        margin: 0 10px;
    }
}

/* Estilos para o submenu do rodapé */
.footer-top .has-submenu-footer {
    position: relative;
}

.submenu-footer {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-black);
    min-width: 180px;
    box-shadow: 0 -8px 16px rgba(0,0,0,0.4);
    z-index: 990;
    border-radius: 5px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
}

.submenu-footer li {
    width: 100%;
}

.submenu-footer a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: var(--text-color);
}

.submenu-footer a:hover {
    background-color: var(--primary-black);
    color: var(--brand-yellow);
}

.footer-top .has-submenu-footer:hover .submenu-footer {
    visibility: visible;
    opacity: 1;
}
/* Fim dos estilos do submenu do rodapé */

.footer-divider {
    border: none;
    height: 1px;
    background-color: #333;
}

.footer-middle {
    padding: 30px 0;
    text-align: center;
}

.footer-middle p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-color);
}

.footer-bottom {
    padding: 25px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.footer-bottom a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}
.footer-bottom a:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- Nova Seção de Barra de Pesquisa Abaixo do Header --- */
.search-bar-section {
    background-color: var(--primary-black);
    padding: 30px 0;
}

.search-bar-wrapper {
    max-width: 800px; /* Largura da barra de pesquisa */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.search-bar-wrapper .search-form {
    display: flex;
    max-width: 390px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--secondary-black);
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-bar-wrapper .search-field {
    
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1.1em;
    outline: none;
}

.search-bar-wrapper .search-field::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.search-bar-wrapper .search-submit {
    background-color: var(--brand-yellow);
    color: var(--primary-black);
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.search-bar-wrapper .search-submit:hover {
    background-color: #e6c200; /* Amarelo um pouco mais escuro no hover */
}


/* --- Estilos para a Página de Resultados da Pesquisa --- */
.page-header.search-results-header {
    background-color: var(--secondary-black); /* Fundo similar aos cards */
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 60px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #333;
}

.page-header.search-results-header .page-title {
    font-size: 2.2em;
    color: var(--text-color);
    margin-bottom: 0;
}

.page-header.search-results-header .page-title span {
    color: var(--brand-yellow); /* Destaca a query de pesquisa */
}

/* Ajuste para o grid de posts na página de pesquisa */
.search .blog-grid { /* A classe 'search' é adicionada ao <body> pelo WP */
    margin-top: 0; /* Remove a margem superior extra se não tiver a seção de destaque */
}

@media (max-width: 768px) {
    .page-header.search-results-header {
        padding: 30px 15px;
        margin-bottom: 40px;
    }
    .page-header.search-results-header .page-title {
        font-size: 1.8em;
    }
}