.category-section {
  margin-bottom: 70px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #222;
  border-left: 5px solid #e60023;
  padding-left: 10px;
}

.section-title a {
  text-decoration: none;
  color: inherit;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card bài viết */
.recipe-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.recipe-item .thumb {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 66%; /* Tỉ lệ 3:2 */
  overflow: hidden;
}

.recipe-item .thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-item:hover .thumb img {
  transform: scale(1.08);
}

/* Tiêu đề đè lên ảnh */
.recipe-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  transition: background 0.3s;
}

.recipe-item:hover .recipe-title {
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}

/* Responsive: tablet */
@media (max-width: 992px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .recipes-grid {
    grid-template-columns: 1fr;
  }
}
