/* recipes.css */

/* Wrapper for each recipe block */
.grid-item.span-4 .recipe-block {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 40px;
  background: #fff;
}

/* Recipe title (main heading) */
.grid-item.span-4 .recipe-block h2 {
  margin-bottom: 10px;
  color: #000; /* black for main headings */
}

/* Subheadings (Ingredients, Directions, Tips) */
.grid-item.span-4 .recipe-block h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  color: #000; /* black for subheadings */
}

/* Metadata (time, servings) */
.grid-item.span-4 .recipe-meta {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 15px;
}

/* Two-column layout for ingredients and photo */
.grid-item.span-4 .grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch; /* keeps both columns equal height */
  margin-bottom: 20px;
}

/* Image column wrapper */
.grid-item.span-4 .grid-two-col .image-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* pins image to bottom in desktop view */
}

/* Ingredient list styling */
.grid-item.span-4 .grid-two-col ul {
  margin: 0;
  padding-left: 18px;
}

/* Recipe image */
.grid-item.span-4 .grid-two-col .image-col img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* Directions */
.grid-item.span-4 .recipe-block ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

/* Tips box */
.grid-item.span-4 .extra-tips {
  margin-top: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-left: 4px solid #0066cc; /* blue accent */
  border-radius: 4px;
}

/* Links inside recipe blocks */
.grid-item.span-4 .recipe-block a {
  color: #0066cc; /* blue accent */
  text-decoration: none;
}

.grid-item.span-4 .recipe-block a:hover {
  text-decoration: underline;
  color: #004c99; /* darker blue on hover */
}

/* Responsive stack */
@media (max-width: 768px) {
  .grid-item.span-4 .grid-two-col {
    grid-template-columns: 1fr; /* stack on mobile */
  }
  .grid-item.span-4 .grid-two-col .image-col {
    justify-content: flex-start; /* image flows directly under ingredients */
    margin-top: 12px;            /* small spacing under ingredients */
  }
}