/* =========================================================
   CAROUSEL
========================================================= */

.new-universal-carousel-custom {

  --ncb-gap: 24px;

  width: 100%;
  margin: 0 auto;

  position: relative;

  display: flex;
  align-items: center;

  gap: 20px;

  box-sizing: border-box;

}


.new-universal-carousel-custom,
.new-universal-carousel-custom * {

  box-sizing: border-box;

}


/* =========================================================
   CAROUSEL VIEWPORT
========================================================= */

.new-universal-carousel-custom .ncb-carousel {

  flex: 1;

  min-width: 0;

  overflow: hidden;

  position: relative;

}


/* =========================================================
   TRACK
========================================================= */

.new-universal-carousel-custom .ncb-track {

  width: 100%;

  display: flex;

  flex-direction: column;

  gap: var(--ncb-gap);

  transform: translateY(0);

  transition:
    transform 0.65s cubic-bezier(.4,.85,.4,1);

  will-change: transform;

}


/* =========================================================
   CARD
========================================================= */

.new-universal-carousel-custom
.card-new-carousal-uni {

  width: 100%;

  position: relative;

  flex: 0 0 auto;

}


/* =========================================================
   SIDE CONTROLS
========================================================= */

.new-universal-carousel-custom
.ncb-side-controls {

  width: 48px;

  flex-shrink: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;

}


/* =========================================================
   NAV BUTTON
========================================================= */

.new-universal-carousel-custom
.nav-btn {

  width: 42px;
  height: 42px;

  padding: 0;

  border: 1px solid #dce4ea;

  border-radius: 50%;

  background: #ffffff;

  color: #ef5435;

  display: flex;

  align-items: center;
  justify-content: center;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;

  transition: all 0.25s ease;

  box-shadow:
    0 5px 15px rgba(30,50,70,0.08);

}


.new-universal-carousel-custom
.nav-btn:hover {

  background: #C8361A;

  border-color: #C8361A;

  transform: scale(1.06);

}


.new-universal-carousel-custom
.nav-btn:disabled {

  opacity: 0.35;

  cursor: not-allowed;

  pointer-events: none;

  transform: none;

  box-shadow:
    0 5px 15px rgba(30,50,70,0.05);

}


/* =========================================================
   DOTS
========================================================= */

.new-universal-carousel-custom
.slider-dots {

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 7px;

}


.new-universal-carousel-custom
.dot {

  width: 7px;
  height: 7px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: #c9d2d9;

  cursor: pointer;

  transition: all 0.25s ease;

}


.new-universal-carousel-custom
.dot:hover {

  background: #ef8b78;

}


.new-universal-carousel-custom
.dot.active {

  width: 7px;
  height: 20px;

  border-radius: 8px;

  background: #ef5435;

}


/* =========================================================
   ARROW VISIBILITY
========================================================= */

.horizontal-arrow {
  display: none;
}


/* =========================================================
   DESKTOP / TABLET HORIZONTAL
========================================================= */

@media (min-width: 768px) {

  .new-universal-carousel-custom.ncb-horizontal {
    align-items: center;
  }


  .new-universal-carousel-custom.ncb-horizontal
  .ncb-carousel {

    overflow-x: hidden;
    overflow-y: hidden;

  }


  .new-universal-carousel-custom.ncb-horizontal
  .ncb-track {

    width: max-content;

    flex-direction: row;

    gap: var(--ncb-gap);

    transform: translateX(0);

  }


  .new-universal-carousel-custom.ncb-horizontal
  .card-new-carousal-uni {

    width:
      calc(
        (
          100% -
          (
            var(--ncb-gap) *
            (var(--ncb-visible) - 1)
          )
        )
        /
        var(--ncb-visible)
      );

    min-width:
      calc(
        (
          100% -
          (
            var(--ncb-gap) *
            (var(--ncb-visible) - 1)
          )
        )
        /
        var(--ncb-visible)
      );

    flex:
      0 0
      calc(
        (
          100% -
          (
            var(--ncb-gap) *
            (var(--ncb-visible) - 1)
          )
        )
        /
        var(--ncb-visible)
      );

  }


  .new-universal-carousel-custom.ncb-horizontal
  .slider-dots {

    flex-direction: row;

  }


  .new-universal-carousel-custom.ncb-horizontal
  .dot.active {

    width: 20px;
    height: 7px;

  }


  .new-universal-carousel-custom.ncb-horizontal
  .desktop-arrow {

    display: none;

  }


  .new-universal-carousel-custom.ncb-horizontal
  .horizontal-arrow {

    display: inline;

  }

}


/* =========================================================
   TABLET
========================================================= */

