/* ============================================================
   Boletins Informativos — cabeçalho e listagem
   ============================================================ */

/* ---------- Bloco título / breadcrumb ---------- */
.boletins-titulo-da-pagina {
    width: 100%;
    height: 100px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 16px;
}


.boletins-div-infor-titulos {
    max-width: 1076px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 12px;
    padding-bottom: 25px;
}

.boletins-div-infor-titulos .breadcrumb {
    width: 100%;
    margin-bottom: 0.01rem;
}

.boletins-div-infor-titulos .cegov-breadcrumb-mobile .breadcrumb-back-link {
    margin-top: 5px;
}

.boletins-titulo-da-pagina-atual {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.03;
    letter-spacing: 0;
    color: #465564;
}

@media (max-width: 767px) {
    .boletins-titulo-da-pagina-atual {
        font-size: 40px;
    }

    .boletins-div-infor-titulos {
        max-width: 1076px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 14px 0px;
        padding-bottom: 34px;
    }

    .boletins-titulo-da-pagina-atual {
        line-height: 1.03;
    }

    .boletins-titulo-da-pagina {
        padding: 0 7px;
    }

    .boletins-div-infor-titulos .breadcrumb {
        margin-left: -6px;
    }
}

/* Accordion mensal com dias (estilo grade de dias) */
.cegovbr-month-accordion {
    width: 100%;
    max-width: 1032px;
    box-sizing: border-box;
}

.cegovbr-month-item {
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.cegovbr-month-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: #eaf7ee; /* tom suave verde como no mock */
    width: 1032px;
    max-width: 100%;
    min-height: 40.9650764465332px;
    padding: 0 24px; /* vertical centering via align-items */
    box-sizing: border-box;
    transform: rotate(0deg);
    opacity: 1;
    cursor: pointer;
    line-height: 1;
}

.cegovbr-month-header,
.cegovbr-month-header:focus,
.cegovbr-month-header:active {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    outline: none;
    box-shadow: none;
}

.cegovbr-month-header .cegovbr-month-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    color: #26323F;
}

.cegovbr-month-toggle-icon {
    color: #1B7727;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure the toggle icon is vertically centered inside the header */
.cegovbr-month-toggle-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transform: translateY(2px);
}

.cegovbr-month-header .cegovbr-month-title {
    display: inline-flex;
    align-items: center;
}

.cegovbr-month-panel {
    background: #F9F9F9;
    padding: 16px;
    border-top: 1px solid rgba(27,119,39,0.06);
}

.cegovbr-month-grid {
    display: grid;
    /* Make tiles flow horizontally with a fixed column width so they appear side-by-side */
    grid-template-columns: repeat(auto-fill, 86px);
    gap: 12px;
    align-items: start;
    justify-items: start; /* align tiles to the left inside each grid cell */
    justify-content: start; /* keep the whole grid left-aligned */
}

.cegovbr-day-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 86px;
    height: 105px;
    border-radius: 8px;
    background: #FEFEFE;
    border: 1px solid #C5C5C5;
    text-decoration: none;
    color: #465564;
    box-sizing: border-box;
    padding: 16px;
    opacity: 1;
}

.cegovbr-day-number {
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.03; /* 103% */
    text-align: center;
    color: #465564;
}

.cegovbr-day-download {
    font-size: 24px;
    color: #929292;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width:480px) {
    .cegovbr-month-grid { grid-template-columns: repeat(auto-fill, 48px); gap:10px; justify-content: start; }
    .cegovbr-day-tile {
        width: 48px;
        height: 84px;
        padding: 8px;
        gap: 8px;
        border-radius: 8px;
        box-sizing: border-box;
    }
    .cegovbr-day-number {
        font-weight: 500;
        font-size: 24px;
        line-height: 1; /* 100% */
    }
    .cegovbr-day-download {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }
}
/* ---------- Listagem ---------- */
.cegovbr-boletins-list-main {
    max-width: 1100px;
}

.cegovbr-boletins-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    column-gap: 2rem;
    /* horizontal spacing */
    row-gap: 24px;
    /* vertical spacing (requested) */
}

