/* Common Styles */
.team-section {
    width: 100%;
    margin: 0 auto;
    position: relative; /* For positioning controls */
    overflow: hidden;
}

.team-carousel-container {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Team Carousel Item */
.team-carousel-item {
    flex: none;
    box-sizing: border-box;
    margin-right: 20px; /* Gap between items */
}

/* Dots */
.team-carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  margin-bottom: 10px;
}

.team-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
}

.team-dot.team-active {
    background-color: #302ab2;
}

/* Controls */
.team-carousel-control {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.team-carousel-control.team-left {
    left: 10px;
}

.team-carousel-control.team-right {
    right: 10px;
}

/* Mobile-Only Styles */
@media (max-width: 768px) {
    .team-section {
        width: 270px !important; /* Full width for mobile */
        padding: 0px 0px !important;
    }

    .team-carousel-item {
        width: 270px; /* Item width */
      background:#f7f7f7;
      border-radius:16px;
      text-align:center;
      
    }
  .team-carousel-item p {
         margin-top: -10px;
        margin-bottom: 20px;
  }
  .team-carousel-item img {
        width: 270px; /* Item width */
      border-top-left-radius:16px;
      border-top-right-radius:16px;
      
    }
  .team-carousel-control.team-left {
    display:none;
    left: 10px;
}

.team-carousel-control.team-right {
    right: 10px;
  display:none;
}
}

/* Desktop Styles */
  .team-section {
    margin: 0 auto;
    max-width: 890px;
    overflow: hidden;
    position: relative;
    padding: 0px 20px;
}

    .team-carousel-container {
        display: flex;
        flex-wrap: nowrap;
        
        width: 100%; /* Ensure full container width */
    }

    .team-carousel-item {
        box-sizing: border-box;
        width: 270px; /* Fixed width for items */
        margin-right: 20px; /* Gap between items */
        border-radius: 16px;
        background: #f7f7f7;
        text-align: center;
    }

    .team-carousel-item:last-child {
        margin-right: 0; /* Remove margin on the last item */
    }
      .team-carousel-item img {
        border-top-left-radius: 16px;
         border-top-right-radius: 16px;
    }
  
  .team-carousel-item p {
       margin-top:-10px;
    margin-bottom:20px;
    }

    .team-carousel-dots {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .team-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        margin: 0 5px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;
        outline: none; /* Remove orange bounding box */
    }

    .team-dot:focus {
        outline: none; /* Ensure no outline on focus */
    }

    .team-dot.team-active {
        background-color: #007BFF;
    }

 .team-carousel-control {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: auto; /* No fixed width */
        height: auto; /* No fixed height */
        background: none; /* Remove background */
        border: none; /* Remove border */
        color: #302ab2; /* Updated caret color */
        font-size: 24px; /* Increase font size for larger caret */
        cursor: pointer;
        z-index: 10;
    }



.team-carousel-control.team-left {
    left: -17px;
}

   .team-carousel-control.team-right {
    right: -14px;
}

    .team-carousel-control i {
        font-size: 20px; /* Ensure arrow size matches the design */
        line-height: 1;
    }

    /* Space for controls not to overlap */
    .team-carousel-control.team-left,
    .team-carousel-control.team-right {
        margin: 0 10px; /* Add space from the images */
    }
}
