/* Seção do Blog na Home */
#blog-home {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

#blog-home h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

#blog-home .section-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

/* Grid de cards */
#blog-home .row {
  justify-content: center;
}

.card-blog {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.card-blog img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-blog .card-body {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
}

.card-blog .card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.card-blog .card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* Botão com efeito do hero */
#blog-home .btn-pixel-fx {
  margin-top: 40px;
  display: inline-block;
  padding: 12px 28px;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: background 0.3s ease;
}

#blog-home .btn-pixel-fx:hover {
  background-color: #333;
}

.pixel-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: sparkle 1.5s infinite ease-in-out;
  opacity: 0;
}

.pixel-sparkle.p1 { top: 10%; left: 20%; animation-delay: 0s; }
.pixel-sparkle.p2 { top: 40%; left: 80%; animation-delay: 0.3s; }
.pixel-sparkle.p3 { top: 70%; left: 50%; animation-delay: 0.6s; }
.pixel-sparkle.p4 { top: 20%; left: 60%; animation-delay: 0.9s; }
.pixel-sparkle.p5 { top: 60%; left: 30%; animation-delay: 1.2s; }
.pixel-sparkle.p6 { top: 80%; left: 10%; animation-delay: 1.5s; }
.pixel-sparkle.p7 { top: 30%; left: 90%; animation-delay: 1.8s; }
.pixel-sparkle.p8 { top: 50%; left: 70%; animation-delay: 2.1s; }

@keyframes sparkle {
  0%, 100% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.5); opacity: 1; }
}
