/*
Theme Name: Visão Custom
Theme URI: https://visaooeste.com.br/
Author: Antigravity & Jeff
Description: Tema ultra-leve e personalizado para o Portal Visão Oeste.
Version: 1.0.0
Text Domain: visao-custom
*/

/* Reset e Base */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: #bf0418;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 0;
    text-transform: uppercase;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-nav a {
    color: #fff;
    margin-left: 20px;
}

.top-bar-nav a:hover {
    color: #ffd1cc;
}

.top-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Main Header */
.main-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Nav Menu */
.main-nav>ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
    text-transform: uppercase;
    display: block;
    padding: 10px 0;
}

.main-nav a:hover {
    color: #bf0418;
}

/* Dropdown Sub-menus */
.main-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    list-style: none;
    padding: 10px 0;
    border-top: 3px solid #bf0418;
}

.main-nav li:hover>ul {
    display: block;
}

.main-nav ul ul li {
    width: 100%;
}

.main-nav ul ul a {
    padding: 8px 20px;
    font-size: 0.85rem;
    text-transform: none;
}

.main-nav ul ul ul {
    top: 0;
    left: 100%;
}

/* Breaking News */
.breaking-news {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.breaking-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breaking-left {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.breaking-label {
    background: #bf0418;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.breaking-content {
    overflow: hidden;
    flex: 1;
}

.ticker-scroll {
    display: flex;
    gap: 30px;
}

.ticker-item a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.ticker-item a:hover {
    color: #bf0418;
}

.breaking-social {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

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

.social-icon.facebook {
    color: #1877F2;
}

.social-icon.instagram {
    color: #E4405F;
}

.social-icon.x-twitter {
    color: #000;
}

.social-icon.threads {
    color: #000;
}

.social-icon.gnews {
    display: flex;
    align-items: center;
    margin-left: 5px;
}

.social-icon.gnews img {
    display: block;
}

.ad-mobile-amp-only {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
}

/* Helper Classes */
.desktop-only {
    display: block;
}

body .mobile-only {
    display: none;
}

/* Ad Slot Header */
.ad-slot-header {
    min-height: 90px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin: 20px 0;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    max-width: 100%;
}

/* Header Search Form */
#header-search-form .search-form {
    display: flex;
    gap: 0;
}

#header-search-form .search-field {
    background: #f9f9f9;
    border: 1px solid #ddd;
    color: #333;
    padding: 12px 15px;
    border-radius: 4px 0 0 4px;
    width: 100%;
    font-size: 1.1rem;
}

#header-search-form .search-submit {
    background: #bf0418;
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
}

#header-search-form .search-submit:hover {
    background: #d92400;
}

.search-toggle:hover {
    color: #bf0418 !important;
}

/* Breaking News */
.breaking-news {
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-size: 0.85rem;
}

.breaking-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: #bf0418;
    color: #fff;
    padding: 3px 10px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    font-size: 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.pulse-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.breaking-content a {
    color: #333;
    font-weight: 600;
}

.breaking-content a:hover {
    color: #bf0418;
}

/* Responsividade Básica da Breaking News */
@media (max-width: 768px) {
    .breaking-social {
        display: none !important;
    }
}

/* Grid Principal da Home */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.card-news,
.col-headline {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    background: #000;
    /* fallbacks */
}

.card-news:hover,
.col-headline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.col-headline {
    height: 500px;
}

.col-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
}

/* Layout do Conteúdo Principal com Sidebar */
.home-content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.home-main-col {
    flex: 1;
    min-width: 0;
}

.home-sidebar {
    width: 336px;
    flex-shrink: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}


/* Links Cobrindo Tudo */
.col-headline a,
.card-news a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Imagens dos Cards */
.col-headline img,
.card-news img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    /* slight dim for text contrast */
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.card-news:hover img,
.col-headline:hover img {
    opacity: 1;
    transform: scale(1.03);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.col-headline .card-info {
    padding: 40px;
}

.card-info h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 800;
}

