/* Workflow item hover to trigger background animation */

/* .workflow-item:hover .background-animation,
.recommendation-item:hover .background-animation {
  opacity: 1; /* Show background animation */
/* } */

/* .workflow-item:hover,
.recommendation-item:hover {
  color: #f60 !important; /* Change text color on hover */
/* }  */
.recommendation-item, .workflow-item {
  position: relative;
  display: inline-block;
}

.recommendation-item::before, .workflow-item:before {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  width: 332px;
  left: -16px;
  z-index: 1;
  top: -16px;
  height: 97px;
  border-radius: 8px;
}

.recommendation-item:hover::before, .workflow-item:hover::before {
  border-color: #f60;
}

.workflow-item a,
.recommendation-item a {
  text-decoration: none !important; /* Remove underline */
}

.recommendation-text {
  text-decoration: none !important; /* Remove underline */
}

.workflow-right a,
.recommendation-text a {
  text-decoration: none !important; /* Remove underline */
}

.workflow-right a:hover {
  text-decoration: none !important; /* Ensure no underline on hover */
}

.workflow-left a:hover,
.recommendation-item a:hover {
  text-decoration: none !important; /* Ensure no underline on hover */
}

.workflow-item a,
.recommendation-item a {
  text-decoration: none !important; /* Remove underline */
}

.workflow-item a:hover,
.recommendation-item a:hover {
  text-decoration: none; /* Ensure no underline on hover */
}
.workflow-item {
  position: relative;
}

.workflow-item .background-animation {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.workflow-item.true .background-animation {
  opacity: 1;
}

.workflow-item.true,
.workflow-item.true .text p {
  color: #f60 !important;
  transition: all 0.3s ease-in-out;
}

/* Recommendation item hover to trigger background animation */
.recommendation-item {
  position: relative;
}

.recommendation-item .background-animation {
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

.recommendation-item.true .background-animation {
  opacity: 1;
}

.workflow-item.true p,
.recommendation-item.true p {
  color: #f60 !important;
  transition: all 0.3s ease-in-out;
}

/* Container styling */
.workflow-container {
  display: flex;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  justify-content: center;
  gap: 145px;
}

/* Left side with intake-icons and text */
.workflow-left {
  display: flex;
  flex-direction: column;
  gap: 91px;
  margin-top: -27px;
}

.horizontal-bar {
  background-color: #313199;
  height: 3px;
  position: absolute;
  right: -70px;
  top: 50%;
  width: 69px;
}

.horizontal-bar-right {
  background-color: #313199;
  height: 3px;
  position: absolute;
  left: -70px;
  top: 50%;
  width: 69px;
}

.workflow-item {
  display: flex;
  gap: 15px;
  position: relative;
  width: 270px;
  align-items: center;
  justify-content: flex-end;
}

.intake-icon {
  width: 45px;
  height: 45px;
}

.intake-icon img {
  width: 45px;
  border: 1px solid black;
  border-radius: 100%;
  max-width: fit-content;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.text strong {
  color: var(--Luma-Blurple, #313199);
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%; /* 28.8px */
}

.text p {
  color: var(--Luma-Blurple, #313199);
  text-align: right;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 160%; /* 22.4px */
  transition: all 0.3s ease-in-out;
}

/* Connector with Balls */
.workflow-connector {
  width: 3px;
  background-color: #313199;
  position: absolute;
  height: calc(100% - 65px); /* Adjust based on content */
  z-index: -1;
  left: 50%; /* Center it */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.connector-ball-right {
  width: 12px;
  height: 12px;
  background-color: #313199;
  border-radius: 50%;
  position: absolute;
  left: -77px;
}
.connector-ball-left {
  width: 12px;
  height: 12px;
  background-color: #313199;
  border-radius: 50%;
  position: absolute;
  right: -80px;
}

/* Right side with recommendations */
.workflow-right {
  display: flex;
  flex-direction: column;
  gap: 90px;
  margin-top: 47px;
}

.recommendation-item {
  display: flex;
  gap: 15px;
  position: relative;
  width: 275px;
  align-items: center;
  justify-content: flex-start;
}

.recommendation-item.highlighted {
  background-color: rgba(255, 194, 77, 0.4);
}

.background-animation {
  background-color: #fff3eb;
  position: absolute;
  top: 0;
  width: 332px;
  left: -16px;
  z-index: -1;
  top: -16px;
  height: 100%;
  height: 97px;
  border-radius: 8px;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
}

.recommendation-text strong {
  color: var(--Luma-Blurple, #313199);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 160%;
}

.recommendation-text p {
  color: var(--Luma-Blurple, #313199);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 160%; /* 22.4px */
}

@media (max-width: 768px) {
  
  .recommendation-item::before, .workflow-item:before{
    width: auto;
  }
  
  .workflow-container {
    gap: 70px;
  }

  .workflow-left {
    margin-top: -30px;
  }

  .workflow-right {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 47px;
  }
  .horizontal-bar {
    background-color: #313199;
    height: 3px;
    position: absolute;
    right: -37px;
    top: 50%;
    width: 38px;
  }

  .connector-ball-right {
    width: 12px;
    height: 12px;
    background-color: #313199;
    border-radius: 50%;
    position: absolute;
    left: -41px;
  }

  .horizontal-bar-right {
    left: -34px;
    width: 37px;
  }
  .connector-ball-left {
    right: -42px !important;
  }

  .workflow-item {
    width: 150px;
  }
  .recommendation-item {
    width: 150px;
  }

  .background-animation {
    display: none;
    visibility: hidden;
  }

  .recommendation-text p {
    font-size: 12px !important;
  }

  .text p {
    font-size: 12px !important;
  }

  .text strong {
    font-size: 14px !important;
  }

  .recommendation-text strong {
    font-size: 14px !important;
  }

  .last-item {
    margin-bottom: -10px !important;
  }
}
