/* Career Roadmap Timeline Styles */
.timeline-container {
    max-width: 1200px;
    margin: 40px auto;
  }
 
article{z-index: 1080;}

  .timeline .modal-body {
    overflow-x: auto; /* Changed from scroll to auto for better user experience */
  }

.modal-body .field-content{
  display: flex;
  color: #3877a2;
}

.modal-content{
  background-color: #3877a2;
}

.modal-header{
  border-bottom: none;
}

.modal-title{
  color: #fad55b;
}

.field--name-field-next-possible-positions .field__item {
  border: 1px solid #3877a2;
  padding: 6px;
  margin: 12px 4px;
  border-radius: 8px;
}

.field--name-field-next-possible-positions .field__item:hover {
  background-color: #3877a2;
}

.field--name-field-next-possible-positions .field__item:hover > a {
  color:#fff;
}

/* Create a container for the roadmap items inside the modal */
.timeline-steps-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
  gap: 2em; /* Use gap for spacing between items */
  padding-bottom: 1em; /* Add some padding at the bottom */
}



/* Adjust timeline-step to work within the flex container */
.timeline-step {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 20px;
  /* border: 2px solid #ddd; */
  min-height: 300px;
  max-height: 600px;
  width: 460px;
  flex: 0 0 460px; /* Fixed width, don't grow or shrink */
  margin-bottom: 2em;
  margin-right: 2em;
  display: inline-grid;
  box-shadow: 0px 8px 8px 0px #2c261366;
}
  
.next-positions {
  overflow-y: auto;
}

  .block-field-blocknodecareer-categoryfield-category-image {
    margin-bottom: 2em;
}

.field.field--name-field-next-possible-positions {
  height: 250px;
}

a.roadmap-title {
  border: 1px solid;
  display: block;
  margin: 12px 0px;
  padding: 12px;
  border-radius: 12px;
}

.timeline .modal-body{overflow-x: scroll;}

.timeline .views-field-title{display: none;}

.step-number span.label {
  border: 1px solid #3877a2;
  padding: 0px 12px;
  border-radius: 50%;
  color: #fff;
  background-color: #3877a2;
  margin-right: 10px;
}

/* Remove arrow from the last roadmap item */
.timeline-step:last-child .arrow{
  display: none;
}

  .color-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background-color: #fad55b;
  }
  

  .step-content-wrapper {
    margin-top: 50px;
  }
  
  .step-number {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #3877a2;
    padding: 10px;
    display: inline-flex;
  }
  
  .step-title {
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
  }
  
  .step-content {
    color: #777;
    font-size: 13px;
    line-height: 1.5;
  }
  
  .arrow {
    position: absolute;
    right: -35px;
    top: 40%;
    transform: translateY(-42%);
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 35px solid;
    z-index: 90;
    border-left-color: #fad55b;
  }
  
  .field--name-field-job-position-title .field__label {
    display: none;
  }

  .field--name-field-requirements-to-advance {
    margin-bottom: 1em;
}


/* Mobile styles */
@media (max-width: 768px) {
  .timeline-steps-container {
    flex-direction: column; /* Stack vertically on mobile */
    width: 100%; /* Full width */
  }
  
  .modal-body .field-content{
    display: block;
  }

  .timeline-step {
    width: 100%; /* Full width on mobile */
    flex: none; /* Remove flex property */
    margin-bottom: 2em; /* Add spacing between items */
  }
  

  .field--name-field-job-position-title .field__item {
    font-size: medium;
  }
  

  /* Adjust arrow position for vertical layout on mobile */
  .arrow {
    position: absolute;
    top: auto; /* Reset top position */
    right: auto; /* Reset right position */
    bottom: -42px; /* Position at bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%) rotate(90deg); /* Rotate to point down */
  }
  
  /* Hide arrow on last item */
  .timeline-step:last-child .arrow {
    display: none;
  }
}