/* Journey: "Your Journey" steps and the three journey detail panels (#journey) */

.YourJourney-cta::after {
  content: "Coming soon";
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.YourJourney-cta::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.YourJourney-cta:hover::after,
.YourJourney-cta:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Journey Section */
.YourJourney-section {
  border-radius: 0;
  padding-top: 150px;
}

.YourJourney-position-outer-container {
  position: relative;
}

.YourJourney-container {
  display: flex;
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
  margin-left: 70px;
  margin-bottom: 0;
}

.YourJourney-leftbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* wider where the screen has room: the circles move right until the first lines up with the pillar
     cards (441px) or the last reaches the 70px page margin (100vw - 1033px), never below 330px */
  width: clamp(330px, calc(100vw - 1033px), 441px);
  margin-top: 10px;
  font-weight: 400;
  z-index: 20;
  /* Ensures the left box is above the journey-1-content */
}

.YourJourney-title {
  color: var(--color-gray-700);
  font-size: 40px;
  width: 241px;
  font-weight: 400;
  margin-top: 1rem;
}

.YourJourney-title-bold {
  font-weight: 600;
}

.YourJourney-description {
  color: var(--color-gray-900);
  font-size: 16px;
  align-self: stretch;
  margin-top: 43px;
  line-height: 24px;
}

.YourJourney-cta {
  border-radius: 29px;
  border: 3px solid var(--color-blue-light);
  background-color: transparent;
  margin-top: 38px;
  padding: 16px 27px;
  font-size: 14px;
  color: var(--color-gray-500);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  font-family: inherit;
  position: relative;
}

.YourJourney-cta:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(107, 201, 239, 0.5);
}

.YourJourney-cta:hover {
  background-color: rgba(107, 201, 239, 0.1);
  transform: scale(1.05);
}

.YourJourney-cta:focus-visible {
  outline: 2px solid rgba(107, 201, 239, 0.5);
  outline-offset: 2px;
}

/* Journey Steps (Right Section) */
.YourJourney-rightbox {
  width: 56%;
}

.YourJourney-steps-container {
  display: flex;
  padding-left: 25px;
  gap: 0;
  height: 100%;
}

.YourJourney-step-1,
.YourJourney-step-2,
.YourJourney-step-3 {
  display: flex;
  flex-direction: column;
}

.YourJourney-step-content {
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 1;
  padding: 105px 31px;
  align-items: flex-start;
}

.YourJourney-step-number {
  position: relative;
  color: rgba(193, 193, 193, 1);
  font-size: 18px;
  font-weight: 600;
  z-index: 1;
}

.YourJourney-step-title {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  align-self: stretch;
  margin-top: 12px;
  z-index: 1;
}

.YourJourney-step-description {
  position: relative;
  font-size: 12px;
  font-weight: 400;
  margin-top: 11px;
  z-index: 1;
}

.YourJourney-step-arrow {
  aspect-ratio: 1.23;
  object-fit: contain;
  object-position: center;
  width: 16px;
  margin-top: 16px;
  z-index: 1;
}

.loading-circle {
  width: var(--loading-circle-size);
  height: var(--loading-circle-size);
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 32px;
  left: -50px;
  margin: auto;
}

/* Size variants */
.loading-circle.small {
  --loading-circle-size: 100px;
}

.loading-circle-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-svg {
  animation: rotate 35s linear infinite;
}

@keyframes rotate-first {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate-second {
  0% {
    transform: rotate(45deg);
  }
  100% {
    transform: rotate(405deg);
    /* 360 + 45 */
  }
}

@keyframes rotate-third {
  0% {
    transform: rotate(90deg);
  }
  100% {
    transform: rotate(450deg);
    /* 360 + 90 */
  }
}

/* Update the circle-svg classes */
.circle-svg.first {
  animation: rotate-first 35s linear infinite;
}

.circle-svg.second {
  animation: rotate-second 35s linear infinite;
}

.circle-svg.third {
  animation: rotate-third 35s linear infinite;
}

/* Accessibility - ensure focus visibility */
.loading-circle:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 4px;
}

