/* General Reset */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Banner Section */
.banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  background-color: rgba(255, 0, 170, 0.411);
  padding: 1px 2px;
  border-radius: 5px;
  width: 90%;
  max-width: 600px;
}

.banner h1 {
  margin: 0;
  font-size: 30px;
}

.banner p {
  margin: 10px 0 0;
  font-size: 15px;
}

/* Recipes Section */
.recipe-section {
  padding: 2rem 1rem;
  text-align: center;
}

.recipe-section h2 {
  color: #ff9100;
  margin-bottom: 1.5rem;
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.recipe {
  display: flex;
  flex-direction: row;
  background: #f4f4f4;
  margin: 20px auto;
  padding: 1.25rem;
  border-radius: 10px;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  gap: 1.5rem;
}

/* Recipe Image Styling */
.recipe-image {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.recipe-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.recipe-content {
  flex: 2;
}

.recipe h3 {
  color: #333;
  margin-bottom: 0.75rem;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.recipe ul {
  padding: 0 0 0 1.25rem;
  list-style-type: square;
  margin-top: 0.75rem;
}

.recipe ul li {
  margin-bottom: 0.5rem;
}

.footer {
  text-align: center;
  padding: 1rem;
  background: #f4f4f4;
  color: #555;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .banner {
    height: 200px;
  }

  .banner-text {
    padding: 0.75rem 1rem;
  }

  .recipe {
    flex-direction: column;
    padding: 1rem;
  }

  .recipe-image {
    margin-right: 0;
    margin-bottom: 1rem;
    max-width: 100%;
  }

  .recipe-content {
    flex: 1;
  }
}

@media screen and (max-width: 480px) {
  .banner {
    height: 150px;
  }

  .recipe-section {
    padding: 1rem 0.5rem;
  }

  .recipe {
    margin: 1rem 0.5rem;
  }

  .recipe-image img {
    height: 150px;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
