.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 0 auto;
  max-width: 1100px;
}
.blog-boxs {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.08);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  will-change: transform;
  transform-origin: center center; /* Ensure scaling from center */
  /* Optional: force min-width to prevent shrinking */
  min-width: 0;
  z-index: 0; /* Base z-index */
}

.blog-boxs:hover {
  box-shadow: 0 8px 32px 0 rgba(230, 57, 70, 0.18);
  transform: translateY(-6px) scale(1.03);
  border-color: #e63946;
  z-index: 10; /* Make sure hovered card is on top */
}

.blog-img-wrap {
  position: relative;
  width: 100%;
  height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.blog-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  padding: 4px 14px;
  border-radius: 6px;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 2px 8px 0 rgba(34, 34, 34, 0.08);
}
.blog-label-marketing {
  background: #222;
}
.blog-label-courses {
  background: #e63946;
}
.blog-title {
  font-family: "Sora", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #222;
  padding: 18px 18px 22px 18px;
  line-height: 1.3;
  min-height: 60px;
  transition: color 0.2s;
}
.blog-boxs:hover .blog-title {
  color: #e63946;
}
@media (max-width: 600px) {
  .blog-img-wrap {
    height: 120px;
  }
  .blog-title {
    font-size: 0.98rem;
    padding: 12px 10px 16px 10px;
  }
  .blog-grid {
    gap: 18px;
  }
}