.cegovbr-boletins-list-item.card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow .2s;
}

.cegovbr-boletins-list-item.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
}

.cegovbr-boletins-list-item .card-img-top {
    object-fit: cover;
    height: 160px;
    width: 100%;
}

/* Estilo do container individual de cada boletim */
/* container de cada boletim será aplicado conforme instruções futuras */

.cegovbr-boletins-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* Container que envolve todos os boletins */
.cegovbr-boletins-container {
    width: 100%;
    max-width: 1080px;
    height: auto;
    border-radius: 16px;
    border: 1px solid #C5C5C5;
    padding: 24px;
    gap: 24px;
    background: #FEFEFE;
    opacity: 1;
    transform: rotate(0deg);
    box-sizing: border-box;
    margin: 0 auto;
    /* centraliza */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: -16px;
}

/* Responsividade para o container e grid */
@media (max-width: 1200px) {
    .cegovbr-boletins-container {
        padding: 20px;
    }

    .cegovbr-boletins-list-grid {
        column-gap: 1.5rem;
        row-gap: 24px;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 767px) {
    .cegovbr-boletins-container {
        padding: 16px;
        border-radius: 12px;
    }

    .cegovbr-boletins-list-grid {
        grid-template-columns: 1fr;
        column-gap: 1rem;
        row-gap: 24px;
    }

    .cegovbr-boletins-list-main {
        padding: 0 8px;
    }
}

/* Cabeçalho (imagem definida nas opções) */
.cegovbr-boletins-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    /* spacing handled by image/title margins */
    flex-direction: column;
}

.cegovbr-boletins-header img {
    width: auto;
    height: 88px;
    border-radius: 11px;
    display: block;
    object-fit: cover;
    transform: rotate(0deg);
    opacity: 1;
    margin-bottom: 24px;
}

@media (max-width:480px) {
    .cegovbr-boletins-header img {
        width: 100%;
        height: auto;
        margin-bottom: 24px;
    }
}

/* Título abaixo da imagem */
.cegovbr-boletins-header-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    /* 100% */
    letter-spacing: 0;
    color: #757575;
    background: transparent;
}

/* Card de destaque (aparece abaixo do título "Mais recentes") */
.cegovbr-featured-card-wrap {
    display: flex;
    justify-content: center;
}

/* Card imediatamente após o destaque, usado para "penúltimo boletim" */
.cegovbr-second-card {
    width: 1032px;
    max-width: 100%;
    height: auto; /* allow to grow with content */
    border-radius: 8px;
    border: 1px solid var(--color-gray-300, #C5C5C5);
    padding: 16px 32px;
    gap: 8px;
    background: #F9F9F9;
    display: flex;
    align-items: flex-start;
    /* remove justify-content to allow content stack */
    box-sizing: border-box;
}

/* Grid de 6 cards (2 colunas x 3 linhas) mostrados abaixo do penúltimo cartão */
.cegovbr-small-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1032px;
}

.cegovbr-small-card {
    width: 495px;
    max-width: 100%;
    height: 94px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-300, #C5C5C5);
    padding: 16px 32px;
    background: #FFFFFF;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.cegovbr-small-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cegovbr-small-card__title {
    font-family: 'Kanit', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #465564;
}

.cegovbr-small-card__action a {
    font-family: 'Kanit', sans-serif;
    color: #1B7727;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.cegovbr-small-card__action .material-symbols-outlined {
    margin-right: 6px;
}

.cegovbr-small-card__action a .cegovbr-link-text {
    color: #1B7727;
    text-decoration: underline solid #1B7727;
    text-decoration-thickness: 1px;
}

.cegovbr-second-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* space between title/date/link */
}

.cegovbr-second-card__info h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
}

/* estilo especial para "Boletim de ontem" */
.cegovbr-second-card--yesterday .cegovbr-second-card__info h4 {
    font-size: 20px; /* conforme especificado */
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1; /* 100% */
    color: #EF6000;
}

.cegovbr-second-card__info span {
    font-size: 0.875rem;
    color: #666;
}

