/* Estilos exclusivos para single.php */

.rel-single-more {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    color: #1B7727 !important;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    display: inline;
    transition: all 0.15s;
}

/* Isolamento: garantir que .rel-single-more não herde regras do style.css do tema */
.post-page .rel-single-more,
.news-single-aside .rel-single-more {
    all: unset;
    /* Re-declara propriedades necessárias explicitamente (usar !important para garantir sobreposição) */
    font-family: 'Kanit', sans-serif !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-size: 16px !important;
    line-height: 100% !important;
    letter-spacing: 0 !important;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-decoration-thickness: 1px !important;
    color: #1B7727 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: inline-block !important;
    transition: all 0.15s !important;
}

/* Interaction states for .rel-single-more */
.rel-single-more:hover {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    color: #239832 !important; /* cor solicitada */
}

.rel-single-more:focus,
.rel-single-more:focus-visible {
    display: inline-block; /* permite width/height */
    width: 64px;
    height: 20px;
    transform: rotate(0deg);
    opacity: 1;
    border-radius: 4px;
    outline: 2px solid #545FFF !important;
    outline-offset: 2px 2px!important;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-decoration: underline !important;
    text-decoration-style: solid;
    text-decoration-thickness: 1px;
    color: #155C1E !important; /* cor solicitada para foco */
}

.rel-single-more:active {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    text-decoration: underline !important;
    text-decoration-style: solid !important;
    text-decoration-thickness: 1px;
    color: #155C1E !important; /* cor solicitada para clique */
}


/* ===== Container geral ===== */
.post-page {
    color: #1f2937;
}

/* ===== Elementos do cabeçalho ===== */
.news-cat-tag {
    display: inline-flex;
    align-items: center;
    background: #1B7727;
    color: #FEFEFE;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: auto;
    border-radius: 8px;
    text-decoration-color: #FEFEFE;
    vertical-align: middle;
    padding: 3px 8px;
    min-width: 0;
    width: fit-content;
    height: auto;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 auto;
        width: 74.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 24.333333%;
    }
}

.news-meta a {
    color: inherit;
    text-decoration: none;
}

.post-wrap {
    display: block;
}

/* ===== Cabeçalho ===== */
.news-path {
    font-size: .9rem;
    color: #64748b;
    margin: 10px 0;
}

.news-path a {
    color: #0a7c44;
    text-decoration: none
}

.news-path .sep {
    margin: 0 .4rem
}

/* Breadcrumb separator for cegov theme */
.cegov-breadcrumb li:not(:first-child)::before {
    content: '>';
    margin: 0 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    color: #465564;
    font-size: 14px;
    vertical-align: middle;
}

.news-title {
    margin: 6px 0 12px;
    font-family: 'Kanit', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 40px;
    /* leading-trim: NONE; not widely supported */
    line-height: 103%;
    letter-spacing: 0;
    color: #465564;
}

.news-meta {
    color: #64748b;
    font-size: .95rem;
    margin-bottom: 40px;
}


/* Datetime (publicação) */
.news-meta time {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 132%;
    letter-spacing: 0;
    color: #465564;
}


/* ===== Hero ===== */
.news-hero {
    margin: 8px 0 18px;
    border-radius: 12px;
    overflow: hidden;
    width: 739px;
    height: 320.16px;
    gap: 10px;
    transform: rotate(0deg);
    opacity: 1;
    max-width: 100%;
}

.news-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Grid (conteúdo + aside) ===== */
/* .news-grid removed: now using Bootstrap grid */
@media (max-width: 1024px) {
    .news-card {
        padding: 12px 8px;
        border-radius: 10px;
    }
}

@media (max-width: 700px) {
    .news-card {
        padding: 8px 4px;
        border-radius: 8px;
    }
}

header.news-head {
    padding-bottom: 3px;
    padding-top: 5px;
}

