/* ===== BLOG GERAL ===== */
.blog-main {
    background: #f4f4f4;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* ===== POSTS ===== */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-page-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #0a2a43;
}

.blog-subtitle {
    color: #555;
    margin-bottom: 25px;
    font-size: 16px;
}

/* ===== CARD DE POST ===== */
.post-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    gap: 15px;
}

.post-card:hover {
    transform: translateY(-3px);
}

/* Imagem */
.post-thumb {
    flex: 0 0 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    display: block;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Conteúdo */
.post-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-badge {
    background: #eaf4ff;
    color: #0056b3;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: inline-block;
}

.post-title {
    font-size: 20px;
    margin: 0 0 8px;
    color: #0a2a43;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    text-decoration: underline;
}

.post-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.post-excerpt {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}

.post-readmore {
    align-self: flex-start;
    font-weight: bold;
    font-size: 14px;
    color: #0056b3;
    text-decoration: none;
    transition: color 0.2s;
}

.post-readmore:hover {
    color: #003d80;
}

/* ===== SIDEBAR ===== */
.blog-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0a2a43;
}

.category-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-btn {
    display: block;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background: #0066cc;
    transition: background 0.2s, transform 0.2s;
}

.category-btn:hover {
    background: #004999;
    transform: scale(1.03);
}

.category-btn.active {
    background: #d4af37;
    color: #000;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .post-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .post-thumb {
        width: 100%;
        height: 180px;
    }

    .post-body {
        align-items: center;
    }

    .post-readmore {
        align-self: center;
    }
}
