/*
 * Folha de Estilo para o Plugin Organizador de Posts Estilizado
 * Versão: 2.9.6 (Ajustes Finais de Layout)
 */

/* --- Boas Práticas Globais --- */
.ope-post-container, .ope-chamada-lista-container, .ope-banner-container, .ope-grid-destaque-container, .ope-carrossel-container, .ope-lista-compacta-container {
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- Estilos para [Postagem], [ChamadaPosts], [PostsPorCategoria] --- */
.ope-post-container { max-width: 800px; margin: 0 auto 40px auto; background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.07); overflow: hidden; }
.ope-category-badge { display: inline-block; background-color: #009c3b; color: #ffffff; padding: 6px 12px; border-radius: 5px; font-size: 13px; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; }
.ope-post-title { margin-top: 0; margin-bottom: 10px; }
.ope-post-title a { font-size: 32px; font-weight: 700; color: #002776; text-decoration: none; transition: color 0.3s ease; }
.ope-post-title a:hover { color: #009c3b; }
.ope-post-meta { color: #6c757d; font-size: 14px; margin-bottom: 20px; }
.ope-post-meta span { display: inline-block; }
.ope-meta-separator { margin: 0 8px; }
.ope-featured-image-wrapper { position: relative; margin-bottom: 20px; }
.ope-featured-image { width: 100%; height: auto; border-radius: 6px; display: block; }
.ope-image-caption { position: absolute; bottom: 8px; left: 8px; background-color: rgba(0, 0, 0, 0.7); color: #ffffff; padding: 5px 10px; font-size: 12px; border-radius: 4px; font-style: italic; }
.ope-post-content { font-size: 17px; line-height: 1.7; color: #333; }
.ope-chamada-lista-container { max-width: 800px; margin: 40px auto; background-color: transparent; }
.ope-chamada-titulo { font-size: 24px; font-weight: 700; color: #002776; margin-top: 0; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #009c3b; text-align: left; }
.ope-chamada-lista { list-style: none; padding: 0; margin: 0; }
.ope-chamada-item { border-bottom: 1px solid #e0e0e0; }
.ope-chamada-item:last-child { border-bottom: none; }
.ope-chamada-item-link { display: block; text-decoration: none; padding: 15px 5px; transition: background-color 0.2s ease; }
.ope-chamada-item-link:hover { background-color: #f8f9fa; border-radius: 5px; }
.ope-chamada-item-titulo { font-size: 18px; font-weight: 600; line-height: 1.3; color: #002776; margin: 0 0 5px 0; transition: color 0.2s ease; }
.ope-chamada-item-link:hover .ope-chamada-item-titulo { color: #009c3b; }
.ope-chamada-item-meta { font-size: 13px; color: #6c757d; font-weight: 500; }
.ope-imagem-placeholder { width: 100%; height: 100%; background-color: #e9ecef; }

/* --- Estilos para [BannerDestaques] --- */
.ope-banner-container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}
.ope-banner-slides { display: flex; transition: transform 0.5s ease-in-out; }
.ope-banner-slide { min-width: 100%; position: relative; }
/* --- AJUSTE: Altura base do banner para telas móveis e tablets --- */
.ope-banner-slide a { display: block; position: relative; height: auto; min-height: 300px; max-height: 500px; background-color: #f0f0f0; }
/* --- AJUSTE: Imagem sempre cobrindo a área do banner sem distorcer --- */
.ope-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; }
.ope-banner-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(0, 20, 60, 0.85) 0%, rgba(0, 20, 60, 0) 70%); transition: background 0.3s ease; z-index: 2; }
.ope-banner-slide a:hover .ope-banner-overlay { background: linear-gradient(0deg, rgba(0, 20, 60, 0.95) 0%, rgba(0, 20, 60, 0.1) 70%); }
.ope-banner-conteudo { position: relative; /* Mudado de absolute para relative */ z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: inherit; padding: 30px; color: #ffffff; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.ope-banner-categoria-badge { display: inline-block; background-color: #009c3b; color: #ffffff; padding: 6px 14px; border-radius: 5px; font-size: 14px; font-weight: bold; margin-bottom: 15px; text-transform: uppercase; align-self: flex-start; }
.ope-banner-titulo { font-size: 30px; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); margin: 0; line-height: 1.2; color: #ffffff; }
.ope-banner-nav { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; z-index: 10; border-radius: 50%; width: 42px; height: 42px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; opacity: 0; transition: background-color 0.3s, transform 0.3s, opacity 0.3s; }
.ope-banner-container:hover .ope-banner-nav { opacity: 1; }
.ope-banner-nav:hover { background-color: #002776; transform: translateY(-50%) scale(1.1); }
.ope-banner-nav.prev { left: 20px; }
.ope-banner-nav.next { right: 20px; }
.ope-banner-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.ope-banner-dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255,255,255,0.6); cursor: pointer; transition: background-color 0.3s, transform 0.3s; }
.ope-banner-dot.active { background-color: #ffffff; transform: scale(1.2); }

/* --- Estilos para [GridDestaque] --- */
.ope-grid-destaque-container { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; max-width: 1200px; margin: 20px auto; }
.ope-grid-item-principal { position: relative; display: block; border-radius: 8px; overflow: hidden; height: 100%; min-height: 450px; }
.ope-grid-item-principal img { width: 100%; height: 100%; object-fit: cover; }
.ope-grid-item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(0,20,60,0.8) 0%, rgba(0,20,60,0) 60%); }
.ope-grid-item-conteudo { position: absolute; bottom: 0; left: 0; right: 0; padding: 25px; color: #fff; }
.ope-grid-item-badge { background-color: #009c3b; color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 13px; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 12px; }
.ope-grid-item-titulo { font-size: 28px; font-weight: 700; color: #fff; text-decoration: none; margin: 0 0 10px 0; line-height: 1.2; }
.ope-grid-item-meta { font-size: 14px; color: #ddd; }
.ope-grid-destaque-lista { display: flex; flex-direction: column; gap: 15px; }
.ope-grid-item-secundario { display: flex; gap: 15px; text-decoration: none; padding: 10px; border-radius: 8px; background-color: #f8f9fa; border: 1px solid #e9ecef; transition: background-color 0.2s; }
.ope-grid-item-secundario:hover { background-color: #e9ecef; }
.ope-grid-item-secundario-img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 5px; overflow: hidden; }
.ope-grid-item-secundario-img img { width: 100%; height: 100%; object-fit: cover; }
.ope-grid-item-badge-secundario { background-color: #009c3b; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 6px; }
.ope-grid-item-titulo-secundario { font-size: 16px; font-weight: 700; color: #002776; margin: 0 0 6px 0; line-height: 1.3; }
.ope-grid-item-secundario:hover .ope-grid-item-titulo-secundario { color: #009c3b; }
.ope-grid-item-meta-secundario { font-size: 13px; color: #6c757d; line-height: 1.4; }
.ope-grid-item-meta-secundario span { display: block; }

/* --- Estilos para [CarrosselCategoria] --- */
.ope-carrossel-container { position: relative; max-width: 1200px; margin: 20px auto; }
.ope-carrossel-wrapper { display: grid; gap: 20px; grid-template-columns: 1fr; }
.ope-carrossel-wrapper::-webkit-scrollbar { display: none; }
.ope-carrossel-item { width: 100%; }
.ope-carrossel-item a { text-decoration: none; display: block; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; height: 100%; }
.ope-carrossel-item a:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.ope-carrossel-item-img { height: 160px; }
.ope-carrossel-item-img img { width: 100%; height: 100%; object-fit: cover; }
.ope-carrossel-item-conteudo { padding: 15px; }
.ope-carrossel-item-badge { background-color: #009c3b; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; display: inline-block; margin-bottom: 8px; }
/* --- AJUSTE: Garante a quebra de linha no título --- */
.ope-carrossel-item-titulo { font-size: 17px; font-weight: 700; color: #002776; margin: 0 0 5px 0; line-height: 1.3; overflow-wrap: break-word; word-break: break-word; }
.ope-carrossel-item-meta { font-size: 13px; color: #6c757d; }
.ope-carrossel-nav { display: none; }

/* --- Estilos para [ListaCompacta] --- */
.ope-lista-compacta-container { background: #f8f9fa; border: 1px solid #e9ecef; padding: 20px; border-radius: 8px; }
.ope-lista-compacta-titulo { font-size: 20px; color: #002776; margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid #009c3b; padding-bottom: 10px; }
.ope-lista-compacta { list-style: none; padding-left: 0; margin: 0; counter-reset: list-counter; }
.ope-lista-compacta li { margin-bottom: 10px; }
.ope-lista-compacta li a { text-decoration: none; color: #333; font-weight: 600; font-size: 16px; display: flex; align-items: baseline; }
.ope-lista-compacta li a:before { counter-increment: list-counter; content: counter(list-counter); background: #002776; color: #fff; font-size: 14px; font-weight: bold; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; margin-right: 15px; flex-shrink: 0; }
.ope-lista-compacta li a:hover { color: #009c3b; }


/* --- MEDIA QUERIES PARA RESPONSIVIDADE --- */

/* --- AJUSTE: Altura do banner para desktops --- */
@media (min-width: 1024px) {
    .ope-banner-slide a {
        min-height: 500px;
        height: 60vh;
        max-height: 550px;
    }
}

/* Ajustes gerais para Tablets e menores */
@media (max-width: 1023px) {
    .ope-post-title a { font-size: 26px; }
    .ope-banner-titulo { font-size: 24px; }
    .ope-grid-item-titulo { font-size: 22px; }
    .ope-grid-destaque-container { grid-template-columns: 1fr; }
    .ope-grid-item-principal { min-height: 350px; }
}

/* Ajustes gerais para Celulares */
@media (max-width: 767px) {
    .ope-post-title a { font-size: 22px; }
    .ope-banner-titulo { font-size: 20px; }
    .ope-grid-item-titulo { font-size: 18px; }
    .ope-grid-item-titulo-secundario { font-size: 15px; }
    .ope-post-container { padding: 15px; }
    .ope-banner-conteudo { padding: 20px; }
}

/* --- Media Queries específicas para o NOVO GRID de CarrosselCategoria --- */

/* Layout para Tablets (2 colunas) */
@media (min-width: 768px) {
    .ope-carrossel-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Layout para Desktops (4 colunas) */
@media (min-width: 1024px) {
    .ope-carrossel-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}