* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

header {
  text-align: center;
  padding: 20px;
  background-color: #ff7043;
  color: white;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2rem;
}

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards per row on large screens */
  gap: 20px;
  padding: 20px;
}

.recipe-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 2px solid #ddd;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.recipe-card:hover {
  transform: scale(1.03);
}

.recipe-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.recipe-card h2 {
  font-size: 1.3rem;
  margin: 10px;
  text-align: center;
}

.disc {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.recipe-card ul {
  margin: 10px 0;
  padding-left: 20px;
  list-style: disc;
}

.recipe-card p {
  font-weight: bold;
  margin: 10px;
  color: #ff7043;
  text-align: center;
}

.disc span {
  line-height: 1.3;
}

span h3 {
  margin-bottom: 0.6rem;
  text-align: center;
}

/* Footer */
.footer {
  width: 100%;
  background-color: #ff7043;
  margin-top: 2rem;
  padding: 15px 0;
  text-align: center;
}

.footer ul {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.footer ul li {
  list-style: none;
}

.footer ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/* Responsive: On tablets, 2 cards per row */
@media (max-width: 992px) {
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  header h1 {
    font-size: 1.8rem;
  }

  .recipe-card img {
    height: 220px;
  }
}

/* On mobile, 1 card per row */
@media (max-width: 600px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .recipe-card img {
    height: 200px;
  }

  .recipe-card h2 {
    font-size: 1.1rem;
  }

  .footer ul {
    flex-direction: column;
    gap: 10px;
  }
}