.card-info h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    font-weight: 700;
}

.sponsored-label {
    background: #da251d;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

/* Back to Top Button */
.back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #bf0418;
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}

.back-to-top-btn svg {
    margin-top: 2px;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

    .col-headline {
        height: 350px;
    }

    .main-nav>ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .main-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar-nav a {
        margin: 0 10px;
    }

    .single-share-bar,
    .desktop-only {
        display: none !important;
        /* Esconde a barra lateral no mobile */
    }

    .single-content {
        margin-left: 0 !important;
    }

    .home-content-wrapper,
    .single-wrapper {
        flex-direction: column;
    }

    .home-sidebar,
    .single-sidebar,
    .ad-slot,
    .ad-slot-sidebar,
    .ad-slot-header,
    .ad-slot-content {
        width: 100%;
        margin: 0 auto 30px;
    }

    body .mobile-only {
        display: block;
    }

    .home-three-cols>.mobile-only {
        grid-column: 1 / -1;
    }

    .back-to-top-btn {
        display: flex;
        bottom: 80px;
        /* Acima da barra de compartilhamento mobile */
    }
}

/* Bordas arredondadas globais para imagens (exceto anúncios e logo) */
img:not(.ad-slot img):not(.logo img):not([class*="ad-slot"] img) {
    border-radius: 8px;
}

/* Publicidade - Prevenção de CLS */
/* Anúncios */
.ad-slot,
.ad-slot-sidebar,
.ad-slot-footer,
.ad-slot-archive-inline,
.ad-slot-header,
.ad-slot-content {
    max-width: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    border-radius: 0;
}

.ad-slot {
    width: 336px;
    height: 600px;
    margin: 20px auto;
}

.ad-slot-sidebar {
    width: 336px;
    min-height: 250px;
    margin-bottom: 30px;
}

.ad-slot-footer {
    width: 300px;
    height: 250px;
    background: #333;
    color: #777;
    border: 1px solid #444;
    margin: 0 auto;
}

.ad-slot-archive-inline {
    grid-column: 1 / -1;
    width: 100%;
    margin: 10px 0;
}

.ad-slot-header {
    min-height: 90px;
    margin: 20px 0;
}

/* Fix CLS para banner de topo */
.ad-wrapper-header {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .ad-wrapper-header {
        min-height: 250px;
    }
}

.ad-slot-content {
    min-height: 250px;
    margin: 40px 0;
}

/* Layout Geral */
.single-wrapper,
.archive-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    position: relative;
}

.single-main {
    flex: 1;
    max-width: 800px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    min-width: 0;
}

.page-main {
    max-width: 100%;
}


.archive-main {
    flex: 1;
    min-width: 0;
}

.single-sidebar,
.archive-sidebar {
    width: 336px;
    flex-shrink: 0;
}

.sticky-ad {
    position: sticky;
    top: 20px;
    min-height: 600px;
}

.sidebar-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

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

.single-share-bar {
    width: 50px;
    position: sticky;
    top: 20px;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #333;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    background: #bf0418;
    color: #fff;
}

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

.share-x {
    background: #000;
    color: #fff;
}

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

.share-telegram {
    background: #0088cc;
    color: #fff;
}

.share-threads {
    background: #000;
    color: #fff;
}

.share-comments {
    background: #555;
    color: #fff;
    margin-top: 15px;
}

/* Mobile Share Bar */
.mobile-share-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-share-bar.show {
    transform: translateY(0);
}

.mobile-share-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .mobile-share-bar {
        display: flex;
    }
}

.single-breadcrumbs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.single-breadcrumbs a {
    color: #bf0418;
}

.category-label {
    display: inline-block;
    background: #bf0418;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}

.single-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #222;
}

.single-excerpt {
    font-size: 1.25rem;
    font-weight: 400;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    margin-bottom: 30px;
}

.single-meta strong {
    color: #333;
}

.meta-sep {
    color: #ccc;
}

