/* ==============================================
   Variáveis
   ============================================== */

:root {
    --primary: #ffd400;
    --primary-rgb: 255, 212, 0;
    --secondary: #9c7108;
    --content-w-lg: 1200px;
    --content-w-md: 1000px;
    --content-w-sm: 800px;
    --content-w-xsm: 600px;
}

/* ==============================================
   Globais
   ============================================== */

body {
    /* Essa linha vem da sua segunda imagem */
    font-family: "Open Sans", sans-serif;
    
    /* Melhoria de renderização */
    font-optical-sizing: auto;
    font-style: normal;
}

a {
    color: var(--secondary);
}

a:hover {
    color: var(--primary);
}

/* ==============================================
   Acessibilidade e Texto para Leitor de Tela
   ============================================== */

/* Esconde o texto visualmente, mas deixa disponível para leitores de tela */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Quando o link recebe foco (ao apertar TAB), ele aparece na tela */
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}


/* ==============================================
   NAVBAR DO SITE
   ============================================== */

.site-header {
    background: var(--primary);
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px; /* Margem lateral */
    margin: 0 auto;
}

/* Garante tamanhos iguais nas laterais para o logo ficar perfeitamente no centro */
.header-start, .header-end {
    flex: 1;
    display: flex;
}

.header-end {
    justify-content: flex-end; /* Joga a lupa para a direita */
}

.site-branding {
    text-align: center;
}

/* Botões transparentes e sem borda */
.menu-toggle, .search-toggle, .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
}

/* --- MENU OFF-CANVAS --- */
.off-canvas-panel {
    position: fixed;
    top: 0;
    left: -280px; /* Esconde para fora da tela na esquerda */
    width: 280px;
    height: 100vh; /* Altura total da tela */
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: left 0.3s ease-in-out; /* Animação suave */
    padding: 20px;
    box-sizing: border-box;
}

/* Classe que o JS vai adicionar para mostrar o menu */
.off-canvas-panel.is-open {
    left: 0;
}

/* Estilo do botão de fechar dentro do menu */
.close-btn {
    font-size: 30px;
    position: absolute;
    top: 10px;
    right: 15px;
}

/* Overlay (Fundo escuro atrás do menu) */
.site-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.site-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Estilização básica da lista do menu */
.main-navigation ul {
    list-style: none;
    margin-top: 50px; /* Espaço para não colar no botão fechar */
    padding: 0;
}
.main-navigation li {
    border-bottom: 1px solid #f0f0f0;
}
.main-navigation a {
    display: block;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}


/* ==============================================
   CONTEÚDO
   ============================================== */

.site-content{
	padding-left: 20px;
   padding-right: 20px;
}

.content-area {
    max-width: var(--content-w-lg);
    margin-left: auto;
    margin-right: auto;
    width: 100%; 
}

.entry-header{
	margin-bottom: 40px;
	margin-top: 40px;
	margin-left: auto;
   margin-right: auto;
   width: 100%;
}

.entry-content{
	margin-bottom: 40px;
	margin-top: 40px;
	margin-left: auto;
   margin-right: auto;
   width: 100%; 
}

/* ==============================================
   MOST READ JETPACK
   ============================================== */

#jp-popular-post-widget .popular-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

#jp-popular-post-widget .post-item {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease-in-out;
}

#jp-popular-post-widget .post-item:hover {
    transform: scale(1.02);
}

#jp-popular-post-widget .post-thumbnail-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
}

#jp-popular-post-widget .post-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#jp-popular-post-widget .post-info {
    margin-left: 15px;
}

#jp-popular-post-widget .post-info h3 {
    font-size: 16px;
    margin: 0 0 5px;
}

/* GRID */
.popular-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 20px auto;
    padding: 0 15px;
}

.post-grid-item {
    width: calc(33.33% - 10px); /* 3 colunas no desktop */
    background: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post-grid-item:hover {
    transform: scale(1.05);
}

.post-thumbnail-wrap {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 10px;
}

.post-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    margin-top: 10px;
}

.post-info h3 {
    font-size: 1.1rem;
    line-height: 1.7rem;
    margin: 5px 0;
}

/* 📱 Responsivo: 1 coluna por linha no mobile */
@media (max-width: 768px) {
    .post-grid-item {
        width: 100%;
        height: 300px;
    }
}