/* ====================================================================
   VARIAVEIS DE CORES E DESIGN
   ==================================================================== */
:root {
    --bg-color: #FAF8F5;       
    --primary-color: #914E3B;  
    --primary-hover: #503e54;  
    --accent-color: #D9CBB8;   
    --text-dark: #2C363F;      
    --text-light: #5A6670;     
    --white: #FFFFFF;
}

/* ====================================================================
   ESTILOS GERAIS, FUNDO E ANIMAÇÃO
   ==================================================================== */
html {
    scroll-behavior: smooth; /* Cria a animação suave ao clicar no menu */
    scroll-padding-top: 120px; /* Impede que o cabeçalho cubra os títulos */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: linear-gradient(rgba(250, 248, 245, 0.85), rgba(250, 248, 245, 0.85)), url('img/fundo 2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    
    /* Estrutura para empurrar o rodapé */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.cabecalho {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 5%;
    width: 100vw; /* Garante que ocupe toda a largura da tela */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999; /* Z-index aumentado para nunca ficar atrás do conteúdo */
    background-color: var(--bg-color);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
    margin-top: auto; /* Essencial: empurra o rodapé para o final do pilar flex */
    width: 100%;
}

.logo-imagem {
    justify-self: start;
    height: 80px;
    width: auto;
}

.logo-container {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinha o subtítulo à esquerda do nome */
}

.logo-texto {
    font-family: "Bona Nova SC", serif !important;
    font-size: 2.8rem !important; /* Fixo e sempre o maior título da página */
    color: var(--primary-color) !important;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1; /* Remove o espaço extra em cima e embaixo do nome */
}

.logo-subtitulo {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-light); /* Cor um pouco mais suave para dar contraste hierárquico */
    font-weight: 500;
    letter-spacing: 2px; /* Dá um espaçamento elegante nas letras */
    text-transform: uppercase; /* Deixa em maiúsculo para ficar mais profissional */
    margin-top: 5px;
    margin-left: 2px; /* Alinhamento fino com a primeira letra do nome */
}

.area-menu {
    justify-self: end;
}

.menu-navegacao {
    display: flex;
    gap: 25px;
}

.menu-navegacao a {
    text-decoration: none;
    color: var(--primary-color) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.menu-navegacao a:hover {
    opacity: 0.7;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Garante a hierarquia visual dos subtítulos para serem menores que o nome do topo */
h2, h2.section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.8rem !important; 
}

h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem !important;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 5%;
    background: transparent; /* Remove qualquer cor para a imagem de fundo brilhar */
    min-height: 60vh;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-family: 'Lora', serif;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-hover);
}

/* ====================================================================
   CONTEÚDO E SEÇÕES
   ==================================================================== */
.section {
    padding: 2rem 5% 4rem; /* Reduzimos o topo de 5rem para 2rem. Mantivemos espaço no final (4rem) */
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 1.8rem; /* Reduzido para respeitar a hierarquia do logótipo */
    margin-bottom: 3rem;
    letter-spacing: 1px; /* Dá um toque de elegância extra */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

/* ====================================================================
   RODAPÉ E MAPA
   ==================================================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4rem 5% 2rem;
}


.footer-map {
    width: 100%;
    max-width: 900px; /* Mesma largura da caixa para alinhar visualmente */
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--accent-color);
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.footer-info p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.footer-container {
    display: block;
    width: 100%;
    max-width: 600px; /* Caixa reduzida */
    margin: 0 auto 2.5rem auto; /* Centraliza a caixa na tela */
    text-align: center; 
}

