.team-scroll-wrapper {
  overflow-x: auto;
  padding: 1rem 0;
}

.team-at-clinic {
  display: flex;
  /* gap: 1.5rem; */
  padding: 0 6rem;
  scroll-snap-type: x mandatory;
  justify-content: space-evenly ;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.doctor-card {
  flex: 0 0 calc((100% - 3rem) / 3); /* Show exactly 3 cards with 1.5rem gap between each */
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
  scroll-snap-align: start;
  /* min-width: 280px; Prevent shrinking too small on smaller screens */
}

.doctor-image {
    border-radius: 12px;
    object-fit: cover;
        width: 275px;
    height: 280px;
    object-position: top;
}


.doctor-name {
  font-size: 20px;
  margin: 1.75rem 0 1.25rem;
  /* text-align: left; */
  text-align: center;
  margin-left: 20px;
  color: #333333;
}

.doctor-qual {
  color: #555555;
  font-size: 16px;
  text-align: center;
  margin-left: 20px;
}

.team-at-clinic::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.rect-angle {
  width: 30px;
  height: 26px;
  border-radius: 0px 2px 2px 0px;
  background-color: rgba(249, 173, 28, 1);
  flex-shrink: 0;
}


@media only screen and (max-width: 768px) {
  .doctor-card {
    flex: 0 0 80%;
  }
  .doctor-name {
    font-size: 20px;
  }
  .doctor-qual {
    font-size: 16px;
  }
  .rect-angle {
    width: 14px;
    height: 24px;
    flex-shrink: 0;
  }
  .doctor-image{
    width: 260px !important;
    height: 260px !important;
  }
  .new-team-clinic-heading{
    font-size: 20px;
    /* padding: 0 4px; */
  }
  .new-team-clinic-para{
    font-size: 17px;
    font-weight: 400;
    /* padding: 0 4px; */
  }
  .new-team-clinic-header{
    padding: 0 8px;
  }
}

.error-border {
  border: 1px solid red !important;
}