/*
Theme Name: Informativo Angolano
Theme URI: https://informativoangolano.ao
Author: Informativo Angolano Team
Author URI: https://informativoangolano.ao
Description: Tema WordPress ultra-rápido e otimizado para portais de notícias. Compatível com Google News, SEO avançado e Core Web Vitals. Design moderno, responsivo e focado em performance.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: informativo-angolano
Tags: news, blog, magazine, responsive, seo-ready, performance, google-news, accessibility-ready
*/

/* ==========================================================================
   CORES E VARIÁVEIS CSS - SISTEMA DE DESIGN
   ========================================================================== */

:root {
    /* Cores Principais */
    --primary-color: #c8102e;
    --primary-dark: #a00d26;
    --primary-light: #e01a35;
    
    /* Cores Secundárias */
    --secondary-color: #1a1a1a;
    --secondary-dark: #000000;
    
    /* Cores de Texto */
    --text-color: #2d2d2d;
    --text-light: #6b6b6b;
    --text-muted: #999999;
    
    /* Cores de Borda e Fundo */
    --border-color: #e5e5e5;
    --border-light: #f0f0f0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    
    /* Tipografia */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    
    /* Tamanhos de Fonte */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    
    /* Espaçamento (8pt Grid System) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Layout */
    --container-max: 1280px;
    --sidebar-width: 300px;
    --header-height: auto;
    
    /* Bordas e Sombras */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Transições */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-tooltip: 400;
}

/* ==========================================================================
   RESET E BASE
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #ff0000;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */

.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .site-content {
        width: 80%;
        margin: 0 auto;
    }
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
}

.content-wrapper {
    display: grid;
    gap: var(--space-6);
    margin: var(--space-8) 0;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr var(--sidebar-width);
        gap: var(--space-8);
    }
}

/* ==========================================================================
   HEADER - DESIGN OTIMIZADO
   ========================================================================== */

.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

/* Top Bar */
.header-top {
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.header-date {
    display: none;
    color: rgba(255,255,255,0.9);
}

@media (min-width: 768px) {
    .header-date {
        display: block;
    }
}

.header-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-social a {
    color: var(--bg-white);
    font-size: var(--text-lg);
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.header-social a:hover {
    opacity: 1;
}

/* Main Header */
.header-main {
    padding: var(--space-4) 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    min-width: 200px;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .site-title {
        font-size: var(--text-3xl);
    }
}

.site-description {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin: var(--space-1) 0 0;
}

/* Header Search */
.header-search {
    display: none;
}

@media (min-width: 768px) {
    .header-search {
        display: block;
    }
}

.search-form {
    display: flex;
    gap: var(--space-2);
}

.search-field {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    width: 180px;
    transition: border-color var(--transition-fast);
    background: var(--bg-white);
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-submit {
    padding: var(--space-2) var(--space-4);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   NAVEGAÇÃO - DESIGN MOBILE FIRST
   ========================================================================== */

.main-navigation {
    background: var(--primary-color);
    width: 100%;
}

.nav-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: auto;
    }
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (min-width: 992px) {
    .nav-menu li {
        border-bottom: none;
    }
}

.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    color: var(--bg-white);
    font-weight: 500;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background var(--transition-fast);
}

@media (min-width: 992px) {
    .nav-menu a {
        padding: var(--space-3) var(--space-4);
    }
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    background: rgba(0,0,0,0.15);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    transition: background var(--transition-fast);
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle:hover {
    background: var(--primary-dark);
}

/* ==========================================================================
   HERO / DESTAQUE - DESIGN RESPONSIVO
   ========================================================================== */

.hero-section {
    margin: var(--space-6) 0;
}

.hero-grid {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (min-width: 992px) {
    .hero-grid {
        gap: var(--space-6);
    }
}

.hero-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 350px;
}

@media (min-width: 768px) {
    .hero-main {
        min-height: 450px;
    }
}

@media (min-width: 1200px) {
    .hero-main {
        min-height: 500px;
    }
}

.hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: var(--space-6) var(--space-4);
}

@media (min-width: 768px) {
    .hero-overlay {
        padding: var(--space-8) var(--space-6);
    }
}

@media (min-width: 992px) {
    .hero-overlay {
        padding: var(--space-10);
    }
}

.hero-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.hero-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--bg-white);
    line-height: 1.3;
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-2xl);
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
}

