.aptly-gradient-text {
  background: linear-gradient(
    90deg,
    #8918d2 29.81%,
    #486ad2 49.04%,
    #08bbd2 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent !important;
  font-weight: 600;
}

.aptly-team-heading-wrapper h2 {
  color: #000677;
}

.our-people-section * {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.bordered-section-inner.aptly-team-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.aptly-team-container {
  width: 100%;
}

.aptly-team-heading-wrapper {
  text-align: center;
}

.aptly-team-member-card {
  min-width: 0;
  max-width: 100%;
  transition: transform 0.3s ease;
}
.aptly-team-member-card:hover {
  transform: translateY(-5px);
}

.aptly-team-image-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.aptly-team-image-wrapper img {
  display: block;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .aptly-team-grid:not(.expanded) .aptly-team-member-card:nth-child(n + 5) {
    display: none;
  }
}

/* Tablet: show 8 people (2 rows of 4) */
@media (min-width: 769px) and (max-width: 1024px) {
  .aptly-team-grid:not(.expanded) .aptly-team-member-card:nth-child(n + 9) {
    display: none;
  }
}

/* Desktop: show 6 people */
@media (min-width: 1025px) {
  .aptly-team-grid:not(.expanded) .aptly-team-member-card:nth-child(n + 7) {
    display: none;
  }
}

/* Tablet: limit team image size so it doesn't appear too large */
@media (min-width: 769px) and (max-width: 1024px) {
  .aptly-team-image-wrapper {
    max-width: 160px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .bordered-section-inner.aptly-team-inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: var(--pad-mobile);
    padding-right: var(--pad-mobile);
  }

  .aptly-team-heading-wrapper {
    text-align: left;
    margin-bottom: 3rem;
  }

  .aptly-team-member-card {
    text-align: center;
    align-items: center;
  }

  .aptly-team-image-wrapper {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
  }
}
