/* ================================
   HOW IT WORKS SECTION
   ================================ */

.instruction-section {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding-left: 60px;
  padding-right: 60px;
  padding-top: 80px;
  padding-bottom: 80px;
  box-sizing: border-box;
  justify-content: center;

}

/* LEFT IMAGE SIDE */



.ai-image-wrap {
  
  position: relative;
  width: 100%;
  max-width: 480px;
  min-width: 400px;
  align-self: center;
}

.ai-generated {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(42, 157, 143, 0.15);
}


.ori-img {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-color: white;
  border: 4px solid white;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}


.original-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* RIGHT CONTENT SIDE */

.instructions {
  
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.instruction-heading {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 42px;
  letter-spacing: -0.5px;
  color: rgb(19, 19, 20);
  margin-left: 50px;
  margin-bottom: 36px;
  /* text-align: center; */
}



/* STEPS */

.steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 50px;
  gap: 10px;
  
}

.step1, .step2, .step3, .step4 {
  display: inline-flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 24px;
}

.number {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #2a9d8f;
  letter-spacing: 1px;
  margin-right: 20px;
  padding-top: 2px;
  min-width: 20px;
}

.inst-text {
  display: inline-block;
  width: 380px;
  border-left: 1px solid #ebebeb;
  padding-left: 16px;
}

.inst-text-heading {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(19, 19, 20);
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.inst-text-exp {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #666;
  letter-spacing: 0.5px;
  line-height: 1.7;
}

/* BUTTON */

.instructions .generate-now-button {
  margin-top: 16px;
  /* margin-left: 50px; */
}

/* ================================
   HOW IT WORKS — MOBILE (Option B: stacked)
   ================================ */

/* ================================
   HOW IT WORKS — MOBILE (Option B: stacked)
   ================================ */

@media (max-width: 768px) {

  .instruction-section {
    flex-direction: column;
    padding: 48px 0px;
    gap: 80px;
    
  }

  /* IMAGE */

  .ai-image-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-width: 0px;
  }

  .ai-generated {
    border-radius: 0px;
  }

  .ori-img {
    width: 130px;
    height: 130px;
    bottom: -40px;
    left: 20px;
  }

  /* CONTENT */

  .instructions {
    width: 100%;
    padding-left: 35px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  .instruction-heading {
    font-size: 30px;
    margin-left: 0;
    margin-bottom: 35px;
    text-align: center;
  }

  .steps {
    margin-left: 0;
    
  }

  .inst-text {
    width: 100%;
    padding-left: 16px;
    box-sizing: border-box;
  }

  .inst-text-heading {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .inst-text-exp {
    font-size: 13px;
  }

  .instructions .generate-now-button {
    align-self: center;
  }

}
