/* Reset default margins and ensure smooth scrolling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff; /* Set entire page background to #f0f0f0 */
}

/*Header Box*/


.how-it-works {
  background-color: #ffffff; /* Matches page background */
  padding: 120px 30px; /* Increased padding for vertical space */
  text-align: center;
}


.how-it-works-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 4px solid #f4a261; /* changed here */
  padding: 40px 5px;
  font-weight: 400;
  border-radius: 15px;
  color: #f4a261;
  width: clamp(50px, 100%, 1000px);  /* fluid width with min & max */
  margin: 0px auto 0px auto;
  transition: transform 0.3s ease;
  font-size: clamp(.5rem, 3vw, 2.5rem);
  background-color: #e6e6e6;
}


.how-it-works-container:hover {
  transform: scale(1.02); /* Slight scale on hover */
}

.how-it-works-container h2 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px; /* Subtle spread for elegance */
}

/*Header box-end*/





/* HOW IT WORKS CONTENT SECTIONS */
.how-it-works-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 40px; /* More padding for space */
  gap: 100px; /* Larger gap to spread elements */
  max-width: 1400px; /* Wider container for desktop */
  margin: 0 auto;
  background-color: #ffffff; /* Matches page background */
}

.how-it-works-content + .how-it-works-content {
  margin-top: 100px; /* More spacing between steps */
}

.how-it-works-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 600px; /* Wider for text spread */
}

.step {
  font-size: 40px; /* Larger step number */
  font-weight: bold;
  color: #f4a261;
  background-color: #ffffff; /* Matches page background */
  width: 90px; /* Larger box */
  height: 90px;
  border: 5px solid #f4a261;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* More vertical space */
  transition: background-color 0.3s ease;
}

.step:hover {
  background-color: #f4a261;
  color: #fff; /* White text on hover */
}

.text {
  font-size: 22px; /* Larger for readability */
  font-weight: 600; /* Slightly lighter for elegance */
  color: #333;
  max-width: 600px; /* Wider for text spread */
  line-height: 2; /* Generous line height */
  padding: 0 30px; /* Horizontal padding */
  letter-spacing: 0.5px; /* Subtle text spread */
  margin: 0px auto 0px auto;
}

.how-it-works-right .image {
  width: 400px; /* Larger images */
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.how-it-works-right .image:hover {
  transform: scale(1.05); /* Subtle zoom on hover */
}


/* MOBILE STYLES */
@media (max-width: 850px) {
  .how-it-works-content {
    flex-direction: column;
    text-align: center;
    padding: 50px 20px;
    gap: 50px; /* Smaller gap for mobile */
  }

  .how-it-works-left {
    align-items: center;
    max-width: 95vw;
  }

  .text {
    font-size: 18px;
    max-width: 100%;
    padding: 0 15px;
  }

  .how-it-works-right .image {
    margin-top: 40px;
    width: 85%;
  }

  .step {
    width: 100px;
    height: 100px;
    font-size: 44px;
    margin-bottom: 30px;
  }
}


