.career-path-block {
  padding: 4rem 3rem 10rem;
  margin: 0 auto !important;
  text-align: center;
	max-width:1250px !important;
}

.career-path-title {
	text-align:left;
	text-transform:uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
h2.career-path-title  {
	text-align:left;
		position: relative;
	width:auto;
  display: block;
  width:fit-content;
  color: #F36d24;
  text-decoration: none;
  background-image: linear-gradient(
    90deg,
    #00addc 0%,
    #692c8b 50%,
    #F36d24 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.career-path-line-wrapper {
  position: relative;
  width: 100%;
  max-width: 1175px;
  margin: 0 auto;
  height: 160px;
}

.career-path-svg {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow:visible;
  z-index: 0;
}

.career-path-line {
  position: relative;
  width: 100%;
  max-width: 100%;
  z-index: 1;
}

/* Step wrapper */
.career-step {
  position: absolute;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1;
  width: 100px;
}

/* Dot styles */
.career-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: white 5px solid;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  position: relative;
  cursor:pointer;
}

/* Label ABOVE the dot */
.career-label {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
	line-height:1.1;
  font-weight:500;
  white-space: normal; /* allow wrapping */
  max-width: 90px;      /* adjust this as needed */
  text-align: center;
  transition: transform 0.3s ease;
  transform-origin: bottom center;
  z-index: 3;
  opacity:1;
  cursor:pointer;
}

/* Hover effects */
.career-step:hover .career-dot {
  transform: scale(1.3);
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.3);
}

.career-step:hover .career-label {
  opacity:0;
  transform: translateX(-50%) scale(1.3);
	text-shadow: 5px 5px 3px rgba(0, 0, 0, 0.1);
  transition: all .2s;
}
.career-bubble {
  position: absolute;
  top: -180%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 1rem;
  z-index: 10;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease, box-shadow 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
  cursor:pointer;
  color: #fff; /* White text */
}

.career-step:hover .career-bubble {
  transform: translateX(-50%) scale(1);
	box-shadow: 4px 4px 9px rgba(0, 0, 0, 0.25);
  opacity: 1;
  pointer-events: auto;
}

.career-bubble .bubble-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-top: -.5rem;
  padding: 0.5rem;
}

.career-bubble strong {
  font-size: 1.3rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
      color: white;
}
.career-bubble p {
  margin:0;
  color:white;
}
/* Mobile responsive */
@media (max-width: 768px) {
  .career-path-block {
    padding: 4rem 3rem 15rem;}
  .career-path-line-wrapper {
    height: auto;
    min-height: 1060px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding: 2rem 2rem 4rem 0rem;
  }

  .career-path-svg {
    display: none; /* Hide the horizontal line */
  }

  .career-path-line {
    position: relative;
    width: 8px;
    background: linear-gradient(
      to bottom,
      #F36D24 0%,
      #D63F62 15%,
      #7D3D99 30%,
      #5B499A 45%,
      #1979B8 60%,
      #63C1B4 75%,
      #B6C65C 90%,
      #F6D749 100%
    );
    border-radius: 4px;
    margin: 0 auto;
    height: 1230px;
  }

  .career-step {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin: 7rem 0;
          margin-left: -63px;
    padding-right:.5rem;
  }

    .career-step.left {
      justify-content: center;
      flex-direction: row-reverse;
      text-align: right;
      padding-right: 2rem;
    }

    .career-step.right {
      justify-content: center;
      flex-direction: row;
      text-align: left;
      padding-left: 1.6rem;
    }
  .career-dot {
    position: absolute;
 left: 50%;
 transform: translateX(-50%);
    margin: 0;
    flex-shrink: 0;
  }

  .career-label {
    position: static;
    transform: none;
    opacity: 1;
    max-width: 120px;
    font-size: 1rem;
    line-height: 1.2;
    text-align: left;
  }

  .career-step:hover .career-label {
    opacity: 0;
  }

  .career-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.15);
    color: white;
    background-color: inherit;
    z-index: 10;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease, box-shadow .3s ease-in-out;
    opacity: 0;
    pointer-events: none;
  }

  .career-step:hover .career-bubble {
    transform: translate(-50%, -50%) scale(1);
	  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25);
    opacity: 1;
    pointer-events: auto;
  }

  .career-bubble .bubble-content {

    font-size: 0.75rem;
    line-height: 1.2;
  }

  .career-bubble strong {
    font-size: 1.1rem;
  }
  .career-step.left .career-label {
  margin-right: 6rem;
  text-align: right;
}
.career-step.left .career-bubble {
  margin-right: 0rem;
  text-align: center;
}
.career-step.right .career-label {
  margin-left: 6rem;
  text-align: left;
}
.career-step.right .career-bubble {
  margin-left: 0rem;
  text-align: center;
}
.career-dot:hover + .career-label {
  opacity: 0;
}

.career-dot:hover + .career-label + .career-bubble {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.career-step:nth-of-type(7) .career-label {
  margin-right:7rem;
}
.career-step:nth-of-type(8) .career-label {
  margin-left:8rem;
}
.career-step:nth-of-type(5) .career-label {
  margin-right:5rem;
}
.career-step:nth-of-type(2) .career-label {
  margin-left:5rem;
}
.career-step:nth-of-type(4) .career-label {
  margin-left:6.5rem;
}
}
