.cabecalho {
    background-color: #0A0A0A;
    color: white;
}


.max-largura {
    max-width: 1024px;
}


.logo {
    padding-left: 42px;
}

.logo>a>img {
    width: 64px;
    cursor: pointer;
}

.flex-between-center {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.lista-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    font-family: sans-serif;
}

.lista-menu>li {
    /* Borda invisível inicialmente */
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.menu-item {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    /* Impede que o texto quebre em várias linhas */
}

.menu-item>div {
    display: flex;
    align-items: center;
    height:60px;
}

.lista-menu>li:hover {
    border-bottom-color: #dc2626;
}

.busca_menu {
    padding-right: 25px;
    cursor: pointer;
}



/* Indicador "Ao Vivo" */
.live-cnn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 0.5rem;
}

.outer-circle {
    width: 20px;
    background-color: #1a0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: live-cnn 2s ease-in-out infinite;
}

.innercircle {
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
}

/* Animação do piscar */
@keyframes live-cnn {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}


.vazio {
    background-color: rgb(235, 235, 235);
    background-image: url(../assets/img/detalhe-noticias/fundo-cinza.png);
}

.vazio-topo {
    width: 100%;
    height: 235px;
}



.principal {
    background-color: #FFFFFF;
    padding: 20px 0;
}

.container-conteudo {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 32px;
    padding: 0 16px;
    align-items: flex-start; /* Alinha os itens no topo */
    min-height: 100vh; /* Garante altura mínima para o sticky funcionar */
}

.conteudo-principal {
    flex: 1 1 70%; /* Ocupa 70% do espaço */
    max-width: 1200px; /* Largura máxima */
}

.noticia-principal {
    margin-bottom: 80px;
}

.noticia-principal img {
    max-width: 100%; /* Garante que a imagem não ultrapasse o container */
    height: auto;
    border-radius: 15px;
}

/* sugestões de notícias no meio do texto da notícia */
.sugestoes-notícias {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.sugestoes-notícias > h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    width: 100%; /* Garante que o título ocupe toda a linha */
}

.sugestoes-notícias article {
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.sugestoes-notícias article:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sugestoes-notícias article a {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sugestoes-notícias article img {
    width: 100%;
    height: 180px; /* Altura fixa para as imagens */
    object-fit: cover;
    border-radius: 8px;
}

.sugestoes-notícias article p {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    flex-grow: 1; /* Faz o texto ocupar o espaço restante */
}

/* Layout para telas maiores (lado a lado) */
@media (min-width: 768px) {
    .sugestoes-notícias {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start; /* Alinhamento à esquerda */
    }
    
    .sugestoes-notícias article {
        flex: 0 0 calc(33.333% - 14px); /* 3 colunas com gap fixo */
        margin: 0 7px 20px 7px; /* Gap horizontal de 14px (7px de cada lado) */
        box-sizing: border-box;
    }
}

/* Layout para telas médias (empilhado com imagem ao lado do texto) */
@media (max-width: 767px) {
    .sugestoes-notícias article {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .sugestoes-notícias article a {
        flex-direction: row;
    }
    
    .sugestoes-notícias article img {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .sugestoes-notícias article p {
        padding: 0 15px;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 480px) {
    .sugestoes-notícias article {
        flex-direction: column;
    }
    
    .sugestoes-notícias article a {
        flex-direction: column;
    }
    
    .sugestoes-notícias article img {
        width: 100%;
        height: auto;
    }
}



aside {
    flex: 0 0 300px; /* Largura fixa de 300px */
    position: sticky;
    top: 20px; /* Fixa o aside ao rolar */
    align-self: flex-start; /* Mantém alinhado ao topo */
    height: 100vh; /* Altura da viewport */
    /* overflow-y: auto;  */
    /* Adiciona scroll se o conteúdo for muito longo */
}

.noticias-alternativas img {
    border-radius: 8px;
}

.noticias-alternativas img {
    border-radius: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
    .container-conteudo {
        flex-direction: column;
    }
    
    .conteudo-principal, aside {
        width: 100%;
        flex: 1 1 100%;
    }
    
    aside {
        position: static;
        margin-top: 40px;
    }
}