.containerhome {

  max-width: 1300px;
  margin: 0 auto;
  background-repeat: no-repeat;
  background-position: center;
    border-radius: 15px;

  background-image: url('../img/how/Twin-Flame-Matrimony-Info-BG.jpg');
  
  background-color: #fff7e2;
}
.logo-wrapper {
  text-align: center;
  margin-top: 30px;
  margin-bottom: -10px;
}

.logo-wrapper img {
  max-width: 140px;
}

.header-section {
  text-align: center;
  padding: 40px 20px;
  /*background-image: url('../img/how/TwinFlameLogo.svg');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  margin-bottom: 30px;
}

.header-section .overlay {
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
}

.layout-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.column {
  flex: 1 1 400px;
}

.middle-image-column {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: auto;
}

.middle-image-column img {
  max-width: 75%;
  height: auto;
}

.step {
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.step.reverse {
  /*flex-direction: row-reverse;*/
}

.step .image {
  flex: 0 0 113px;
}

.step .image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 102px;
}

.step .content {
  flex: 1;
  position: relative;
}

/* Standardize all left column steps */
.left-column .step .content,
.left-column .step.reverse .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Standardize all right column steps */
.right-column .step .content,
.right-column .step.reverse .content {
  display: flex;
  flex-direction: column;
  text-align: right;
}

/* Ensure same content alignment regardless of step type */
.left-column .step .content h4,
.left-column .step .content p,
.left-column .step.reverse .content h4,
.left-column .step.reverse .content p {
  margin-left: 0;
  margin-right: auto;
  text-align: center;
  width: 100%; /* Make h4 full width of content */
}

.right-column .step .content h4,
.right-column .step .content p,
.right-column .step.reverse .content h4,
.right-column .step.reverse .content p {
  margin-right: 0;
  text-align: center;
  width: 100%; /* Make h4 full width of content */
}

.step h4 {
  background-color: #f15a29;
  color: white;
  padding: 5px 10px;
  display: block; /* Changed from inline-block to block for full width */
  border-radius: 5px;
  font-size: 12px;
  margin: 0 0 10px 0;
  text-align: center;
  box-sizing: border-box; /* Include padding in width calculation */
}

.step p {
  width: 100%;
  font-size: 13px;
  margin-top: 5px;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .layout-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .middle-image-column {
    order: 3;
    margin-top: 20px;
  }

  .step.reverse {
    flex-direction: row;
  }
  
  .step .image {
    flex: 0 0 60px;
  }
  
  .step .image img {
    max-height: 60px;
  }

.content h4{
    font-size: 12px !important;
}
  /* Adjust alignment for mobile */
  .left-column .step .content,
  .right-column .step .content,
  .left-column .step.reverse .content,
  .right-column .step.reverse .content {
    align-items: flex-start;
    text-align: left;
  }
  
  /* Fix for mobile view */
  .right-column .step .content h4,
  .right-column .step .content p,
  .right-column .step.reverse .content h4,
  .right-column .step.reverse .content p {
    margin-left: 0;
    margin-right: auto;
    width: 100%;
  }
}
