.sl-container {
  
  color: #fff;
  position: relative;
  overflow: hidden;
width:100vw;
min-width: 1200PX;
  height:500px;
  z-index: 2;
}

.slider {
  display: flex;
  width: 400%; /* Updated from 500% to 400% */
  height: 55rem;
  transition: all 0.25s ease-in;
  transform: translateX(0);
}

.slider .box {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  overflow: hidden;
  position: relative;
}

.slider .box .bg {
  padding: 5rem;
  background-color: rgba(0, 0, 0, 0.07);
  width: 55%;
  transform: skewX(21deg);
  position: absolute;
  height: 100%;
  left: -10%;
  padding-left: 30rem;
  transform-origin: 0 100%;
}

.slider .box .bg::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: inherit;
  pointer-events: none;

}

.slider .box .details {
  color: #fff;
  padding: 3rem;
  padding-left: 10rem;
  z-index: 100;
  grid-column: 1/span 1;
  grid-row: 1/-1;
}

.slider .box .details .sl-h1 {
  font-size: 3.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.slider .box .details .sl-p {
  display: inline-block;
  font-size: 1.3rem;
  color: #f6f4f4;
  margin-bottom: 25rem;
  margin-right: 5rem;
}



.slider .box1 {
  background-color: #63bdb6;
}

.slider .box1 .illustration .inner {
  background-color: #63cbc2;
}

.slider .box1 .illustration .inner::after,
.slider .box1 .illustration .inner::before {
  background-color: #20cabb ;
}

.slider .box1 button {
  background-color: #63cbc2;
}

.slider .box2 {
  background-color: #88c463;
}

.slider .box2 .illustration .inner {
  background-color: #88c463;
}

.slider .box2 .illustration .inner::after,
.slider .box2 .illustration .inner::before {
  background-color: #88c463;
}

.slider .box2 button {
  background-color: #88c463;
}

.slider .box3 {
  background-color: #5f96be;
}

.slider .box3 .illustration .inner {
  background-color: #ffb15a;
}

.slider .box3 .illustration .inner::after,
.slider .box3 .illustration .inner::before {
  background-color: #ffc086;
}

.slider .box3 button {
  background-color: #ffb15a;
}

.slider .box4 {
  background-color: #f7acab;
}

.slider .box4 .illustration .inner {
  background-color: #ff7978;
}

.slider .box4 .illustration .inner::after,
.slider .box4 .illustration .inner::before {
  background-color:  #faa1a0;
}

.slider .box4 button {
  background-color: #ff7978;
}

.slider .illustration {
  grid-column: 2/-1;
  grid-row: 1/-1;
  justify-self: center;
}

.slider .illustration div {
  height: 25rem;
  width: 18rem;
  border-radius: 3rem;
  background-color: #FF0077;
  position: relative;
  transform: skewX(-10deg);
}

.slider .illustration div::after,
.slider .illustration div::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 3rem;
  top: 0;
  left: 0;
}

.slider .illustration div::after {
  transform: translate(4rem, -1rem);
}

.slider .illustration div::before {
  transform: translate(2rem, -2rem);
}

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

.prev,
.next {
  width: 4rem;
  cursor: pointer;
  opacity: 0.2;
  transition: all 0.3s ease;
}

.prev:hover,
.next:hover {
  opacity: 1;
}

.prev {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
}

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

.trail {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Updated from repeat(5, 1fr) to repeat(4, 1fr) */
  gap: 1rem;
  text-align: center;
  font-size: 1.5rem;
}

.trail div {
  padding: 2rem;
  border-top: 3px solid #fff;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
}

.trail div:hover {
  opacity: 0.6;
}

.active {
  opacity: 1 !important;
}