/* Add subtle pulse animation to enhance visual feedback */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.YourJourney-connecting-line {
  display: flex;
  justify-content: center;
  padding: 187px 0px;
  max-width: fit-content;
  margin-right: 1.5%;
  margin-left: 0.2%;
}

.YourJourney-brand-logo {
  aspect-ratio: 45.45;
  object-fit: contain;
  object-position: center;
  max-width: 91px;
  display: block;
  align-items: center;
}

.loading-circle:hover .circle-svg path:last-child {
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-circle-inner-text {
  position: absolute;
  top: 0;
  left: 0;
  aspect-ratio: 1;
  padding-top: 133px;
  padding-right: 50px;
  padding-bottom: 105px;
  padding-left: 31px;
  align-items: flex-start;
}

.section.journey-1-container,
.section.journey-1-container {
  display: none !important;
  position: relative;
  overflow: hidden;
}

.journey-1-container,
.journey-2-container,
.journey-3-container {
  display: none;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding: 40px;
  gap: 170px;
  position: relative;
  overflow: hidden;
}

section.journey-1-container,
.journey-2-container,
.journey-3-container {
  position: relative;
  overflow: hidden;
}

section.journey-1-container::before,
section.journey-1-container::after,
section.journey-2-container::before,
section.journey-2-container::after,
section.journey-3-container::before,
section.journey-3-container::after {
  content: '';
  position: absolute;
  /* Changed from fixed to absolute */
  left: 0;
  right: 0;
  height: 40vh;
  pointer-events: none;
  z-index: 2;
}

section.journey-1-container::before,
section.journey-2-container::before,
section.journey-3-container::before {
  top: 0;
  background: linear-gradient( to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100% );
}

section.journey-1-container::after,
section.journey-2-container::after,
section.journey-3-container::after {
  bottom: 0;
  background: linear-gradient( to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 100% );
}

/* Left section - Journey intro */

.journey-1-intro,
.journey-2-intro,
.journey-3-intro {
  align-items: center;
  /* This ensures full viewport height */
  gap: 20px;
  max-width: 336px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  /* Remove text-align: center */
}

.journey-1-title,
.journey-2-title,
.journey-3-title {
  color: var(--color-gray-800);
  line-height: 1.2;
  margin-bottom: 2rem;
  /* Add max-width to maintain left alignment within a reasonable reading width */
  max-width: 800px;
  font-size: 35px;
  font-weight: 600;
}

.journey-1-description,
.journey-2-description,
.journey-3-description {
  font-size: 14px;
  color: #868686;
  line-height: 1.5;
  /* Optional: limits text width for better readability */
  margin: 0 auto 2rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.journey-1-cta,
.journey-2-cta,
.journey-3-cta {
  width: 195px;
  height: 45px;
  border: 3px solid var(--color-blue-light);
  border-radius: 22.5px;
  color: var(--color-gray-500);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
  align-self: flex-start;
  /* Align button to the left */
}

.journey-1-cta:hover,
.journey-2-cta:hover,
.journey-3-cta:hover {
  background-color: #e6f7fc;
}

.journey-1-cta:focus,
.journey-2-cta:focus,
.journey-3-cta:focus {
  outline: 2px solid #45bae9;
  outline-offset: 2px;
}

/* Right section - Journey content */
.journey-1-content,
.journey-2-content,
.journey-3-content {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Center content horizontally */
  min-height: unset;
  /* Match container height */
}

/* Add styles for journey-2-content and journey-3-content similar to journey-1-content */
.journey-2-content,
.journey-3-content {
  display: none;
  /* Hidden by default */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 10;
}

/* Add visible state for journey content sections */
.journey-2-content.visible,
.journey-3-content.visible {
  display: flex;
}

/* Add this to match the behavior of journey-1-content */
.YourJourney-rightbox .journey-2-content,
.YourJourney-rightbox .journey-3-content {
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 10;
}

/* Add visible state for journey content in rightbox */
.YourJourney-rightbox .journey-2-content.visible,
.YourJourney-rightbox .journey-3-content.visible {
  display: flex;
}

.journey-1-circle-background,
.journey-2-circle-background,
.journey-3-circle-background {
  position: absolute;
  top: 50%;
  /* Center vertically */
  left: 50%;
  /* Center horizontally */
  transform: translate(-50%, -50%);
  /* Perfect centering */
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 17%, white 32%, white 70%, transparent, 90%, transparent 100%);
}

.journey-1-details,
.journey-2-details,
.journey-3-details {
  position: relative;
  z-index: 1;
  padding: 40px;
  padding-bottom: 0;
  width: 35vw;
  max-width: 35vw;
  margin: 0 auto;
  /* Center the content */
}

/* Style specific behaviors for step transitions */
.YourJourney-steps-container.hidden {
  display: none;
}

/* Ensure SVG maintains aspect ratio */
/* Journey steps */
.journey-1-steps,
.journey-2-steps,
.journey-3-steps {
  display: flex;
  align-items: center;
  /* Align items vertically in the center */
  justify-content: space-between;
  /* Evenly distribute items */
  margin-bottom: 60px;
  margin-top: 20px;
  width: 100%;
  /* Take full width */
  max-width: 800px;
  /* Optional: limit maximum width */
}

.journey-1-step-item,
.journey-2-step-item,
.journey-3-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* For label positioning */
  flex: 0 0 auto;
  /* Prevent icons from growing/shrinking */
}

