/* blog.css */

/* --- Cabeçalho do Blog --- */
.section-heading h2 .destaque-bold {
    color: #cf2e2e;
    font-weight: 900;
}

/* --- Filtros e Busca --- */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-select, .search-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.search-group {
    display: flex;
    gap: 10px;
    flex: 2;
    min-width: 300px;
}

.search-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
}

.search-btn:hover { background: #cf2e2e; }

/* --- Grade de Posts --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Post de Destaque (Primeiro post) */
.post-card.destaque {
    grid-column: 1 / -1; /* Ocupa a largura toda */
    display: flex;
    flex-direction: row;
    background: #000;
    color: #fff;
}

.post-card.destaque .post-info { padding: 50px; }
.post-card.destaque .post-title a { color: #fff; font-size: 2.2rem; }
.post-card.destaque .post-category { background: #cf2e2e; color: #fff; }

/* Card Padrão */
.post-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.post-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* RESOLVE A DISTORÇÃO */
    transition: 0.5s;
}

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

.post-info { padding: 25px; }

.post-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #cf2e2e;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.post-title { margin-bottom: 15px; line-height: 1.3; }
.post-title a { color: #000; text-decoration: none; font-weight: 800; transition: 0.3s; }
.post-title a:hover { color: #cf2e2e; }

.post-meta { font-size: 0.85rem; color: #888; margin-bottom: 15px; }

.post-excerpt { color: #555; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }

.btn-read-more {
    font-weight: 700;
    color: #cf2e2e;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* --- Paginação --- */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-link {
    padding: 10px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    border: 1px solid #ddd;
}

.page-link:hover { background: #cf2e2e; color: #fff; border-color: #cf2e2e; }

/* Responsivo */
@media (max-width: 992px) {
    .post-card.destaque { flex-direction: column; }
    .post-card.destaque .post-image { height: 300px; }
}