/*
Theme Name: Portal Clic Sul - G1 Style
Theme URI: https://clicsuldeminas.com.br
Author: Desenvolvimento Clic Sul
Author URI: https://clicsuldeminas.com.br
Description: Tema profissional para portal de notícias estilo G1, com design moderno, responsivo e recursos avançados para gestão de conteúdo jornalístico.
Version: 1.0.0
License: Proprietário
License URI: https://clicsuldeminas.com.br/licenca
Text Domain: clicsul
Tags: news, portal, responsive, gutenberg-ready, custom-post-types
*/

/* =Reset & Base Styles
-------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores Principais */
    --primary-color: #C4170C;
    --color-primary: #C4170C;
    --secondary-color: #333333;
    --accent-color: #06AA48;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FFFFFF;
    --bg-gray: #F5F5F5;
    --border-color: #E5E5E5;
    
    /* Tipografia */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-secondary: Georgia, 'Times New Roman', serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Breakpoints */
    --mobile: 576px;
    --tablet: 768px;
    --desktop: 1024px;
    --wide: 1200px;
    --ultra-wide: 1400px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =Typography
-------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =Container
-------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--ultra-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* =Grid System
-------------------------------------------------------------- */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(var(--spacing-md) * -1);
    margin-right: calc(var(--spacing-md) * -1);
}

