/* ===============================================
   JORNAL JBN - ESTILO JORNALÍSTICO TRADICIONAL
   =============================================== */

/* Reset e configurações base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', Times, serif;
    line-height: 1.4;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
}

/* ===============================================
   HEADER DO JORNAL
   =============================================== */
.newspaper-header {
    background: #fff;
    border-bottom: 3px solid #000;
    padding: 20px 0;
    margin-bottom: 30px;
}

.newspaper-masthead {
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newspaper-title {
    margin: 20px 0;
}

.newspaper-title h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.newspaper-title .main-title {
    color: #000;
    text-shadow: 2px 2px 0px #ccc;
}

.newspaper-title .sub-title {
    color: #d32f2f;
    text-shadow: 2px 2px 0px #000;
}

.newspaper-slogan {
    font-size: 14px;
    font-style: italic;
    margin: 10px 0;
    color: #333;
}

.newspaper-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 12px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 10px 0;
}

.newspaper-date {
    font-weight: bold;
    font-size: 14px;
}

.newspaper-edition {
    font-weight: bold;
}

.newspaper-red-band {
    background: #d32f2f;
    color: #fff;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

/* ===============================================
   LAYOUT PRINCIPAL
   =============================================== */
.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newspaper-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.newspaper-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.newspaper-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* ===============================================
   MANCHETE PRINCIPAL
   =============================================== */
.main-headline {
    grid-column: 1 / -1;
    margin-bottom: 30px;
    text-align: center;
}

.main-headline h2 {
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.2;
    color: #000;
}

.main-headline .sub-headline {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.main-headline-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
}

.main-headline-image img {
    width: 100%;
    height: auto;
}

.image-caption {
    font-size: 12px;
    font-style: italic;
    text-align: center;
    margin-top: 5px;
    color: #666;
}

/* ===============================================
   ARTIGOS EM COLUNAS
   =============================================== */
.newspaper-article {
    column-count: 2;
    column-gap: 20px;
    column-rule: 1px solid #ddd;
    text-align: justify;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

.newspaper-article p {
    margin: 0 0 15px 0;
    text-indent: 20px;
    break-inside: avoid;
}

.newspaper-article p:first-child {
    font-weight: bold;
    text-indent: 0;
}

/* ===============================================
   ARTIGOS INDIVIDUAIS
   =============================================== */
.newspaper-article-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

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

.article-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
    line-height: 1.3;
}

.article-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.article-meta .article-date {
    margin-right: 15px;
}

.article-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.article-content p {
    margin: 0 0 15px 0;
    text-indent: 20px;
}

.article-content p:first-child {
    text-indent: 0;
    font-weight: bold;
}

/* ===============================================
   COLUNAS PRINCIPAIS
   =============================================== */
.main-column {
    background: #fff;
    padding: 0;
}

.main-column .newspaper-article-item:first-child {
    margin-top: 0;
}

/* ===============================================
   SIDEBAR
   =============================================== */
.newspaper-sidebar {
    background: #f8f8f8;
    padding: 20px;
    border: 1px solid #ddd;
}

.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #d32f2f;
    text-transform: uppercase;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 5px;
}

.sidebar-article {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

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

.sidebar-article h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #000;
}

.sidebar-article p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
    color: #333;
}

/* ===============================================
   SEÇÃO DE DEPUTADO/POLÍTICO
   =============================================== */
.politician-section {
    background: #f0f0f0;
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid #d32f2f;
}

.politician-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: uppercase;
}

.social-media {
    font-size: 14px;
    color: #d32f2f;
    font-weight: bold;
}

/* ===============================================
   RODAPÉ COM ANÚNCIOS/EDITALS
   =============================================== */
.newspaper-footer {
    background: #f8f8f8;
    padding: 30px 0;
    border-top: 2px solid #000;
    margin-top: 40px;
}

.footer-ads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-section {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ad-section h4 {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
    text-transform: uppercase;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 5px;
    font-family: 'Merriweather', Times, serif;
}

.ad-content {
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    font-family: 'Merriweather', Times, serif;
}

.ad-content p {
    margin: 0 0 8px 0;
}

.ad-content strong {
    font-weight: bold;
    color: #000;
}

/* ===============================================
   COPYRIGHT DO JORNAL
   =============================================== */
.newspaper-copyright {
    background: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #666;
}

.copyright-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
}

.copyright-content p {
    margin: 0 0 8px 0;
}

.copyright-content p:last-child {
    margin-bottom: 0;
    color: #ccc;
    font-size: 11px;
}

.copyright-content strong {
    color: #d32f2f;
    font-weight: bold;
}

/* ===============================================
   FOOTER RESPONSIVO
   =============================================== */
@media (max-width: 768px) {
    .footer-ads {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }
    
    .ad-section {
        padding: 12px;
    }
    
    .ad-section h4 {
        font-size: 12px;
    }
    
    .ad-content {
        font-size: 10px;
    }
    
    .copyright-content {
        padding: 0 15px;
        font-size: 11px;
    }
}

/* ===============================================
   CORREÇÕES ESPECÍFICAS PARA ELEMENTOS WORDPRESS
   =============================================== */
/* Corrigir posicionamento de elementos do WordPress */
.wp-block-group {
    clear: both;
    margin: 20px 0;
}

.wp-block-paragraph {
    clear: both;
    margin: 0 0 15px 0;
}

/* Corrigir posicionamento de logos e elementos especiais */
.wp-block-site-logo {
    float: none;
    text-align: center;
    margin: 20px 0;
}

