/* Variáveis CSS */
:root {
    --primary-color: #a41e36;
    --secondary-color: #c42847;
}

/* Estilos globais para artigos do blog */
.article {
    background: #f8f9fa;
    padding: 80px 0;
}

/* Estilos para o cabeçalho principal do blog */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    color: white !important;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-hero p {
    color: rgba(255,255,255,0.95) !important;
    font-size: 1.2rem;
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.article-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    margin: 0 auto 3rem;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(164, 30, 54, 0.3);
}

.article-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.article-meta i {
    color: rgba(255,255,255,0.8);
    margin-right: 0.5rem;
}

.article-lead {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Estilos para Call to Action */
.article-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 50px auto 40px;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(164, 30, 54, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.article-cta.animate-in {
    animation: slideInUp 0.8s ease forwards;
}

.article-cta h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.article-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Estilos para Artigos Relacionados */
.related-articles {
    margin: 50px auto 0;
    max-width: 800px;
    padding: 0 20px;
}

.related-articles h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.related-articles h3.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.related-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(30px);
}

.related-item.animate-in {
    animation: slideInUp 0.7s ease forwards;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(164, 30, 54, 0.15);
    border-color: var(--primary-color);
}

.related-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.related-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Animações de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .article-header {
        padding: 40px 20px;
        margin: 0 1rem 2rem;
    }
    
    .article-header h1 {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-lead {
        font-size: 1.1rem;
    }
    
    .article-cta {
        margin: 40px 20px 30px;
        padding: 30px 20px;
    }
    
    .article-cta h3 {
        font-size: 1.5rem;
    }
    
    .article-cta p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .related-articles {
        padding: 0 15px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .article-header {
        padding: 30px 15px;
    }
    
    .article-header h1 {
        font-size: 1.6rem;
    }
    
    .article-meta {
        font-size: 0.85rem;
    }
    
    .article-lead {
        font-size: 1rem;
    }
}

/* Botão Voltar ao Blog */
.back-to-blog {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #eee;
}

.back-to-blog .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-blog .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.back-to-blog .btn i {
    transition: transform 0.3s ease;
}

.back-to-blog .btn:hover i {
    transform: translateX(-3px);
}