/* ================================
   HUB DE INFORMATIVOS
   Todas as classes prefixadas com infohub-
================================ */

/* SECTION BASE */
.infohub-section-area {
    /*padding: 4rem 1.5rem;
    background: #f0fff6;*/
}

.infohub-shell {
    max-width: 1120px;
    margin: 0 auto;
}

/* CABEÇALHO */
.infohub-header {
    margin-bottom: 2.5rem;
}

.infohub-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #062344;    
    /*padding: 0.25rem 0.75rem;*/
    border-radius: 999px;
    font-weight: 600;
}

.infohub-title {
    font-size: 2rem;
    line-height: 1.3;
    color: #062344;
}

.infohub-description {
    margin-top: 0.75rem;
    max-width: 720px;
    color: #062344;
}


.infohub-description p{
    
    color: #062344;
}

/* LAYOUT PRINCIPAL */
.infohub-body {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

/* SIDEBAR */
.infohub-sidebar {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 118, 110, 0.08);
    display: flex;
    flex-direction: column;
    max-height: 540px;
    overflow: hidden;
}

.infohub-sidebar-header {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
}

.infohub-count {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.infohub-sidebar-text {
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.infohub-search-wrapper {
    padding: 0.75rem 1.25rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.infohub-search-input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    outline: none;
}

.infohub-search-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.2);
}

/* LISTA ROLÁVEL */
.infohub-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.infohub-list-item {
    padding: 0.7rem 1.25rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.infohub-list-item + .infohub-list-item {
    border-top: 1px solid rgba(243, 244, 246, 1);
}

.infohub-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.infohub-list-excerpt {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* HOVER / ATIVO */
.infohub-list-item:hover {
    background: #f9fafb;
}

.infohub-list-item.is-active {
    background: #ecfdf3;
    border-left-color: #059669;
}

/* PAINEL DE CONTEÚDO */
.infohub-content-area {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 24px 50px rgba(15, 118, 110, 0.09);
    padding: 1.75rem 1.75rem 2rem 1.75rem;
    min-height: 533px;
}

/* Só mostra painel ativo */
.infohub-panel {
    display: none;
}

.infohub-panel.is-active {
    display: block;
}

/* Layout interno em coluna */
.infohub-panel-layout {
    display: block;
}

.infohub-panel-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.infohub-panel-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

/* IMAGEM ABAIXO DO TEXTO */
.infohub-panel-image-block {
    margin-top: 1.5rem;
}

.infohub-panel-image {
    width: 100%;
    max-width: 100%;
    border-radius: 1rem;
    display: block;
}

/* EMPTY STATE */
.infohub-empty-state {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6b7280;
}

/* RESPONSIVO */
@media (max-width: 991px) {
    .infohub-body {
        grid-template-columns: minmax(0, 1fr);
    }

    /* === AJUSTE PRINCIPAL: MENU PRIMEIRO === */
    .infohub-sidebar {
        max-height: none;
        order: 1;          /* antes era 2 */
        margin-top: 0;     /* remove espaçamento extra desnecessário */
    }

    .infohub-content-area {
        order: 2;          /* antes era 1 */
        padding: 1.25rem 1.25rem 1.5rem 1.25rem;
    }
}

/* =========================================================
   AJUSTE FINAL — ALTURAS IGUAIS + SCROLL INTERNO
   (Informativos Hub)
========================================================= */

/* Defina uma altura padrão única para os dois cards */
.infohub-body{
    --infohub-col-height: 560px; /* ajuste se quiser 520, 600 etc */
    align-items: stretch;        /* garante mesma altura visual na grid */
}

/* Força os dois lados a terem a mesma altura */
.infohub-sidebar,
.infohub-content-area{
    height: var(--infohub-col-height);
}

/* Remove o limite antigo da sidebar */
.infohub-sidebar{
    max-height: none; /* sobrescreve o max-height anterior */
}

/* Área da direita não deve crescer infinitamente */
.infohub-content-area{
    overflow: hidden; /* o scroll será interno no conteúdo */
}

/* Painel ativo ocupa toda a altura do card direito */
.infohub-panel.is-active{
    height: 100%;
}

/* Layout interno ocupa toda a altura disponível */
.infohub-panel-layout{
    height: 100%;
}

/* 
   Faz o conteúdo do painel da direita ter SCROLL interno
*/
.infohub-panel-text{
    height: 100%;
    overflow-y: auto;
    padding-right: 0.5rem; /* dá espaço pro scrollbar */
}

/* Mantém a imagem abaixo do texto e bem ajustada */
.infohub-panel-image-block{
    margin-top: 1.25rem;
}

.infohub-panel-image{
    width: 100%;
    display: block;
    border-radius: 1rem;
}

/* Deixa a lista da esquerda mais suave para rolar */
.infohub-list{
    scrollbar-gutter: stable;
}

/* Responsivo: em telas menores não faz sentido forçar altura fixa */
@media (max-width: 991px){
    .infohub-sidebar,
    .infohub-content-area{
        height: auto;
    }

    .infohub-panel-text{
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
}