.wp-block-site-logo img {
    max-width: 200px;
    height: auto;
    display: inline-block;
}

/* Corrigir posicionamento de elementos flutuantes do WordPress */
.wp-block-image.alignleft {
    float: left;
    margin: 0 20px 15px 0;
    max-width: 50%;
}

.wp-block-image.alignright {
    float: right;
    margin: 0 0 15px 20px;
    max-width: 50%;
}

/* Corrigir posicionamento de elementos de texto */
.wp-block-paragraph.has-drop-cap {
    clear: both;
}

.wp-block-paragraph.has-drop-cap::first-letter {
    float: left;
    font-size: 48px;
    line-height: 40px;
    padding-right: 8px;
    padding-top: 4px;
    font-weight: bold;
    color: #d32f2f;
}

/* ===============================================
   RESPONSIVIDADE
   =============================================== */
@media (max-width: 768px) {
    .newspaper-main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newspaper-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .newspaper-article {
        column-count: 1;
    }
    
    .newspaper-title h1 {
        font-size: 32px;
    }
    
    .main-headline h2 {
        font-size: 24px;
    }
    
    .newspaper-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Corrigir elementos flutuantes em mobile */
    .wp-block-image.alignleft,
    .wp-block-image.alignright {
        float: none;
        margin: 15px auto;
        max-width: 100%;
        text-align: center;
    }
}

/* ===============================================
   ELEMENTOS ESPECIAIS
   =============================================== */
.drop-cap {
    float: left;
    font-size: 48px;
    line-height: 40px;
    padding-right: 8px;
    padding-top: 4px;
    font-weight: bold;
    color: #d32f2f;
}

/* ===============================================
   CORREÇÕES ESPECÍFICAS PARA LETRA W DO WORDPRESS
   =============================================== */
/* Corrigir posicionamento de elementos do WordPress que podem causar problemas */
.wp-block-group__inner-container {
    clear: both;
    overflow: hidden;
}

.wp-block-group__inner-container * {
    max-width: 100%;
}

/* Corrigir posicionamento de elementos de texto que podem ter a letra W */
.entry-content .wp-block-paragraph {
    position: relative;
    clear: both;
    overflow: hidden;
}

.entry-content .wp-block-paragraph::after {
    content: "";
    display: table;
    clear: both;
}

/* Corrigir posicionamento de elementos específicos do WordPress */
.wp-block-site-title {
    clear: both;
    margin: 20px 0;
    text-align: center;
}

.wp-block-site-tagline {
    clear: both;
    margin: 10px 0 20px 0;
    text-align: center;
    font-style: italic;
}

/* Corrigir posicionamento de elementos de navegação */
.wp-block-navigation {
    clear: both;
    margin: 20px 0;
}

/* Corrigir posicionamento de elementos de widget */
.widget {
    clear: both;
    margin: 20px 0;
}

/* Corrigir posicionamento de elementos de post */
.post {
    clear: both;
    overflow: hidden;
}

.post .entry-content {
    clear: both;
    overflow: hidden;
}

/* ===============================================
   CORREÇÕES GERAIS DE LAYOUT
   =============================================== */
/* Garantir que todos os elementos principais tenham posicionamento correto */
#content {
    clear: both;
    overflow: hidden;
}

#content .entry-header {
    clear: both;
    margin-bottom: 20px;
}

#content .entry-content {
    clear: both;
    overflow: hidden;
}

#content .entry-footer {
    clear: both;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.article-divider {
    border: none;
    height: 2px;
    background: #000;
    margin: 30px 0;
}

.quote-box {
    background: #f0f0f0;
    border-left: 4px solid #d32f2f;
    padding: 15px;
    margin: 20px 0;
    font-style: italic;
}

.quote-box p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* ===============================================
   CUSTOMIZAÇÕES DO WORDPRESS
   =============================================== */
.entry-title {
    font-family: 'Merriweather', Times, serif;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.entry-content {
    font-family: 'Merriweather', Times, serif;
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    text-align: justify;
}

.entry-content p {
    margin: 0 0 15px 0;
    text-indent: 20px;
}

.entry-content p:first-child {
    text-indent: 0;
    font-weight: bold;
}

.entry-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* ===============================================
   CORREÇÕES ESPECÍFICAS PARA WORDPRESS
   =============================================== */
.wp-block-image {
    margin: 20px 0;
    text-align: center;
}

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

.wp-block-image figcaption {
    font-size: 12px;
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Corrigir posicionamento de elementos flutuantes */
.alignleft {
    float: left;
    margin: 0 20px 15px 0;
}

.alignright {
    float: right;
    margin: 0 0 15px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 15px auto;
}

/* Limpar floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===============================================
   CORREÇÕES PARA CONTEÚDO PRINCIPAL
   =============================================== */
#content .entry-content {
    overflow: hidden; /* Evita que elementos flutuantes saiam do container */
}

#content .entry-content p {
    clear: both; /* Limpa floats antes de cada parágrafo */
}

/* Corrigir posicionamento de imagens e elementos especiais */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
}

.entry-content .wp-block-image {
    clear: both;
    margin: 20px 0;
}

/* ===============================================
   BOTÕES E LINKS
   =============================================== */
a {
    color: #d32f2f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.read-more {
    background: #d32f2f;
    color: #fff;
    padding: 8px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

.read-more:hover {
    background: #b71c1c;
    text-decoration: none;
}