.journey-1-step-icon,
.journey-2-step-icon,
.journey-3-step-icon {
  width: 70px;
  height: 70px;
  margin: 0;
  /* Remove bottom margin */
  align-content: center;
}

.journey-1-step-line,
.journey-2-step-line,
.journey-3-step-line {
  flex: 1;
  /* Allow lines to grow and fill space */
  margin: 0 20px;
  /* Add equal spacing around lines */
}

.journey-1-step-line svg,
.journey-2-step-line svg,
.journey-3-step-line svg {
  width: 100%;
  /* Make SVG fill the line container */
  height: 100%;
}

.journey-1-step-label,
.journey-2-step-label,
.journey-3-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gray-700);
  position: absolute;
  top: 100%;
  /* Position below the icon */
  margin-top: 20px;
  white-space: nowrap;
  /* Prevent label from wrapping */
}

/* Journey navigation */

.journey-1-navigation,
.journey-2-navigation,
.journey-3-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.journey-1-next-step,
.journey-2-next-step {
  color: var(--color-teal-dark);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.journey-3-previous-step {
  color: var(--color-teal-dark);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.journey-1-next-step:hover,
.journey-2-next-step:hover {
  color: var(--color-teal);
}

.journey-1-next-step:focus,
.journey-2-next-step:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

.journey-1-dots,
.journey-2-dots,
.journey-3-dots {
  color: #838383;
  font-size: 12px;
  font-weight: 600;
  align-self: center;
  text-align: center;
}

.journey-1-dots-container,
.journey-2-dots-container,
.journey-3-dots-container {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.journey-1-dot,
.journey-2-dot,
.journey-3-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.journey-1-dot:hover,
.journey-1-dot:focus,
.journey-2-dot:hover,
.journey-2-dot:focus,
.journey-3-dot:hover,
.journey-3-dot:focus {
  transform: scale(1.5);
  outline: none;
}

.journey-1-dot-purple,
.journey-2-dot-purple,
.journey-3-dot-purple {
  background-color: var(--color-purple);
}

.journey-1-dot-teal,
.journey-2-dot-teal,
.journey-3-dot-teal {
  background-color: var(--color-teal);
}

.journey-1-dot-blue,
.journey-2-dot-blue,
.journey-3-dot-blue {
  background-color: #45bae9;
}

.journey-steps-description-container {
  padding-top: 10px;
  padding-left: 10px;
}

.journey-steps-title-container {
  padding-top: 10px;
  padding-left: 10px;
}

.journey-2-navigation-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}

.journey-3-navigation-container {
  flex-direction: row;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}

.journey-2-previous-step {
  align-self: flex-start;
  color: #9659D8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.journey-2-next-step {
  color: #41BBe8;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  /* Pushes the element to the right */
}

.circle-svg.journey-circle {
  height: 896px;
  animation: rotate 35s linear infinite;
}

.step-1-image-container {
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  padding: 18px 1px;
  align-items: flex-start;
  justify-content: center;
}

.background-image {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.icon-wrapper {
  position: relative;
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  padding: 0 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin-left: 2px;
}

.feature-icon {
  aspect-ratio: 1.04;
  object-fit: contain;
  object-position: center;
  margin-left: 6px;
  width: 23px;
}

.journey-3-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.journey-3-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 62px;
  position: relative;
}

.journey-3-step-line {
  flex: 1;
  display: flex;
  align-items: center;
  height: 2px;
  margin: 0 20px;
  position: relative;
}

.gradient-line-1a {
  left: 0;
  /* Change from 50% */
  transform: none;
  /* Remove translateX */
  top: 0;
  /* Change from 50% */
  width: 100%;
  /* Change from fixed width */
  height: 2px;
  /* Set fixed height */
  background: linear-gradient(90deg, #DAD4FE 0%, #9388D0 100%);
}

.gradient-line-1b {
  left: 0;
  /* Change from 50% */
  transform: none;
  /* Remove translateX */
  top: 0;
  /* Change from 50% */
  width: 100%;
  /* Change from fixed width */
  height: 2px;
  /* Set fixed height */
  background: linear-gradient(90deg, #8878E2 0%, #4C4288 100%);
}

.gradient-line-2b {
  position: absolute;
  left: 0;
  /* Change from 50% */
  transform: none;
  /* Remove translateX */
  top: 0;
  /* Change from 50% */
  width: 100%;
  /* Change from fixed width */
  height: 2px;
  /* Set fixed height */
  background: linear-gradient(90deg, var(--color-teal-light) 0%, #508775 100%);
}

.gradient-line-3a {
  position: absolute;
  left: 0;
  /* Change from 50% */
  transform: none;
  /* Remove translateX */
  top: 0;
  /* Change from 50% */
  width: 100%;
  /* Change from fixed width */
  height: 100%;
  /* Change from 2px */
  background: linear-gradient(90deg, #d4f3fe 0%, #90a7f4 100%);
}

.gradient-line-3b {
  position: absolute;
  left: 0;
  /* Change from 50% */
  transform: none;
  /* Remove translateX */
  top: 0;
  /* Change from 50% */
  width: 100%;
  /* Change from fixed width */
  height: 100%;
  /* Change from 2px */
  background: linear-gradient(90deg, #90a7f4 0%, #4F93C5 100%);
}

.journey-3-step-line svg {
  width: 100%;
  height: 100%;
}

.journey-3-step-icon {
  width: 62px;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.journey-3-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-gray-800);
  text-align: center;
  position: absolute;
  bottom: -30px;
  width: 100%;
}

.journey-2-step-line {
  flex: 1;
  display: flex;
  align-items: center;
  height: 2px;
  margin: 0 20px;
  position: relative;
}

.gradient-line-2a {
  /* Change from 50% */
  /* Remove translateX */
  /* Change from 50% */
  /* Change from fixed width */
  /* Set fixed height */
  position: absolute;
  left: 0;
  transform: none;
  top: 0;
  width: 100%;
  height: 2px;
  /* Set fixed height */
  background: linear-gradient(90deg, #D4FEF1 0%, var(--color-teal-light) 100%);
}

.YourJourney-rightbox .journey-1-content {
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 10;
}

@media (max-width: 1280px) {
  .YourJourney-leftbox {
    width: 240px;
  }
}

@media (max-width: 1025px) {
  .YourJourney-container {
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  .YourJourney-section {
    padding-top: 420px;
    padding-left: 50px;
    height: unset;
  }

  section.journey-1-container::before,
  section.journey-1-container::after,
  section.journey-2-container::before,
  section.journey-2-container::after,
  section.journey-3-container::before,
  section.journey-3-container::after {
    height: 15vh;
  }

  .icon-wrapper {
    margin-left: 0;
  }

  .journey-1-step-description,
  .journey-2-step-description,
  .journey-3-step-description {
    padding-left: 40px;
    margin-top: 10px;
    font-size: 14px;
  }

  .journey-1-step-icon,
  .journey-2-step-icon,
  .journey-3-step-icon {
    width: 60px;
    height: 60px;
    margin: 0;
    /* Remove bottom margin */
    align-content: center;
  }

  .step-1-image-container {
    width: 90%;
    padding: 0;
  }

  .journey-2-navigation-container,
  .journey-3-navigation-container {
    padding: 20px 0px 0px 0px;
  }

  .circle-svg.journey-circle {
    width: 600px;
    height: 600px;
    animation: rotate 35s linear infinite;
    min-width: 600px;
    min-height: 600px;
  }

  .journey-1-intro,
  .journey-2-intro,
  .journey-3-intro {
    display: none;
  }

  .loading-circle {
    position: relative;
    top: 0;
    left: -55px;
    width: 300px;
    aspect-ratio: 1;
  }

  .loading-circle-inner-text {
    padding: 103px 74px 232px 300px;
    align-items: flex-start;
  }

  .YourJourney-step-number {
    font-size: 14px;
  }

  .YourJourney-brand-logo {
    rotate: 90deg;
    max-width: 80px;
    margin-left: 0;
    position: relative;
    left: 0;
    transform: none;
  }

  .YourJourney-connecting-line {
    position: relative;
    padding: 0;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .journey-1-container,
  .journey-2-container,
  .journey-3-container {
    max-width: 991px;
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .journey-1-circle-background,
  .journey-2-circle-background,
  .journey-3-circle-background {
    width: 1000px;
    height: unset;
  }

  .journey-1-steps,
  .journey-2-steps,
  .journey-3-steps {
    align-items: center;
    gap: 0px;
  }

  .YourJourney-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 5vh;
    margin-left: 0px;
  }

  .YourJourney-leftbox {
    width: 100%;
    margin-top: 0;
  }

  .YourJourney-title {
    font-size: 30px;
  }

  .YourJourney-description {
    margin-top: 40px;
  }

  .YourJourney-cta {
    padding: 16px 20px;
    margin-left: 0px;
  }

  .YourJourney-rightbox {
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 75px;
    padding-bottom: 50px;
  }

  .YourJourney-steps-container {
    flex-direction: column;
    padding-left: 0px;
    text-align: center;
  }

  .YourJourney-step-content .loading-circle {
    position: relative;
    left: auto;
    margin: 0 auto;
    top: 0;
  }

  .loading-circle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .YourJourney-step-content {
    padding: 0px 20px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
  }

  .journey-1-navigation,
  .journey-2-navigation,
  .journey-3-navigation {
    gap: 20px;
  }

  .journey-1-step-title,
  .journey-2-step-title,
  .journey-3-step-title {
    font-size: 1.1em;
    text-align: center;
  }
}

@media (max-width: 912px) {
  .YourJourney-section {
    padding-top: 510px;
  }

  .loading-circle-inner-text {
    padding-left: 350px;
  }
}

@media (max-width: 855px) {
  .YourJourney-section {
    padding-top: 510px;
  }
}

@media (max-width: 768px) {
  .YourJourney-section {
    padding-top: 640px;
  }
}

@media (max-width: 540px) {
  .YourJourney-section {
    padding-top: 630px;
  }

  .loading-circle-inner-text {
    padding-left: 162px;
    padding-right: 12px;
  }
}

@media (max-width: 480px) {
  .loading-circle {
    height: 300px;
    aspect-ratio: 1;
    margin: 0;
    scale: 73%;
  }

  .YourJourney-steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .YourJourney-step-number {
    align-self: center;
  }

  .YourJourney-step-title {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    align-self: stretch;
    margin-top: 0;
    z-index: 1;
    align-self: center;
  }

  .YourJourney-step-arrow {
    aspect-ratio: 1.23;
    object-fit: contain;
    object-position: center;
    width: 16px;
    margin-top: 0;
    z-index: 1;
    align-self: center;
  }

  /* More precise alignment for mobile screens */
  .YourJourney-connecting-line {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
  }

  .YourJourney-brand-logo {
    rotate: 90deg;
    max-width: 80px;
    margin-left: 0;
    position: relative;
    left: 0;
    transform: none;
  }

  .loading-circle-inner-text {
    position: absolute;
    top: 0;
    left: 0;
    aspect-ratio: 1;
    padding-top: 69px;
    padding-right: 90px;
    padding-bottom: 232px;
    padding-left: 90px;
    align-items: flex-start;
  }

  .YourJourney-section {
    padding-top: 650px;
    padding-left: 50px;
    height: unset;
  }

  .journey-1-details,
  .journey-2-details,
  .journey-3-details {
    position: relative;
    z-index: 1;
    padding: 0px;
    padding-bottom: 0;
    width: unset;
    max-width: unset;
    margin: 0 auto;
    /* Center the content */
  }

  .YourJourney-step-content {
    padding: 0;
    height: 240px;
    align-self: center;
  }

  .YourJourney-container {
    margin-top: 140px;
  }

  .YourJourney-rightbox {
    width: 85%;
  }
}

@media (max-width: 394px) {

  .YourJourney-section {
    padding-top: 580px;
  }
}

@media (max-width: 380px) {
  .YourJourney-section {
    padding-top: 780px;
  }
}

@media (max-width: 360px) {
  .YourJourney-section {
    padding-top: 860px;
  }
}

@media (max-width: 350px) {

  .YourJourney-section {
    padding-top: 470px;
  }

  .YourJourney-rightbox {
    padding-top: 25px;
    padding-bottom: 20px;
  }
}

@media (max-width: 344px) {
  .YourJourney-section {
    padding-top: 750px;
  }
}

/* Below 992px the "What makes PRAXXI different?" cards are in normal flow (differentiator.css),
   so the section no longer needs the large top paddings above that cleared them */
@media (max-width: 991px) {
  .YourJourney-section {
    padding-top: 40px;
  }

  .YourJourney-container {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .YourJourney-cta {
    transition: none;
  }
}

@media (forced-colors: active) {
  .YourJourney-cta {
    border: 3px solid CanvasText;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Step interactions and transitions used by journey.js */
.YourJourney-step-arrow {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.YourJourney-step-arrow:hover {
  transform: translateX(5px);
  filter: brightness(1.2);
}

.journey-1-dots:hover,
.journey-2-dots:hover,
.journey-3-dots:hover {
  opacity: 0.8;
}

/* "Go back to the journey" arrow, rotated to point left */
.journey-back-arrow {
  margin-right: 8px;
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.journey-1-dots:hover .journey-back-arrow,
.journey-2-dots:hover .journey-back-arrow,
.journey-3-dots:hover .journey-back-arrow {
  transform: rotate(180deg) translateX(3px);
}

@keyframes fadeOutLine {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.js-connecting-line-fade-out {
  animation: fadeOutLine 0.4s ease-out forwards;
}

@keyframes fadeOutStep {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.3;
  }
}

.js-journey-step-fade-out {
  animation: fadeOutStep 0.3s ease-out forwards;
}

@keyframes fadeOutWhiteOverlay {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.js-white-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 10;
  pointer-events: none;
}

.js-white-overlay-fade-out {
  animation: fadeOutWhiteOverlay 0.8s ease-out forwards;
}

/* The loading circles' square, rotating SVG boxes reach past the visible rings; clip them at the page
   edge so they never cause horizontal scrolling. */

.YourJourney-section {
  overflow-x: clip;
}