.footer-map {
    width: 100%;
    max-width: 600px; /* Mapa reduzido para alinhar com a caixa */
    height: 300px; /* Altura levemente menor para ocupar menos espaço */
    margin: 0 auto; /* Centraliza o mapa perfeitamente na tela */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(145, 78, 59, 0.2); /* Borda suave na cor do seu tema */
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.copyright {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* ====================================================================
   RESPONSIVIDADE
   ==================================================================== */
/* Configuracao estrutural do botao de menu mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* ====================================================================
   SISTEMA DE ABAS (OCULTAR E EXIBIR SEÇÕES)
   ==================================================================== */
.aba-conteudo {
    display: none; 
    /* Aumentado para 170px para a logo de 100px não cobrir o título da página */
    padding-top: 170px; 
    padding-bottom: 50px; /* Espaço antes do rodapé */
    animation: fadeIn 0.5s ease-in-out forwards; 
    flex: 1;
}

.aba-conteudo.ativa {
    display: block; /* Mostra apenas a aba que estiver com a classe 'ativa' */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

main {
    padding-top: 0;
    flex: 1; /* Esta é a magia: o 'main' expande-se e trava o rodapé no fundo! */
    display: flex;
    flex-direction: column;
}

/* Pequeno ajuste para garantir que o conteúdo das abas acompanhe esse esticão */
.aba-conteudo.ativa {
    display: block;
    flex: 1; 
}

/* ====================================================================
   WHATSAPP FLUTUANTE E LINKS
   ==================================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366; /* Cor oficial do WhatsApp */
    color: #FFF;
    border-radius: 50px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Dá um pequeno zoom ao passar o rato */
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.whatsapp-link {
    color: var(--white);
    text-decoration: underline;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.whatsapp-link:hover {
    opacity: 0.8;
}

/* Ajuste no mobile para o botão não ficar no limite do ecrã */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}


/* ====================================================================
   MENU LATERAL E RESPONSIVIDADE (NOVO BREAKPOINT 1600PX)
   ==================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 1600px) {
    /* Ativa o botão de menu muito mais cedo (em 1600px) */
    .menu-toggle {
        display: flex;
    }

    /* Esconde a navegação horizontal padrão */
    .menu-navegacao {
        position: fixed;
        top: 0;
        right: -100%; 
        left: auto;
        width: 280px;
        max-width: 80%;
        height: 100vh;
        background-color: var(--bg-color);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 100px;
        z-index: 999;
        display: block;
    }

    nav.menu-aberto {
        right: 0; 
    }

    .menu-navegacao ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    /* Otimização de espaço para o WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    /* Ajustes finos para o cabeçalho não espremer os itens em 1600px */
    .logo-texto {
        font-size: 2.2rem !important;
    }
    
    .logo-imagem {
        height: 70px;
    }
}

/* ====================================================================
   ESTILOS ESPECÍFICOS DE TEXTO
   ==================================================================== */
/* Cria o espaço de "Tab" no início de cada parágrafo do Sobre Mim */
.about-text p {
    text-indent: 2.5rem; 
    margin-bottom: 1.2rem;
    text-align: justify; /* Deixa o texto retinho nas laterais */
}

/* ====================================================================
   OTIMIZAÇÃO MOBILE FLUÍDA (BREAKPOINT 800PX) + AJUSTE SOBRE MIM
   ==================================================================== */
@media (max-width: 800px) {
    /* Ajustes Gerais de Cabeçalho */
    .cabecalho { 
        padding: 10px 2%; /* Diminuído de 4% para 2% para encostar mais na borda esquerda */
        grid-template-columns: auto 1fr auto; 
        gap: 10px;
    }
    .logo-imagem { 
        height: 45px; /* Ajuste o tamanho da logo para celular aqui */
        margin-left: 0;
    } 
    .logo-texto { font-size: 1.3rem !important; }
    .aba-conteudo { padding-top: 100px; }

    /* --- AJUSTE ESPECÍFICO SOBRE MIM --- */
    .about-grid {
        display: flex;
        flex-direction: column; /* Foto em cima, texto embaixo */
        gap: 2rem;
        align-items: center; /* Centraliza os itens horizontalmente */
    }

    .profile-image {
        width: 100%;
        max-width: 300px; /* Limita a largura da foto para não ficar gigante */
        margin: 0 auto;  /* Garante a centralização */
        border-radius: 15px; /* Bordas mais suaves no mobile */
    }

    .about-text {
        text-align: justify; /* Distribui o texto de forma mais profissional */
        padding: 0 5px;
    }

    .about-text p {
        margin-bottom: 1.2rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    .logo-subtitulo { 
        font-size: 0.6rem; 
        margin-top: 2px; 
        display: block !important; 
    }

    /* Regra para empilhamento gradativo (palavra por palavra) */
    @media (max-width: 520px) {
        .logo-subtitulo {
            max-width: 260px !important; /* <-- ALTERE ESTE NÚMERO PARA CONTROLAR O GRAU */
            line-height: 1.4;
            white-space: normal !important;
            text-align: left;
            display: block;
        }
    }
    /* ----------------------------------- */

    /* WhatsApp e Navegação */
    .menu-navegacao { width: 70%; max-width: 260px; padding-top: 80px; }
    .whatsapp-float { width: 45px; height: 45px; bottom: 15px; right: 15px; }
    .whatsapp-float svg { width: 25px; height: 25px; }

    /* --- AJUSTE DA SEÇÃO CONTATO (MAPA FORA DA CAIXA) --- */
    .footer-container {
        padding: 2rem !important;
        margin-bottom: 2rem;
    }

    .footer-info h3 {
        font-size: 1.5rem !important; /* Ajuste para o título caber bem no celular */
    }

    .footer-map {
        height: 250px; /* Altura ideal para mobile */
        width: 100%;
    }

/* ====================================================================
       INJEÇÃO FORÇADA: CARROSSEL EM PÍLULAS (OVERRIDE TOTAL)
       ==================================================================== */
    .temas-carousel-section { display: block !important; padding: 10px 0 0 0 !important; margin: 0 !important; }
    .temas-carousel-section .section-title { display: none !important; }
    .carousel-container { margin-top: 0 !important; width: 100% !important; }
    
    .temas-wrapper { 
        overflow-x: auto !important; 
        padding: 5px 5% 15px 5% !important; 
        scroll-behavior: smooth !important; 
        -webkit-overflow-scrolling: touch !important; 
        scrollbar-width: none !important; 
    }
    .temas-wrapper::-webkit-scrollbar { display: none !important; }
    
    .temas-grid { 
        display: flex !important; 
        flex-wrap: nowrap !important; 
        transform: none !important; 
        width: max-content !important; 
        gap: 10px !important; 
    }
    
    .tema-grupo { 
        display: flex !important; 
        gap: 10px !important; 
        min-width: auto !important; 
        flex: 0 0 auto !important; 
        padding: 0 !important; 
        grid-template-columns: none !important; 
    }
    
    .tema-card { 
        flex: 0 0 auto !important; 
        width: auto !important; 
        height: 38px !important; 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: center !important; 
        background: var(--white) !important; 
        border: 1px solid rgba(145, 78, 59, 0.2) !important; 
        border-radius: 25px !important; 
        padding: 0 16px 0 12px !important; 
        gap: 6px !important; 
        box-shadow: 0 2px 4px rgba(0,0,0,0.03) !important; 
        cursor: pointer !important; 
        min-height: auto !important; 
    }
    
    .tema-card:active { transform: scale(0.95) !important; background: rgba(145, 78, 59, 0.05) !important; }
    
    .tema-icon { 
        font-size: 1.1rem !important; 
        margin: 0 !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        background: transparent !important; 
        border: none !important; 
        box-shadow: none !important; 
        width: auto !important; 
        height: auto !important; 
        transform: none !important; 
    }
    
    .tema-card h3 { 
        font-size: 0.8rem !important; 
        margin: 0 !important; 
        color: var(--primary-color) !important; 
        white-space: nowrap !important; 
        font-weight: 600 !important; 
        text-align: left !important; 
        line-height: 1 !important; 
        display: block !important; 
    }
    
    .tema-card p, .nav-btn, .tema-card-vazio { display: none !important; }

}

/* ====================================================================
   MENU DROPDOWN "TEMAS"
   ==================================================================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -50%;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0 !important;
    border: 1px solid rgba(145, 78, 59, 0.1);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 20px;
    display: block;
    color: var(--text-dark) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    text-align: left;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(145, 78, 59, 0.05);
    color: var(--primary-color) !important;
}

/* Mostrar no hover (Desktop) */
@media (min-width: 1601px) {
    .dropdown:hover .dropdown-menu {
        display: flex;
    }
}

/* Ajustes para o menu Mobile */
@media (max-width: 1600px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        padding: 0;
        border: none;
        display: none; 
    }
    
    .dropdown.ativo .dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        padding: 10px 20px;
        text-align: center;
        font-size: 0.9rem !important;
    }
}

/* ====================================================================
   LAYOUT DE TEMAS (SIDEBAR + BALÃO)
   ==================================================================== */
.temas-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 20px;
}

