/* Detalhe de notícias — modelo compatível com noticias_ver.php */
.noticia-detalhe-slah {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 25px;
}

.noticia-cabecalho-slah h1 {
    color: #222;
    font-size: 30px;
    line-height: 1.18;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.noticia-meta-slah {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 18px 0;
}

.noticia-foto-principal-slah {
    margin: 0 0 20px 0;
}

.noticia-foto-principal-slah img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    background: #f5f5f5;
}

.noticia-conteudo-slah {
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.noticia-conteudo-slah p {
    margin: 0 0 14px 0;
}

.noticia-conteudo-slah img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.noticia-galeria-slah {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #ededed;
}

.noticia-galeria-slah h3 {
    margin: 0 0 14px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2e5f3d;
}

.noticia-galeria-grid-slah {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.noticia-galeria-item-slah {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f5;
}

.noticia-galeria-item-slah img {
    display: block;
    width: 100%;
    height: 165px;
    object-fit: cover;
    transition: transform .25s ease-in-out;
}

.noticia-galeria-item-slah:hover img,
.noticia-galeria-item-slah:focus img {
    transform: scale(1.05);
}

.noticia-share-box-slah {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #ededed;
}

.noticia-share-box-slah strong {
    color: #333;
    margin-right: 2px;
}

.noticia-share-btn-slah {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 4px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    border: 0;
}

.noticia-share-btn-slah:hover,
.noticia-share-btn-slah:focus {
    color: #fff !important;
    opacity: .88;
    text-decoration: none !important;
}

.noticia-share-btn--facebook { background: #1877f2; }
.noticia-share-btn--whatsapp { background: #25d366; }
.noticia-share-btn--telegram { background: #0088cc; }
.noticia-share-btn--twitter { background: #111; }
.noticia-share-btn--print { background: #6c757d; }

.noticia-voltar-slah {
    margin: 18px 0 0 0;
}

@media (max-width: 991px) {
    .noticia-galeria-grid-slah {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .noticia-detalhe-slah {
        padding: 14px;
    }
    .noticia-cabecalho-slah h1 {
        font-size: 24px;
    }
    .noticia-galeria-grid-slah {
        grid-template-columns: 1fr;
    }
    .noticia-galeria-item-slah img {
        height: auto;
        max-height: none;
    }
    .noticia-share-box-slah {
        align-items: stretch;
    }
    .noticia-share-btn-slah {
        flex: 1 1 calc(50% - 8px);
    }
}

@media print {
    @page { margin: 12mm; }
    html, body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body * {
        visibility: hidden !important;
    }
    .noticia-print-area,
    .noticia-print-area * {
        visibility: visible !important;
    }
    .noticia-print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }
    .noticia-share-box-slah,
    .noticia-voltar-slah,
    .no-print {
        display: none !important;
    }
    .noticia-cabecalho-slah h1 {
        font-size: 24pt !important;
        color: #000 !important;
    }
    .noticia-meta-slah {
        color: #333 !important;
    }
    .noticia-conteudo-slah {
        color: #000 !important;
        font-size: 12pt !important;
        line-height: 1.45 !important;
    }
    .noticia-foto-principal-slah img,
    .noticia-galeria-item-slah img,
    .noticia-conteudo-slah img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    .noticia-galeria-grid-slah {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}


/* v41 - Reforço para texto dos botões de compartilhamento em notícias */
.noticia-share-box-slah .noticia-share-btn-slah,
.noticia-share-box-slah .noticia-share-btn-slah:link,
.noticia-share-box-slah .noticia-share-btn-slah:visited,
.noticia-share-box-slah .noticia-share-btn-slah:hover,
.noticia-share-box-slah .noticia-share-btn-slah:focus,
.noticia-share-box-slah .noticia-share-btn-slah:active {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.noticia-share-box-slah .noticia-share-btn-slah * {
    color: #ffffff !important;
    font-weight: 700 !important;
}
