/* =============================================
   LISTA DE BLOG - DESIGN CLICK FÁCIL (CORRIGIDO)
   ============================================= */

/* Variáveis Globais */
:root {
    --bg-dark-navy: #0A192F;
    --text-lightest: #ffffff;
    --text-light: #ccd6f6;
    --text-dark: #8892b0;
    --accent-cyan: #29abe2;
}

/* Estrutura da Seção */
.blog-list-section {
    background: var(--bg-dark-navy);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 140px; 
    padding-bottom: 80px;
}

/* Cabeçalho da Página */
.blog-header-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.blog-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-lightest);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(41, 171, 226, 0.3);
}

.blog-main-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.8;
}

/* Container da Lista */
.blog-list-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 25px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* =============================================
   CARD DO ARTIGO (Horizontal e Alinhado no Topo)
   ============================================= */
.blog-item {
    display: flex;
    flex-direction: row;
    
    /* --- CORREÇÃO DE ALINHAMENTO --- */
    /* flex-start: Faz o texto e a imagem começarem do TOPO */
    align-items: flex-start; 
    
    gap: 30px;
    position: relative;
    
    /* Estilo "Glass" */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px;
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}

/* Hover no Card */
.blog-item:hover {
    transform: translateY(-5px);
    background: rgba(41, 171, 226, 0.06);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ===== IMAGEM DO ARTIGO ===== */
.blog-image {
    flex-shrink: 0;
    width: 280px;   /* Largura Fixa Desktop */
    height: 190px;  /* Altura Fixa Desktop */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    
    /* Adiciona um background caso a imagem não carregue, para não sumir */
    background-color: rgba(255,255,255,0.05); 
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block; /* Remove espaços fantasmas abaixo da img */
}

.blog-item:hover .blog-image img {
    transform: scale(1.08);
}

/* ===== CONTEÚDO DE TEXTO ===== */
.blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    
    /* --- CORREÇÃO DE ALINHAMENTO 2 --- */
    /* Garante que o conteúdo de texto comece do topo e não tente centralizar */
    justify-content: flex-start; 
    
    height: auto; 
    padding: 0;
    
    /* Pequeno ajuste para alinhar a linha visual do texto com o topo exato da imagem */
    margin-top: -3px; 
}

/* Categoria */
.blog-meta {
    margin-bottom: 12px;
    border: none !important;
    padding-bottom: 0 !important;
}

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    background: rgba(41, 171, 226, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(41, 171, 226, 0.2);
}

/* Título do Artigo */
.blog-content h3 {
    margin: 0 0 10px 0;
    line-height: 1.3;
    border: none !important;
}

.blog-content h3 a {
    font-family: 'Poppins', sans-serif; /* Certifique-se de importar a fonte no HTML */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-lightest);
    text-decoration: none !important;
    border: none !important;
    transition: color 0.3s;
    display: block; /* Garante que o link ocupe a linha correta */
}

.blog-item:hover .blog-content h3 a {
    color: var(--accent-cyan);
}

/* Resumo do Artigo */
.blog-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

/* Botão Ler Mais */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-lightest);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto; /* Empurra o botão um pouco se sobrar espaço, ou deixe fixo */
    width: fit-content;
}

.blog-read-more i {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--accent-cyan);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* Tablet (até 900px) */
@media (max-width: 900px) {
    .blog-item {
        padding: 20px;
        gap: 20px;
    }
    .blog-image {
        width: 240px;
        height: 160px;
    }
    .blog-content h3 a {
        font-size: 1.3rem;
    }
}

/* Mobile (até 767px) */
@media (max-width: 767px) {
    .blog-list-section {
        padding-top: 100px;
    }

    .blog-list {
        gap: 40px;
    }

    .blog-item {
        flex-direction: column; 
        align-items: stretch; /* No mobile volta a esticar */
        padding: 0;
        background: transparent;
        border: none;
        overflow: visible;
        box-shadow: none;
    }
    
    .blog-item:hover {
        transform: none;
        background: transparent;
        box-shadow: none;
    }

    .blog-image {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        margin-bottom: 15px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .blog-content {
        margin-top: 0; /* Remove ajuste de desktop */
        justify-content: flex-start;
        padding: 0 5px;
    }

    .blog-content p {
        -webkit-line-clamp: 4;
    }
    
    .blog-read-more {
        margin-top: 10px;
        padding: 10px 0;
    }
}