
/* ==============================
   PÁGINA DE ARTIGOS – POLE GUIDE LX
   ============================== */

/* HERO */
.pg-articles-hero {
    background-color: rgba(133, 39, 79, 0.1);
    padding: 60px 40px;
    text-align: center;
}

.pg-articles-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.pg-articles-hero h1 {
    font-size: 42px;
    color: #85274f;
    margin-bottom: 15px;
}

.pg-articles-hero p {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
}

/* INTRO */
.pg-articles-intro {
    max-width: 900px;
    margin: 40px auto 20px;
    padding: 0 40px;
    text-align: center;
}

.pg-articles-intro p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
}

/* GRID DE ARTIGOS */
.pg-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* CARD */
.pg-article-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pg-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTEÚDO */
.pg-article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pg-article-content h2 {
    font-size: 22px;
    color: #85274f;
    margin-bottom: 10px;
}

.pg-article-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

/* BOTÃO */
.pg-article-button {
    margin-top: 20px;
    align-self: flex-start;
    padding: 10px 22px;
    background-color: #85274f;
    color: #f1e8db;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.pg-article-button:hover {
    background-color: #6b1f40;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .pg-articles-hero {
        padding: 40px 20px;
    }

    .pg-articles-hero h1 {
        font-size: 34px;
    }

    .pg-articles-intro {
        padding: 0 20px;
    }

    .pg-articles-grid {
        padding: 20px;
        gap: 25px;
    }
}

/* ==============================
   PÁGINA INTERNA DE ARTIGOS – POLE GUIDE LX (Estilo do Artigo)
   ============================== */

/* Mantidos do código original */
.pg-articles-hero {
    background-color: rgba(133, 39, 79, 0.1);
    padding: 60px 40px;
    text-align: center;
}

.pg-articles-hero h1 {
    font-size: 42px;
    color: #85274f;
    margin-bottom: 15px;
}

.pg-article-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
}

/* 1. TÍTULO DO ARTIGO (h1) ALINHADO À ESQUERDA */
.pg-article-title {
    font-size: 40px;
    font-weight: 700;
    color: #85274f;
    margin-bottom: 30px;
    line-height: 1.2;
    border-bottom: 2px solid rgba(133, 39, 79, 0.2);
    padding-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* 2 & 3. IMAGEM FLUTUANTE e TEXTO FLUINDO AO LADO E POR BAIXO */
/* CORREÇÃO: Removido text-align: center; para manter o texto alinhado à esquerda. */
.pg-article-text {
    overflow: hidden;
    /* REMOVIDO: text-align: center; */
}

.pg-article-featured-image {
    display: none;
}

.pg-article-text img {
    float: left;
    width: 300px;
    max-height: 300px;
    margin: 0 30px 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block; 
    object-fit: cover;
}


/* 4. TÍTULOS h2 na cor bordô (CORRIGIDO: Sem clear: both) */
.pg-article-content h2 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #85274f;
}

/* Estilos de parágrafos e outros blocos de texto */
.pg-article-content p,
.pg-article-content ul,
.pg-article-content section {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: left; /* Garante que o texto volte para a esquerda */
}

.pg-article-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

/* O primeiro parágrafo do .pg-article-text */
.pg-article-text p:first-of-type {
    margin-top: 0;
}

/* BOTÃO CENTRALIZADO (CORRIGIDO: Usando display: block e margin: auto) */
.pg-article-button {
    margin-top: 40px;
    padding: 10px 22px;
    background-color: #85274f;
    color: #f1e8db;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
    
    /* Centralização: Transforma em bloco e usa margem auto */
    display: block; 
    width: fit-content; /* Ocupa apenas o espaço necessário */
    margin-left: auto;
    margin-right: auto;
    
    clear: both; /* Mantém o clear para garantir que o botão esteja abaixo de qualquer flutuação */
}

.pg-article-button:hover {
    background-color: #6b1f40;
}


/* 5. AVISO DE AFILIADOS DISCRETO */
.pg-article-footer {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.pg-article-footer p {
    font-size: 12px; 
    color: #999; 
    text-align: left;
    margin: 0;
    line-height: 1.4;
}

/* RESPONSIVIDADE (Ajustes para telas menores) */
@media (max-width: 768px) {
    /* Reduz o padding do container em dispositivos móveis */
    .pg-article-hero,
    .pg-article-container,
    .pg-article-footer {
        padding: 0 20px;
    }

    .pg-article-title {
        font-size: 34px;
        margin-bottom: 20px;
    }

    /* Desativa o float da imagem em dispositivos móveis */
    .pg-article-text img {
        float: none; 
        display: block;
        width: 100%; 
        max-width: 100%;
        height: auto;
        margin: 0 auto 20px; 
    }

    /* Garante que o texto volte a ocupar toda a largura e o h2 sem clear */
    .pg-article-text {
        overflow: visible; 
    }

    .pg-article-content h2 {
        clear: none;
    }
}

.amazon-button {
    padding: 5px 5px;
    background-color: #85274f;
    color: #f1e8db;
    border-radius: 8px;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.amazon-button:hover {
    background-color: #6b1f40;
}


  /* ===========================
   LINKS DE TEXTO (INLINE)
   =========================== */

.text-link {
    color: #85274f;            /* cor da marca */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #6b1f40;
}
