.container-steps {
  position: relative;
  overflow: hidden;
  border-radius: 5rem;
  z-index: 0;
  max-width: 900px;
  width: 100%;
  margin: auto;
}
@media only screen and (max-width: 1000px) {
  /* .container-steps {
    border-radius: 0;
  } */
}

.slider-step {
  display: flex;
  width: 500%;
  height: 55rem;
  transition: all 0.25s ease-in;
  transform: translateX(0);
}
@media only screen and (max-width: 1000px) {
  .slider-step {
    height: 600px;
  }
}
.slider-step .box {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  overflow: hidden;
  position: relative;
}
@media only screen and (max-width: 650px) {
  .slider-step .box {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
}
.slider-step .box .bg {
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.2);
  /* width: 370px; */
  width: 390px;
  transform: skewX(7deg);
  position: absolute;
  height: 100%;
  padding-left: 20rem;
  transform-origin: 0 100%;
}
@media only screen and (max-width: 800px) {
  /* .slider-step .box .bg {
    width: 65%;
  } */
}
@media only screen and (max-width: 650px) {
  .slider-step .box .bg {
    width: 100%;
    left: 0;
    bottom: 0;
    /* height: 54%; */
    height: 300px;
    transform: skewX(0deg);
  }
}
.slider-step .box .bg::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: inherit;
  pointer-events: none;
  transform: skewX(10deg);
}
@media only screen and (max-width: 650px) {
  .slider-step .box .bg::before {
    width: 120%;
    bottom: 0;
    transform: skewX(0deg);
  }
}
.slider-step .box .details {
  padding: 5rem;
  padding-left: 8rem;
  z-index: 100;
  grid-column: 1/span 1;
  grid-row: 1/-1;
}
@media only screen and (max-width: 650px) {
  .slider-step .box .details {
    grid-row: 2/span 1;
    grid-column: 1/-1;
    text-align: center;
    padding: 2rem;
    /* transform: translateY(-9rem); */
    transform: translateY(-3rem);
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
  }
}
.slider-step .box .details h1 {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #ffffff;
  max-width: 250px;
}
.slider-step .box .details p {
  display: inline-block;
  font-size: 1.9rem;
  color: #fafafa;
  margin-bottom: 2rem;
  margin-right: 5rem;
  max-width: 220px;
}
@media only screen and (max-width: 800px) {
  .slider-step .box .details p {
    margin-right: 0;
  }
}
.slider-step .box .details button {
  padding: 1rem 3rem;
  color: #fff;
  border-radius: 2rem;
  outline: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.slider-step .box .details button:hover {
  opacity: 0.8;
}
.slider-step .box .details button:focus {
  outline: none;
  border: none;
}
.slider-step .box1 {
  /* background-color: #d6d6d6; */
  background: url("../images/bg-boxes/bg-1.jpg") no-repeat;
  background-size: cover;
  background-position: center right;
}
.slider-step .box1 .illustration img {
    width: 100%;
    max-width: 210px;
    opacity: 0.8;
    margin-left: 4% !important;
}
.slider-step .box1 .bg{
    background: #dbdbdb !important;
    translate: none;
    rotate: none;
    scale: none;
    opacity: 1;
    transform: translate(0%, 0px) skew(7.00031deg, 0deg);
}
.slider-step .box1 .bg::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: skewX(10deg);
    background: #e7e7e7 !important;
}
.slider-step .box2 {
    /* background-color: #d6d6d6; */
    background: url("../images/bg-boxes/bg-2.jpg") no-repeat;
    background-size: cover;
    background-position: center right;
  }
.slider-step .box2 .bg{
    background: #dbdbdb!important;
    translate: none;
    rotate: none;
    scale: none;
    opacity: 1;
    transform: translate(0%, 0px) skew(7.00031deg, 0deg);
}
.slider-step .box2 .bg::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: skewX(10deg);
    background: #e7e7e7 !important;
}
.slider-step .box3 {
    /* background-color: #d6d6d6; */
    background: url("../images/bg-boxes/bg-3.jpg") no-repeat;
    background-size: cover;
    background-position: center right;
  }
.slider-step .box3 .bg{
    background: #dbdbdb !important;
    translate: none;
    rotate: none;
    scale: none;
    opacity: 1;
    transform: translate(0%, 0px) skew(7.00031deg, 0deg);
}
.slider-step .box3 .bg::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: skewX(10deg);
    background: #e7e7e7 !important;
}
.slider-step .box4 {
    /* background-color: #d6d6d6; */
    background: url("../images/bg-boxes/bg-4.jpg") no-repeat;
    background-size: cover;
    background-position: center right;
  }
