/* Wrapper clips overflow (no extra slides outside) and centers carousel */
.carousel-wrapper {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  padding: 20px 40px 40px 40px;
  box-sizing: border-box;
  overflow: visible;
  /* border: 1px solid red; */
}



/* Carousel still allows overflow (but wrapper now controls clipping) */
.carousel {
position: relative;
width: 100%;
overflow: hidden;
padding-left: 15px;
padding-right: 15px;
/* border: 1px solid green; */
}

/* Image */
.carousel__img {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    object-fit: contain;
}
.carousel__img img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
}

/* Card container remains flex */
.carousel__card-container {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;
  margin-bottom: 10px;
}

/* Slide cards */
.carousel__card {
  padding: 32px;
  border-radius: 16px;
  box-sizing: border-box;
  flex: 0 0 auto;
  flex-shrink: 0;
  box-shadow: 0px 2px 8px 0px rgba(20, 25, 31, 0.20);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  /*   border: 1px solid tomato; */
}

.carousel__card-heading {
  font-size: 24px;
  font-family: 'Avenir Next LT W01 Bold';
  font-weight: 700;
/*   padding: 0 0 15px 0; */
}

/* .carousel__card-top{
  margin-top:-20%;
}

.carousel__card-bottom{
 margin-bottom:-20%;
} */

.carousel__card-top    { 
  margin-top: 0;
  padding-top: 8px; 
}
.carousel__card-bottom { 
  margin-bottom: 0; 
  padding-bottom: 8px; 
}




.carousel__card-desc {
  font-family: AvenirNextLTW01-Regular, serif;
  font-size: 1.05em;
  font-weight: 400;
  padding-top: 5%;
  font-size: 16px;
}

.carousel__card-desc-container {
  position: relative;
}

.carousel__card-desc {
  transition: all 0.3s ease;
}




/* Clamp text initially */
/* .carousel__card-desc--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* Show 4 lines */ */
/*   -webkit-box-orient: vertical;
  overflow: hidden;
}
 */
/* Expanded state */
.carousel__card-desc.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* Toggle link style */
.carousel__toggle {
  font-size: 0.9rem;
  color: #0073e6;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
}





.carousel__author-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel__qoute-author {
  font-family: "Avenir Next LT W01 Demi";
  font-weight: 700;
  font-size: 18px;

}

.carousel__qoute-company {
  font-family: AvenirNextLTW01-Regular, serif;
  font-size: 12px;
  margin-top: -8px;
  font-weight: 400;
}

.carousel__case-study {
  padding-top: 10px;
}

.carousel__case-study span, a {
  font-family: AvenirNextLTW01-Regular, serif;
  font-size: 12px;
}

.carousel__case-study-line {
  display: inline-flex;
  align-items: baseline;
/*   gap: .35rem;          /* spacing between label, colon, and link */ */
  white-space: nowrap;  /* keep everything on one line */
}




/* Center align slides if less than 3 */
.carousel__card-container.swiper-wrapper.centered {
  justify-content: center;
}

/* Arrow buttons outside carousel */
.custom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateY(-15px);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
}

/* Hide Swiper’s default arrows */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.swiper-button-prev svg.arrow-svg,
.swiper-button-next svg.arrow-svg {
  width: 16px !important;
  height: 24px !important;
}

/* Position navigation arrows outside horizontally */
.swiper-button-prev.custom-arrow {
  left: -30px;
}

.swiper-button-next.custom-arrow {
  right: -30px;
}

/* Pagination centered and below carousel */
.swiper-pagination {
  position: relative;
  margin-top: 30px;
  text-align: center;
  z-index: 10;
}
.swiper-pagination-bullets-dynamic {
  bottom: -40px !important;
}
.swiper-pagination-bullet {
  background: #ccc;
  opacity: 1; /* visibility of the bullets color */
}
.swiper-pagination-bullet-active {
  background: #303ab2 !important;
}



/* ##################################### */
/* Smaller screen styling */
/* ##################################### */


/* Fixing navigation arrwos padding on mobile */
@media (max-width: 767px) {
  .carousel__card { min-height: 250px; }
  .swiper-button-prev.custom-arrow { left: 10px; }
  .swiper-button-next.custom-arrow { right: 10px; }
}

/* card case study section wraping on mobile */
@media (max-width: 360px) {
  .carousel__case-study-line { white-space: normal; }
}



