/* blog.css */

.blog-section {
  background-color: #f9f9f9;
  padding: 60px 0;
}

.blog-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #111;
}

.blog-section p.lead {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
  font-size: 1.1rem;
}

.blog-card {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}

.blog-card p {
  flex: 1;
  color: #666;
  font-size: 0.95rem;
}

.btn-pixel-fx {
  display: inline-block;
  margin: 0 auto;
  background-color: #222;
  color: #fff;
  padding: 12px 28px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.btn-pixel-fx:hover {
  background-color: #000;
}

.pixel-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #fff;
  animation: sparkle 1s linear infinite;
}

.pixel-sparkle.p1 { top: 10%; left: 10%; animation-delay: 0s; }
.pixel-sparkle.p2 { top: 50%; left: 15%; animation-delay: 0.2s; }
.pixel-sparkle.p3 { top: 20%; left: 70%; animation-delay: 0.4s; }
.pixel-sparkle.p4 { top: 70%; left: 30%; animation-delay: 0.6s; }
.pixel-sparkle.p5 { top: 60%; left: 80%; animation-delay: 0.8s; }
.pixel-sparkle.p6 { top: 30%; left: 40%; animation-delay: 1s; }
.pixel-sparkle.p7 { top: 80%; left: 10%; animation-delay: 1.2s; }
.pixel-sparkle.p8 { top: 10%; left: 85%; animation-delay: 1.4s; }

@keyframes sparkle {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.5) translateY(-10px); }
}

@media (max-width: 768px) {
  .blog-card img {
    height: 180px;
  }

  .blog-section h2 {
    font-size: 2rem;
  }

  .btn-pixel-fx {
    padding: 10px 22px;
  }
}