.hero-meta {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Secondary Hero Cards */
.hero-secondary {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex: 1;
    min-height: 180px;
}

@media (min-width: 768px) {
    .hero-card {
        min-height: 220px;
    }
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card .hero-overlay {
    padding: var(--space-4);
}

.hero-card .hero-title {
    font-size: var(--text-lg);
}

@media (min-width: 768px) {
    .hero-card .hero-title {
        font-size: var(--text-xl);
    }
}

/* ==========================================================================
   GRID DE NOTÍCIAS - LAYOUT OTIMIZADO
   ========================================================================== */

.section {
    margin: var(--space-8) 0;
}

@media (min-width: 992px) {
    .section {
        margin: var(--space-12) 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-color);
    flex-wrap: wrap;
    gap: var(--space-2);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-2xl);
    }
}

.section-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--space-1);
    transition: color var(--transition-fast);
}

.section-link:hover {
    color: var(--primary-dark);
}

.section-link::after {
    content: '\2192';
    font-size: var(--text-lg);
}

/* News Grid - Responsive Grid System */
.news-grid {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-5);
    }
}

@media (min-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* News Card */
.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-color);
}

.news-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%;
    background: var(--bg-light);
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
    align-self: flex-start;
}

.news-title {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-2);
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .news-title {
        font-size: var(--text-lg);
    }
}

.news-title a {
    color: inherit;
    transition: color var(--transition-fast);
}

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

.news-excerpt {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.news-author {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-weight: 500;
}

/* ==========================================================================
   SIDEBAR - DESIGN UNIFICADO
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: calc(var(--header-height) + var(--space-6));
        align-self: start;
    }
}

.widget {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-5);
}

@media (min-width: 768px) {
    .widget {
        padding: var(--space-6);
    }
}

.widget-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-color);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget > ul {
    margin: 0;
    padding: 0;
}

.widget li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.widget > ul > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget > ul > li:first-child {
    padding-top: 0;
}

.widget li a {
    color: var(--text-color);
    font-size: var(--text-sm);
    line-height: 1.5;
    display: block;
    transition: color var(--transition-fast);
}

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

/* Widget: Posts Recentes */
.widget-post {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.widget-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-post:first-child {
    padding-top: 0;
}

.widget-post-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.widget-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-info {
    flex: 1;
    min-width: 0;
}

.widget-post-title {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: var(--space-1);
}

.widget-post-title a {
    color: inherit;
}

.widget-post-title a:hover {
    color: var(--primary-color);
}

.widget-post-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Widget: Categorias */
.widget_categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.widget_categories li {
    border: none;
    padding: 0;
}

.widget_categories a {
    display: inline-block;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.widget_categories a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* Widget: Pesquisa */
.widget_search .search-form {
    flex-direction: column;
    gap: var(--space-3);
}

.widget_search .search-field {
    width: 100%;
}

/* ==========================================================================
   SINGLE POST - LAYOUT OTIMIZADO
   ========================================================================== */

.single-post {
    margin: var(--space-6) 0;
}

@media (min-width: 992px) {
    .single-post {
        margin: var(--space-8) 0;
    }
}

.single-post-header {
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .single-post-header {
        margin-bottom: var(--space-8);
    }
}

.single-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
}

.single-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary-color);
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .single-title {
        font-size: var(--text-3xl);
    }
}

@media (min-width: 992px) {
    .single-title {
        font-size: var(--text-4xl);
    }
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-light);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.single-thumbnail {
    margin: var(--space-6) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 768px) {
    .single-thumbnail {
        margin: var(--space-8) 0;
    }
}

.single-thumbnail img {
    width: 100%;
}

/* Conteúdo do Post */
.single-content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .single-content {
        font-size: 1.125rem;
    }
}

.single-content p {
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .single-content p {
        margin-bottom: var(--space-6);
    }
}

