.team-slider-section{
  height: auto;
  background: rgb(216, 255, 244);
  position: relative;
    overflow: hidden;
}

.team-slider-section .container {
     position: relative;
    z-index: 999;
}

.team-slider-section .bg-img-01{
  position: absolute;
  width: 20vw;
  z-index: 2;
  top: 8%;
    left: 0;
  transform: scaleY(-1);
}

.team-photo{
  width: 100%;
}

.team-name{
  background-color: #86ef21;
  color: black;
  display: flex;
    flex-direction: column;
    justify-content: center;
      width: 90%;
     padding: .8vw 1vw .8vw 3vw;
    width: 100%;
  left: -50px;
    position: relative;
  
}
.team-name h5{font-weight: 600; font-size: 1.3vw;}
.team-name p{ font-style: italic; font-size: 1vw;}
.team-name h5, .team-name p{
  margin: 0;
}

.team-slider-section .bg-img-02{
 position: absolute;
 width: 22vw;
  z-index: 2;
 right: -2%;
  bottom: -17%;
}

.team-slider-section button {
    width: 5%;
}

.team-slider-section button > img{
  width: 3vw;
  height: auto;
}

#teamCarousel{
  width: 85%!important; 
    margin: 0 auto;
}

.carousel-inner .carousel-item .card {
  padding: 2rem;
  background-color: #005a57; 
  border-radius: 0;
  width: 80%;
  margin: 0 auto;
  height: 60vh;
}

.carousel-inner .carousel-item .card img{
  border-radius: 0 150px 150px 150px; 
  object-fit: cover;
}

.team-slider-section .carousel-inner.desktop{
    display: block;
    min-height: 50vh;
}
.team-slider-section .carousel-inner.tablet{
    display: none;
}

.carousel-indicators{
  display: none;
}

.carousel-indicators button{
  width: 20px;
  height: 20px;
}

  .arrows{display: flex;}

.team-slider-section .container p, .team-slider-section .container ul li, .team-slider-section .container ul li span {font-size: 14px!important; }
.team-slider-section .container .details > p{
    line-height: 1;
}
.job-title{
  line-height: 1!important;
}
 .desktop-arrows{
    display: block;
  }

/* ADDED: center lone card on a slide */
.carousel-inner.desktop .carousel-item .row { justify-content: center; }

/* ADDED (optional, modern browsers): hide any column without a card */
@supports(selector(:has(*))) {
  .carousel-inner.desktop .col-md-6:not(:has(.card)) { display: none; }
}
@media(max-width: 1025px){
  .desktop-arrows{
    display: none!important;
  }
 .team-slider-section .carousel-inner.desktop{
   display: none;
}
  .team-slider-section .carousel-inner.tablet{
    display: flex;
     min-height: 50vh;
  }
  
   .team-slider-section .carousel-inner.tablet img{
      border-radius: 0 250px 250px 250px;
      width: 65%;
  }
  .team-slider-section .carousel-inner.tablet h3{
      font-size: 30px!important;
  }
   .team-slider-section .carousel-inner.tablet p{
      font-size: 20px!important;
  }
  
  .carousel-indicators{
    display: flex;
    align-items: center;   
    bottom: 4%;
  }
  
  .arrows{display: none!important;}
  
   .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #005a57;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    margin: 0 6px;
    border: none;
  }

  .carousel-indicators .active {
    opacity: 1;
  }
  
  #teamCarousel{    
    padding-bottom: 5rem;
  }
}

@media(max-width: 768px){
 
  
   .team-slider-section .carousel-inner.tablet img{
      border-radius: 0 150px 150px 150px;
      width: 50%;
  }
 
}

@media(max-width: 575px){

}

@media(max-width: 480px){
  #teamCarousel{
    width: 100%!important;    
  }
  .carousel-inner .carousel-item .card{
    width: 100%;
  }
  .team-name{
    padding: 1vw 1vw 1vw 8vw;
  }
  .team-name h5{ font-size: 7vw;}
  .team-name p{  font-size: 3vw!important;}
  .carousel-inner.tablet .details p {
      margin-bottom: 10px;    
      line-height: 1;
  }
  
  .desktop-arrows{
    display: none!important;
  }
}
