/* Page Container */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.blog-main h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.blog-subheading {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #555;
}

/* Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Card container */
.template-card {
  background-color: white;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.template-card:hover {
  transform: translateY(-5px);
}

/* Inner image box mimicking blog style */
.template-thumbnail {
  width: 100%;
  max-width: 260px;
  height: 260px;
  background-color: #ccc;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

/* Caption below image */
.template-card p {
  margin-top: 16px;
  font-weight: 600;
  font-size: 1rem;
  color: #003f3f;
  text-align: center;
}

/* Change text color */
.blog-main {
  color: #fffffe;
}

.blog-subheading {
  color: #fffffe;
}