.single-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-prev span,
.nav-next span {
    display: block;
    font-size: 0.8rem;
    color: #777;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

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

#comments {
    margin-top: 50px;
}

.single-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.tags-label {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #333;
}

.single-tags a {
    background: #f1f1f1;
    color: #555;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.single-tags a:hover {
    background: #e0e0e0;
}

/* Author Box Custom */
.author-box-custom {
    display: flex;
    gap: 25px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.author-info {
    flex: 1;
}

.author-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #bf0418;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.author-name {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 12px;
    font-weight: 700;
}

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

.author-links a {
    font-size: 0.9rem;
    color: #bf0418;
    font-weight: 700;
    text-decoration: none;
}

.author-links a:hover {
    text-decoration: underline;
}

.single-featured-image {
    margin-bottom: 30px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
}

.single-related {
    margin-top: 50px;
    border-top: 2px solid #bf0418;
    padding-top: 20px;
}

.single-related h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-grid h4 {
    font-size: 1rem;
    color: #222;
    line-height: 1.3;
    margin-top: 10px;
}

.related-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.image-caption {
    font-size: calc(1.1rem - 1pt) !important;
    color: #777;
    text-align: center;
    margin-top: 8px;
    font-style: italic !important;
}

.single-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

/* Responsividade das Imagens no Conteúdo */
.single-content img,
.single-content figure,
.single-content .wp-block-image,
.single-content .wp-caption {
    max-width: 100% !important;
    width: auto !important;
    /* Força sobrescrever o style="width: XXXXpx" inline do WordPress */
    height: auto !important;
    margin-bottom: 25px;
}

.single-content figure.wp-block-image figcaption,
.single-content figure.wp-caption .wp-caption-text,
.single-content .wp-caption-text,
.single-content figcaption {
    font-size: calc(1.1rem - 1pt) !important;
    font-style: italic !important;
    color: #777;
    text-align: center;
    margin-top: 8px;
}

.single-content img.aligncenter,
.single-content .aligncenter img,
.single-content figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.single-content .alignleft {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.single-content .alignright {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* No mobile, removemos o float para não esmagar o texto */
@media (max-width: 768px) {

    .single-content .alignleft,
    .single-content .alignright {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100% !important;
    }
}

/* Post Meta */
.post-meta {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta .author {
    font-weight: 700;
    color: #555;
}

.card-info .post-meta {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.card-info .post-meta .author {
    color: #fff;
}

/* Breaking News Ticker Animation */
.breaking-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-scroll {
    display: inline-flex;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 40s linear infinite;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.ticker-item {
    margin-right: 50px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Comments Section Styling */
#comments {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
}

#reply-title {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 15px;
    font-weight: bold;
}

.comment-notes,
.logged-in-as {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #bf0418;
    outline: none;
}

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

.form-submit {
    margin-top: 10px;
}

.form-submit input[type="submit"] {
    background: #bf0418;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
}

.form-submit input[type="submit"]:hover {
    background: #d92400;
}

/* Pagination Styling */
.archive-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    margin: 0;
}

.archive-pagination ul.page-numbers li span.current {
    background: #bf0418;
    color: #fff;
    border-color: #bf0418;
}

.archive-pagination ul.page-numbers li a,
.archive-pagination ul.page-numbers li span {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s;
}

.archive-pagination ul.page-numbers li a:hover {
    background: #f1f1f1;
    border-color: #bbb;
}

/* Footer Grid */
.main-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0 40px;
    font-size: 0.9rem;
    border-top: 5px solid #bf0418;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 300px;
    gap: 50px;
}

body .footer-bottom {
    background: #bf0418;
    padding: 15px 0;
    color: #fff;
}

body .footer-bottom .footer-bottom-inner {
    display: flex;
    justify-content: center;
    width: 100%;
}

body .footer-bottom .footer-bottom-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

body .footer-bottom .footer-bottom-list li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

body .footer-bottom .footer-bottom-list li a,
body .footer-bottom .footer-bottom-inner a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    transition: opacity 0.2s;
}

body .footer-bottom .footer-bottom-list a:hover,
body .footer-bottom .footer-bottom-inner a:hover {
    opacity: 0.8;
}

/* Header Layout — usando #site-header para especificidade alta sem !important */
#site-header.main-header {
    position: relative;
}