.slider-step .box4 .bg{
    background: #dbdbdb !important;
    translate: none;
    rotate: none;
    scale: none;
    opacity: 1;
    transform: translate(0%, 0px) skew(7.00031deg, 0deg);
}
.slider-step .box4 .bg::before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    transform: skewX(10deg);
    background: #e7e7e7 !important;
}
.slider-step .box1 h1 {
    color: #000000 !important;
}
.slider-step .box1 p {
    color: #000000 !important;
}
.slider-step .box2 h1 {
    color: #000000 !important;
}
.slider-step .box2 p {
    color: #000000 !important;
}
.slider-step .box3 h1 {
    color: #000000 !important;
}
.slider-step .box3 p {
    color: #000000 !important;
}
.slider-step .box4 h1 {
    color: #000000 !important;
}
.slider-step .box4 p {
    color: #000000 !important;
}
.slider-step .box1 .illustration .inner {
  background-color: #FF0077;
}
.slider-step .box1 .illustration .inner::after, .slider-step .box1 .illustration .inner::before {
  background-color: rgba(255, 0, 119, 0.4);
}
.slider-step .box1 button {
  background-color: #FF0077;
}
.slider-step .box2 {
  background-color: #000050;
}
.slider-step .box2 .illustration .inner {
  background-color: #0033FF;
}
.slider-step .box2 .illustration .inner::after, .slider-step .box2 .illustration .inner::before {
  background-color: rgba(0, 51, 255, 0.4);
}
.slider-step .box2 button {
  background-color: #0033FF;
}
.slider-step .box3 {
  background-color: #00501D;
}
.slider-step .box3 .illustration .inner {
  background-color: #00FF44;
}
.slider-step .box3 .illustration .inner::after, .slider-step .box3 .illustration .inner::before {
  background-color: rgba(0, 255, 68, 0.4);
}
.slider-step .box3 button {
  background-color: #00FF44;
}
.slider-step .box4 {
  background-color: #554D00;
}
.slider-step .box4 .illustration .inner {
  background-color: #FF4E00;
}
.slider-step .box4 .illustration .inner::after, .slider-step .box4 .illustration .inner::before {
  background-color: rgba(255, 78, 0, 0.4);
}
.slider-step .box4 button {
  background-color: #FF4E00;
}
.slider-step .box5 {
  background-color: #300050;
}
.slider-step .box5 .illustration .inner {
  background-color: #8000FF;
}
.slider-step .box5 .illustration .inner::after, .slider-step .box5 .illustration .inner::before {
  background-color: rgba(128, 0, 255, 0.4);
}
.slider-step .box5 button {
  background-color: #8000FF;
}
/* .slider-step .illustration {
  grid-column: 2/-1;
  grid-row: 1/-1;
  justify-self: center;
} */
@media only screen and (max-width: 650px) {
  .slider-step .illustration {
    grid-row: 1/span 1;
    grid-column: 1/-1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.slider-step .illustration div {
  height: 25rem;
  width: 18rem;
  border-radius: 3rem;
  background-color: #FF0077;
  position: relative;
  transform: skewX(-10deg);
}
@media only screen and (max-width: 800px) {
  .slider-step .illustration div {
    height: 20rem;
    width: 15rem;
  }
}
.slider-step .illustration div::after, .slider-step .illustration div::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 3rem;
  top: 0;
  left: 0;
}
.slider-step .illustration div::after {
  transform: translate(4rem, -1rem);
}
.slider-step .illustration div::before {
  transform: translate(2rem, -2rem);
}

.prev,
.next,
.trail {
  z-index: 10000;
  position: absolute;
}

.prev,
.next {
  width: 4rem;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.3s ease;
}
@media only screen and (max-width: 650px) {
  .prev,
.next {
    display: none;
  }
}
.prev:hover,
.next:hover {
  opacity: 1;
}

.prev {
  top: 50%;
  /* left: 2%; */
  left: 8px;
  transform: translateY(-50%);
  z-index: 999 !important;
}

.next {
  top: 50%;
  /* right: 2%; */
  right: 5px;
  transform: translateY(-50%);
}

.trail {
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
  font-size: 1.5rem;
}
@media only screen and (max-width: 650px) {
  .trail {
    width: 90%;
    /* bottom: 13%; */
    bottom: 10px;
  }
}
.trail div {
    padding: 0rem 2rem;
    border-top: 3px solid #fff;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s ease;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}
.trail div:hover {
  opacity: 0.6;
}
@media only screen and (max-width: 650px) {
  .trail div {
    padding: 1rem;
  }
}

.active {
  opacity: 1 !important;
}