/* 
 * Estilos Principais do Portal de Notícias
 * Design Limpo e Moderno
 */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.7;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* Hero - Notícia Principal (Carousel) */
.hero-carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    position: relative;
}

/* Slots de Banner (Publicidade) */
.banner-slot {
    width: 100%;
    height: 90px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

/* Wrapper de banner sem altura fixa (útil em sidebars) */
.banner-box {
    width: 100%;
    height: 90px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.banner-box > a,
.banner-box > div {
    width: 100%;
    height: 100%;
}

.banner-box > a {
    display: block;
    height: 100%;
}

.banner-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Se houver carrossel dentro do banner-box, também deve preencher */
.banner-box .banner-carousel,
.banner-box .banner-carousel .carousel-inner,
.banner-box .banner-carousel .carousel-item {
    height: 100%;
}

/* O conteúdo do slot deve preencher tudo */
.banner-slot > a,
.banner-slot > div {
    width: 100%;
    height: 100%;
}

.banner-slot > a {
    display: block;
}

/* Imagem do banner deve preencher o slot e cortar se necessário */
.banner-slot .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Vídeo do banner (MP4) deve preencher o slot/box e ser clicável via overlay */
.banner-slot .banner-media,
.banner-box .banner-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slot .banner-video,
.banner-box .banner-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.banner-slot .banner-media video,
.banner-box .banner-media video {
    pointer-events: none;
}

.banner-slot .banner-click,
.banner-box .banner-click {
    position: absolute;
    inset: 0;
    display: block;
}

/* Se houver carrossel dentro do slot, também deve preencher */
.banner-slot .banner-carousel,
.banner-slot .banner-carousel .carousel-inner,
.banner-slot .banner-carousel .carousel-item {
    height: 100%;
}

/* Patrocinadores por notícia */
.patrocinador-slot {
    width: 100%;
    height: 180px; /* ~dobro do banner padrão (90px) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 10px;
    box-sizing: border-box;
}

.patrocinador-slot > a,
.patrocinador-slot > div {
    width: 100%;
    height: 100%;
}

.patrocinador-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#patrocinadoresNoticia .carousel-inner,
#patrocinadoresNoticia .carousel-item {
    height: 180px;
}

@media (max-width: 576px) {
    .patrocinador-slot {
        height: 150px;
    }
    #patrocinadoresNoticia .carousel-inner,
    #patrocinadoresNoticia .carousel-item {
        height: 150px;
    }
}

/* Cards de "Lugares Relacionados" (sidebar da notícia) */
.related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    overflow: hidden;
}

/* Variante horizontal (thumb na lateral esquerda) */
.related-card.related-card--side {
    flex-direction: row;
    align-items: stretch;
    height: 140px;
}

.related-card.related-card--side .related-thumb {
    width: 120px;
    height: 100%;
    flex: 0 0 120px;
    border-radius: 12px 0 0 12px;
    padding: 0;
    margin: 0;
    line-height: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none;
    background: none;
}

.related-card.related-card--side .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 12px 0 0 12px;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    box-shadow: none;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
    border-color: rgba(17, 24, 39, 0.18);
}

.related-thumb {
    width: 100%;
    height: 120px;
    flex: 0 0 auto;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #f1f3f5;
    position: relative;
}

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

.related-body {
    min-width: 0;
    flex: 1;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.related-title {
    font-weight: 800;
    font-size: 0.9rem;
    line-height: 1.2rem;
    margin: 0 0 6px 0;
    color: #1f2937;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-badge {
    position: absolute;
    z-index: 2;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(13, 110, 253, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-badge--thumb {
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}

@media (max-width: 576px) {
    .related-badge {
        max-width: 80px;
    }
}

.related-subtitle {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.1rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.related-card.related-card--side .related-subtitle {
    margin: 4px 0 0;
    font-size: 0.78rem;
    line-height: 1.05rem;
}

.related-date {
    margin-top: auto;
    font-size: 0.75rem;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Home: stack das 3 matérias da lateral */
.sidebar-stack {
    height: 500px; /* acompanha .hero-img */
}

@media (max-width: 992px) {
    .sidebar-stack {
        height: auto;
    }
}

.hero-img {
    height: 500px;
    object-fit: cover;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
    padding: 30px;
    color: white;
    z-index: 2;
}

.hero-overlay h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitulo {
    color: rgba(255,255,255,0.92);
    font-size: 1rem;
    line-height: 1.25rem;
    max-width: 100%;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* Carousel Indicators (Dots) */
.carousel-indicators {
    margin-bottom: 1.5rem;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: #fff;
    opacity: 0.6;
    border: none;
    transition: all 0.3s;
}

.carousel-indicators .active {
    opacity: 1;
    transform: scale(1.3);
    background-color: var(--primary-color);
}

/* Sidebar Notícias */
.sidebar-noticia {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    display: block;
    height: 165px; /* Altura fixa para alinhar com o carousel e caber subtítulo */
}

/* Home: variação menor (usada em Turismo News) */
.sidebar-noticia.sidebar-noticia--mini {
    height: 120px;
}

/* Home: Turismo News - garantir alinhamento interno */
.turismo-news-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-noticia.sidebar-noticia--mini .sidebar-subtitulo {
    display: none;
}

.sidebar-noticia:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.sidebar-noticia img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Home (index): alinhar conteúdo para título/data ficarem sempre no mesmo lugar */
.sidebar-noticia .col-8 {
    height: 100%;
}

.sidebar-noticia .col-8 > .p-3 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-noticia h6 {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em; /* reserva espaço para 2 linhas */
}

/* Subtítulo nos cards laterais (até 3 linhas) */
.sidebar-subtitulo {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.25rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-noticia .sidebar-subtitulo {
    flex: 1 1 auto;
}

.sidebar-noticia small {
    margin-top: auto;
    display: block;
}


/* Cards de Notícias (Grid) */
.noticia-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.noticia-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex: 0 0 auto;
}

/* Variante menor (mesma largura, menor altura) */
.noticia-card.noticia-card--mini img {
    height: 130px;
}

.noticia-card.noticia-card--mini .noticia-card-body {
    padding: 14px;
}

.noticia-card.noticia-card--mini h5 {
    font-size: 0.98rem;
    margin-bottom: 6px;
    line-height: 1.2rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6rem; /* reserva espaço para 3 linhas */
}

/* Subtítulo compacto (1 linha) para mini-cards */
.noticia-subtitulo--mini {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.15rem;
    margin-bottom: 8px;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.15rem;
}

.noticia-card.noticia-card--mini p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.noticia-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.noticia-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.25rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.75rem; /* reserva espaço para 3 linhas */
}

.noticia-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.25rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem; /* reserva espaço para 2 linhas */
}

/* Home: subtítulo padronizado (2 linhas) */
.noticia-card .noticia-subtitulo {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.25rem;
    margin-bottom: 10px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5rem; /* reserva espaço para 2 linhas */
}

.noticia-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}
/* Badge Categoria */
.badge-categoria {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start;
    max-width: 100%;
}

/* Home: badge pequena sobre a thumb (não interfere no conteúdo) */
.badge-categoria.badge-categoria--mini {
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge-thumb-bottom {
    position: absolute;
    bottom: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,0,0,0.20);
}

/* Home (index): badge centralizada na parte de baixo da thumb */
.sidebar-thumb .badge-thumb-bottom {
    left: 50%;
    transform: translateX(-50%);
}


.badge-categoria:hover {
    background: #0b5ed7;
    color: white;
    transform: translateY(-1px);
}

/* Conteúdo da Notícia */
.noticia-conteudo {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.noticia-conteudo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.noticia-conteudo .lead {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
}

.noticia-imagem-capa {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.noticia-conteudo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.noticia-conteudo iframe {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.noticia-conteudo p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.noticia-conteudo h2,
.noticia-conteudo h3,
.noticia-conteudo h4 {
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.noticia-info {
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    padding: 20px 0;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Seção de Título */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-noticia {
        height: 350px;
    }
    
    .hero-overlay h2 {
        font-size: 1.5rem;
    }
    
    .noticia-conteudo {
        padding: 25px;
    }
    
    .noticia-conteudo h1 {
        font-size: 1.8rem;
    }
    
    .sidebar-noticia {
        flex-direction: column;
    }
    
    .sidebar-noticia img {
        width: 100%;
        height: 180px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Input de Busca */
.input-group .form-control:focus {
    border-color: white;
    box-shadow: none;
}

/* Sem Resultados */
.sem-resultados {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.sem-resultados i {
    font-size: 80px;
    margin-bottom: 20px;
}

/* =========================================
   FIX PARA V�DEOS E IMAGENS NO CONTE�DO
   ========================================= */

/* Garante que imagens n�o estouram o container */
.noticia-corpo img {
    max-width: 100%;
    height: auto;
}

/* Estilos para o wrapper de v�deo vindo do editor */
.noticia-corpo .video-wrapper {
    /* Remove bordas e fundos de edi��o */
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    
    /* Garante responsividade */
    max-width: 100% !important;

     /* Alguns posts antigos salvaram width:50% e overflow:hidden inline; isso deixa o vídeo pequeno e/ou cortado.
         Só força 100% quando NÃO é um layout intencional (video-50). */
     width: 100% !important;
    display: block !important;
    margin: 20px auto !important;
    overflow: visible !important;
    
    /* Corrige sobreposi��o (z-index) */
    position: relative !important;
    z-index: 10 !important;
    
    /* Remove al�a de redimensionamento nativa do navegador */
    resize: none !important;
}

/* Layout opcional: vídeo com texto ao lado (50% + float) */
.noticia-corpo .video-wrapper.video-50 {
    width: 50% !important;
    max-width: 50% !important;
}
.noticia-corpo .video-wrapper.video-left {
    float: left;
    margin: 0 15px 15px 0 !important;
}
.noticia-corpo .video-wrapper.video-right {
    float: right;
    margin: 0 0 15px 15px !important;
}

/* Novo layout: bloco Vídeo + Texto (flex, sem float) */
.noticia-corpo .media-split,
.pagina-corpo .media-split {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 20px 0;
}
.noticia-corpo .media-split--right,
.pagina-corpo .media-split--right {
    flex-direction: row-reverse;
}
.noticia-corpo .media-split__media,
.pagina-corpo .media-split__media {
    flex: 0 0 50%;
    max-width: 50%;
}
.noticia-corpo .media-split__text,
.pagina-corpo .media-split__text {
    flex: 1;
    min-width: 0;
}
.noticia-corpo .media-split__media .video-wrapper,
.pagina-corpo .media-split__media .video-wrapper,
.noticia-corpo .media-split__media .ratio.video-wrapper,
.pagina-corpo .media-split__media .ratio.video-wrapper {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

@media (max-width: 768px) {
    .noticia-corpo .media-split,
    .pagina-corpo .media-split {
        flex-direction: column;
    }
    .noticia-corpo .media-split__media,
    .pagina-corpo .media-split__media {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

/* Vídeos enviados (MP4) inseridos via Bootstrap .ratio */
.noticia-corpo .ratio > video {
    object-fit: contain;
    background: #000;
}

/* Segurança: qualquer <video> no corpo deve respeitar o container */
.noticia-corpo video {
    max-width: 100%;
}

/* Habilita o clique no v�deo (play/pause) */
.noticia-corpo .video-wrapper iframe {
    pointer-events: auto !important;
}

/* Esconde a barra cinza de 'Arraste para mover' */
.noticia-corpo .video-wrapper > div:last-child {
    display: none !important;
}

/* Mesma correção para páginas (conteúdo de paginas.php/pagina.php) */
.pagina-corpo .video-wrapper {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    margin: 20px auto !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10 !important;
    resize: none !important;
}

/* Layout opcional em páginas */
.pagina-corpo .video-wrapper.video-50 {
    width: 50% !important;
    max-width: 50% !important;
}
.pagina-corpo .video-wrapper.video-left {
    float: left;
    margin: 0 15px 15px 0 !important;
}
.pagina-corpo .video-wrapper.video-right {
    float: right;
    margin: 0 0 15px 15px !important;
}

@media (max-width: 768px) {
    .noticia-corpo .video-wrapper.video-50,
    .pagina-corpo .video-wrapper.video-50 {
        float: none;
        width: 100% !important;
        max-width: 100% !important;
        margin: 15px 0 !important;
    }
}

.pagina-corpo .ratio > video {
    object-fit: contain;
    background: #000;
}

.pagina-corpo video {
    max-width: 100%;
}

.pagina-corpo .video-wrapper iframe {
    pointer-events: auto !important;
}

.pagina-corpo .video-wrapper > div:last-child {
    display: none !important;
}


/* =========================================
   FIX PARA V�DEOS E IMAGENS NO CONTE�DO
   ========================================= */

/* Garante que imagens n�o estouram o container */
.noticia-corpo img {
    max-width: 100%;
    height: auto;
}

/* Estilos para o wrapper de v�deo vindo do editor */
.noticia-corpo .video-wrapper {
    /* Remove bordas e fundos de edi��o */
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    
    /* Garante responsividade */
    max-width: 100% !important;
    
    /* Corrige sobreposi��o (z-index) */
    position: relative !important;
    z-index: 10 !important;
    
    /* Remove alça de redimensionamento nativa do navegador */
    resize: none !important;
    
    /* Permite que o vídeo flutue se o usuário definiu isso no editor */
    /* display: block !important; REMOVIDO para respeitar float */
    /* margin: 20px auto !important; REMOVIDO para respeitar margens do editor */
}

/* Habilita o clique no v�deo (play/pause) */
.noticia-corpo .video-wrapper iframe {
    pointer-events: auto !important;
}

/* Esconde a barra cinza de 'Arraste para mover' */
.noticia-corpo .video-wrapper > div:last-child {
    display: none !important;
}

/* Fix para imagem de capa */
.noticia-imagem-capa {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}


/* Fix para imagens flutuantes n�o vazarem do container */
.noticia-corpo {
    overflow: hidden; /* Limpa floats */
    clear: both;
}

/* Bot�es de A��o no final da not�cia */
.noticia-acoes {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-acao-noticia {
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-como-chegar {
    background-color: #4285f4;
    color: white;
}

.btn-como-chegar:hover {
    background-color: #3367d6;
    color: white;
    transform: translateY(-2px);
}

.btn-contato {
    background-color: #25d366;
    color: white;
}

.btn-contato:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* Refinamento visual: thumb lateral maior, corte central e badge elegante no topo */
/* Thumb padrão (cima) */
.related-card .related-thumb {
    width: 100%;
    height: 120px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    position: relative;
}

.related-card .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* mostra o centro da imagem para cortes mais agradáveis */
    display: block;
    transition: transform 0.35s ease;
}

/* Hover sutil para dar vida ao card */
.related-card:hover .related-thumb img {
    transform: scale(1.04);
}

/* Variante lateral (thumb à esquerda) - aumentada para mais presença */
.related-card.related-card--side {
    height: 120px; /* manter altura consistente */
}

.related-card.related-card--side .related-thumb {
    width: 150px; /* aumentado para melhor presença */
    height: 100%;
    flex: 0 0 150px;
    border-radius: 12px 0 0 12px;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0;
    overflow: hidden;
    position: relative;
    box-shadow: none; /* remover sombra interna que escurecia a foto */
}

.related-card.related-card--side .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* mostrar o topo da imagem (bom para rostos) */
    display: block;
    transition: transform 0.35s ease;
    border-radius: 12px 0 0 12px; /* garantir que a imagem acompanhe a borda do container */
}

/* Overlay sutil para destacar imagens */
.related-card.related-card--side .related-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.06) 100%);
    pointer-events: none;
    border-radius: 12px 0 0 12px;
}

.related-card.related-card--side:hover .related-thumb img {
    transform: scale(1.04);
}

/* Badge redesenhada: topo-esquerdo, mais espaçamento, sombra e contraste */
.related-card .related-badge {
    position: absolute;
    z-index: 5;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg,#0b74ff,#0a58d7);
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 20px rgba(2,6,23,0.35);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Variante específica para badges sobre thumbs (mantém posição no topo) */
.related-badge--thumb {
    left: 10px;
    top: 10px;
    transform: none;
}

/* OVERRIDE: ocultar badges apenas nos cards da sidebar de notícia */
.noticia-conteudo .related-card .related-badge {
    display: none !important;
}

/* Ajustes do corpo para alinhamento vertical e espaçamento */
.related-card .related-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.related-title {
    margin-bottom: 4px;
}

.related-subtitle {
    flex: 1 1 auto;
    margin-bottom: 8px;
    min-height: 2.2em; /* força altura mínima para 2 linhas, ajuste se necessário */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    margin-top: auto;
}


