/* Blog Header */
.blog-header {
    background: linear-gradient(to right, rgba(1, 7, 37, 0.9), rgba(0, 32, 101, 1));
    position: relative;
    overflow: hidden;
}



/* Blog Hero Section */
.blog-hero {
    padding: 140px 2rem 80px;
    text-align: center;
    position: relative;
}

/* Blog Main Content */
.blog-main {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.blog-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minman(350px, 1fr));
    gap: 3rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-posts h2 {
    font-size: 2rem;
    color: #1a2740;
    margin-bottom: 1rem;
    grid-column: 1 / -1;
    /* Faz o título ocupar toda a largura */
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colunas em telas grandes */
    gap: 2rem;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image {
    width: 100%;
    height: 250px;
    /* Ajustei um pouco para ficar melhor no grid */
    overflow: hidden;
}

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

.post-content {
    padding: 1.5rem;
    flex: 1;
    /* Faz o conteúdo ocupar o espaço disponível */
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.post-category {
    background: #00a86b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.post-date {
    color: #666;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #1a2740;
    margin-bottom: 0.75rem;
}

.post-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    /* Empurra o botão para baixo */
}

.read-more {
    color: #00a86b;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: #008c59;
    transform: translateX(5px);
}

.post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Recent Posts */
.recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: #1a2740;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.recent-posts a:hover {
    color: #00a86b;
}

.recent-posts span {
    color: #999;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        order: -1;
    }

    /* 2 colunas em tablets */
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding: 2rem 1rem;
    }

    /* 1 coluna em mobile */
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .post-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .main-nav-header {
        height: 70px;
    }

    .blog-hero {
        padding: 100px 1rem 60px;
    }

    .post-content h3 {
        font-size: 1.25rem;
    }
}