


.slider {
  position: relative;
  height: 100vh;
}
.slider__slides {
  z-index: 1;
  position: relative;
  height: 100%;
}
.slider__control {
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 5%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.3s;
  cursor: pointer;
}
.slider__control--right {
  left: 95%;
}
.slider__control:hover {
  background-color: #393183;
}
.slider__control-line {
  position: absolute;
  left: 23px;
  top: 50%;
  width: 3px;
  height: 14px;
  transform-origin: 50% 0;
  transform: rotate(-45deg);
}
.slider__control-line:nth-child(2) {
  transform: translateY(1px) rotate(-135deg);
}
.slider__control--right .slider__control-line {
  left: 37px;
  transform-origin: 1px 0;
  transform: rotate(45deg);
}
.slider__control--right .slider__control-line:nth-child(2) {
  transform: translateY(1px) rotate(135deg);
}
.slider__control-line:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  transition: background-color 0.3s;
}
.slider__control:hover .slider__control-line:after {
  background-color: #fff;
}
.slider__control.a--rotation .slider__control-line:after {
  -webkit-animation: arrowLineRotation 0.49s;
          animation: arrowLineRotation 0.49s;
}
.slider__control.a--rotation .slider__control-line:nth-child(1):after {
  -webkit-animation: arrowLineRotationRev 0.49s;
          animation: arrowLineRotationRev 0.49s;
}

@-webkit-keyframes arrowLineRotation {
  to {
    transform: rotate(180deg);
  }
}

@keyframes arrowLineRotation {
  to {
    transform: rotate(180deg);
  }
}
@-webkit-keyframes arrowLineRotationRev {
  to {
    transform: rotate(-180deg);
  }
}
@keyframes arrowLineRotationRev {
  to {
    transform: rotate(-180deg);
  }
}
.slide {
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150vmax;
  height: 150vmax;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transition: -webkit-clip-path 0s 0.91s;
  transition: clip-path 0s 0.91s;
  transition: clip-path 0s 0.91s, -webkit-clip-path 0s 0.91s;
  -webkit-clip-path: circle(30px at 120vw 50%);
          clip-path: circle(30px at 120vw 50%);
}
.slide.s--prev {
  -webkit-clip-path: circle(30px at 30vw 50%);
          clip-path: circle(30px at 30vw 50%);
}
.slide.s--active {
  z-index: 1;
  transition: -webkit-clip-path 1.3s;
  transition: clip-path 1.3s;
  transition: clip-path 1.3s, -webkit-clip-path 1.3s;
  -webkit-clip-path: circle(120vmax at 120vw 50%);
          clip-path: circle(120vmax at 120vw 50%);
}
.slide.s--active.s--active-prev {
  -webkit-clip-path: circle(120vmax at 30vw 50%);
          clip-path: circle(120vmax at 30vw 50%);
}
.slide:nth-child(1) .slide__inner {
  background-image: url("../images/saavi-slider/1.png");
}
.slide:nth-child(2) .slide__inner {
  background-image: url("../images/saavi-slider/6.png");
}
.slide:nth-child(3) .slide__inner {
  background-image: url("../images/saavi-slider/8.png");
}
.slide:nth-child(4) .slide__inner {
  background-image: url("../images/saavi-slider/10.png");
}
.slide:nth-child(5) .slide__inner {
  background-image: url("../images/saavi-slider/7.png");
}
.slide__inner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100vh;
  margin-left: -50vw;
  margin-top: -50vh;
  background-size: cover;
  background-position: center center;
}
.slide__inner:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}
.slide__content {
  position: absolute;
  left: 5%;
  top: 50%;
  margin-left: -30px;
  margin-top: 48px;
  max-width: 600px;
  color: #fff;
}
.slide__heading {
  margin-bottom: 20px;
  color: #fff;
  font-size: 60px;
}
.slide__text {
  font-size: 20px;
  color: #e0e0e0;
}
.slide__text a {
  color: inherit;
}
/* === Mobile fix: fade slider, no clip-path, proper stacking === */
@media (max-width: 768px) {
  .slider {
    overflow: hidden !important;
    display: block !important;
    /* use dynamic viewport to avoid iOS/Chrome URL bar jumps */
    height: 100dvh !important;
  }

  .slider__slides {
    position: relative !important;
    height: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .slide {
    position: absolute !important;
    inset: 0 !important;         /* top/right/bottom/left: 0 */
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;

    /* kill circular canvas + radius */
    transform: none !important;
    border-radius: 0 !important;
    -webkit-clip-path: inset(0) !important;
    clip-path: inset(0) !important;

    /* fade stack */
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity .45s ease !important;
  }

  .slide.s--active {
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
  }

  .slide.s--prev {
    opacity: 0 !important; /* no need to keep it visible */
  }

  /* inner bg should fill without offsets */
  .slide__inner {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  /* content sizing & placement */
  .slide__content {
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 76px !important;      /* keep above buttons */
    top: auto !important;
    margin: 0 !important;
    max-width: 84% !important;
    color: #fff !important;
  }

  .slide__heading {
    margin: 0 0 10px !important;
    font-size: clamp(24px, 6vw, 34px) !important;
    line-height: 1.15 !important;
  }

  .slide__text {
    font-size: clamp(14px, 3.8vw, 18px) !important;
    line-height: 1.4 !important;
    color: #e0e0e0 !important;
  }

  /* controls: bottom corners, thumb-friendly */
  .slider__control {
    top: auto !important;
    bottom: 16px !important;
    left: 16px !important;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
  }

  .slider__control--right {
    left: auto !important;
    right: 16px !important;
  }

  .slider__control-line {
    left: 20px !important;        /* re-center arrow stems in smaller btn */
  }
  .slider__control--right .slider__control-line {
    left: 30px !important;
  }
}

