/* Desktop: Grid layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* Individual blog post styling */
.blog-post {
  background: radial-gradient(circle at top left, #00C6FF , #e0f7fa, #90D5FF);
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  min-width: 300px;
}

.blog-post:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Image responsive */
.blog-post img {
  width: 100%;        /* Container width follow korbe */
  max-width: 360px;   /* Desktop e max width thakbe */
  height: auto;       /* Aspect ratio maintain */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.blog-post h5 {
  color: #00C6FF;
}

/* Mobile: Horizontal scroll */
@media (max-width: 768px) {
  .blog-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .blog-post {
    flex: 0 0 95%;       /* Card width mobile e boro hobe */
    scroll-snap-align: start;
    margin-right: 10px;
    min-width: auto;     /* Fixed min-width remove kora holo */
  }

  .blog-grid::-webkit-scrollbar {
    display: none;       /* Scrollbar hide */
  }

  .blog-title {
    margin-top: 60px;
  }

  .blog-post img {
    max-width: 100%;     /* Mobile e fully container fit */
  }
}
