.stages-slider {
  position: relative;
  isolation: isolate;
}

.stages-slider::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 120px;
  background: radial-gradient(#fff4b3, #ffda00);
  z-index: -1;
  bottom: 40px;
}

.stage-slider-container {
  display: flex;
  flex-flow: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto;
}

.stage-slide {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  margin: 0 auto;
  max-width: 900px;
  align-items: center;
  visibility: hidden;
  filter: opacity(0);
  position: absolute;
  transition: all 0.3s ease;
}

.stage-slide.active {
  visibility: visible;
  filter: opacity(1);
  position: relative;
}

.stage-slide-graphic {
  position: relative;
  isolation: isolate;
  margin-right: 5%;
  pointer-events: none;
}

.stage-slide-graphic img {
  max-width: 100%;
}

.stage-slide-graphic picture:nth-child(1) img {
  transform: rotateZ(3deg);
  transform-origin: center bottom;
  transition: all 0.8s ease;
}

.stage-slide-graphic picture:nth-child(2) {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  transform-origin: center bottom;
  transform: translateX(4%) rotateZ(6deg);
  transition: all 0.8s ease;
}

.stage-slide.active .stage-slide-graphic picture:nth-child(1) img {
  transform: rotateZ(0);
}

.stage-slide.active .stage-slide-graphic picture:nth-child(2) {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  transform-origin: center bottom;
  transform: translateX(4%) rotateZ(24deg);
}

.stage-slide-info {
  width: 100%;
}

.stage-badge {
  display: block;
  padding: 0.4rem 0.6rem;
  background-color: #166943;
  color: white;
  max-width: max-content;
  border-radius: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.stage-slide-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #166943;
  margin: 0.5rem 0;
}

.stage-slide-description {
  font-size: 1.15rem;
  margin: 0;
}

.stage-slider-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.stage-nav {
  position: relative;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: #166943;
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.stage-nav::before {
  content: "";
  display: block;
  position: absolute;
  inset: 2px;
  border: dashed 2px #ffda00;
  border-radius: 50%;
  pointer-events: none;
}

.stage-nav-tag {
  display: block;
  position: absolute;
  top: calc(100% + 0.5rem);
  pointer-events: none;
  color: #222222;
  font-size: 0.6rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.stage-nav.active {
  box-shadow: 0 0 0 6px white;
}

.stage-nav.active .stage-nav-tag {
  color: #166943;
}

.stage-nav:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 680px) {
  .stage-slide {
    gap: 1rem !important;
  }

  .stage-slide-graphic {
    margin-right: 0;
  }

  .stage-badge {
    font-size: 0.8rem !important;
  }

  .stage-slide-title {
    font-size: 1.2rem !important;
  }

  .stage-slide-description {
    font-size: 0.95rem !important;
  }

  .stage-slider-nav {
    gap: 0.75rem !important;
  }

  .stage-nav {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 1.2rem !important;
  }

  .stage-nav-tag {
    display: none !important;
  }
}