[class*="col-"] {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.col-12 { width: 100%; }
.col-md-6 { width: 50%; }
.col-md-4 { width: 33.333%; }
.col-md-3 { width: 25%; }
.col-md-8 { width: 66.666%; }
.col-md-9 { width: 75%; }

@media (max-width: 767px) {
    [class*="col-"] {
        width: 100%;
    }
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar {
    background: #1a1a1a;
    padding: 8px 0;
    font-size: 13px;
    color: #ccc;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left .date-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-left .date-time svg {
    opacity: 0.7;
}

.topbar-left .time-separator {
    opacity: 0.4;
    margin: 0 4px;
}

.topbar-right .social-icons {
    display: flex;
    gap: 8px;
}

.topbar-right .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.2s;
}

.topbar-right .social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.topbar-right .social-icon svg {
    fill: currentColor;
}

.main-header {
    padding: 15px 0;
    background: #fff;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Logo do Header - Centralizado */
.site-branding {
    text-align: center;
}

.logo-link {
    display: inline-block;
}

.logo-header {
    max-height: 70px;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Ações do Header - Posição Absoluta à Direita */
.header-actions {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo do Footer */
.footer-about .footer-logo {
    margin-bottom: 15px;
}

.logo-footer {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.logo-footer:hover {
    opacity: 1;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* =Navigation
-------------------------------------------------------------- */
.main-navigation {
    background: #1a1a1a !important;
    padding: 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    flex: 1;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Busca na Barra do Menu */
.nav-search {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
}

.nav-search-form {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-search-form:focus-within {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
}

.nav-search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    width: 200px;
    font-size: 13px;
    outline: none;
}

.nav-search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.nav-search-submit {
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.nav-search-submit:hover {
    background: rgba(255,255,255,0.1);
    color: #FFD700;
}

@media (max-width: 768px) {
    .nav-search-toggle {
        display: flex;
    }
    
    .nav-search-form {
        position: absolute;
        right: 0;
        top: 100%;
        background: var(--color-primary);
        border-radius: 0;
        display: none;
        width: 250px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    
    .nav-search.active .nav-search-form {
        display: flex;
    }
    
    .nav-search-input {
        width: 100%;
    }
}

.main-menu li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: white;
    font-weight: 500;
    transition: background 0.3s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    background: #FFD700;
    color: #333;
    text-decoration: none;
}

/* =Content
-------------------------------------------------------------- */
.site-content {
    padding: var(--spacing-xxl) 0;
    min-height: 60vh;
}

.content-area {
    flex: 1;
}

.widget-area {
    width: 100%;
}

@media (min-width: 768px) {
    .content-with-sidebar {
        display: flex;
        gap: var(--spacing-xl);
    }
    
    .content-area {
        flex: 2;
    }
    
    .widget-area {
        flex: 1;
        max-width: 350px;
    }
}

/* =Cards
-------------------------------------------------------------- */
.news-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.news-card-image {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: var(--bg-gray);
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-content {
    padding: var(--spacing-md);
}

.news-card-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: var(--spacing-sm);
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

.news-card-title a {
    color: var(--text-color);
}

.news-card-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background: var(--secondary-color);
    color: white;
    padding: 30px 0 20px;
    margin-top: 40px;
}

.footer-content {
    padding-bottom: 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-column ul,
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li,
.footer-menu li {
    margin-bottom: 8px;
}

.footer-column a,
.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover,
.footer-menu a:hover {
    color: white;
}

.footer-column h4 {
    font-size: 14px;
    margin: 15px 0 10px;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
}

.newsletter-form button {
    padding: 8px 15px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: background 0.2s;
}

.footer-social a:hover {
    background: var(--color-primary);
}

.footer-bottom {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 0;
}

.footer-info a {
    color: var(--color-primary);
}

@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* =Responsive
-------------------------------------------------------------- */
@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =Mobile Menu
-------------------------------------------------------------- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #1a1a2e;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 60px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation .container {
        padding: 0;
    }
    
    .main-navigation .nav-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .main-navigation .nav-menu {
        width: 100%;
    }
    
    .main-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .main-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-menu a {
        padding: 15px 20px;
        color: #fff;
    }
    
    .main-menu a:hover,
    .main-menu .current-menu-item > a {
        background: #FFD700;
        color: #1a1a2e;
    }
    
    .nav-search {
        padding: 15px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-search-form {
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .nav-search-input {
        color: #fff;
    }
    
    .nav-search-input::placeholder {
        color: rgba(255,255,255,0.6);
    }
    
    .nav-search-submit {
        color: #fff;
        border-left-color: rgba(255,255,255,0.2);
    }
    
    /* Overlay para fechar menu ao clicar fora */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* =Utilities
-------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }

.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =====================================================
   HOMEPAGE STYLES - PORTAL G1
===================================================== */

/* Hero Section */
.hero-section {
    padding: 20px 0 30px;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.hero-main {
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    height: 100%;
    min-height: 450px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.hero-category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-title a {
    color: #fff;
    text-decoration: none;
}

.hero-title a:hover {
    text-decoration: underline;
}

.hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

.meta-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Side - Destaques Secundários */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.side-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.side-card:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.side-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.side-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.side-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: auto;
}

.side-title a {
    color: var(--color-text);
    text-decoration: none;
}

.side-title a:hover {
    color: var(--color-primary);
}

.side-time {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* Editorias Nav */
.editorias-section {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}

.editorias-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
}

.editoria-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.editoria-link:hover {
    color: var(--color-primary);
}

.editoria-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
}

.title-icon {
    font-size: 24px;
}

.title-bar {
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.ver-mais {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.ver-mais:hover {
    text-decoration: underline;
}

/* Últimas Notícias */
.ultimas-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.noticia-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.noticia-thumb {
    display: block;
    height: 180px;
    overflow: hidden;
}

.noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.noticia-card:hover .noticia-thumb img {
    transform: scale(1.05);
}

.noticia-info {
    padding: 18px;
}

.noticia-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 8px;
}

.noticia-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
}

.noticia-title a {
    color: var(--color-text);
    text-decoration: none;
}

.noticia-title a:hover {
    color: var(--color-primary);
}

.noticia-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.noticia-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.noticia-time {
    font-size: 12px;
    color: #999;
}

/* Categoria Section */
.categoria-section {
    padding: 40px 0;
    background: #fff;
}

.categoria-section:nth-child(even) {
    background: #f8f9fa;
}

.categoria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.categoria-destaque {
    grid-column: 1;
    display: flex;
    flex-direction: column;
}

.cat-dest-image {
    display: block;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.cat-dest-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.categoria-destaque:hover .cat-dest-image img {
    transform: scale(1.03);
}

.cat-dest-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.cat-dest-content h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.cat-dest-content h3 a:hover {
    color: var(--color-primary);
}

.cat-dest-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.cat-time {
    font-size: 12px;
    color: #999;
}

/* Categoria Item */
.categoria-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.categoria-item:last-child {
    border-bottom: none;
}

.cat-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.cat-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-item-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cat-item-content h4 a {
    color: var(--color-text);
    text-decoration: none;
}

.cat-item-content h4 a:hover {
    color: var(--color-primary);
}

/* Mais Lidas */
.mais-lidas-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.mais-lidas-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.mais-lidas-section .section-header {
    border-bottom-color: rgba(255,255,255,0.2);
}

.mais-lidas-section .section-title {
    color: #fff;
}

.mais-lidas-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mais-lida-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mais-lida-item:hover {
    background: rgba(255,255,255,0.1);
}

.rank-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 50px;
    text-align: center;
}

.mais-lida-content {
    flex: 1;
}

.mais-lida-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.mais-lida-content h4 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.mais-lida-content h4 a {
    color: #fff;
    text-decoration: none;
}

.mais-lida-content h4 a:hover {
    text-decoration: underline;
}

.mais-lida-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.mais-lida-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Homepage */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-card {
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-side {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .side-card {
        flex: 1 1 calc(50% - 10px);
    }
    
    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categoria-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-card {
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .side-card {
        flex: 1 1 100%;
    }
    
    .editorias-nav ul {
        gap: 15px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .editoria-link {
        white-space: nowrap;
    }
    
    .noticias-grid {
        grid-template-columns: 1fr;
    }
    
    .mais-lida-item {
        flex-wrap: wrap;
    }
    
    .mais-lida-thumb {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-card {
        min-height: 250px;
    }
    
    .hero-title {
        font-size: 18px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
}

/* =====================================================
   SINGLE POST / NOTÍCIA STYLES
===================================================== */

.single-main {
    padding: 30px 0 50px;
    background: #f8f9fa;
}

.single-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.single-article {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.article-header {
    padding: 30px 30px 20px;
}

.article-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.article-cat {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 15px;
}

.article-subtitle {
    font-size: 20px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 14px;
    color: #333;
}

.publish-date {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.meta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

.article-featured-image {
    margin: 0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-featured-image figcaption {
    background: #f5f5f5;
    padding: 10px 30px;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.article-content {
    padding: 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 35px 0 20px;
    color: var(--color-text);
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.article-content ul, .article-content ol {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 15px 25px;
    margin: 25px 0;
    background: #f9f9f9;
    font-style: italic;
    font-size: 19px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-source {
    padding: 15px 30px;
    background: #f5f5f5;
    font-size: 14px;
    color: #555;
}

.article-tags {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
}

.tags-label {
    font-weight: 600;
    color: #333;
}

.tag-link {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--color-primary);
    color: #fff;
}

.author-box {
    display: flex;
    gap: 20px;
    padding: 25px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.author-details {
    flex: 1;
}

.author-details h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.author-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.author-posts-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.related-posts {
    padding: 30px;
    border-top: 1px solid #e5e7eb;
}

.related-posts h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    gap: 15px;
}

.related-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-info h4 a {
    color: var(--color-text);
    text-decoration: none;
}

.related-info h4 a:hover {
    color: var(--color-primary);
}

.related-time {
    font-size: 12px;
    color: #999;
}

.single-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Responsive Single */
@media (max-width: 992px) {
    .single-grid {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 20px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-subtitle {
        font-size: 17px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .meta-actions {
        align-items: flex-start;
        width: 100%;
    }
    
    .article-content {
        padding: 20px;
        font-size: 16px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin: 0 auto;
    }
}

/* =====================================================
   SIDEBAR COMPACTA
===================================================== */

.sidebar-compact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.sidebar-compact .widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-compact .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-compact .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
}

.sidebar-compact .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-compact .widget li {
    margin-bottom: 6px;
}

.sidebar-compact .widget a {
    color: var(--color-primary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-compact .widget a:hover {
    color: #333;
    text-decoration: underline;
}

/* Widget Busca */
.sidebar-compact .widget_search .search-form {
    display: flex;
    gap: 0;
}

.sidebar-compact .widget_search input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
}

.sidebar-compact .widget_search button,
.sidebar-compact .widget_search input[type="submit"] {
    padding: 8px 15px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    cursor: pointer;
}

/* Widget Últimas Notícias com Miniaturas */
.ultimas-noticias-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.noticia-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.noticia-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
}

.noticia-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.noticia-info {
    flex: 1;
    min-width: 0;
}

.noticia-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
}

.noticia-info h4 a {
    color: #333;
    text-decoration: none;
}

.noticia-info h4 a:hover {
    color: var(--color-primary);
}

.noticia-data {
    font-size: 11px;
    color: #888;
}

/* =====================================================
   INPUTS DE PESQUISA - GLOBAL
===================================================== */

input[type="search"],
input[type="text"],
.search-field {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

input[type="search"]:focus,
input[type="text"]:focus,
.search-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(196, 23, 12, 0.1);
}

.search-form {
    display: flex;
    gap: 0;
}

.search-form .search-field {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.search-form .search-submit,
.search-form button {
    padding: 10px 18px;
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form .search-submit:hover,
.search-form button:hover {
    background: #a01209;
    border-color: #a01209;
}

/* =====================================================
   BOTÃO VOLTAR AO TOPO
===================================================== */

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

#back-to-top.show,
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #FFD700;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

#back-to-top svg,
#back-to-top::before {
    content: "↑";
}

/* =====================================================
   BOTÃO DE BUSCA NO HEADER
===================================================== */

.header-search {
    position: relative;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.search-toggle:hover {
    background: #FFD700;
    color: #333;
    transform: scale(1.05);
}

.search-toggle svg {
    stroke: currentColor;
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-modal .search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-modal .search-close:hover {
    background: white;
    color: #333;
}

.search-modal .search-form {
    display: flex;
}

.search-modal .search-field {
    flex: 1;
    padding: 18px 24px;
    font-size: 18px;
    border: none;
    border-radius: 8px 0 0 8px;
}

.search-modal .search-submit {
    padding: 18px 30px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.search-modal .search-submit:hover {
    background: #FFD700;
    color: #333;
}

/* Ocultar widgets de Arquivo via CSS */
.widget_archive {
    display: none !important;
}

/* Botões de Login/Painel */
.btn-login,
.btn-painel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-login:hover,
.btn-painel:hover {
    background: #FFD700;
    color: #333;
    text-decoration: none;
}

.btn-login svg,
.btn-painel svg {
    stroke: currentColor;
}

@media (max-width: 768px) {
    .btn-login span,
    .btn-painel span {
        display: none;
    }
    
    .btn-login,
    .btn-painel {
        padding: 10px;
        border-radius: 50%;
    }
}
