/**
 * Correções de Espaçamento Móvel para Notícias Relacionadas
 * Arquivo adicional para garantir espaçamento adequado em dispositivos móveis
 */

/* Correção principal para espaçamento móvel */
@media (max-width: 768px) {
    /* Garantir espaçamento adequado antes da seção de notícias relacionadas */
    .pixwell-related-posts {
        margin-top: 20px !important;
        padding-top: 10px !important;
        border-top: none;
        position: relative;
    }
    
    /* Remover separação visual clara */
    .pixwell-related-posts::before {
        content: "";
        display: none;
    }
    
    /* Melhorar o título da seção */
    .related-posts-title {
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* Garantir que elementos anteriores não sobreponham */
    .post-content,
    .post-meta,
    .post-author,
    .post-share,
    .social-share {
        margin-bottom: 20px;
        position: relative;
        z-index: 1;
    }
}

/* Ajustes para telas pequenas (smartphones) */
@media (max-width: 480px) {
    .pixwell-related-posts {
        margin-top: 15px !important;
        padding-top: 10px !important;
    }
    
    .related-posts-title {
        font-size: 16px;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    
    /* Espaçamento entre itens de notícias relacionadas */
    .related-post-item {
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        background: #fafafa;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .pixwell-related-posts {
        margin-top: 10px !important;
        padding-top: 5px !important;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .related-posts-title {
        font-size: 14px;
        text-align: center;
    }
    
    .related-post-item {
        margin-bottom: 8px;
        padding: 8px;
    }
}

/* Correção para evitar conflitos com outros elementos */
.pixwell-related-posts {
    clear: both;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Garantir que o conteúdo principal tenha espaçamento adequado */
.post-content p:last-child,
.post-content div:last-child {
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .post-content p:last-child,
    .post-content div:last-child {
        margin-bottom: 60px;
    }
}

/* Melhorar a aparência geral em mobile */
@media (max-width: 768px) {
    .related-post-thumbnail {
        border-radius: 6px;
        overflow: hidden;
    }
    
    .related-post-title a {
        line-height: 1.4;
        display: block;
    }
    
    .related-post-content {
        padding: 12px 15px;
    }
}

