.our-team {
  max-width: 1200px;
  margin: auto;
  padding: 120px 10%;
  padding-bottom: 0px;
  display: flex;
  text-align: center;
  flex-direction: column;
}

.our-team h2 {
  font-size: 50px;
  color: var(--purple-color);
  margin: auto;
}

.our-team-description {
  font-size: large;
}

.our-team-cards-section-scroll {
  width: 100%;
  display: flex;
  justify-content: center; /* centers the container horizontally */
  padding: 40px 20px; /* spacing around section */
}

.our-team-cards-container {
  display: flex;
  gap: 40px; /* space between our-team-cards */
  overflow-x: auto; /* horizontal scrolling */
  padding: 0 20px; /* padding so our-team-cards are fully visible */
  scroll-behavior: smooth;
  padding-top: 200px;
}

.background-orange {
  background: var(--orange-color);
}

.background-pink {
  background: var(--pink-color);
}

.our-team-feature-card {
  flex: 0 0 auto;
  width: 280px;
  height: auto;
  border-radius: 40px;
  padding: 10px 20px 30px;
  position: relative;
  text-align: left;
  overflow: visible;
  display: flex;
  flex-direction: column; /* stack content and button vertically */
  transition: all 0.3s ease; /* smooth hover effect */
  cursor: pointer;
}

.our-team-feature-card:hover {
  transform: translateY(-4px);
}

.our-team-card-image {
  width: 200px;
  height: 200px;
  position: absolute;
  top: -170px;
  left: 40%;
  transform: translateX(-50%);
}

.our-team-card-image img {
  width: auto;
  height: 200px; /* maintain aspect ratio */
  position: relative;
  top: 0; /* aligns image to top of the container */
  object-fit: cover;
}

.our-team-card-content h3 {
  padding-top: 20px;
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0px 10px 10px;
  color: black;
}
.our-team-card-content h4 {
  color: var(--purple-color);
  font-size: 20px;
  font-weight: 700;
  margin: 0px 10px;
}

.our-team-card-content p {
  padding: 10px 5px;
  font-size: 14px;
  color: rgb(43, 43, 43);
  line-height: 1.3;
  margin: 10px 10px;
  letter-spacing: 1.1px;
}

.text-white {
  color: white;
}

@media (max-width: 400px) {
  .our-team-cards-section-scroll {
    padding-left: 5px;
  }
}

@media (max-width: 992px) {
  .our-team-cards-container {
    flex-direction: column; /* stack cards vertically */
    gap: 200px; /* space between stacked cards */
    align-items: center; /* center cards horizontally */
    overflow-x: hidden;
  }
  .our-team-feature-card {
    width: 100%; /* make cards wider on small screens */
  }
}
