/* =======================================================
   PRIMEIRA SEÇÃO: CABEÇALHO DO POST (FUNDO BEGE)
   ======================================================= */
.secao-cabecalho-post {
    background-color: #f4ede6; 
    margin-top: -100px; 
    padding-top: 200px; 
    
    /* A SOLUÇÃO DO ATROPELAMENTO: Espaço gigante embaixo para a foto subir em paz */
    padding-bottom: 220px; 
    
    padding-left: 20px;
    padding-right: 20px;
}

.layout-cabecalho-post {
    width: 100%;
    /* A SOLUÇÃO DO ALINHAMENTO: Fixamos em 1000px */
    max-width: 1000px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 60px;
    align-items: center; 
}

/* A Tag "Artigos" branca */
.post-tag-topo {
    background-color: #ffffff;
    color: #555;
    padding: 4px 14px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}

/* Título e Subtítulo */
.post-titulo-principal {
    color: #ecd6a8; /* O vermelho Fllumen */
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
}

.post-subtitulo {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.5;
}

/* Informações da Direita (Data, Autor, Tempo) */
.post-meta-info {
    border-left: 1px solid #dcd3cb; /* Aqui está a linha vertical que divide as seções */
    padding-left: 30px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.meta-autor {
    margin-bottom: 5px;
}

.meta-data {
    margin-bottom: 5px;
}

.meta-tempo {
    font-weight: bold;
    color: #111;
}

.meta-tempo i {
    color: black; /* O ícone do relógio em vermelho */
    margin-right: 5px;
}

/* =======================================================
   SEGUNDA SEÇÃO: IMAGEM DE DESTAQUE (FLUTUANTE)
   ======================================================= */
.secao-imagem-destaque {
    background-color: #ffffff; 
    padding-top: 1px; /* Trava do fundo branco */
    padding-left: 20px;
    padding-right: 20px;
}

.post-imagem-wrapper {
    width: 100%;
    /* A SOLUÇÃO DO ALINHAMENTO: Exatamente os mesmos 1000px do texto */
    max-width: 1000px; 
    margin: 0 auto;
    
    /* Sobe a foto para invadir aquele espaço gigante que deixamos no bege */
    margin-top: -140px; 
    
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15); 
    position: relative; 
    z-index: 10; 
}

.post-imagem-wrapper img {
    width: 100%;
    display: block;
    max-height: 550px; 
    object-fit: cover; 
}

/* =======================================================
   TERCEIRA SEÇÃO: CORPO DO TEXTO E SIDEBAR
   ======================================================= */
.secao-conteudo-post {
    background-color: #ffffff;
    padding-top: 60px; /* Um respiro entre a imagem grandona e o texto */
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
}

.layout-post-corpo {
    width: 100%;
    /* Mantém o alinhamento perfeito de 1000px das outras seções */
    max-width: 1000px; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Divide a tela: 2 partes para o texto, 1 para a sidebar */
    gap: 80px; /* Distância entre o texto e a barra lateral */
    align-items: start;
}

/* --- BOTÕES DE FONTE (A- A+) --- */
.controles-leitura {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}