#site-header .main-header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
    box-sizing: border-box;
}

#site-header .logo {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
}

#site-header .logo a {
    display: block;
}

#site-header .logo img {
    max-height: 50px;
    width: auto;
    display: block;
    margin: 0;
}

#site-header .header-right {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin: 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 5px;
}

.header-search {
    position: relative;
}

.search-toggle {
    color: #333;
    padding: 5px;
    display: flex;
    align-items: center;
}

#header-search-form {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    padding: 15px;
    z-index: 1000;
    width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

#header-search-form.is-visible {
    display: block;
}

/* Nav Menu Desktop */
.main-nav>ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    text-transform: uppercase;
}

/* Footer Responsive & Mobile Header */
@media (max-width: 992px) {

    .top-bar-nav,
    .breaking-social {
        display: none;
    }

    .top-bar .top-bar-inner {
        justify-content: center;
    }

    .top-bar .top-bar-date {
        font-size: 0.7rem;
        text-align: center;
    }

    .container {
        padding: 0 10px;
    }

    .single-main {
        padding: 15px;
        border-radius: 0;
    }

    .single-header h1,
    .archive-header h1 {
        font-size: 1.5rem;
    }

    .card-info h2 {
        font-size: 1.8rem;
    }

    .card-info h3 {
        font-size: 1.2rem;
    }

    .archive-grid {
        gap: 20px;
    }

    /* Mobile: usa #site-header para vencer especificidade */
    #site-header .main-header-inner {
        padding: 10px 15px;
    }

    #site-header .logo img {
        max-height: 40px;
    }

    #site-header .header-right {
        gap: 15px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .search-toggle {
        color: #bf0418;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: -10px;
        right: -10px;
        width: calc(100% + 20px);
        background: #fff;
        z-index: 999;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        padding: 10px 0;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav>ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1rem;
    }

    .main-nav .menu-item-has-children>a::after {
        content: '+';
        float: right;
        font-weight: bold;
    }

    .main-nav ul ul {
        display: none;
        background: #f9f9f9;
        padding-left: 15px;
    }

    .main-nav li.is-expanded>ul {
        display: block;
    }

    #header-search-form {
        position: fixed;
        top: 110px;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .single-share-bar {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        margin-bottom: 30px;
        order: 2;
        /* Move para depois do título se necessário, mas aqui apenas evita o float */
    }

    .share-comments {
        margin-top: 0;
    }

    .archive-wrapper {
        flex-direction: column;
    }

    .single-wrapper .single-sidebar,
    .archive-wrapper .archive-sidebar {
        width: 100%;
        margin-top: 30px;
    }

    .home-sidebar,
    .single-sidebar,
    .ad-slot,
    .ad-slot-sidebar,
    .ad-slot-header,
    .ad-slot-content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 30px;
    }

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

@media (max-width: 992px) {
    .author-box-custom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .author-avatar {
        margin-bottom: 15px;
    }
}

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

    .footer-bottom .container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Footer Menu & Widget Styles */
.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-menu-list a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu-list a:hover {
    color: #fff;
}

.footer-signature-col .widget {
    margin-bottom: 25px;
}

.footer-signature-col .widget p,
.footer-signature-col .widget .textwidget {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-signature-col .widget img {
    max-height: 55px;
    filter: brightness(0) invert(1);
    margin-bottom: 25px;
}

/* Exceção para o selo DMCA não ficar branco */
.footer-signature-col .widget img[src*="dmca"],
.footer-signature-col .widget .dmca-badge img {
    filter: none !important;
    max-height: 20px; /* Mantém a altura original do badge */
    margin-bottom: 0;
}