/*@media
(min-width: 768px)
and
(max-width: 1199px) {

  .new-universal-carousel-custom {

    --ncb-gap: 24px;

  }

}
*/

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

  .new-universal-carousel-custom {

    --ncb-gap: 0px;

    width: 100%;

    padding-bottom: 52px;

    display: block;

    position: relative;

  }


  /* =======================================================
     MOBILE VIEWPORT
  ======================================================= */

  .new-universal-carousel-custom
  .ncb-carousel {

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;

  }


  .new-universal-carousel-custom
  .ncb-carousel::-webkit-scrollbar {

    display: none;

  }


  /* =======================================================
     MOBILE TRACK
  ======================================================= */

  .new-universal-carousel-custom
  .ncb-track {

    width: max-content;

    display: flex;

    flex-direction: row;

    gap: 0px;

    transform: none !important;

    transition: none !important;

    will-change: auto;

  }


  /* =======================================================
     MOBILE CARD
     
     IMPORTANT:
     20px gap maintain karne ke liye card ko
     viewport se 20px chhota rakha gaya hai.
     
     Isse:
     Card 1 | 20px Gap | Card 2
     
     aur next par card clipping nahi hogi.
  ======================================================= */

  .new-universal-carousel-custom
  .card-new-carousal-uni {

    width:
      calc(100vw - 20px);

    min-width:
      calc(100vw - 20px);

    max-width:
      calc(100vw - 20px);

    flex:
      0 0
      calc(100vw - 20px);

    overflow: hidden;

  }



  /* =======================================================
     MOBILE CONTROLS
  ======================================================= */

  .new-universal-carousel-custom
  .ncb-side-controls {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    height: 42px;

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: center;

    gap: 14px;

  }


  /* =======================================================
     MOBILE NAV BUTTON
  ======================================================= */

  .new-universal-carousel-custom
  .nav-btn {

    width: 34px;
    height: 34px;

    min-width: 34px;
    min-height: 34px;

    flex: 0 0 34px;

    font-size: 17px;

  }


  /* =======================================================
     MOBILE ARROWS
  ======================================================= */

  .new-universal-carousel-custom
  .desktop-arrow {

    display: none;

  }


  .new-universal-carousel-custom
  .horizontal-arrow {

    display: inline;

  }


  /* =======================================================
     MOBILE DOTS
  ======================================================= */

  .new-universal-carousel-custom
  .slider-dots {

    display: none;

  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {

  .new-universal-carousel-custom
  .ncb-track {

    transition: none;

  }


  .new-universal-carousel-custom
  .ncb-carousel {

    scroll-behavior: auto;

  }

}









/*.new-universal-carousel-custom .ncb-track{padding: 25px;}*/

.case-study-vertical-carosal-wrp .case-study-absolute {
    background-color: #FFE9E5;
    padding: 5px 20px 5px 20px;
    border-radius: 0px 32px 0px 12px;
    position: absolute;
    right: 0;
    top: 0;
}


.case-study-vertical-carosal-wrp .new-universal-carousel-custom .nav-btn:disabled{opacity: 1;}
@media(min-width: 768px){
    .case-study-vertical-carosal-wrp .new-universal-carousel-custom {
  --ncb-gap: 0px;
}
    .case-study-vertical-carosal-wrp button.nav-btn {
    border: 0;
    padding: 0;
    height: inherit;
    line-height: 0;
    box-shadow: none;
    width: auto;
}
.case-study-vertical-carosal-wrp span.desktop-arrow{
  background: #ca3a18;
    padding: 22px 7px;
    border-radius: 25px;
}

.case-study-vertical-carosal-wrp .nav-btn:disabled span {
    padding: 5px;
    border-radius: 100%;
}
.case-study-vertical-carosal-wrp .nav-btn:disabled span img{display: none;}

.case-study-vertical-carosal-wrp button.nav-btn.nextBtn img {
    top: 12px;
    position: relative;
}
.case-study-vertical-carosal-wrp button.nav-btn.prevBtn img {
    position: relative;
    top: -12px;
    transform: rotate(180deg);
}

.case-study-vertical-carosal-wrp .new-universal-carousel-custom .slider-dots{display: none;}
}
.case-study-vertical-carosal-wrp span.desktop-arrow img{filter: brightness(0) invert(1);}


@media(max-width: 767px){
    .case-study-vertical-carosal-wrp span.horizontal-arrow img {
    filter: invert(27%) sepia(73%) saturate(1887%) hue-rotate(348deg) brightness(92%) contrast(99%);
}
.case-study-vertical-carosal-wrp button.nav-btn.nextBtn img{
    transform: rotate(270deg);
    width: 15px;
    top: -2px;
    left: 2px;
    position: relative;
}
.case-study-vertical-carosal-wrp button.nav-btn.prevBtn img{
    transform: rotate(90deg);
    width: 15px;
    top: -2px;
    left: -1px;
    position: relative;
}
.case-study-vertical-carosal-wrp .new-universal-carousel-custom
.nav-btn:hover img{filter: brightness(0) invert(1);}
}