/* =================================================================== */
/* ESTILOS DA P�GINA DE BLOG                                         */
/* =================================================================== */

:root {
    --primary-red: #d62828;
    --primary-red-light: #ff4444;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --text-gray: #cccccc;
}

/* =================================================================== */
/* HERO SECTION                                                       */
/* =================================================================== */

.blog-hero {
    min-height: 70vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(214, 40, 40, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(214, 40, 40, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(214, 40, 40, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(214, 40, 40, 0.15);
    border: 1px solid rgba(214, 40, 40, 0.3);
    border-radius: 50px;
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(214, 40, 40, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(214, 40, 40, 0.5);
    border-radius: 50%;
    color: var(--primary-red);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.scroll-indicator a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =================================================================== */
/* BLOG SECTION                                                       */
/* =================================================================== */

.blog-section {
    background: var(--dark-bg-primary);
    padding: 5rem 0;
    min-height: 50vh;
}

/* Blog Card Link - Garantir altura igual */
.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.blog-card-link:focus {
    outline: none;
}

/* Blog Card - Altura fixa e estrutura flexbox */
.blog-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-link:hover .blog-card,
.blog-card-link:focus .blog-card {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(214, 40, 40, 0.1);
    border-color: rgba(214, 40, 40, 0.4);
}

/* Blog Card Image - Altura fixa */
.blog-card-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 220px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-link:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: var(--primary-red);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Blog Card Content - Flexbox para distribuir espa�o */
.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-card-meta i {
    color: var(--primary-red);
}

/* T�tulo com altura fixa (2 linhas) */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 3.5rem; /* Altura fixa para 2 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

/* Resumo com altura fixa (3 linhas) */
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    height: 4.8rem; /* Altura fixa para 3 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Link "Leia Mais" sempre no final */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: auto;
    flex-shrink: 0;
}

.blog-read-more i {
    transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-read-more {
    color: var(--primary-red-light);
}

.blog-card-link:hover .blog-read-more i {
    transform: translateX(5px);
}

/* Featured Blog Card */
.blog-card-featured {
    border-color: rgba(255, 193, 7, 0.3);
}

.blog-card-featured:hover {
    border-color: rgba(255, 193, 7, 0.6);
}

/* =================================================================== */
/* CTA SECTION                                                        */
/* =================================================================== */

.cta-section {
    background: var(--dark-bg);
    padding: 5rem 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.15) 0%, rgba(214, 40, 40, 0.05) 100%);
    border: 1px solid rgba(214, 40, 40, 0.3);
    border-radius: 24px;
    padding: 3.5rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-red);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(214, 40, 40, 0.4);
}

.cta-btn:hover {
    background: var(--primary-red-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(214, 40, 40, 0.5);
}

.cta-btn i {
    transition: transform 0.3s ease;
}

.cta-btn:hover i {
    transform: translateX(5px);
}

/* =================================================================== */
/* RESPONSIVE                                                         */
/* =================================================================== */

@media (max-width: 991px) {
    .blog-hero {
        min-height: 60vh;
        padding: 140px 0 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .blog-section {
        padding: 4rem 0;
    }
    
    .cta-card {
        padding: 2.5rem;
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .blog-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .blog-section {
        padding: 3rem 0;
    }
    
    /* Ajuste de alturas para mobile */
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
        height: 3.1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
        height: 4.3rem;
        -webkit-line-clamp: 3;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-stats .stat-item {
        min-width: 80px;
    }
    
    .blog-card-meta {
        gap: 1rem;
    }
    
    .blog-card-meta span {
        font-size: 0.8rem;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}