/* How It Works Section Styles */

#how-it-works {
margin-top: -80px;
  position: relative;
}

/* Mindset Section Styles */
section#mindset {
  background: linear-gradient(to bottom, #55A7C2, #98E4F5) !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 40vh !important;
  height: auto !important;
}

.mindset-title {
  margin-top: 50px;
  font-size: 70px;
}

.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 80px 80px;
}



/* Basic variables */
.steps-container {
  --dot-size: 8px;
  --vertical-gap: 40px;
  position: relative;
  padding-top: 20px;
}

/* Horizontal line connecting all steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 235px;
  left: 180px;
  right: 180px;
  height: 1px;
  background-color: #333;
  z-index: 1;
  display: block !important;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  position: relative;
  z-index: 2;
}

.step-item .step-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #55a9c4;
  border-radius: 50%;
  top: 210px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 2px white;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 55px;
  background-color: #333;
  z-index: 1;
}



.step-circle {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #ffffff 49.9%, #f7f8fa 50%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 10px rgba(13, 95, 104, 0.15);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  overflow: hidden;
}


/* Vertical line from circle to dot */
.step-item .step-circle::after {
  content: '';
  position: absolute;
  bottom: -125px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 125px;
  background-color: #333;
  z-index: 1;
  display: block !important;
}

/* Dot at the end of the vertical line */
.step-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #55a9c4;
  border-radius: 50%;
  bottom: -125px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 2px white;
}

/* Blue dot at the end of vertical line */
.step-item .step-circle::before {
  content: '';
  width: 10px;
  height: 10px;
  background-color: #55a9c4;
  border-radius: 50%;
  position: absolute;
  bottom: -105px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 0 2px white;
  display: block !important;
}

.step-number {
  font-family: 'DimboRegular', sans-serif;
  font-size: 24px;
  font-weight: bold;
  color: #0d5f68;
  margin-top: 20px;
  margin-bottom: 10px;
}

.step-title {
  font-family: 'Dylan-Light', sans-serif;
  font-size: 16px;
  color: white;
  text-align: center;
  width: 190px;
  margin: 0 auto;
  padding: 10px 5px;
  background-color: #55a9c4;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  white-space: nowrap;
  overflow: hidden;
}

.step-title .title-part {
  display: inline-block;
  line-height: 1;
}

.step-title .ampersand {
  display: inline-block;
  font-size: 14px;
  margin: 0 3px;
}

.step-circle img {
  width: 80%;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.step-circle:hover img {
  transform: scale(1.1);
}


@media (max-width: 1199.98px) {
  .step-title {
    font-size: 12px;
    padding: 8px 5px;
    white-space: nowrap;
    width: 140px;
    min-width: 140px;
  }

} 




/* Responsive styles */
@media (max-width: 991.98px) {
  .steps-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .steps-container::before {
    display: block !important;
    top: 205px;
  }
  
  .step-item {
    width: 33.33%;
    margin-bottom: 40px;
  }
  
  .step-circle {
    width: 150px;
    height: 150px;
  }
  
  .step-circle img {
    width: 80%;
  }
  
  .step-circle::after,
  .step-circle::before {
    display: block;
  }
  .step-title {
    font-size: 14px;
    padding: 8px 5px;
    white-space: nowrap;
    width: 170px;
    min-width: 170px;
  }
  
  .step-title .ampersand {
    margin: 0 2px;
    font-size: 12px;
  }
  .steps-container::before {
    display: none !important;
  }
  
  .step-item::after {
    display: none !important;
  }
  
  .step-item .step-dot {
    display: none !important;
  }
}

@media (max-width: 767.98px) {

  
  .step-item {
    width: 50%;
  }
  
  .step-circle {
    width: 170px;
    height: 170px;
  }
  
  .step-circle img {
    width: 80%;
  }
  
  .step-number {
    font-size: 30px;
  }
  
  .step-title {
    font-size: 14px;
    padding: 8px 5px;
    white-space: nowrap;
    width: 170px;
    min-width: 170px;
  }
  
  .step-title .ampersand {
    margin: 0 2px;
    font-size: 12px;
  }
  .step-circle::after,
  .step-circle::before {
    display: none !important;
  }
  
  /* Hide horizontal line, vertical lines and dots in mobile */
  .steps-container::before {
    display: none !important;
  }
  
  .step-item::after {
    display: none !important;
  }
  
  .step-item .step-dot {
    display: none !important;
  }
}

@media (max-width: 575.98px) {

  #how-it-works {
    margin-top: 0px;
  }
  
  .step-item {
    width: 100%;
  }
  
  .step-circle img {
    width: 80%;
  }

  .mindset-title {
    margin-top: 40px;
    font-size: 50px;
  }
  
  .step-title {
    font-size: 16px;
    padding: 8px 5px;
    white-space: nowrap;
    width: 200px;
    min-width: 200px;
  }
  
  .step-title .ampersand {
    margin: 0 2px;
    font-size: 11px;
  }
  .step-circle::after,
  .step-circle::before {
    display: none !important;
  }
  
  /* Hide horizontal line, vertical lines and dots in smallest mobile */
  .steps-container::before {
    display: none !important;
  }
  
  .step-item::after {
    display: none !important;
  }
  
  .step-item .step-dot {
    display: none !important;
  }
}