.temas-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tema-btn {
    background: var(--white);
    border: 1px solid rgba(145, 78, 59, 0.2);
    padding: 15px 20px;
    border-radius: 12px;
    text-align: left;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tema-btn:hover {
    background-color: rgba(145, 78, 59, 0.05);
}

.tema-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(145, 78, 59, 0.2);
}

/* A "setinha" do balão que conecta ao botão */
.tema-btn.active::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--primary-color);
    display: block;
}

.temas-view {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 300px;
}

.tema-info-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tema-info-content.active {
    display: block;
}

.tema-info-content h3 {
    margin-bottom: 20px;
    font-size: 1.8rem !important;
}

/* RESPONSIVIDADE (Mobile) */
@media (max-width: 900px) {
    .temas-container {
        flex-direction: column;
        gap: 20px;
    }
    .temas-sidebar {
        flex: 1;
        width: 100%;
    }
    .tema-btn.active::after {
        display: none; /* Remove a seta lateral no mobile */
    }
    .temas-view {
        padding: 25px;
    }
}

/* ====================================================================
   LAYOUT INÍCIO: EDITORIAL (VAMOS FALAR DE TERAPIA)
   ==================================================================== */
.editorial-container {
    background: var(--white);
    padding: 4rem 5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); /* Sombra super suave */
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(145, 78, 59, 0.1);
}

