.slider {
  display: flex;
  height: 80vh;
  overflow: hidden;
}

.panel {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: flex 0.5s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #C9A96199;
}

.panel.active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000CC;
}

.panel h2 {
  position: absolute;
  color: #000;
  transform: rotate(-90deg);
  font-size: 64px;
  transition: 0.3s;
  font-weight: 300;
  white-space: nowrap;
  margin: 0;
}

.panel.active {
  flex: 5;
  justify-content: start;
}

.panel.active h2 {
  transform: rotate(0);
  padding-left: 17%;
  color: #fff;
}

.panel p {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #000000CC;
  max-width: 80%;
  opacity: 0;
  transition: 0.3s;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  padding-bottom: 15px;
  margin: 0;
}

.panel.active p {
  opacity: 1;
}

.panel a {
  position: absolute;
  bottom: 40px;
  left: 40px;
  color: #C9A961;
  max-width: 400px;
  opacity: 0;
  transition: 0.3s;
  text-decoration: none;
}

.panel.active p,
.panel.active a {
  opacity: 1;
  padding-left: 14%;
  bottom: 160px;
  justify-content: center;
  color: #fff;
}

.panel.active a {
  color: #C9A961;
  font-weight: 500;
}

@media screen and (min-device-width:1024px) and (max-device-width:1666px) {
  .panel h2 {
    font-size: 46px;
  }
  .panel.active p,
  .panel.active a {
    padding-left: 0;
    bottom: 80px;
    justify-content: center;
  }
  .panel.active h2 {
    padding-left: 40px;
    padding-bottom: 30px;
  }
}

@media screen and (min-device-width: 769px) and (max-device-width:1023px) {
  .slider {
    display: flex;
    height: 450px;
    overflow: hidden;
  }
  .scroll-wrap {
    position: relative;
    width: 100px;
    height: 100px;
  }
  .panel h2 {
    font-size: 40px;
  }
  .panel.active h2 {
    padding-left: 0;
    padding-left: 40px;
  }
  .panel.active {
    justify-content: start;
    padding-top: 30px;
    align-items: start;
  }
  .panel.active p,
  .panel.active a {
    padding-left: 0;
    justify-content: center;
  }
  .client_success .testmonial-position {
    position: relative !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: translate(0) !important;
  }
  .client_success .swiper {
    width: calc( 100% - 0px ) !important;
    box-shadow: 0 0 8px 4px #999;
    border-radius: 8px;
  }
}
