/*
Theme Name: BelmonteNews Theme
Author: Gemini AI
Description: Versão Final Estável - Hero Seguro, Margens Ajustadas, Menu Busca.
Version: 11.0
*/

/* =========================================
   1. RESET E GLOBAIS
   ========================================= */
* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: #1a1a1a; transition: 0.2s; }
a:hover { color: #cc0000; }

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

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px 0;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

/* =========================================
   2. HEADER (CABEÇALHO)
   ========================================= */
.site-header { background: #fff; padding: 20px 0; border-bottom: 1px solid #ddd; }
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-branding h1 { font-size: 32px; color: #cc0000; margin: 0; text-transform: uppercase; }
.header-banner { width: 728px; height: 90px; background: #eee; display: flex; align-items: center; justify-content: center; color: #999; font-size: 11px; border: 1px dashed #ccc; }
@media (max-width: 900px) {

    /* 1. CONTAINER DO TOPO */
    .header-inner {
        flex-direction: column; /* Um embaixo do outro */
        text-align: center;
        padding: 10px 0;
    }

    /* 2. LOGO */
    .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 15px; /* Espaço entre Logo e Banner */
    }

    .site-branding .custom-logo {
    max-width: 100%;
    height: auto;
    display: block;
}
    
    .site-branding h1 { margin: 0; }

    /* 3. BANNER (Agora visível e ajustado) */
    .header-banner-area { 
        display: block !important; /* Força aparecer */
        width: 100% !important;    /* Ocupa a largura da tela */
        height: auto !important;   /* Altura automática */
        margin: 0 5px 5px 5px;  /* Centraliza e dá espaço embaixo */
        text-align: center;
    }

    /* Garante que a imagem do banner encolha para caber na tela */
    .header-banner-area img {
        max-width: 100%;
        height: auto;
        display: inline-block;
    }
    
    /* ... (Mantenha o resto do código da busca e menu aqui) ... */
}

/* =========================================
   3. MENU PRINCIPAL (HORIZONTAL + CORES NOVAS)
   ========================================= */
.main-navigation {
    background-color: #002B45; /* Azul Escuro */
    border-bottom: 4px solid #0269A5; /* Azul Claro na borda */
    position: relative; 
    z-index: 1000;
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 60px; /* Altura fixa para manter alinhamento */
}

/* Botão Mobile (Escondido no Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Container do Menu */
.nav-items {
    flex-grow: 1; /* Ocupa o espaço disponível */
}

/* Lista UL (Horizontal) */
.nav-items ul { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex; /* Mágica que deixa horizontal */
    flex-wrap: wrap;
}

.nav-items > ul > li { 
    position: relative; 
}

/* Links do Menu */
.nav-items ul li a { 
    display: block; 
    padding: 0 20px; 
    line-height: 60px; /* Centraliza verticalmente */
    color: #ffff; /* Branco */
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 14px; 
    transition: 0.3s;
}

/* Hover (Passar o mouse) */
.nav-items ul li:hover > a { 
    background-color: #0269A5; /* Azul Claro */
    color: #fff;
}

/* --- DROPDOWN (Submenus) --- */
.nav-items ul ul { 
    display: none; /* Escondido */
    position: absolute; 
    top: 60px; /* Logo abaixo do header */
    left: 0; 
    background: #002B45; /* Fundo Azul Escuro */
    min-width: 220px; 
    flex-direction: column; /* Vertical dentro do dropdown */
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* Mostra submenu ao passar mouse */
.nav-items ul li:hover > ul { display: block; }

.nav-items ul ul li { width: 100%; border-bottom: 1px solid #0269A5; }

.nav-items ul ul li a { 
    line-height: 1.5; 
    padding: 12px 20px; 
    text-transform: none; 
    font-weight: normal;
}

/* --- BUSCA --- */
.header-search form { display: flex; align-items: center; }
.search-field { 
    background: #0269A5; 
    border: none; 
    color: #fff; 
    padding: 8px 15px; 
    border-radius: 20px 0 0 20px; 
    font-size: 13px; 
    outline: none; 
    width: 150px; 
}
.search-field::placeholder { color: #ccc; }
.search-submit { 
    background: #fff; 
    color: #002B45; 
    border: none; 
    padding: 8px 15px; 
    border-radius: 0 20px 20px 0; 
    cursor: pointer; 
    font-weight: bold;
}

/* =========================================
   9. RESPONSIVO (MOBILE - HAMBURGUER)
   ========================================= */
@media (max-width: 900px) {
    .nav-flex { 
        height: auto; 
        padding: 10px 15px; 
        flex-wrap: wrap; /* Permite quebrar linha */
    }

    /* Mostra o botão Hamburguer */
    .menu-toggle { display: block; }

    /* Esconde o menu inicialmente */
    .nav-items { 
        display: none; 
        width: 100%; 
        order: 3; /* Joga para baixo da busca/logo */
        margin-top: 15px;
        background-color: #001f33; /* Um tom levemente mais escuro */
    }

    /* Classe que o JS vai adicionar para mostrar o menu */
    .nav-items.toggled { 
        display: block; 
    }

    .nav-items ul { 
        flex-direction: column; /* Vertical no celular */
    }

    .nav-items ul li a { 
        line-height: 45px; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Submenus Mobile (Estáticos, não flutuantes) */
    .nav-items ul ul { 
        position: static; 
        display: block; /* Sempre mostra subcategorias ou usar JS para toggle */
        background-color: #002338;
        padding-left: 20px;
        box-shadow: none;
    }
    
    .header-search { order: 2; margin-left: auto; }
}






/* =========================================
   4. HOME: HERO SECTION (RESERVA DE ESPAÇO)
   ========================================= */
.site-content-home {
    margin-top: 30px;
    display: block;
}

/* 1. O PAI: Forçamos ele a ter 500px de altura */
/* Isso empurra o resto do site para baixo na marra */
.hero-section {
    position: relative !important;
    display: block !important;
    width: 100%;
    
    /* A MÁGICA: Altura do Grid (450px) + Margem (50px) */
    height: 500px !important; 
    min-height: 500px !important;
    
    /* Permite que sombras passem da borda sem cortar */
    overflow: visible !important; 
    
    margin-bottom: 80px !important;
    padding: 0 !important;
}

/* 2. O GRID: Solto dentro do espaço reservado acima */
.hero-grid {
    /* Voltamos para absolute para garantir que ele respeite a altura do pai */
    position: absolute !important; 
    top: 0;
    left: 0;
    
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    
    height: 450px !important; /* Altura fixa das imagens */
    width: 100%;
    z-index: 5;
}

/* Estilos internos do Grid (Padrão) */
.hero-main { height: 100%; width: 100%; }

.hero-card {
    position: relative; 
    overflow: hidden; 
    height: 100%; 
    width: 100%;
    border-radius: 4px; 
    display: block;
}
.hero-card a { display: block; height: 100%; }

.hero-img-container { width: 100%; height: 100%; position: relative; }
.hero-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-card:hover .hero-img-container img { transform: scale(1.05); }

.hero-card a::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
}

.hero-info { 
    position: absolute;
background: #002B45;
background: linear-gradient(360deg, rgba(0, 43, 69, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
    bottom: 0; 
    left: 0; padding: 30px; 
    z-index: 2; 
    width: 100%; }
.hero-info h2 { font-size: 28px; color: #fff; text-shadow: 1px 1px 5px rgba(0,0,0,0.7); margin-bottom: 5px; }
.hero-excerpt { color: #ddd; font-size: 15px; display: block; }

.hero-side { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.hero-card.small { height: calc(50% - 10px); width: 100%; flex: none; }
.hero-info-small { position: absolute; bottom: 0; left: 0; padding: 20px; z-index: 2; }
.hero-info-small h3 { font-size: 18px; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.7); margin: 0; }
.cat-badge { 
    position: absolute; 
    top:20px;
    left: 20px; 
    background: #002B45; 
    color: #ffffff; 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: 
    uppercase; padding: 4px 10px; 
    border-radius: 3px; 
    z-index: 5; }
.cat-text-small { color: #ffcccc; font-size: 11px; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; display: block; }








/* =========================================
   5. HOME: DESTAQUES (GRID 3 COLUNAS)
   ========================================= */
.highlights-section {
    position: relative;
    display: block;
    clear: both;
    margin-top: 0;
    padding-top: 20px;
    margin-bottom: 40px; /* <--- AJUSTADO: Aproxima da publicidade */
    z-index: 10;
}

/* Título da Seção */
.section-heading {
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    clear: both;
}
.section-heading span { background: #cc0000; color: #fff; padding: 5px 15px; display: inline-block; }

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

.highlight-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; transition: transform 0.2s; }
.highlight-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.highlight-img { height: 180px; position: relative; }
.highlight-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-badge-small { position: absolute; bottom: 0; left: 0; background: #1a1a1a; color: #fff; font-size: 10px; padding: 3px 8px; text-transform: uppercase; font-weight: bold; }
.highlight-content { padding: 15px; }
.highlight-content h4 { font-size: 16px; margin: 0; line-height: 1.4; color: #1a1a1a; }

/* =========================================
   6. HOME: LISTA NOTÍCIAS + SIDEBAR
   ========================================= */
/* =========================================
   BANNER PUBLICIDADE
   ========================================= */
.content-banner { 
    background: transparent; /* Fundo transparente */
    text-align: center; 
    margin: 40px auto; /* Espaçamento em cima e embaixo */
    width: 100%;
    max-width: 100%;
    /* Removemos padding e bordas para a imagem ficar limpa */
    padding: 0; 
    border: none; 
}

/* Garante que a imagem dentro do banner não estoure */
.content-banner img {
    display: inline-block; /* Centraliza a imagem */
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra leve opcional */
}

/* Se você escrever texto na página, ele ficará assim: */
.content-banner p {
    margin: 0;
    padding: 0;
}

.main-body-container { display: flex; gap: 40px; }
.content-list-area { flex: 2; min-width: 0; }
.sidebar-area { flex: 1; min-width: 300px; }

.latest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.latest-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s; }
.latest-card:hover { transform: translateY(-3px); box-shadow: 0 5px 10px rgba(0,0,0,0.05); }

.latest-thumb { position: relative; height: 180px; overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.latest-card:hover .latest-thumb img { transform: scale(1.05); }
.cat-float { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 2px; text-transform: uppercase; }

.latest-content { padding: 15px; flex: 1; }
.latest-content h4 { font-size: 17px; margin: 0 0 10px 0; line-height: 1.3; }
.latest-content p { font-size: 13px; color: #555; margin: 0; line-height: 1.5; }
.meta-date-list { font-size: 11px; color: #999; margin-bottom: 8px; display: block; }

.pagination-link { text-align: center; margin-top: 30px; }
.btn-load-more { background: #fff; border: 1px solid #ddd; color: #333; padding: 10px 25px; border-radius: 30px; font-weight: bold; font-size: 13px; display: inline-block; }
.btn-load-more:hover { background: #cc0000; border-color: #cc0000; color: #fff; }

/* =========================================
   7. SIDEBAR E FOOTER (ESTILO "BELMONTE")
   ========================================= */

/* O Container do Widget */
.sidebar-widget { 
    background: #fff; 
    margin-bottom: 25px; 
    border: 1px solid #e0e0e0; 
    border-radius: 4px; 
    overflow: hidden; /* Garante que o título não saia das bordas arredondadas */
    padding: 0; /* Removemos o padding geral para o título encostar na borda */
}

/* O Título do Widget (Agora com as cores do Menu) */
.widget-title { 
    background-color: #002B45; /* Azul Escuro */
    color: #ffff; /* Texto Branco */
    font-size: 16px; 
    font-weight: 700;
    text-transform: uppercase; 
    margin: 0; 
    padding: 15px 20px; /* Espaçamento interno do título */
    border-bottom: 4px solid #0269A5; /* A borda Azul Clara igual ao menu */
    position: relative; 
}

/* Removemos a linha antiga (after) pois agora temos fundo colorido */
.widget-title:after { display: none; }

/* Conteúdo Interno do Widget (Busca, Youtube, etc) */
/* Como tiramos o padding do pai, colocamos aqui para o conteúdo respirar */
.sidebar-widget > div,
.sidebar-widget > form,
.youtube-widget-container,
.textwidget {
    padding: 20px;
}

/* Ajuste específico para formulário de busca na sidebar */
.sidebar-widget .search-form {
    display: flex;
    padding: 20px;
}
.sidebar-widget .search-field {
    width: 100%;
    border-radius: 4px 0 0 4px;
    background: #f0f0f0;
    color: #333;
}
.sidebar-widget .search-submit {
    border-radius: 0 4px 4px 0;
    background: #cc0000; /* Botão vermelho para destaque */
    color: #fff;
}


/* =========================================
   8. PÁGINA SINGLE (ARTIGO)
   ========================================= */
.single-article { background: #fff; padding: 30px; border: 1px solid #e0e0e0; border-radius: 4px; margin-bottom: 30px; }
.post-categories-top { margin-bottom: 10px; font-size: 12px; color: #333; text-transform: uppercase; font-weight: bold; }
.entry-title { font-size: 34px; margin-bottom: 15px; color: #111; line-height: 1.2; }
.entry-meta { font-size: 13px; color: #888; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

.share-buttons { border-top: 1px solid #eee; padding-top: 25px; margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: #fff !important; border-radius: 50%; font-size: 16px; }

/* Redes Sociais Cores */
.whatsapp { background-color: #25D366; } .facebook { background-color: #1877F2; } .telegram { background-color: #0088cc; } .email { background-color: #777777; } .instagram{ background: linear-gradient(45deg, #f09433, #bc1888); } .tiktok { background-color: #000; }

.related-posts { margin-top: 60px; padding-top: 30px; border-top: 2px solid #333; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-item { border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
.related-thumb img { width: 100%; height: 150px; object-fit: cover; }
.related-item h4 { font-size: 15px; padding: 15px; margin: 0; }

/* =========================================
   9. RESPONSIVO (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .header-banner { display: none; }
    
    /* Hero Mobile */
    .hero-section { min-height: auto; height: auto !important; margin-bottom: 40px; }
    .hero-grid { position: static; display: flex; flex-direction: column; height: auto; gap: 20px; }
    .hero-main { height: 300px; margin-bottom: 20px; }
    .hero-side { height: auto; display: flex; flex-direction: column; gap: 20px; }
    .hero-card.small { height: 250px; }
     h2 {font-size: 12px;}

    /* Destaques Mobile */
    .highlights-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Layout Geral Mobile */
    .main-body-container { flex-direction: column; }
    .latest-grid, .related-grid { grid-template-columns: 1fr; }
    
    /* Menu Mobile */
    .nav-flex { flex-direction: column; align-items: stretch; }
    .header-search { padding: 10px 20px; background: #222; }
    .search-field { width: 100%; }
    .nav-items ul li { float: none; width: 100%; border-bottom: 1px solid #333; }
    .nav-items ul ul { position: static; }
}

/* =========================================
   GRID ESPECIAL: CATEGORIA (4 COLUNAS)
   ========================================= */
.category-grid-4 {
    display: grid;
    /* Divide em 4 frações iguais */
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; /* Espaço entre os cards */
    width: 100%;
}

/* =========================================
   MOBILE: LOGO CENTRO + BUSCA NO TOPO
   (Substitua o bloco @media anterior por este)
   ========================================= */

@media (max-width: 900px) {

    /* --- 1. CABEÇALHO (LOGO) --- */
    .header-inner {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }

    .site-branding {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .site-branding h1 { margin: 0; }

    /* Esconde banner no mobile */
    .header-banner-area { display: none; }

    /* --- 2. CONTAINER DA NAVEGAÇÃO --- */
    .nav-flex {
        padding: 15px;
        flex-direction: column; /* Empilha tudo verticalmente */
        align-items: flex-start; /* Alinha tudo à esquerda */
        height: auto; /* Altura automática para caber tudo */
    }

    /* --- 3. A BUSCA (PRIMEIRO ITEM - NO TOPO) --- */
    .header-search {
        order: 1; /* Força ser o primeiro */
        width: 100%; /* Ocupa a largura total */
        margin-bottom: 15px; /* Espaço para afastar do botão do menu */
        margin-left: 0;
    }

    .header-search form {
        display: flex;
        width: 100%;
    }

    .search-field {
        width: 100%;
        height: 45px; /* Mais alto para facilitar o toque */
        border-radius: 4px 0 0 4px;
    }
    
    .search-submit {
        width: 50px;
        height: 45px;
        border-radius: 0 4px 4px 0;
        font-size: 18px;
    }

    /* --- 4. BOTÃO DO MENU (SEGUNDO ITEM - NO MEIO) --- */
    .menu-toggle {
        display: block; /* Mostra o botão */
        order: 2; /* Fica abaixo da busca */
        width: 100%; /* Botão largo fica mais bonito nesse layout */
        text-align: center; /* Texto centralizado */
        background-color: rgba(255,255,255,0.1); /* Fundo leve para destaque */
        padding: 12px;
    }

    /* --- 5. ITENS DO MENU (TERCEIRO ITEM - EMBAIXO) --- */
    .nav-items {
        order: 3;
        width: 100%;
        /* A margem top já é gerenciada pelo botão acima */
    }
    
    /* Quando o menu abrir, ele aparece abaixo do botão */
    .nav-items.toggled {
        margin-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* Estilização da Paginação (Opcional, para ficar bonito) */
.pagination-area .nav-links {
    display: flex;
    justify-content: center;
    gap: 5px;
}
.pagination-area a, 
.pagination-area span.current {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    color: #333;
}
.pagination-area span.current,
.pagination-area a:hover {
    background: #cc0000;
    color: #fff;
    border-color: #cc0000;
}

/* =========================================
   WIDGET YOUTUBE (VISUAL CLEAN & PLAY GRANDE)
   ========================================= */

.youtube-list-clean {
    display: flex;
    flex-direction: column;
    gap: 0; /* O espaçamento é feito na borda do card */
}

/* O Card do Vídeo */
.yt-card-clean {
    border-bottom: 1px solid #e0e0e0; /* Linha de separação */
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.yt-card-clean:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.yt-card-clean a {
    text-decoration: none;
    display: block;
}

/* --- 1. Área da Imagem + Botão --- */
.yt-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 180px; /* Altura fixa */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.yt-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    filter: brightness(0.9); /* Levemente escuro para destacar o play */
}

/* Zoom na imagem ao passar o mouse */
.yt-card-clean:hover .yt-thumb-wrapper img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* O BOTÃO DE PLAY (CENTRALIZADO) */
.yt-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza exato */
    
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo preto transparente */
    border: 2px solid #fff;
    border-radius: 50%; /* Faz ficar redondo */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    color: #fff;
    font-size: 18px;
    padding-left: 3px; /* Ajuste óptico para o ícone play */
    
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Efeito ao passar o mouse no card */
.yt-card-clean:hover .yt-play-btn {
    background-color: #cc0000; /* Vira Vermelho Youtube */
    border-color: #cc0000;
    transform: translate(-50%, -50%) scale(1.1); /* Cresce um pouquinho */
}

/* --- 2. Título (Sem Data) --- */
.yt-info-clean h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin: 0;
    
    /* Limita a 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-card-clean:hover h4 {
    color: #cc0000;
}

/* Botão do Canal (Rodapé) */
.yt-subscribe {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #eee; /* Separação extra antes do botão */
    padding-top: 20px;
}




/* =========================================
   FORMULÁRIO DE CONTATO (ESTILO BELMONTE)
   ========================================= */

.belmonte-form {
    background: #f9f9f9;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.form-row {
    margin-bottom: 20px;
}

/* Labels */
.belmonte-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #002B45; /* Azul do Menu */
}

.required { color: #cc0000; }

/* Campos (Inputs) */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: 0.3s;
}

.form-control:focus {
    border-color: #0269A5; /* Azul Claro */
    outline: none;
    box-shadow: 0 0 5px rgba(2, 105, 165, 0.2);
}

/* Layout Flex para Email e Whats lado a lado */
.form-group-flex {
    display: flex;
    gap: 20px;
}
.half { flex: 1; }

@media (max-width: 600px) {
    .form-group-flex { flex-direction: column; gap: 0; }
}

/* Área dos Botões */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

/* Botão Enviar */
.btn-send {
    background-color: #002B45; /* Azul Escuro */
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-send:hover {
    background-color: #cc0000; /* Vermelho Hover */
}

/* Botão Limpar */
.btn-clear {
    background-color: transparent;
    border: 1px solid #999;
    color: #666;
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-clear:hover {
    background-color: #eee;
    color: #333;
    border-color: #666;
}

/* Ajuste Mensagens de Sucesso/Erro do CF7 */
.wpcf7-response-output {
    border-radius: 4px;
    font-size: 14px;
    padding: 15px !important;
    margin-top: 20px !important;
}

/* =========================================
   CORREÇÃO DEFINITIVA: HERO SUMIU NO MOBILE
   ========================================= */

@media (max-width: 900px) {
    
    /* 1. HERO SECTION (Banner Principal) */
    .hero-section {
        /* Garante que o container se comporte como um bloco visível */
        display: block !important; 
        position: relative !important;
        
        /* O SEGREDO: Se 'auto' falhar, força ter pelo menos 350px (ajuste conforme a altura da sua imagem) */
        min-height: 350px !important; 
        height: auto !important; 
        
        /* Empurra a seção de baixo */
        margin-bottom: 40px !important; 
        padding-bottom: 0 !important;
        
        /* Garante que nada corte o conteúdo, mas segura o layout */
        overflow: visible !important; 
    }

    /* Caso tenha imagem dentro do Hero, força ela a ocupar o espaço */
    .hero-section img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* 2. HIGHLIGHTS SECTION (Destaques) */
    .highlights-section {
        /* Remove qualquer margem negativa que faça subir */
        margin-top: 500px !important; 
        
        /* Garante fluxo normal do documento */
        position: relative !important; 
        top: auto !important;
        left: auto !important;
        
        /* Impede que tente ficar ao lado do Hero */
        clear: both !important; 
        display: block !important;
        
        /* Um pequeno espaço interno para não colar no Hero */
        padding-top: 20px !important; 
        background-color: #fff; /* Garante fundo para não ficar transparente sobre algo */
    }
    
    /* Prevenção extra para o container interno dos destaques */
    .highlights-section .container {
        position: static !important; /* Reseta posições absolutas */
        transform: none !important;
    }
}

/* =========================================
   AJUSTE MOBILE: 2 POSTS POR LINHA (CATEGORIA/BUSCA)
   ========================================= */

@media (max-width: 768px) {
    
    /* Força 2 colunas em vez de 1 */
    .category-grid-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important; /* Espaço menor entre eles */
    }

    /* Ajustes para o Card ficar bonito pequeno */
    .category-grid-4 .latest-thumb {
        height: 110px !important; /* Altura da imagem reduzida */
    }

    .category-grid-4 .latest-content {
        padding: 8px !important; /* Menos espaçamento interno */
    }

    .category-grid-4 h4 {
        font-size: 12px !important; /* Fonte do título menor para caber */
        line-height: 1.3;
        margin-bottom: 5px;
    }

    /* Esconde o resumo (excerpt) no celular para limpar o visual */
    .category-grid-4 p {
        display: none; 
    }
    
    /* Ajusta a data/autor para ficar bem pequena */
    .category-grid-4 .meta-date-list,
    .category-grid-4 .latest-content div {
        font-size: 9px !important;
    }
}

/* =========================================
   MOBILE: POSTS RELACIONADOS (1 POR LINHA)
   ========================================= */

@media (max-width: 768px) {
    
    /* Força o grid a ter apenas 1 coluna */
    .related-grid {
        grid-template-columns: 1fr !important;
    }

    /* Opcional: Ajuste para o card ficar mais destacado */
    .related-item {
        margin-bottom: 20px; /* Espaço extra entre os cards */
    }

    /* Garante que a imagem ocupe a largura total disponível */
    .related-thumb {
        width: 100%;
        height: auto; /* Altura ajustável ou fixa (ex: 200px) se preferir */
    }
}

/* =========================================
   PÁGINA DE ERRO 404
   ========================================= */

/* Botão de Voltar ao Início */
.btn-404-home {
    display: inline-block;
    background-color: #002B45; /* Azul Menu */
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-404-home:hover {
    background-color: #cc0000; /* Vermelho Hover */
    color: #fff;
    transform: translateY(-2px);
}

/* Ajustes Mobile 404 */
@media (max-width: 600px) {
    .error-404-content h1 {
        font-size: 60px !important;
    }
    .error-404-content h2 {
        font-size: 20px !important;
    }
}

/* =========================================
   NOVAS CLASSES (LIMPEZA DE ESTILOS INLINE)
   ========================================= */

/* --- Classes Utilitárias de Imagem --- */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* --- Cabeçalhos de Arquivo (Category/Search) --- */
.archive-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}
.archive-label {
    color: #cc0000;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    display: block;
}
.archive-title {
    margin: 0;
    font-size: 32px;
}
.archive-desc {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* --- Cards de Notícia (Grid) --- */
.latest-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.latest-thumb-box {
    height: 130px;
    overflow: hidden;
}
.latest-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-cat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #cc0000;
    font-weight: bold;
    margin-bottom: 5px;
}
.card-title {
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-weight: bold;
}
.card-title a {
    color: inherit;
    text-decoration: none;
}
.card-date {
    font-size: 10px;
    color: #999;
    margin-top: auto;
}

/* --- Página 404 (Erro) --- */
.error-404-container {
    text-align: center;
    padding: 60px 20px;
}
.error-icon {
    font-size: 50px;
    color: #cc0000;
    margin-bottom: 20px;
}
.error-title {
    font-size: 80px;
    margin: 0;
    color: #002B45;
    line-height: 1;
}
.error-subtitle {
    margin-top: 10px;
    font-size: 24px;
}
.error-text {
    font-size: 16px;
    color: #666;
    margin: 20px auto;
    max-width: 500px;
}
.error-search-box {
    max-width: 400px;
    margin: 30px auto;
}
.error-search-label {
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

/* --- Página Contato --- */
.page-title-bordered {
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 15px;
}
.contact-intro-text {
    margin-bottom: 30px;
    font-size: 16px;
}

/* --- No Results (Busca Vazia) --- */
.no-results-box {
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
}
.no-results-icon {
    font-size: 40px;
    color: #ddd;
    margin-bottom: 20px;
}
.no-results-search {
    max-width: 300px;
    margin: 20px auto;
}

/* --- Estilos da Nova Sidebar (Banner) --- */
.sidebar-ad-banner {
    margin-top: 30px;
    background: #f0f0f0;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.sidebar-ad-banner .ad-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
}

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

/* --- Novo Layout do Rodapé (2 Linhas) --- */

.site-footer {
    background-color: #002B45; /* Azul Escuro */
    border-top: 4px solid #0269A5; /* Azul Claro na borda */          /* Texto branco conforme solicitado */
    padding: 40px 0 20px;
    margin-top: 50px;
    font-family: 'Arial', sans-serif;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Estrutura das Linhas */
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.footer-top {
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Linha divisória sutil */
    margin-bottom: 10px;
}

/* Coluna do Logo */
.footer-brand .custom-logo {
    max-width: 150px;
    height: auto;
}

/* Ícones das Redes Sociais */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: #ffffff; /* Fundo BRANCO conforme pedido */
    color: #111111;            /* Ícone escuro para contraste */
    border-radius: 50%;        /* Bolinha redonda */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px); /* Efeito de pulinho ao passar o mouse */
    background-color: #f0f0f0;
}

/* Menu do Rodapé */
.footer-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.footer-navigation ul li a {
    color: #ffffff; /* Links brancos */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.footer-navigation ul li a:hover {
    opacity: 0.7;
}

/* Copyright */
.copyright {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8); /* Branco levemente transparente */
    text-align: right;
}

/* Responsividade (Celular) */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .copyright {
        text-align: center;
    }
}


/* --- Layout das Páginas Internas (page.php) --- */

.site-content-wrapper {
    padding: 40px 0;
    background-color: #fff;
}

/* Container que segura o conteúdo e a sidebar */
.content-grid {
    display: flex;
    gap: 40px; /* Espaço entre o texto e a barra lateral */
}

/* Coluna Principal (Texto) - Ocupa cerca de 70% */
.site-main {
    flex: 1; /* Ocupa todo o espaço disponível */
    min-width: 0; /* Evita que imagens grandes quebrem o layout */
}

/* Coluna Lateral (Sidebar) - Ocupa cerca de 30% */
.widget-area {
    width: 320px; /* Largura fixa para a sidebar */
    flex-shrink: 0; /* Garante que a sidebar não encolha */
}

/* Estilo do Título da Página */
.entry-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa; /* Detalhe colorido abaixo do título */
    display: inline-block;
}

/* Estilo do Texto */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-top: 20px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h4 {
    color: #0073aa;
    margin-top: 30px;
    font-size: 1.4rem;
}

/* Imagem Destacada na Página */
.page-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
}

/* Responsividade para Celular */
@media (max-width: 900px) {
    .content-grid {
        flex-direction: column; /* Coloca um embaixo do outro no celular */
    }
    
    .widget-area {
        width: 100%; /* Sidebar ocupa 100% no celular */
        margin-top: 30px;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}