.single-content h2 {
    font-size: var(--text-2xl);
    margin: var(--space-8) 0 var(--space-4);
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .single-content h2 {
        font-size: var(--text-3xl);
        margin: var(--space-10) 0 var(--space-5);
    }
}

.single-content h3 {
    font-size: var(--text-xl);
    margin: var(--space-6) 0 var(--space-3);
    color: var(--secondary-color);
}

@media (min-width: 768px) {
    .single-content h3 {
        font-size: var(--text-2xl);
        margin: var(--space-8) 0 var(--space-4);
    }
}

.single-content img {
    border-radius: var(--radius-md);
    margin: var(--space-6) 0;
}

@media (min-width: 768px) {
    .single-content img {
        margin: var(--space-8) 0;
    }
}

.single-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-5);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-light);
    font-size: var(--text-lg);
    background: var(--bg-light);
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.single-content ul,
.single-content ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-6);
}

@media (min-width: 768px) {
    .single-content ul,
    .single-content ol {
        margin: var(--space-6) 0;
    }
}

.single-content li {
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   PAGINAÇÃO - DESIGN ACESSÍVEL
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-10) 0;
    flex-wrap: wrap;
    padding: 0 var(--space-4);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.pagination .current {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.pagination a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   FOOTER - DESIGN RESPONSIVO
   ========================================================================== */

.site-footer {
    background: var(--secondary-color);
    color: var(--bg-white);
    padding: var(--space-10) 0 var(--space-6);
    margin-top: var(--space-10);
}

.footer-widgets {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-6);
    }
}

.footer-widget-col {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.footer-widget-col h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--bg-white);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-color);
}

.footer-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-categories li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-categories li:last-child {
    border-bottom: none;
}