.cegovbr-featured-card {
    width: 100%;
    max-width: 1032px;
    /* conforme solicitado */
    height: 218px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-300, #C5C5C5);
    background: linear-gradient(90deg, #EEEEEE 0%, #D9F2EF 100%);
    display: flex;
    overflow: hidden;
    box-sizing: border-box;
    opacity: 1;
}

.cegovbr-featured-card__media {
    width: 40%;
    min-width: 240px;
    height: 100%;
    background: #ddd;
}

.cegovbr-featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cegovbr-featured-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #e9e9e9, #cfcfcf);
}

.cegovbr-featured-card__content {
    flex: 1 1 auto;
    padding: 24px;
    background: linear-gradient(90deg, #EEEEEE 0%, #D9F2EF 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cegovbr-featured-card__title {
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #E9691E;
    /* exemplo — ajuste conforme tema */
    margin: 0px;
}

.cegovbr-featured-card__meta a{
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1; /* 100% */
    letter-spacing: 0;
    color: #1B7727;
    text-decoration: none; /* sublinhado só no <span> de texto */
    display: inline-flex;
    align-items: center;
}
.cegovbr-featured-card__meta a .material-symbols-outlined{
    font-size: 24px;
    margin-right: 4px;
    color: #1B7727;
    line-height: 1;
}
.cegovbr-featured-card__meta a .cegovbr-link-text {
    color: #1B7727;
    text-decoration: underline solid #1B7727;
    text-decoration-thickness: 1px;
}

.cegovbr-featured-card__meta {
    margin: 0px;
}

/* Data abaixo do título quando for "Boletim do dia" */
.cegovbr-featured-card__date {
    margin: 0px;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 1.32;
    /* 132% */
    letter-spacing: 0;
    color: #465564;
}

@media (max-width: 900px) {
    .cegovbr-featured-card {
        flex-direction: column;
        height: auto;
    }

    .cegovbr-featured-card__media {
        width: 100%;
        min-width: 0;
        height: 160px
    }

    .cegovbr-featured-card__content {
        padding: 16px
    }
}

/* Responsividade para a grid de 6 cards */
@media (max-width: 1024px) {
    .cegovbr-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cegovbr-small-card {
        padding: 14px 24px;
        height: 88px;
    }
}

@media (max-width: 700px) {
    .cegovbr-small-grid {
        grid-template-columns: 1fr;
    }
    .cegovbr-small-card {
        width: 100%;
        padding: 12px 16px;
        height: auto;
    }
    .cegovbr-small-card__title {
        font-size: 15px;
    }
    .cegovbr-small-card__action a {
        font-size: 14px;
    }
}

/* 'Todos os boletins' + year selector */
.cegovbr-all-boletins-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1032px;
    width: 100%;
}

.cegovbr-all-boletins-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 24px;
    line-height: 1; /* 100% */
    letter-spacing: 0;
    color: #757575;
}

.cegovbr-year-filter {
    position: relative;
}

.cegovbr-year-filter__toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #1B7727;
    text-decoration: none;
}

.cegovbr-year-filter__toggle .cegovbr-year-icon {
    font-size: 18px;
    color: #1B7727;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.cegovbr-year-filter__list {
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-radius: 6px;
    margin-top: 8px;
    padding: 8px 0;
    list-style: none;
    z-index: 40;
}

.cegovbr-year-filter__list li a {
    display: block;
    padding: 6px 18px;
    color: #1B7727;
    text-decoration: none;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
}

.cegovbr-year-filter__list li a:hover { background:#f4f8f6; }

@media (max-width:700px) {
    /* Keep title and year selector on a single row on narrow screens
       so 'Todos os boletins' stays beside the year toggle as requested. */
    .cegovbr-all-boletins-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Ensure the year filter is pushed to the right when space allows */
    .cegovbr-year-filter {
        margin-left: auto;
    }

    /* Slightly reduce title size on very small viewports to avoid overflow */
    .cegovbr-all-boletins-title {
        font-size: 20px;
    }
}