.editorial-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 3.5rem;
    text-align: center;
}

.editorial-section {
    margin-bottom: 3rem;
}

.editorial-section:last-child {
    margin-bottom: 0;
}

/* O subtítulo estilo "FASES DO NEGÓCIO" da sua imagem */
.editorial-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

/* A linha fina que acompanha o subtítulo */
.editorial-subtitle .line {
    flex: 1;
    height: 1px;
    background-color: rgba(0,0,0,0.08);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 4rem; /* Espaço entre as linhas e colunas */
}

.editorial-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: block;
}

.editorial-link:hover {
    color: var(--primary-color);
}

/* Ajustes perfeitos para telemóveis */
@media (max-width: 800px) {
    .editorial-container { 
        padding: 2.5rem 1.5rem; 
    }
    .editorial-title { 
        font-size: 2rem; 
        margin-bottom: 2rem;
    }
    .editorial-grid { 
        grid-template-columns: 1fr; /* Volta para 1 coluna no celular */
        gap: 1.5rem; 
    }
}

/* ====================================================================
   LAYOUT INÍCIO: GRID DE POSTAGENS (ESTILO MAILCHIMP)
   ==================================================================== */
.blog-grid {
    display: grid;
    /* Cria as 3 colunas que se ajustam sozinhas */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem 2rem; /* Espaço vertical e horizontal entre os cards */
    margin-top: 1rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Efeito ao passar o mouse: o título ganha a sua cor principal e sublinha */
.blog-card:hover .blog-title {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Estilo da Imagem do Post na Home (Sincronizado e Centralizado) */
.blog-image, .blog-image-placeholder {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center; /* Garante que a prévia também fique centralizada */
    border-radius: 16px; 
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.blog-content {
    display: flex;
    flex-direction: column;
    padding: 0 5px; /* Alinha o texto com a curva da imagem */
}

/* Subtítulo / Categoria */
.blog-category {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Título do Post */
.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.2s ease;
    
    /* Padroniza o tamanho do título para até 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Resumo do Post */
.blog-excerpt {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    
    /* Padroniza o tamanho do resumo para exatas 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajustes para celulares (fica 1 post embaixo do outro) */
@media (max-width: 800px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem; /* Aumenta bastante o respiro entre um post e o próximo */
    }
    .blog-image, .blog-image-placeholder {
        height: 240px;
        margin-bottom: 0.8rem !important; /* Aproxima o texto da foto a qual ele pertence */
    }
}
/* ====================================================================
   ESTILOS DOS CARDS COM IMAGEM NA ABA TEMAS (BALÕES)
   ==================================================================== */
.tema-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.tema-post-card {
    background: #FAF8F5;
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    text-decoration: none;
    color: var(--text-dark);
    display: flex; /* Alinha imagem e texto lado a lado */
    gap: 15px;
    align-items: center;
    transition: transform 0.2s ease;
}

.tema-post-card:hover {
    transform: translateX(8px);
    background: #fff;
    box-shadow: 0 6px 15px rgba(145, 78, 59, 0.1);
}

.tema-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0; /* Impede a imagem de esmagar */
}

.tema-post-thumb-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: var(--accent-color);
    flex-shrink: 0;
}

.tema-post-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.tema-post-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Corta o texto em 2 linhas para não ficar gigante */
    -webkit-box-orient: vertical;
    overflow: hidden;
}