.footer-categories a {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-categories a:hover {
    color: var(--bg-white);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-menu li:last-child {
    border-bottom: none;
}

.footer-menu a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   DARK MODE - FOOTER WIDGETS
   ========================================================================== */

body.dark-mode .footer-widget-col h3 {
    color: var(--bg-white);
}

body.dark-mode .footer-categories a {
    color: rgba(255,255,255,0.8);
}

body.dark-mode .footer-categories a:hover {
    color: var(--bg-white);
}

body.dark-mode .footer-menu a {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-menu a:hover {
    color: var(--bg-white);
}

.footer-widget {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.footer-widget h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--bg-white);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget li:last-child {
    border-bottom: none;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--bg-white);
}

.site-info {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: var(--space-4);
    padding: var(--space-3) 0;
}

.breadcrumbs a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

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

.breadcrumbs span {
    color: var(--text-muted);
}

.breadcrumbs .separator {
    color: var(--text-muted);
}

/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--bg-white);
    padding: var(--space-3) var(--space-5);
    z-index: var(--z-tooltip);
    transition: top var(--transition-fast);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Focus visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE GERAL
   ========================================================================== */

/* Contenção máxima para evitar overflow horizontal */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Garante que todas as imagens não excedam a largura do container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Elementos de mídia responsivos */
iframe, video, embed, object {
    max-width: 100%;
    height: auto;
}

/* Tabelas responsivas */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Gap container para mobile */
@media (max-width: 480px) {
    :root {
        --space-8: 1.5rem;
        --space-10: 2rem;
        --space-12: 2.5rem;
    }
    
    .container {
        padding: 0 var(--space-3);
    }
    
    .site-title {
        font-size: var(--text-xl);
    }
    
    .hero-title {
        font-size: var(--text-lg);
    }
    
    .single-title {
        font-size: var(--text-xl);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        justify-content: center;
        text-align: center;
    }
    
    .site-branding {
        justify-content: center;
        width: 100%;
    }
    
    .header-search {
        display: none;
    }
    
    .hero-main {
        min-height: 300px;
    }
    
    .hero-card {
        min-height: 150px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-card {
        flex-direction: row;
    }
    
    .news-thumbnail {
        width: 120px;
        padding-top: 0;
        flex-shrink: 0;
    }
    
    .news-content {
        padding: var(--space-3);
    }
    
    .widget-post {
        flex-direction: row;
    }
    
    .widget-post-thumb {
        width: 70px;
        height: 55px;
    }
}

@media (max-width: 991px) {
    .sidebar {
        order: -1;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .site-footer,
    .hero-section,
    .news-card .news-content,
    .pagination,
    .breadcrumbs {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .single-content {
        font-size: 11pt;
        line-height: 1.5;
    }
    
    .single-title {
        font-size: 18pt;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   FIM DO TEMA CORRIGIDO
   ========================================================================== */

/* ==========================================================================
   CORREÇÕES ADICIONAIS DE RESPONSIVIDADE
   ========================================================================== */

/* Single Post - Correções Mobile */
.single-post,
.single-post-header,
.single-content,
.entry-footer,
.related-posts {
    overflow-x: hidden;
    max-width: 100%;
}

.single-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.single-content p,
.single-content h2,
.single-content h3,
.single-content h4,
.single-content ul,
.single-content ol,
.single-content li,
.single-content blockquote {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.single-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Elementos incorporados responsivos */
.single-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: var(--radius-md);
}

.single-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: var(--space-6) 0;
}

.single-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Figuras e figcaptions */
.single-content figure {
    margin: var(--space-6) 0;
    max-width: 100%;
}

.single-content figure img {
    margin: 0;
    max-width: 100%;
    height: auto;
}

.single-content figure figcaption {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-2);
    padding: 0 var(--space-2);
    max-width: 100%;
    word-wrap: break-word;
}

/* Mobile específico para single post */
@media (max-width: 768px) {
    .single-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .single-meta {
        gap: var(--space-2);
        font-size: var(--text-xs);
    }
    
    .single-content {
        font-size: var(--text-base);
        line-height: 1.7;
    }
    
    .single-content p {
        margin-bottom: var(--space-4);
    }
    
    .single-content h2 {
        font-size: var(--text-xl);
    }
    
    .single-content h3 {
        font-size: var(--text-lg);
    }
    
    .single-content blockquote {
        padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
        font-size: var(--text-base);
    }
    
    .entry-share {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-category {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }
    
    .single-title {
        font-size: 1.35rem;
    }
    
    .single-meta-item {
        font-size: 0.75rem;
    }
    
    .single-meta-item svg {
        width: 14px;
        height: 14px;
    }
    
    .single-content {
        font-size: 0.95rem;
    }
    
    .author-bio {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-4);
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================================================
   DARK MODE - DESIGN ESCURO
   ========================================================================== */

body.dark-mode {
    --primary-color: var(--dark-mode-accent, #c8102e);
    --primary-dark: #a00d26;
    --primary-light: #e01a35;
    
    --secondary-color: #ffffff;
    --secondary-dark: #e0e0e0;
    
    --text-color: var(--dark-mode-text, #e5e5e5);
    --text-light: #b0b0b0;
    --text-muted: #808080;
    
    --border-color: #333333;
    --border-light: #2a2a2a;
    --bg-light: #252525;
    --bg-white: var(--dark-mode-bg, #1a1a1a);
    
    background-color: var(--dark-mode-bg, #1a1a1a);
    color: var(--dark-mode-text, #e5e5e5);
}

body.dark-mode .site-header {
    background: #252525;
    border-bottom-color: #333333;
}

body.dark-mode .news-card,
body.dark-mode .widget,
body.dark-mode .single-post-article {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .news-card:hover {
    border-color: #444444;
}

body.dark-mode .hero-main,
body.dark-mode .hero-card {
    border-radius: var(--radius-lg);
}

body.dark-mode .news-title,
body.dark-mode .single-title,
body.dark-mode .section-title,
body.dark-mode .widget-title,
body.dark-mode .footer-widget h3,
body.dark-mode .author-name,
body.dark-mode .cat-post-title,
body.dark-mode .cat-post-title-sm,
body.dark-mode .sidebar-post-title,
body.dark-mode .trending-title {
    color: #ffffff;
}

body.dark-mode .hero-title {
    color: #ffffff;
}

body.dark-mode a {
    color: var(--dark-mode-accent, #c8102e);
}

body.dark-mode a:hover {
    color: var(--primary-light);
}

body.dark-mode .search-field {
    background: #252525;
    border-color: #444444;
    color: #e5e5e5;
}

body.dark-mode .search-field::placeholder {
    color: #808080;
}

body.dark-mode .search-field:focus {
    border-color: var(--dark-mode-accent, #c8102e);
}

body.dark-mode .nav-menu {
    background: #252525;
}

body.dark-mode .nav-menu a {
    color: #e5e5e5;
}

body.dark-mode .nav-menu a:hover,
body.dark-mode .nav-menu .current-menu-item > a {
    background: rgba(255,255,255,0.1);
}

body.dark-mode .menu-toggle {
    background: var(--dark-mode-accent, #c8102e);
}

body.dark-mode .entry-tags a {
    background: #333333;
    color: #e5e5e5;
}

body.dark-mode .entry-tags a:hover {
    background: var(--dark-mode-accent, #c8102e);
    color: #ffffff;
}

body.dark-mode .entry-share a {
    background: #333333;
    color: #e5e5e5;
}

body.dark-mode .entry-share a:hover {
    background: var(--dark-mode-accent, #c8102e);
    color: #ffffff;
}

body.dark-mode .hero-category,
body.dark-mode .news-category,
body.dark-mode .single-category {
    background: var(--dark-mode-accent, #c8102e);
}

body.dark-mode .author-bio {
    background: #252525;
}

body.dark-mode .site-footer {
    background: #0d0d0d;
}

body.dark-mode .footer-widget li {
    border-bottom-color: #333333;
}

body.dark-mode .footer-widget a {
    color: rgba(255,255,255,0.8);
}

body.dark-mode .footer-widget a:hover {
    color: #ffffff;
}

body.dark-mode .site-info {
    border-top-color: #333333;
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-menu a {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-menu a:hover {
    color: #ffffff;
}

body.dark-mode .breadcrumbs a {
    color: #b0b0b0;
}

body.dark-mode .breadcrumbs a:hover {
    color: var(--dark-mode-accent, #c8102e);
}

body.dark-mode .breaking-news-ticker {
    background: #252525;
}

body.dark-mode .ticker-label {
    background: var(--dark-mode-accent, #c8102e);
}

body.dark-mode .ticker-item a {
    color: #e5e5e5;
}

body.dark-mode .ticker-item a:hover {
    color: var(--dark-mode-accent, #c8102e);
}

body.dark-mode .sidebar-widget.newsletter-widget {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .newsletter-form input[type="email"] {
    background: #333333;
    border-color: #444444;
    color: #e5e5e5;
}

body.dark-mode .newsletter-form input[type="email"]::placeholder {
    color: #808080;
}

body.dark-mode .social-link {
    background: #333333;
    color: #e5e5e5;
}

body.dark-mode .social-link:hover {
    background: var(--dark-mode-accent, #c8102e);
    color: #ffffff;
}

body.dark-mode .back-to-top {
    background: var(--dark-mode-accent, #c8102e);
    color: #ffffff;
}

body.dark-mode .back-to-top:hover {
    background: var(--primary-dark);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color, #2d2d2d);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

body.dark-mode .dark-mode-toggle {
    color: #e5e5e5;
}

.dark-mode-toggle:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

body.dark-mode .dark-mode-toggle:hover {
    background: #333333;
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.dark-mode-toggle:hover svg {
    transform: rotate(15deg);
}

/* Sun/Moon Icons Animation */
.dark-mode-toggle .moon-icon {
    display: block;
}

.dark-mode-toggle .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: block;
}

/* Smooth transition for dark mode */
body,
body *,
body *::before,
body *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   DARK MODE - HOMEPAGE ELEMENTS
   ========================================================================== */

body.dark-mode .hero-section {
    background: #1a1a1a;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
}

body.dark-mode .hero-category {
    background: var(--primary-color);
}

body.dark-mode .hero-title,
body.dark-mode .hero-meta {
    color: #ffffff;
}

body.dark-mode .hero-meta a {
    color: rgba(255,255,255,0.9);
}

body.dark-mode .hero-meta a:hover {
    color: var(--primary-color);
}

body.dark-mode .news-card {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .news-card:hover {
    border-color: var(--primary-color);
    background: #2a2a2a;
}

body.dark-mode .news-category {
    background: var(--primary-color);
}

body.dark-mode .news-title,
body.dark-mode .news-title a {
    color: #e5e5e5;
}

body.dark-mode .news-title a:hover {
    color: var(--primary-color);
}

body.dark-mode .news-excerpt {
    color: #b0b0b0;
}

body.dark-mode .news-meta {
    border-top-color: #333333;
}

body.dark-mode .news-author,
body.dark-mode .news-date {
    color: #808080;
}

body.dark-mode .section-title {
    color: #ffffff;
    border-bottom-color: var(--primary-color);
}

body.dark-mode .view-all-link {
    color: var(--primary-color);
}

body.dark-mode .view-all-link:hover {
    color: var(--primary-light);
}

body.dark-mode .breaking-news-ticker {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
}

body.dark-mode .ticker-label {
    background: var(--primary-color);
}

body.dark-mode .ticker-item a {
    color: #e5e5e5;
}

body.dark-mode .ticker-item a:hover {
    color: var(--primary-color);
}

body.dark-mode .category-section {
    background: #1a1a1a;
}

body.dark-mode .cat-post-large,
body.dark-mode .cat-post-small {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .cat-post-title,
body.dark-mode .cat-post-title-sm {
    color: #e5e5e5;
}

body.dark-mode .cat-post-excerpt {
    color: #b0b0b0;
}

body.dark-mode .cat-post-meta {
    color: #808080;
}

body.dark-mode .cat-post-meta a:hover {
    color: var(--primary-color);
}

body.dark-mode .featured-main-post,
body.dark-mode .featured-sidebar-post {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .featured-main-post .featured-meta,
body.dark-mode .featured-sidebar-post .sidebar-post-content {
    background: rgba(0,0,0,0.7);
}

body.dark-mode .featured-main-post .featured-title,
body.dark-mode .featured-sidebar-post .sidebar-post-title {
    color: #e5e5e5;
}

body.dark-mode .featured-main-post .featured-meta span,
body.dark-mode .featured-sidebar-post .post-date-sm {
    color: #b0b0b0;
}

body.dark-mode .cat-main-post {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .cat-main-post .cat-post-title {
    color: #e5e5e5;
}

body.dark-mode .cat-main-post .cat-post-excerpt {
    color: #b0b0b0;
}

body.dark-mode .cat-main-post .cat-post-meta span {
    color: #808080;
}

body.dark-mode .trending-post-item {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .trending-post-item .trending-title {
    color: #e5e5e5;
}

body.dark-mode .trending-post-item .trending-meta {
    color: #b0b0b0;
}

body.dark-mode .cat-post-list {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .cat-post-list .cat-post-title {
    color: #e5e5e5;
}

body.dark-mode .cat-post-list .post-date-sm {
    color: #b0b0b0;
}

body.dark-mode .hero-main {
    background: #1a1a1a;
}

body.dark-mode .sidebar {
    background: #1a1a1a;
}

body.dark-mode .sidebar-widget {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .sidebar-widget h3,
body.dark-mode .sidebar-widget .widget-title {
    color: #e5e5e5;
    border-bottom-color: var(--primary-color);
}

body.dark-mode .sidebar-widget .sidebar-post-title,
body.dark-mode .sidebar-widget .trending-title {
    color: #e5e5e5;
}

body.dark-mode .sidebar-widget .post-date-sm,
body.dark-mode .sidebar-widget .trending-meta {
    color: #b0b0b0;
}

body.dark-mode .trending-widget {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .trending-widget .trending-post-item {
    background: #2a2a2a;
    border-color: #333333;
}

body.dark-mode .trending-widget .trending-title {
    color: #e5e5e5;
}

body.dark-mode .trending-widget .trending-meta {
    color: #b0b0b0;
}

body.dark-mode .news-grid-3-col {
    background: #1a1a1a;
}

body.dark-mode .news-grid-3-col .news-card {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .news-grid-3-col .news-title,
body.dark-mode .news-grid-3-col .news-title a {
    color: #e5e5e5;
}

body.dark-mode .news-grid-3-col .news-title a:hover {
    color: var(--primary-color);
}

body.dark-mode .news-grid-3-col .news-excerpt {
    color: #b0b0b0;
}

body.dark-mode .news-grid-3-col .news-meta {
    border-top-color: #333333;
}

body.dark-mode .news-grid-3-col .news-author,
body.dark-mode .news-grid-3-col .news-date {
    color: #808080;
}

body.dark-mode .news-grid-3-col .news-category {
    background: var(--primary-color);
}

body.dark-mode .latest-news-section {
    background: #1a1a1a;
}

body.dark-mode .latest-news-section .section-title {
    color: #ffffff;
    border-bottom-color: var(--primary-color);
}

body.dark-mode .latest-news-section .view-all-link {
    color: var(--primary-color);
}

body.dark-mode .latest-news-section .view-all-link:hover {
    color: var(--primary-light);
}

body.dark-mode .latest-news-section .latest-post {
    background: #252525;
    border-color: #333333;
}

body.dark-mode .latest-news-section .latest-post:hover {
    background: #2a2a2a;
}

body.dark-mode .latest-news-section .latest-title,
body.dark-mode .latest-news-section .latest-title a {
    color: #e5e5e5;
}

body.dark-mode .latest-news-section .latest-title a:hover {
    color: var(--primary-color);
}

body.dark-mode .latest-news-section .latest-excerpt {
    color: #b0b0b0;
}

body.dark-mode .latest-news-section .latest-meta {
    border-top-color: #333333;
}

body.dark-mode .latest-news-section .latest-author,
body.dark-mode .latest-news-section .latest-date {
    color: #808080;
}

body.dark-mode .latest-news-section .latest-category {
    background: var(--primary-color);
}

body.dark-mode .site-container {
    background: #1a1a1a !important;
    color: #e5e5e5 !important;
}

body.dark-mode .homepage {
    background: #1a1a1a !important;
}

body.dark-mode .main-navigation-modern {
    background: #000000;
}

body.dark-mode .main-navigation-modern a {
    color: #ffffff;
}

body.dark-mode .main-navigation-modern a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   FIM DO MODO ESCURO
   ========================================================================== */

/* ==========================================================================
   AJAX SEARCH - RESULTADOS EM TEMPO REAL
   ========================================================================== */

.ajax-search-results {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ajax-search-results.active {
    opacity: 1;
    transform: translateY(0);
}

.ajax-search-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.ajax-search-item {
    border-bottom: 1px solid var(--border-light);
}

.ajax-search-item:last-child {
    border-bottom: none;
}

.ajax-search-item:hover,
.ajax-search-item.selected {
    background: var(--bg-light);
}

.ajax-search-link {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3);
    color: inherit;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ajax-search-link:hover {
    color: inherit;
}

.ajax-search-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
}

.ajax-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ajax-search-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ajax-search-category {
    font-size: var(--text-xs);
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

.ajax-search-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 var(--space-1);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark-mode .ajax-search-title {
    color: #e5e5e5;
}

.ajax-search-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.ajax-search-message {
    padding: var(--space-4);
    text-align: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.ajax-search-error {
    color: var(--primary-color);
}

.ajax-search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ajax-search-footer {
    padding: var(--space-3);
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.ajax-search-view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ajax-search-view-all:hover {
    color: var(--primary-dark);
}

.ajax-search-view-all svg {
    transition: transform 0.2s ease;
}

.ajax-search-view-all:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   FIM DO AJAX SEARCH
   ========================================================================== */

/* Contenção adicional para todos os containers principais */
.site-container,
.container,
.content-wrapper,
.main-content,
.sidebar,
.single-post {
    overflow-x: hidden;
    max-width: 100%;
}

/* ==========================================================================
   CATEGORY PAGE - DESIGN SIMPLES
   ========================================================================== */

/* Category Container */
.category-container {
    padding-top: var(--space-6);
}

.category-content-wrapper {
    margin-top: 0;
}

.category-main-content {
    width: 100%;
}

/* Archive Header */
.archive-header {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.category-archive-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
    .category-archive-title {
        font-size: var(--text-3xl);
    }
}

.category-archive-description {
    font-size: var(--text-base);
    color: var(--text-light);
    line-height: 1.6;
}

/* Category Grid Wrapper */
.category-grid-wrapper {
    margin-bottom: var(--space-6);
}

.category-news-grid {
    width: 100%;
}

/* Category Pagination */
.category-pagination {
    margin-top: var(--space-6);
}

body.dark-mode .archive-header {
    border-bottom-color: #333333;
}

body.dark-mode .category-archive-title {
    color: #ffffff;
}

body.dark-mode .category-archive-description {
    color: #b0b0b0;
}

/* Responsive for Category Page */
@media (max-width: 767px) {
    .category-container {
        padding-top: var(--space-4);
    }
    
    .archive-header {
        padding: var(--space-3) 0;
        margin-bottom: var(--space-4);
    }
    
    .category-archive-title {
        font-size: var(--text-xl);
    }
}

@media (max-width: 480px) {
    .category-archive-title {
        font-size: var(--text-lg);
    }
}

/* ==========================================================================
   FIM DA PÁGINA DE CATEGORIAS
   ========================================================================== */

/* ==========================================================================
   FOOTER BEAUTIFUL - DESIGN ELEGANTE E SIMPLES
   ========================================================================== */

/* Footer Main Container */
.site-footer {
    background: var(--secondary-color);
    color: #ffffff;
    margin-top: var(--space-10);
    position: relative;
    overflow: hidden;
}

/* Accent Border Top */
.footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: footer-accent-flow 3s ease infinite;
}

@keyframes footer-accent-flow {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Footer Content Layout */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-10) 0 var(--space-8);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: var(--space-8);
    }
}

/* Footer Branding */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
}

@media (min-width: 768px) {
    .footer-branding {
        align-items: flex-start;
    }
}

.footer-logo-link {
    display: inline-block;
    transition: transform var(--transition-base);
}

.footer-logo-link:hover {
    transform: scale(1.02);
}

.footer-logo-link img {
    max-height: 50px;
    width: auto;
}

.footer-site-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.footer-site-title:hover {
    color: var(--primary-light);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-weight: 400;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform var(--transition-base);
    z-index: 0;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-base);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Footer Copyright */
.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    margin: 0;
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

@media (min-width: 768px) {
    .footer-copyright {
        text-align: right;
        border-top: none;
        padding-top: 0;
        width: auto;
        flex: 1;
    }
}

.footer-copyright a {
    color: rgba(255,255,255,0.8);
    transition: color var(--transition-fast);
}

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

/* Dark Mode for Beautiful Footer */
body.dark-mode .site-footer {
    background: #0d0d0d;
}

body.dark-mode .social-link {
    background: rgba(255,255,255,0.08);
}

body.dark-mode .social-link:hover {
    box-shadow: 0 8px 20px rgba(200, 16, 46, 0.4);
}

body.dark-mode .footer-copyright {
    color: rgba(255,255,255,0.5);
}

body.dark-mode .footer-tagline {
    color: rgba(255,255,255,0.6);
}

body.dark-mode .footer-copyright a:hover {
    color: var(--primary-color);
}

/* Responsive Footer */
@media (max-width: 767px) {
    .footer-content {
        gap: var(--space-6);
        padding: var(--space-8) 0 var(--space-6);
    }

    .footer-branding {
        margin-bottom: var(--space-2);
    }

    .footer-social {
        gap: var(--space-2);
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin-top: var(--space-8);
    }

    .footer-content {
        padding: var(--space-6) 0;
        gap: var(--space-5);
    }

    .footer-site-title {
        font-size: var(--text-lg);
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 16px;
        height: 16px;
    }

    .footer-copyright {
        font-size: var(--text-xs);
    }
}

/* ==========================================================================
   FIM DO FOOTER BEAUTIFUL
   ========================================================================== */

