/*
Theme Name: Jornal Mais Brasil
Theme URI: https://jornalmaisbrasil.com.br
Description: Tema jornalístico para o Jornal Mais Brasil - estilo O Hoje
Author: EDU Buscas Classificados
Version: 1.0
Template: twentyseventeen
Text Domain: jornal-maisbrasil
*/

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

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: #1d4ed8;
}

a:hover {
    color: #1e3a8a;
}

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

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

/* Header Top */
.header-top {
    background: #1e3a8a;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

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

.header-top-left {
    display: flex;
    gap: 20px;
}

.header-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-top a {
    color: #fff;
}

.social-icons a {
    font-size: 16px;
}

/* Header Main */
.header-main {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #2563eb;
}

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

.logo {
    font-size: 36px;
    font-weight: 700;
    color: #1e3a8a;
    font-family: 'Playfair Display', serif;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-icon,
.menu-toggle {
    font-size: 20px;
    cursor: pointer;
    color: #1e3a8a;
}

/* Menu Principal */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.menu-horizontal {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 15px 0;
    flex-wrap: wrap;
}

.menu-horizontal li a {
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 0;
    display: block;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.menu-horizontal li a:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Plantão */
.plantao {
    background: #dc2626;
    color: #fff;
    padding: 12px 0;
}

.plantao .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.plantao-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.plantao-text {
    font-size: 15px;
}

/* Home */
.home-destaques {
    padding: 30px 0 10px;
    background: #fff;
}

/* Topo principal */
.destaques-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 320px;
    gap: 28px;
    margin-bottom: 24px;
    align-items: start;
}

.destaque-principal {
    min-width: 0;
}

.destaque-principal img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    margin-bottom: 14px;
}

.destaque-principal h2 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.destaque-principal h2 a {
    color: #1d4ed8;
}

.destaque-principal p {
    color: #666;
    font-size: 14px;
    max-width: 95%;
}

.edicao-atual-box {
    width: 100%;
    align-self: start;
}

.edicao-atual-box .jmb-edicao-box {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.edicao-atual-box .jmb-edicao-capa img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Tags de categoria */
.categoria-tag {
    display: inline-block;
    background: #2563eb;
    color: #fff !important;
    font-weight: 700;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    margin-bottom: 12px;
}

.categoria-tag a,
.categoria-tag a:hover,
.noticia-card .categoria-tag,
.noticia-card .categoria-tag a,
.categoria-destaque-content .categoria-tag,
.categoria-destaque-content .categoria-tag a {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Faixa de 3 blocos */
.categorias-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 30px;
    align-items: start;
}

.categoria-coluna {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.categoria-coluna-header {
    padding: 12px 15px;
    border-bottom: 2px solid #2563eb;
    background: #f8fafc;
}

.categoria-coluna-header h3 {
    font-size: 18px;
    line-height: 1.2;
    color: #222;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.categoria-destaque-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.categoria-destaque-content {
    padding: 15px;
}

.categoria-destaque-content h4 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.categoria-destaque-content h4 a {
    color: #1d4ed8;
}

.categoria-destaque-content .meta {
    font-size: 12px;
    color: #666;
}

/* Grid de notícias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 30px;
}

.noticia-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.noticia-card-content {
    padding: 14px;
}

.noticia-card h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.noticia-card h3 a {
    color: #1d4ed8;
}

.noticia-card .meta {
    font-size: 12px;
    color: #666;
}

/* Footer */
.site-footer {
    background: #1e3a8a;
    color: #fff;
    padding: 40px 0 20px;
}

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

.footer-widget h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #dbeafe;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

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

    .categorias-home-grid,
    .noticias-grid,
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .header-top .container,
    .header-main .container,
    .plantao .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .destaque-principal img {
        height: 280px;
    }

    .categoria-destaque-card img,
    .noticia-card img {
        height: 220px;
    }
}