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

body {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fffdf8;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Header Menu ===== */
.header {
  background-color: #fff2d5; /* Sets the background color inside the header */
  padding: 10px 20px;
  display: flex;
  justify-content: space-between; /* Aligns logo and menu items */
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  text-decoration: none;
}

.logo img {
  max-width: 100px; /* Adjust size of the logo */
  height: auto;
}

.header-menu ul {
  list-style: none;
  display: flex; /* Makes the menu horizontal */
  gap: 20px; /* Adds spacing between menu items */
  margin: 0;
  padding: 0;
}

.header-menu li {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem; /* Smaller size for the menu */
  font-weight: 600;
}

.header-menu a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.header-menu a:hover {
  color: #f4a261; /* Adds hover effect for interactivity */
}

/* ===== Hero Section ===== */
.hero {
  background: #fff2d5;
  padding: 4rem 1rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-container {
  width: 100%; /* Makes the container span the full width */
  margin: 0 auto; /* Centers the content horizontally */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px; /* Reduces the padding to make it less tall */
  height: 300px; /* Sets a fixed height to reduce its vertical size */
  background-color: #fff2d5; /* Background color for the hero container */
}

.hero-text {
  max-width: 50%;
}

.hero-text h1 {
  font-family: 'Nunito', sans-serif; /* Matches the mockup font */
  font-size: 3rem; /* Adjusted size to match the mockup */
  font-weight: 700; /* Bold text for emphasis */
  color: #333; /* Dark color for readability */
  margin-bottom: 1rem;
}

.hero-text p {
  font-family: 'Quicksand', sans-serif; /* Matches the mockup font */
  font-size: 1.2rem; /* Slightly smaller for supporting text */
  font-weight: 400; /* Regular weight for body text */
  color: #666; /* Lighter color for contrast */
  margin-bottom: 1.5rem;
}

.btn-primary {
  font-family: 'Quicksand', sans-serif; /* Matches the mockup font */
  font-size: 1rem; /* Button text size */
  font-weight: 600; /* Semi-bold for visibility */
  display: inline-block;
  background-color: #f4a261; /* Button color from the mockup */
  color: #fff; /* White text for contrast */
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #e68500;
}

.btn-primary img {
  margin-left: 0.6rem;
  width: 1.1rem;
  height: 1.1rem;
}

.hero-image {
  max-width: 50%;
}

.hero-image img {
  max-width: 80%; /* Increases the size of the hero image */
  height: auto; /* Maintains aspect ratio */
  margin: 0 auto; /* Centers the image */
}

.header-curve {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -5px;
  background-color: #fff2d5; /* Ensures the curve matches the hero background */
}

.how-it-works {
  margin-top: 50px; /* Adds spacing above the section */
  padding-top: 40px; /* Reduces the top padding */
  padding: 40px 20px;
  text-align: center;
}

.how-it-works h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1f2d3d;
  position: relative;
}

.how-it-works h2::before {
  content: "How it Works";
  font-size: 1rem;
  background-color: #d8f4f1;
  color: #00303f;
  font-weight: 600;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-family: 'Quicksand', sans-serif;
  margin-bottom: 1rem;
  text-align: center;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center; /* Centers images and text vertically */
  gap: 20px; /* Adds spacing between steps */
  flex-wrap: wrap; /* Ensures proper wrapping on smaller screens */
}

.step {
  text-align: center; /* Centers text below the image */
  max-width: 300px; /* Ensures consistent width for each step */
  margin: auto; /* Centers each step horizontally */
}

.step img {
  display: block; /* Ensures the image is treated as a block element */
  margin: 0 auto 10px; /* Centers the image and adds spacing below it */
  max-width: 100px; /* Ensures consistent image size */
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.step p {
  font-size: 1rem;
  margin: 0;
}

.center-button {
  text-align: center;
  margin-top: 3rem;
}

.how-it-works .btn-primary {
  background: #00bfa6;
}

.how-it-works .btn-primary:hover {
  background: #009c89;
}

/* ===== Featured Books Section ===== */
.featured-books {
  padding: 40px 20px;
  text-align: center;
}

.featured-books h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 2rem;
}

.books {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.book {
  text-align: center; /* Centers the text below the image */
  max-width: 250px; /* Ensures consistent width for each book */
  margin: auto; /* Centers each book horizontally */
}

.book img {
  display: block; /* Ensures the image is treated as a block element */
  margin: 0 auto; /* Centers the image horizontally */
  max-width: 150px; /* Ensures consistent image size */
  height: auto;
}

.book h3 {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #333;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  background-color: #f9f3e9;
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background-color: #fff2d5; /* Sets the background color for mobile screens */
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-image {
    max-width: 80%;
  }

  .steps {
    flex-direction: column;
  }

  .books {
    flex-direction: column;
  }

  .book img {
    max-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn-primary {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .step img {
    max-width: 80px;
  }

  .book img {
    max-width: 100px;
  }
}
/* ===== How It Works Page Specific Enhancements ===== */

.how-it-works-page {
  background-color: #fffdf8;
  padding: 60px 20px 80px;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.how-it-works-page h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2d3d;
  margin-bottom: 2rem;
}

.how-it-works-page h2.section-label {
  font-size: 1rem;
  background-color: #d8f4f1;
  color: #00303f;
  font-weight: 600;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-family: 'Quicksand', sans-serif;
  margin-bottom: 1.5rem;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step-row img {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.step-row .step-content {
  flex: 1;
}

.step-row .step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2d3d;
}

.step-row .step-content p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.note {
  font-size: 0.95rem;
  color: #444;
  margin-top: 30px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .how-it-works-page h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .step-row {
    flex-direction: column;
    text-align: center;
  }

  .step-row .step-content {
    text-align: center;
  }
}

.step-vertical {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.step-row img {
  max-width: 80px;
  flex-shrink: 0;
}

.step-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #001f3f;
}

.step-text p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