/* Força aside com largura fixa quando necessário */
.news-single-aside {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== Card do conteúdo ===== */
.news-card {
    background: #fff;
    border: 1px solid #e5e9ee;
    border-radius: 8px;
    padding: 1rem 0.5rem;
}

@media (min-width: 6700px) {
    .news-card {
        border-radius: 10px;
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 1024px) {
    .news-card {
        border-radius: 12px;
        padding: 1.25rem 1.25rem;
    }
}

.news-content :where(p, ul, ol, blockquote, h2, h3, h4, figure) {
    margin: 0 0 14px
}

.news-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px auto
}

.news-content a {
    color: #0a7c44;
    text-decoration: underline;
    text-underline-offset: 2px
}

/* ===== Créditos + Share (mesma linha) ===== */
.news-credits-inline {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 32px 0 32px;
    border-radius: 12px;
}

.news-credits-inline>* {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 400px) {
    .news-credits-inline {
        gap: 8px;
    }
}

.credits {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .95rem;
    color: #374151
}

.credit-label {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #465564;
}

.credit-value {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 132%;
    letter-spacing: 0;
    color: #465564;
}

/* Share icons */
.share {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: end;
}

.share-label {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #465564;
}

.share a {
    color: #0a7c44;
    text-decoration: none;
    font-size: 1.5rem;
    /* Tamanho dos ícones */
}

.news-tags-inline span {
    margin-right: 6px;
    display: inline-block;
}
.news-tags-inline span:last-child {
    margin-right: 0;
}

.share a:hover {
    color: #1f2937;
}


/* ===== Aside (destaques) ===== */
.news-single-aside-card {
    border-radius: 16px;
    padding: 8px;
}

.aside-single-title {
    margin: 2px 0 10px;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #465564;
}

/* Força o estilo dos parágrafos nesta página */
.news-content p {
    font-family: 'Kanit', sans-serif !important;
    font-weight: 300 !important;
    font-style: normal !important;
    font-size: 16px !important;
    line-height: 175% !important;
    letter-spacing: 0 !important;
    color: #465564 !important;
}

.rel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.rel-single-item {
    margin: 0
}

.rel-single-link {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 12px;
    align-items: start;
    text-decoration: none;
    color: #1f2937
}

.rel-single-media {
    width: 116px
}

.rel-thumb {
    display: block;
    width: 236px;
    height: 119.24px;
    object-fit: cover;
    border-radius: 8px;
    transform: rotate(0deg);
    opacity: 1;
}

.rel-thumb--placeholder {
    width: 116px;
    height: 78px;
    border-radius: 8px;
    background: #eef2f6
}

.rel-single-texts {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.rel-single-date {
    width: 236px;
    height: 14px;
    gap: 8px;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0;
    color: #757575;
    transform: rotate(0deg);
    opacity: 1;
    margin-top: 8px;
}

.rel-single-title {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #26323F;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: calc(1.2em * 3);
    margin: 16px 0px;
}

@media (min-width: 992px) {
    /* Ajuste de layout desktop: imagem à esquerda (236px) e conteúdo à direita (1fr) */
    .rel-single-link {
        display: grid; /* garante que seja um grid container no desktop */
        grid-template-columns: 236px 1fr;
        align-items: start;
    }
}

/* .rel-single-more moved to top of this file (stateful styles: hover/focus/active) */

/* ===== Parágrafos e strong (página single) ===== */
.post-page p {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 16px;
    line-height: 175%;
    letter-spacing: 0;
    color: #465564;
}

.post-page strong {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0;
    color: #465564;
}

/* ===== AJUSTE P/ SOBREPOR TEMA ===== */
.news-single-aside .rel-single-link {
    display: flex !important;
    /* Força o layout flex */
    flex-direction: column !important;
    /* Empilha os itens verticalmente */
    gap: 8px !important;
    /* Espaço entre imagem e texto */
    background: none !important;
    /* Remove qualquer fundo no hover */
}

.news-single-aside .rel-single-link .rel-single-media,
.news-single-aside .rel-single-link .rel-thumb {
    width: 236px !important;
    height: 119.24px !important;
    border-radius: 8px !important;
    transform: rotate(0deg) !important;
    opacity: 1 !important;
}

.news-single-aside .rel-single-link .rel-single-texts {
    transform: none !important;
    /* Remove qualquer transformação (título de lado) */
    opacity: 1 !important;
    /* Garante que o texto esteja sempre visível */
    position: static !important;
    /* Reseta posicionamento */
    background: none !important;
}

/* Adicionado para garantir que o título seja visível */
.news-single-aside .rel-single-link .rel-single-title {
    opacity: 1 !important;
    transform: none !important;
    position: static !important;
    display: block !important;
    color: #1f2937 !important;
    text-indent: 0 !important;
    -webkit-writing-mode: initial !important;
    writing-mode: initial !important;
    margin: 16px 0px 16px 0px;
}

.news-single-aside .rel-single-link:hover {
    background: none !important;
    /* Garante que não haja mudança de fundo no hover */
}

/* Zerando padding de links de destaques apenas nesta página */
.post-page a.rel-single-link {
    padding: 0px !important;
}

@media (max-width: 700px) {

    .news-hero,
    .news-hero-img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        border-radius: 8px;
        display: block;
    }
}

@media (max-width: 700px) {
    .rel-thumb {
        display: block;
        width: 398px;
        max-width: 100%;
        height: 201px;
        object-fit: cover;
        border-radius: 8px;
        transform: rotate(0deg);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    /* Forçar largura do título relacionado para corresponder à miniatura em mobile */
    .rel-single-title {
        width: 398px;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
    }
}

/* Remove o contorno de foco azul padrão do navegador */
a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Alinhamento justificado para blocos */
.is-style-justified {
    text-align: justify !important;
}