/*
Theme Name: ManchetePB Child
Theme URI: https://deskweb.com.br
Description: Tema filho do Hello Elementor com 5 Widgets nativos de Notícias, Consulta de Categorias avançada e ajuste Flexbox de imagens laterais pequenas.
Author: Desk Web
Author URI: https://deskweb.com.br
Template: hello-elementor
Version: 6.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manchetepb-child
*/

/* ==========================================================================
   Estilos dos Widgets ManchetePB v6.0
   ========================================================================== */

.mpb-card {
    display: flex;
    box-sizing: border-box;
    margin-bottom: 24px;
}

.mpb-card-media {
    overflow: hidden;
    flex-shrink: 0;
}

.mpb-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mpb-card:hover .mpb-card-img {
    transform: scale(1.03);
}

.mpb-card-content {
    flex: 1 1 auto;
    min-width: 0; /* Previne que o container de texto empurre a imagem */
}

/* Modos de Posição de Imagem com Flexbox Ajustado */
.mpb-card-horizontal.mpb-img-left,
.mpb-card-vertical.mpb-img-left {
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.mpb-card-horizontal.mpb-img-right,
.mpb-card-vertical.mpb-img-right {
    flex-direction: row-reverse;
    gap: 16px;
    align-items: flex-start;
}

.mpb-card-horizontal.mpb-img-top,
.mpb-card-vertical.mpb-img-top {
    flex-direction: column;
}

.mpb-card-horizontal.mpb-img-top .mpb-card-media,
.mpb-card-vertical.mpb-img-top .mpb-card-media {
    width: 100%;
    margin-bottom: 12px;
}

/* Chapéu */
.mpb-chapeu-wrapper {
    margin-bottom: 6px;
    line-height: 1.2;
}

.mpb-chapeu {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    text-decoration: none !important;
}

.mpb-chapeu-badge {
    background-color: #0284c7;
    color: #ffffff !important;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.mpb-chapeu-sublinhado {
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
}

/* Título */
.mpb-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.mpb-title a {
    color: #0f172a;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

/* Autor */
.mpb-meta-author {
    font-size: 0.9rem;
    color: #0f172a;
    margin-bottom: 6px;
}

/* Resumo */
.mpb-excerpt {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #334155;
}

/* Grid 3 Colunas */
.mpb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

/* Lista Vertical */
.mpb-list-vertical {
    display: flex;
    flex-direction: column;
}

@media (max-width: 600px) {
    .mpb-card-horizontal.mpb-img-left,
    .mpb-card-horizontal.mpb-img-right {
        flex-direction: column !important;
    }
    .mpb-card-horizontal .mpb-card-media {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Capa Escura */
.mpb-capa-dark .mpb-card {
    background-color: #000000;
    color: #ffffff;
    padding: 16px;
}

.mpb-capa-dark .mpb-title a {
    color: #ffffff !important;
}

.mpb-capa-dark .mpb-chapeu {
    color: #94a3b8 !important;
}

.mpb-capa-dark .mpb-meta-author {
    color: #e2e8f0;
}

.mpb-capa-dark .mpb-excerpt {
    color: #cbd5e1;
}
