/* Blog Specific Styles */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #361ECA 0%, #5B2C87 50%, #7B3F98 100%);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.3rem;
    color: #E8E8FF;
    margin-bottom: 0;
    font-weight: 300;
}

/* Blog Content Section */
.blog-content {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Blog Card Styles */
.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(54, 30, 202, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border: 1px solid rgba(54, 30, 202, 0.1);
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(54, 30, 202, 0.2);
    border-color: rgba(54, 30, 202, 0.3);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #361ECA 0%, #5B2C87 100%);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.blog-info {
    padding: 30px;
}

.blog-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2D1B69;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.btn-blog {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #361ECA, #5B2C87);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(54, 30, 202, 0.3);
}

.btn-blog:hover {
    background: linear-gradient(135deg, #2D1B69, #4A2574);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 30, 202, 0.4);
}

.btn-blog:active {
    transform: translateY(0);
}

/* Navigation Active State */
nav ul li a.active {
    color: #ffffff; /* Garante que o texto seja branco */
    font-weight: 600;
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #361ECA, #5B2C87);
    border-radius: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1.1rem;
    }
    
    .blog-content {
        padding: 60px 0;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
    }
    
    .blog-card {
        margin: 0 20px;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .blog-info {
        padding: 25px;
    }
    
    .blog-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-card {
        margin: 0 10px;
    }
    
    .blog-info {
        padding: 20px;
    }
}

/* Animation for blog cards on scroll */
.blog-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.blog-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation for images */
.blog-image img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-image img.loaded {
    opacity: 1;
}

/* Hover effects for better interactivity */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(54, 30, 202, 0.05), rgba(91, 44, 135, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    pointer-events: none;
}

.blog-card:hover::before {
    opacity: 1;
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
.btn-blog:focus {
    outline: 2px solid #361ECA;
    outline-offset: 2px;
}

.blog-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(54, 30, 202, 0.15);
}

