/*
Theme Name: Elias Lacerda
Theme URI: https://eliaslacerda.com
Author: Elias Lacerda
Author URI: https://eliaslacerda.com
Description: Tema personalizado desenvolvido com foco em performance e experiência do usuário
Version: 1.0.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eliaslacerda
*/

:root {
    --primary-color: #008000;
    --secondary-color: #333;
    --text-color: #444;
    --light-text: #666;
    --meta-text: #777;
    --background-color: #f8f9fa;
    --card-background: #fff;
    --border-color: #eee;
    --category-bg: var(--primary-color);
    --category-text: #fff;
    --link-hover: #029e02;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.developer{
    color: #008000;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}
.developer:hover{
    color: #029e02;    
}

#content {
    flex: 1 0 auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

/* Header Top */
.header-top {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.trending-news {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trending-label {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--primary-color);
    color: var(--category-text);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.trending-label i {
    font-size: 12px;
}

.trending-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.trending-items {
    display: flex;
    gap: 30px;
    animation: scrollTrending 25s linear infinite;
    white-space: nowrap;
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.trending-title {
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.trending-separator {
    color: var(--primary-color);
    opacity: 0.5;
    margin: 0 10px;
    font-weight: 300;
}

/* Remove o separador do último item */
.trending-item:last-child .trending-separator {
    display: none;
}

.trending-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 13px;
    margin-left: auto;
    background-color: #008000;
    padding: 5px 8px;
    border-radius: 5px;
    flex-shrink: 0;
}

@keyframes scrollTrending {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Pausa a animação quando o mouse está em cima */
.trending-wrapper:hover .trending-items {
    animation-play-state: paused;
}

/* Header Principal */
.site-header {
    padding: 20px 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.site-branding {
    flex: 0 0 300px;
}

.custom-logo-link {
    display: block;
}

.custom-logo {
    max-width: 100%;
    height: auto;
}

.header-banner {
    flex: 1;
    max-width: 1110px;
}

.banner-container {
    width: 100%;
}

.banner-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Banner Styles */
.banner-container {
    display: block !important;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.banner-container:last-child {
    margin-bottom: 0;
}

.banner-image {
    display: block !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Header Banner */
.header-ad {
    display: block !important;
    flex: 1;
    max-width: 728px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.header-ad .banner-container {
    margin: 0;
}

/* Sidebar Banners */
.sidebar .banner-container {
    margin-bottom: 30px;
    padding: 0;
    background: transparent;
}

.sidebar .widget.advertisement {
    padding: 0;
    background: transparent;
    margin-bottom: 30px;
}

.sidebar .widget.advertisement .banner-container:last-child {
    margin-bottom: 0;
}

/* Content Banners */
.content-area .banner-container {
    margin: 30px 0;
}

/* Responsive Banners */
@media (max-width: 768px) {
    .header-ad {
        max-width: 100%;
        margin: 15px 0;
    }
}

/* Menu de Navegação */
.main-navigation {
    background-color: var(--primary-color);
    padding: 0;
    margin-top: 0;
    position: relative;
    z-index: 100;
}

.menu-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .main-navigation {
        position: relative;
        margin-top: 0;
        order: initial;
    }

    .menu-toggle {
        display: block !important;
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        background-color: var(--primary-color);
        color: #fff;
        border: none;
        cursor: pointer;
    }

    .menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .menu-wrapper.toggled {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        width: 100%;
    }

    .primary-menu li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-social {
        width: 100%;
        justify-content: center;
        padding: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        gap: 20px;
    }
}

.menu-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu li a {
    display: block;
    color: var(--category-text);
    text-decoration: none;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.primary-menu li:hover > a {
    background-color: var(--link-hover);
}

.nav-social {
    display: flex;
    gap: 15px;
    padding: 0 15px;
    align-items: center;
}

.nav-social .social-link {
    color: #fff;
    font-size: 16px;
    padding: 15px 5px;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-social .social-link:hover {
    opacity: 0.8;
}

.search-toggle {
    color: #fff;
    font-size: 16px;
    padding: 15px 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.search-toggle:hover {
    opacity: 0.8;
}

/* Formulário de Busca */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.search-overlay.active {
    display: flex;
}

.search-form-container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.1);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-thumbnail {
    flex: 0 0 80px;
    height: 80px;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px;
    color: var(--text-color);
}

.search-result-date {
    font-size: 12px;
    color: var(--meta-text);
}

/* Menu Responsivo */
@media (max-width: 768px) {
    .main-navigation {
        position: relative;
        margin-top: 0;
        order: initial;
    }

    .menu-toggle {
        display: block !important;
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        background-color: var(--primary-color);
        color: #fff;
        border: none;
        cursor: pointer;
    }

    .menu-wrapper {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .menu-wrapper.toggled {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        width: 100%;
    }

    .primary-menu li a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-social {
        width: 100%;
        justify-content: center;
        padding: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* Responsivo */
@media (max-width: 1200px) {
    .header-ad {
        max-width: 728px;
        height: 90px;
    }
}

@media (max-width: 992px) {
    .header-main {
        flex-direction: column;
        gap: 20px;
        padding: 15px 0;
    }

    .site-branding {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .header-ad {
        max-width: 100%;
    }

    .custom-logo {
        margin: 0 auto;
    }
}

@media (max-width: 716px) {
    .trending-date {
        display: none;
    }
}

@media (max-width: 768px) {
    .trending-news {
        flex-wrap: wrap;
    }

    .trending-date {
        width: 15%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-wrapper {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu-wrapper.toggled {
        display: flex;
    }

    .primary-menu {
        flex-direction: column;
        width: 100%;
    }

    .primary-menu li a {
        padding: 12px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-social {
        width: 100%;
        justify-content: center;
        padding: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .header-main {
        padding: 15px 0;
    }

    .header-ad {
        height: auto;
        min-height: 90px;
    }
}

/* Grid de Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.grid-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.grid-post:hover {
    transform: translateY(-5px);
}

.grid-post .post-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.grid-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.grid-post .post-content {
    padding: 20px;
}

.grid-post .post-categories {
    margin-bottom: 10px;
}

.grid-post .post-category {
    display: inline-block;
    padding: 4px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    border-radius: 3px;
    text-decoration: none;
}

.grid-post .post-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 0 0 10px;
}

.grid-post .post-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

.grid-post .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--meta-text);
}

.grid-post .post-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.grid-post .post-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.grid-post .post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--meta-text);
    margin-top: 10px;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Thumbnail na Sidebar */
.sidebar-thumbnail {
    flex: 0 0 50px;
}

.sidebar-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

/* E remova estas propriedades da classe .latest-posts */
.latest-posts .post-thumbnail {
    /* remover estas propriedades */
}

.latest-posts .post-thumbnail img {
    /* remover estas propriedades */
}

.post-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    display: inline-block;
    background: var(--category-bg);
    color: var(--category-text);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.post-category:hover {
    background: var(--link-hover);
    color: var(--category-text);
}

.post-title {
    font-size: 18px;
    line-height: 1.4;
    margin: 10px 0;
    font-weight: 700;
}

.post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-meta {
    color: var(--meta-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-meta i {
    color: #fff;
}

.post-meta a {
    color: #666;
    text-decoration: none;
}

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

/* Paginação */
.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.page-numbers:hover:not(.current) {
    background: var(--border-color);
}

.page-numbers.prev,
.page-numbers.next {
    font-size: 14px;
}

.page-numbers.prev i,
.page-numbers.next i {
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 768px) {
    .site-branding {
        flex-wrap: wrap;
    }

    .main-navigation {
        order: 0;
        width: 100%;
        margin: 15px 0 0;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }

    .primary-menu-container {
        display: none;
        width: 100%;
    }

    .primary-menu-container.toggled {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        gap: 10px;
    }

    .social-links {
        margin-left: auto;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .post-card {
        height: 400px;
    }

    .post-thumbnail {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .post-card {
        height: auto;
        min-height: 400px;
    }
}

/* Utilitários */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Posts em Destaque */
.featured-posts {
    margin: 30px 0;
    background-color: #f8f9fa;
    padding: 30px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.featured-large {
    grid-row: span 2;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 500px;
}

.featured-small {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 240px;
}

.featured-thumbnail {
    position: relative;
    height: 100%;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
}

.featured-large .featured-content {
    padding: 40px;
}

.featured-content .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-decoration: none;
}

.featured-content .entry-title {
    margin: 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.featured-large .entry-title {
    font-size: 32px;
    margin: 15px 0;
}

.featured-content .entry-title a {
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.featured-content .post-meta {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    display: flex;
    gap: 15px;
}

.featured-content .post-meta a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.featured-content .post-meta i {
    margin-right: 5px;
}

/* Efeito hover */
.featured-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.featured-thumbnail:hover::before {
    background: rgba(0,0,0,0.4);
}

/* Responsivo */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-large {
        grid-row: auto;
        min-height: 400px;
    }

    .featured-small {
        min-height: 300px;
    }

    .featured-large .entry-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .featured-large,
    .featured-small {
        min-height: 250px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-large .entry-title {
        font-size: 20px;
    }

    .featured-content .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Single Post */
.single-post {
    background: var(--card-background);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.single-post .entry-header {
    padding: 30px;
}

.single-post .post-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.single-post .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    text-decoration: none;
}

.single-post .entry-title {
    color: var(--secondary-color);
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 20px 0;
}

.single-post .post-meta {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    color: var(--meta-text);
}

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    border-radius: 50%;
}

.meta-info {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 14px;
}

.meta-info i {
    margin-right: 0px;
}

.meta-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-label {
    color: #666;
    font-size: 14px;
}

.share-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-link:hover {
    transform: translateY(-3px);
}

.share-link.facebook {
    background: #3b5998;
}

.share-link.twitter {
    background: #1da1f2;
}

.share-link.whatsapp {
    background: #25d366;
}

.single-post .post-thumbnail {
    margin: 0 0 2rem;
}

.content-area .post-thumbnail {
    height: 250px;
    margin-bottom: 20px;
}

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

.single-post .featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
}

.single-post .entry-content {
    padding: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin: 2rem 0 1rem;
    color: var(--secondary-color);
}

.single-post .entry-footer {
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.post-tags {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.post-tags i {
    color: #666;
}

.post-tags a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #fff;
}

.author-bio {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.author-bio .author-avatar img {
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-links {
    display: flex;
    gap: 15px;
}

.author-links a {
    color: #666;
    transition: color 0.3s ease;
}

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

/* Posts Relacionados */
.related-posts {
    margin: 40px 0;
}

.related-posts .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.related-posts .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-posts .grid-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.related-posts .post-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.related-posts .post-content {
    padding: 15px;
    margin-top: -30px;
}

.related-posts .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 10px;
}

.related-posts .post-category.fashion {
    background: #ff4d8c;
}

.related-posts .post-category.health {
    background: #8e44ad;
}

.related-posts .post-title {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 10px;
    font-weight: 600;
}

.related-posts .post-title a {
    color: #333;
    text-decoration: none;
}

.related-posts .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.related-posts .post-meta i {
    color: #666;
    font-size: 14px;
}

/* Responsividade dos Posts Relacionados */
@media (max-width: 992px) {
    .related-posts .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts .posts-grid {
        grid-template-columns: 1fr;
    }

    .related-posts .post-thumbnail {
        height: 180px;
    }
}

/* Category Page */
.category-header {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 40px 0;
    background: #ededed;
    border-radius: 8px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 15px;
    text-transform: uppercase;
}

.category-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--meta-text);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pagination */
.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: inline-flex;
    gap: 5px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

.page-numbers:hover:not(.current) {
    background: var(--border-color);
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 15px;
}

/* Regras base para garantir rolagem */
html, body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background-color: #1c1c1c;
    color: var(--category-text);
    padding: 60px 0 0;
    margin-top: auto;
}

/* Ajustes para a página single */
.single-post {
    margin-bottom: 40px;
    overflow: visible;
}

.single .site-content {
    padding: 40px 0;
}

.entry-content {
    overflow: visible;
}

/* Ajustes para imagens na página single */
.single-post .post-thumbnail img {
    max-width: 100%;
    height: auto;
}

/* Container responsivo */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: visible;
}

/* Footer */
.site-footer {
    background-color: #1c1c1c;
    color: var(--category-text);
    padding: 60px 0 0;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget {
    padding: 0 15px;
}

.sidebar .widget .widget-title {
    color: var(--primary-color) !important;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    padding-left: 15px;
    border-bottom: 2px solid var(--border-color);
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* About Us Widget */
.about-us-content p {
    color: var(--category-text);
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: var(--category-text);
    opacity: 0.9;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 5px;
}

.contact-info a {
    color: var(--category-text);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.contact-info a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.footer-widget .social-links {
    display: flex;
    gap: 15px;
}

.footer-widget .social-link {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-widget .social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.popular-post .post-thumbnail {
    flex: 0 0 80px;
    height: 80px;
}

.popular-post .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.popular-post .post-content {
    flex: 1;
}

.popular-post .post-category {
    display: inline-block;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    margin-bottom: 5px;
    margin-top: -20px;
}

.popular-post .post-title {
    font-size: 14px;
    margin: 0 0 5px;
    line-height: 1.4;
}

.popular-post .post-title a {
    color: var(--category-text);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.popular-post .post-title a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.popular-post .post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--category-text);
    font-size: 12px;
    opacity: 0.7;
}

.popular-post .post-date i {
    font-size: 14px;
}

/* Advertisement Widget */
.footer-ad {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.footer-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-ad-widget {
    width: 100%;
}

.ad-link {
    display: block;
    text-decoration: none;
}

.ad-image {
    transition: opacity 0.3s ease;
}

.ad-link:hover .ad-image {
    opacity: 0.9;
}

/* Footer Bottom */
.footer-bottom {
    background-color: #161616;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

.copyright {
    color: #999;
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-widget:last-child {
        grid-column: span 2;
    }
}

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

    .footer-widget:last-child {
        grid-column: auto;
    }

    .footer-widget {
        padding: 0;
    }
}

/* Estrutura base para footer fixo */
html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#page {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background-color: #1c1c1c;
    color: var(--category-text);
    padding: 60px 0 0;
    margin-top: auto;
}

/* Layout de duas colunas */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.content-area {
    min-width: 0;
}

/* Grid de posts em duas colunas */
.posts-grid.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* Sidebar */
.sidebar {
    width: 100%;
}

.widget {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-title {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Follow Us Widget */
.social-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.social-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    color: #fff;
    transition: transform 0.3s ease;
}

.social-stat:hover {
    transform: translateY(-3px);
}

.social-stat i {
    font-size: 20px;
    margin-bottom: 8px;
}

.social-stat .count {
    font-size: 18px;
    font-weight: 700;
    margin: 5px 0;
}

.social-stat .label {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.social-stat.facebook {
    background: #3b5998;
}

.social-stat.twitter {
    background: #1da1f2;
}

.social-stat.pinterest {
    background: #bd081c;
}

.social-stat.instagram {
    background: #c13584;
}

.social-stat.youtube {
    background: #ff0000;
}

.social-stat.discord {
    background: #7289da;
}

/* Advertisement Widget */
.advertisement {
    padding: 0;
    overflow: hidden;
}

.advertisement img {
    width: 100%;
    height: auto;
    display: block;
}

/* Recent Posts Widget */
.post-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
}

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

.post-number {
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.post-item .post-content {
    flex: 1;
    min-width: 0;
}

.post-item .post-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
}

.post-item .post-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 5px 0;
}

.post-item .post-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-item .post-date {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 12px;
}

.post-item .post-date i {
    font-size: 14px;
}

/* Responsivo */
@media (max-width: 992px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .posts-grid.two-columns {
        grid-template-columns: 1fr;
    }
}

/* Últimas Matérias na Sidebar */
.latest-posts .post-item {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.latest-posts .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.latest-posts .post-thumbnail {
    flex: 0 0 50px;
}

.latest-posts .post-thumbnail img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

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

.latest-posts .post-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--category-text);
    text-decoration: none;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.latest-posts .post-title {
    font-size: 13px;
    line-height: 1.3;
    margin: 0 0 2px;
}

.latest-posts .post-title a {
    color: var(--text-color);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.latest-posts .post-date {
    font-size: 11px;
    color: var(--meta-text);
    display: block;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.load-more-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--primary-color);
}

.loading-spinner i {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Grid Post Animation */
.grid-post {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Author Page Styles */
.author-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
    background: var(--card-background);
    border-radius: 8px;
}

.author-info {
    max-width: 600px;
    margin: 0 auto;
}

.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.author-title {
    font-size: 32px;
    margin: 0 0 15px;
    color: var(--text-color);
}

.author-description {
    color: var(--meta-text);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
}

.author-meta {
    color: var(--meta-text);
    font-size: 14px;
}

.posts-count {
    display: inline-block;
    padding: 5px 15px;
    background: var(--border-color);
    border-radius: 20px;
    font-weight: 500;
}

/* Comments Form Styles */
.comments-area {
    margin-top: 60px;
    padding: 40px;
    background: var(--card-background);
    border-radius: 8px;
}

.comments-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.comments-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    list-style-type: none;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    margin-right: 7px;
    text-decoration: none !important;
}

a:link { 
    text-decoration: none; 
  } 
  a:visited { 
    text-decoration: none; 
  } 
  a:hover { 
    text-decoration: none; 
  } 
  a:active { 
    text-decoration: none; 
  }

.comment-metadata {
    font-size: 12px;
    color: var(--meta-text);
    margin-bottom: 15px;
}

.comment-metadata a {
    color: var(--meta-text);
    text-decoration: none;
}

.comment-content p {
    margin: 0;
    line-height: 1.6;
}

.reply {
    margin-top: 15px;
}

.reply a {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Comment Form */
.comment-respond {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.comment-reply-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-notes {
    font-size: 14px;
    color: var(--meta-text);
    margin-bottom: 20px;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.required {
    color: #e3342f;
}

.form-submit {
    margin: 0;
}

.submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit:hover {
    background: #00ad00;
    transform: translateY(-2px);
}

/* Nested Comments */
.comment .children {
    margin-left: 60px;
    margin-top: 30px;
    list-style: none;
}

@media (max-width: 768px) {
    .comment .children {
        margin-left: 20px;
    }
    
    .comments-area {
        padding: 20px;
    }
    
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        grid-column: 1 / -1;
    }
}

/* Comment Navigation */
.comment-navigation {
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation .nav-links {
    display: flex;
    gap: 20px;
}

.comment-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Captcha Styles */
.comment-captcha {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.captcha-question {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
    text-align: center;
}

.captcha-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.captcha-option {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.captcha-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.captcha-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.captcha-message {
    text-align: center;
    margin: 10px 0 0;
    font-size: 14px;
}

.captcha-message.success {
    color: #28a745;
}

.captcha-message.error {
    color: #dc3545;
}

#submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Popular Posts no Footer */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: #1a1a1a;
}

.popular-post {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.post-thumbnail {
    flex: 0 0 90px;
}

.post-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-category {
    display: inline-block;
    background-color: #00a859;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
}

.post-title a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.post-date {
    color: #888888;
    font-size: 13px;
}

.widget-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Single Post Header */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #333;
}

.post-meta {
    display: flex;
    _flex-direction: column;
    gap: 1rem;
}

.post-meta .post-category {
    display: inline-block;
    background-color: #43A047;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 1rem;
    border-radius: 3px;
    text-decoration: none;
    text-transform: uppercase;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.author-name {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.post-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #666;
    font-size: 0.875rem;
}

.post-date,
.post-comments,
.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-details i {
    color: #666;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 2rem;
    }

    .meta-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .post-details {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Layout da página single */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 30px 0;
}

.content-area {
    min-width: 0; /* Evita overflow em conteúdo longo */
}

/* Estilos da Sidebar */
.sidebar {
    width: 300px;
}

.sidebar-inner {
    position: sticky;
    top: 30px;
}

.sidebar .widget {
    background: var(--card-background);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--secondary-color);
}

/* Posts recentes na sidebar */
.sidebar .post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar .sidebar-thumbnail {
    flex: 0 0 80px;
}

.sidebar .sidebar-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

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

.sidebar .post-category {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 5px;
}

.sidebar .post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 5px 0;
}

.sidebar .post-title a {
    color: var(--text-color);
    text-decoration: none;
}

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

.sidebar .post-date {
    display: block;
    font-size: 12px;
    color: var(--meta-text);
}

/* Responsividade */
@media (max-width: 768px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-inner {
        position: static;
    }
}

/* Botões de Compartilhamento */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.share-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-button.whatsapp {
    background-color: #25D366;
}

.share-button.facebook {
    background-color: #1877F2;
}

.share-button.twitter {
    background-color: #1DA1F2;
}

.share-button.linkedin {
    background-color: #0A66C2;
}

/* Ajuste responsivo */
@media (max-width: 768px) {
    .meta-info {
        flex-wrap: wrap;
        align-items: center;
    }
    
    .share-buttons {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* Página 404 */
.error-404 {
    padding: 80px 0;
    text-align: center;
    background-color: #f8f9fa;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-404 .error-content {
    max-width: 800px;
    margin: 0 auto;
}

.error-404 .error-text {
    margin-bottom: 40px;
}

.error-404 h1 {
    font-size: 120px;
    color: #008000;
    margin: 0;
    line-height: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-404 h2 {
    font-size: 36px;
    color: #333;
    margin: 20px 0;
}

.error-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.error-404 .error-actions {
    margin-bottom: 50px;
}

.error-404 .button {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px;
}

.error-404 .button-primary {
    background-color: #008000;
    color: #fff;
}

.error-404 .button-primary:hover {
    background-color: #006400;
    transform: translateY(-2px);
}

.error-404 .button i {
    margin-right: 8px;
}

.error-404 .error-search {
    max-width: 500px;
    margin: 30px auto;
}

.error-404 .error-search h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.error-404 .search-form {
    display: flex;
    gap: 10px;
}

.error-404 .search-form input[type="search"] {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.error-404 .search-form .search-submit {
    background-color: #008000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.error-404 .search-form .search-submit:hover {
    background-color: #006400;
}

.error-404 .suggested-posts {
    margin-top: 50px;
}

.error-404 .suggested-posts h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

.error-404 .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.error-404 .post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.error-404 .post-card:hover {
    transform: translateY(-5px);
}

.error-404 .post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.error-404 .post-card h4 {
    padding: 20px;
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.error-404 .post-card a {
    color: #333;
    text-decoration: none;
}

.error-404 .post-card a:hover {
    color: #008000;
}

/* Responsivo */
@media (max-width: 768px) {
    .error-404 {
        padding: 40px 0;
    }

    .error-404 h1 {
        font-size: 80px;
    }

    .error-404 h2 {
        font-size: 24px;
    }

    .error-404 p {
        font-size: 16px;
    }

    .error-404 .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .error-404 .button {
        width: 100%;
        justify-content: center;
        margin: 10px 0;
    }

    .error-404 .search-form {
        flex-direction: column;
    }

    .error-404 .search-form .search-submit {
        width: 100%;
    }
}

/* Página 404 - Ajustes da Busca */
.error-404 .error-search {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

.error-404 .search-form-container {
    width: 100%;
    position: relative;
}

.error-404 .search-form {
    position: relative;
    margin-bottom: 10px;
}

.error-404 .search-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.error-404 .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.1);
}

.error-404 .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.error-404 .search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.error-404 .search-result-item:last-child {
    border-bottom: none;
}

.error-404 .search-result-item:hover {
    background-color: #f5f5f5;
}

.error-404 .search-result-thumbnail {
    flex: 0 0 60px;
    height: 60px;
}

.error-404 .search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.error-404 .search-result-content {
    flex: 1;
    min-width: 0;
}

.error-404 .search-result-title {
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

.error-404 .no-results,
.error-404 .error {
    padding: 15px;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
}

.error-404 .error {
    color: #dc3545;
}

@media (max-width: 768px) {
    .error-404 .error-search {
        padding: 0 15px;
    }

    .error-404 .search-result-thumbnail {
        flex: 0 0 50px;
        height: 50px;
    }

    .error-404 .search-result-title {
        font-size: 14px;
    }
}

/* Estilos para banners */
.banner-container {
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.banner-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Estilos específicos para cada posição de banner */
.banner-position-before-featured {
    margin-bottom: 2rem;
}

.banner-position-after-featured {
    margin: 2rem 0;
}

.banner-position-inside-content {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.banner-position-after-content {
    margin: 2rem 0;
}

.banner-position-header {
    margin: 0;
    padding: 1rem 0;
}

.banner-position-sidebar-top,
.banner-position-sidebar-middle,
.banner-position-sidebar-bottom {
    margin: 1.5rem 0;
}

/* Responsividade para banners */
@media (max-width: 768px) {
    .banner-container {
        margin: 1.5rem 0;
    }

    .banner-position-inside-content {
        margin: 1.5rem 0;
        padding: 0.75rem 0;
    }
}