.btn-fonte {
    background: none;
    border: none;
    color: #ecd6a8; /* Vermelho */
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-fonte:hover {
    color: #a01c1c;
}

/* --- TEXTO DO ARTIGO --- */
.conteudo-texto-post {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    transition: font-size 0.2s ease; /* Transição suave caso o usuário aumente a letra */
}

.conteudo-texto-post p {
    margin-bottom: 25px;
}

.conteudo-texto-post h3 {
    font-size: 1.5em;
    color: #111;
    margin: 40px 0 15px 0;
}

/* --- SIDEBAR (LEIA TAMBÉM E TAGS) --- */
.sidebar-secao {
    margin-bottom: 50px;
}

.sidebar-titulo-pequeno {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: normal;
}

.lista-leia-tambem {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.item-leia-tambem {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
}

/* Mágica para a foto ficar redonda */
.item-leia-tambem img {
    width: 70px;
    height: 70px;
    min-width: 70px; /* Impede a imagem de amassar */
    border-radius: 50%; /* O segredo do círculo perfeito */
    object-fit: cover;
}

.item-leia-tambem p {
    color: #ecd6a8;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: text-decoration 0.2s;
}

.item-leia-tambem:hover p {
    text-decoration: underline;
}

.sidebar-tags-lista {
    color: #ecd6a8;
    font-size: 0.95rem;
    line-height: 1.8;
    text-transform: lowercase;
}

/* --- TAGS DA SIDEBAR CLICÁVEIS --- */
.sidebar-tags-lista {
    font-size: 0.95rem;
    line-height: 1.8;
    text-transform: lowercase;
}

.link-tag-sidebar {
    color: #ecd6a8; /* Vermelho Fllumen */
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-tag-sidebar:hover {
    color: #a01c1c; /* Fica um pouco mais escuro */
    text-decoration: underline; /* Aparece a linha embaixo */
}

/* =======================================================
   CAIXA OPCIONAL: SAIBA MAIS SOBRE OS LIVROS
   ======================================================= */
.caixa-saiba-mais {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid #e5dfd9; /* Bordinha bege clara idêntica à foto */
    border-radius: 8px; /* Cantinhos levemente arredondados */
    background-color: #ffffff;
}

.titulo-saiba-mais {
    color: #d1b476; /* Vermelho Fllumen */
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: none; /* Mantém escrito igual à foto, sem forçar maiúsculas */
}

.grade-livros-saiba-mais {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Se tiver muitos livros, eles descem de linha sozinhos */
}

.item-livro-saiba-mais {
    width: 110px; /* Tamanho da capa do livro */
    display: block;
    transition: transform 0.2s ease;
}

.item-livro-saiba-mais:hover {
    transform: translateY(-5px); /* Dá um pulinho pra cima quando passa o mouse */
}

.item-livro-saiba-mais img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Sombra elegante no livro */
}

/* =======================================================
   QUARTA SEÇÃO: COMENTÁRIOS (FORMULÁRIO E ACORDEÃO)
   ======================================================= */
.secao-comentarios {
    background-color: #ffffff;
    padding: 20px 20px 80px 20px;
}

.container-comentarios {
    width: 100%;
    max-width: 1000px; 
    margin: 0 auto;
}

/* O wrapper agora é quem tem a borda para abraçar tudo quando abrir */
.caixa-acordeao-comentarios {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border: 2px solid #555555;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden; /* Faz as bordas internas acompanharem o arredondamento */
}

.btn-comentarios-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    border: none; /* Tiramos a borda daqui, pois o pai já tem */
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-comentarios-toggle span {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    color: #444;
}

.btn-comentarios-toggle i {
    color: #444;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-comentarios-toggle:hover {
    background-color: #fcfcfc;
}

/* --- A Área do Formulário --- */
.area-comentarios-oculta {
    display: none; 
    padding: 0 25px 30px 25px; /* Espaço nas laterais e embaixo */
}

.area-comentarios-oculta.aberta {
    display: block; 
}

.girar-icone {
    transform: rotate(180deg);
}

/* --- Estilos dos Textos e Inputs (Igual à sua foto) --- */
.titulo-deixe-comentario {
    font-size: 1.2rem;
    color: #222;
    margin-top: 10px;
    margin-bottom: 5px;
}

.aviso-comentario {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 25px;
}

.grupo-input {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.grupo-input label {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 5px;
}

/* O segredo da caixinha bege sem borda */
.grupo-input input,
.grupo-input textarea {
    background-color: #f4ede6; /* O bege Fllumen */
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: box-shadow 0.2s;
    resize: vertical; /* Permite arrastar só a altura do comentário */
}

/* Bordinha vermelha suave quando clica para digitar */
.grupo-input input:focus,
.grupo-input textarea:focus {
    box-shadow: 0 0 0 2px rgba(227, 6, 19, 0.3);
}

.btn-publicar-comentario {
    background-color: #d1b476; /* Vermelho Fllumen */
    color: #ffffff;
    border: none;
    border-radius: 30px; /* Botão em formato de pílula */
    padding: 12px 25px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease, transform 0.1s;
}

.btn-publicar-comentario:hover {
    background-color: #b30000;
}

.btn-publicar-comentario:active {
    transform: scale(0.98);
}

/* =======================================================
   COMENTÁRIO PUBLICADO (Pré-visualização)
   ======================================================= */
.lista-comentarios {
    margin-bottom: 30px;
}

.comentario-item {
    margin-bottom: 20px;
    animation: aparecerSuave 0.5s ease; /* Efeitinho para ele surgir na tela */
}

@keyframes aparecerSuave {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comentario-cabecalho {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.comentario-avatar {
    width: 45px;
    height: 45px;
    background-color: #d1d1d1; /* Fundo cinza da sua foto */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comentario-info {
    flex-grow: 1;
}

.comentario-autor {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 4px 0;
}

.comentario-autor strong {
    font-weight: 800; /* Deixa o nome bem forte */
}

.comentario-aviso-moderacao {
    font-size: 0.75rem;
    color: #d82626; /* Vermelho Fllumen */
    font-style: italic; /* Letra deitadinha */
    margin: 0;
    line-height: 1.4;
}

.comentario-texto {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
    /* O texto não fica embaixo da foto, ele tem uma margem para alinhar com o nome */
    margin-left: 60px; 
}

.comentario-divisor {
    border: none;
    border-top: 1px solid #e5dfd9; /* Linha divisória igual à da foto */
    margin: 30px 0;
}

/* =======================================================
   ESTILOS PARA O CONTEÚDO RICO DENTRO DO POST
   ======================================================= */

/* 1. Links no meio do parágrafo (igual à palavra "filme" do seu print) */
.conteudo-texto-post p a {
    color: #e30613; /* Vermelho Fllumen */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.conteudo-texto-post p a:hover {
    color: #a01c1c; /* Fica mais escuro e ganha sublinhado */
    text-decoration: underline;
}

/* 2. Imagens jogadas no meio do texto */
.conteudo-texto-post img {
    max-width: 100%; /* Impede a foto de vazar da tela */
    height: auto;
    border-radius: 8px; /* Mantém o padrão de cantos arredondados */
    margin: 30px 0; /* Dá um respiro entre a foto e os textos em cima/baixo */
    display: block;
}

/* 3. Botões vermelhos no meio do texto (Ex: "O grupo de apoio para garotas finais") */
.btn-texto-post {
    display: inline-block;
    background-color: #e30613;
    color: #ffffff !important; /* Força a cor branca no texto */
    font-family: 'Barlow Condensed', sans-serif; /* A fonte estilosa que você usa */
    font-size: 1.2rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 12px 30px;
    border-radius: 30px; /* Formato de pílula */
    margin: 20px 0;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-texto-post:hover {
    background-color: #b30000;
    transform: scale(1.02);
}

/* Bolinhas do Banner */
.banner-bolinhas {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.bolinha-indicador {
    width: 12px;
    height: 12px;
    background-color: #cccccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
}

.bolinha-indicador.ativo {
    background-color: #e30613; /* Vermelho Fllumen pra bolinha atual */
    transform: scale(1.3); /* Fica um pouquinho maior */
}

/* Garante que o link do título herde a cor certa e não fique azul */
.titulo-banner-link {
    color: inherit;
    text-decoration: none;
}
.titulo-banner-link:hover {
    text-decoration: underline;
}

/* =======================================================
   LINKS DO BANNER (Tags Pílula e Título)
   ======================================================= */

/* As Tags em formato de pílula branca (Igual à foto) */
.tag-banner-pill {
    display: inline-block;
    background-color: #ffffff; /* Fundo branquinho */
    color: #333333; /* Texto escuro */
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 16px; /* Dá o formato gordinho */
    border-radius: 20px; /* Deixa os cantos 100% redondos */
    margin-right: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra super sutil para destacar do fundo bege */
    transition: all 0.2s ease;
}

/* Efeito quando passa o mouse na tag */
.tag-banner-pill:hover {
    background-color: #d1b476; /* Fundo vira vermelho Fllumen */
    color: #ffffff; /* Letra vira branca */
    transform: translateY(-2px); /* Dá um pulinho */
}

/* O Título Vermelho Clicável */
.titulo-banner-link {
    color: #d82626; /* Vermelho forte */
    text-decoration: none; /* Começa sem linha embaixo */
    transition: color 0.2s;
    display: block; /* Garante que a área inteira seja clicável */
}

/* Efeito quando passa o mouse no título */
.titulo-banner-link:hover {
    color: #a01c1c; /* Fica um tiquinho mais escuro */
    text-decoration: underline; /* Aparece a linha */
}

/* =======================================================
   A PÍLULA DE ASSUNTO NO TOPO DO POST (Agora 100% visível!)
   ======================================================= */
.post-tag-topo {
    background: transparent !important; 
    padding: 0 !important; 
    margin-bottom: 20px;
    display: inline-block;
}

.post-tag-topo a {
    background-color: #ffffff !important; /* BRANCO: O segredo para destacar no fundo bege! */
    color: #555 !important; 
    padding: 6px 16px;
    border-radius: 20px; 
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombrinha suave para descolar do fundo */
    transition: all 0.3s ease;
}

.post-tag-topo a:hover {
    background-color: #d1b476 !important; /* O fundo vira Vermelho Fllumen... */
    color: #ffffff !important; /* ...e a letra vira branca! */
    transform: translateY(-3px); /* Dá o pulinho pra cima */
}

/* =======================================================
   SEÇÃO "LEIA MAIS" (RODAPÉ DO POST)
   ======================================================= */

/* A Faixa Bege (Vaza a tela toda) */
.secao-leia-mais-rodape {
    background-color: #f4ede6; 
    padding: 60px 20px;
    margin-top: 40px; 
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* O limite para o conteúdo não vazar */
.container-leia-mais {
    max-width: 1000px; 
    margin: 0 auto;
}

/* O título "Leia mais Notícias" */
.titulo-leia-mais {
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    color: #535353;
    text-align: left; /* <--- A MUDANÇA ESTÁ AQUI */
    margin-bottom: 40px;
}

.destaque-vermelho {
    color: #d1b476; 
    font-weight: 800;
}

/* =======================================================
   A GRADE E OS CARDS (O que estava faltando!)
   ======================================================= */
   
/* Grade de 4 colunas exatas */
.grid-leia-mais {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

/* O Card em si */
.card-leia-mais {
    display: flex;
    flex-direction: column;
}

/* Imagem quadrada com borda arredondada (Isso resolve a foto gigante) */
.img-leia-mais-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; 
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.img-leia-mais-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Corta a imagem para não esticar */
    transition: transform 0.3s ease;
}

.img-leia-mais-wrapper:hover img {
    transform: scale(1.05); /* Zoomzinho suave ao passar o mouse */
}

/* As mini-pílulas brancas */
.tags-leia-mais {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.tags-leia-mais a {
    background-color: #ffffff; /* Fundo branco pra destacar no bege */
    color: #555;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.tags-leia-mais a:hover {
    color: #d1b476;
    transform: translateY(-2px);
}

/* Textos (Título e Resumo) */
.titulo-card-leia-mais {
    font-family: 'Barlow Condensed', sans-serif;
    color: #ecd6a8;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    text-decoration: none;
    
    /* Trava o título em 2 linhas (Corta com ...) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.titulo-card-leia-mais:hover {
    text-decoration: underline;
}

.resumo-card-leia-mais {
    color: #444;
    font-size: 0.85rem;
    line-height: 1.4;
    
    /* Trava o resumo em 4 linhas (Corta com ...) */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsivo para celular não esmagar os 4 posts */
@media (max-width: 900px) {
    .grid-leia-mais { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 500px) {
    .grid-leia-mais { grid-template-columns: 1fr !important; }
}

/* =======================================================
   AS TAGS DA SIDEBAR (Visual de Texto com Vírgulas)
   ======================================================= */

/* A caixa geral (Deixamos ela com a cor vermelha para as vírgulas também ficarem vermelhas) */
#sidebarTagsLista {
    display: block !important;
    margin-top: 15px !important;
    line-height: 1.6 !important; /* Espaçamento elegante entre as linhas */
    color: #ecd6a8 !important; /* Cor vermelha para as vírgulas */
    font-family: 'Roboto', sans-serif;
}

/* O visual do link em si */
.link-tag-sidebar {
    background-color: transparent !important; /* Sem fundo bege */
    color: #d1b476 !important; /* Texto vermelho */
    padding: 0 !important; /* Sem "gordurinha" nas laterais */
    border-radius: 0 !important; 
    font-size: 1rem !important;
    font-weight: 400 !important; /* Sem negrito pesado */
    text-transform: lowercase !important; /* Tudo minúsculo como na foto */
    text-decoration: none !important; 
    display: inline !important; /* Permite quebrar a linha naturalmente como texto */
    transition: color 0.2s ease !important;
    transform: none !important; /* Tira o pulinho */
}

/* O efeitinho suave ao passar o mouse */
.link-tag-sidebar:hover {
    color: #333 !important; /* Fica cinza escuro no mouse */
    text-decoration: underline !important;
    background-color: transparent !important;
}

.tags-leia-mais a {
    background-color: #ffffff; 
    color: #555;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem; /* Aumentei um pouquinho a fonte para compensar a letra minúscula */
    font-weight: bold;
    text-transform: none; /* <--- A MÁGICA AQUI: Desliga a letra maiúscula forçada */
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}