/* Estilos gerais do blog */
.blog-container {
  max-width: 1200px;
  margin: 80px auto 40px;
  padding: 0 20px;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
}

.blog-header h1 {
  color: #004aad;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.blog-header p {
  color: #666;
  font-size: 1.2rem;
}

/* Grid de posts */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card do post */
.post-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-content {
  padding: 20px;
}

.post-category {
  background: #007bff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 10px;
}

.post-title {
  color: #333;
  font-size: 1.4rem;
  margin: 10px 0;
  line-height: 1.4;
}

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

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.read-more {
  background: linear-gradient(45deg, #004aad, #007bff);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: linear-gradient(45deg, #003087, #005bb5);
}

/* Posts em destaque */
.featured-posts {
  margin-bottom: 50px;
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-post-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.featured-post-content {
  padding: 30px;
}

.featured-post-title {
  font-size: 1.8rem;
  color: #333;
  margin: 15px 0;
}

/* Filtros e Pesquisa */
.blog-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.search-box {
  flex: 1;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category-filter {
  padding: 8px 15px;
  border: 1px solid #007bff;
  border-radius: 20px;
  color: #007bff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
  background: #007bff;
  color: #fff;
}

/* Responsivo */
@media (max-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .featured-post-image {
    height: 200px;
  }
  
  .blog-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .blog-container {
    margin-top: 60px;
  }
}