.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-border-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  padding: 1px;
  box-sizing: border-box;
}

.aptly-team-image-border-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(1rem + 1px);
  background: linear-gradient(90deg, #08bbd2, #000677, #08bbd2, #000677, #08bbd2, #000677);
  background-size: 400% 100%;
  background-position: 0% 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: aptly-team-border-flow 2s linear infinite;
  animation-play-state: paused;
}

.aptly-team-member-card:hover .aptly-team-image-border-wrap::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes aptly-team-border-flow {
  to {
    background-position: 100% 0;
  }
}

.aptly-team-image-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  position: relative;
  z-index: 1;
}

.aptly-team-image-wrapper img {
  display: block;
  border-radius: 1rem;
}

.aptly-team-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: 40%;
  padding: 0.75rem 0.625rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(8, 187, 210, 0.88) 0%,
    rgba(8, 187, 210, 0.65) 25%,
    rgba(8, 187, 210, 0.35) 50%,
    rgba(8, 187, 210, 0.12) 75%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.125rem;
  text-align: center;
  border-radius: 0 0 1rem 1rem;
  z-index: 5;
}

.aptly-team-bottom-bar .aptly-team-name {
  color: #fff;
  font-size: var(--font-base);
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.aptly-team-bottom-bar .aptly-team-role {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-xs);
  line-height: 1.2;
  margin: 0;
}

.aptly-team-linkedin-link {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  display: inline-flex;
  color: #000677;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.aptly-team-image-wrapper:hover .aptly-team-linkedin-link,
.aptly-team-linkedin-link:hover {
  opacity: 1;
  color: #000677;
}

.aptly-team-overlay-linkedin-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  cursor: pointer;
}

@media (min-width: 1600px) {
  .bordered-section-inner.aptly-team-inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

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

  .aptly-team-heading-wrapper h2 {
    font-size: clamp(2rem, 2.5vw, 2.75rem);
  }
}

@media (max-width: 640px) {
  .our-people-section .aptly-team-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .our-people-section .aptly-team-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .our-people-section .aptly-team-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .our-people-section .aptly-team-member-card,
  .our-people-section .aptly-team-image-border-wrap,
  .our-people-section .aptly-team-image-wrapper {
    width: 100%;
    max-width: 100%;
  }
  .our-people-section .aptly-team-image-border-wrap,
  .our-people-section .aptly-team-image-wrapper {
    aspect-ratio: 3 / 4;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  .our-people-section .aptly-team-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media (min-width: 1441px) {
  .our-people-section .aptly-team-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

@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: center;
    margin-bottom: 3rem;
  }

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

  .aptly-team-image-border-wrap {
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  .aptly-team-image-wrapper {
    max-width: 100%;
  }
}
