.teamcards {
  padding: var(--section-padding-top, 80px) 0
    var(--section-padding-bottom, 80px);
  background: #e8edf1;
}

.teamcards .container {
  max-width: 1400px;
}

.teamcards-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.teamcards-title {
  margin: 0 0 24px;
}

.teamcards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* White card — photo lives INSIDE */
.teamcards-card {
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 4px 28px rgba(14, 16, 46, 0.06);
  padding: 36px 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Triangle accent — top-right corner */
.teamcards-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    to bottom left,
    var(--primary, #007bb6) 50%,
    transparent 50%
  );
  border-top-right-radius: 1px;
}

/* Circular photo inside the card */
.teamcards-photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 28px;
  position: static;
  transform: none;
  top: auto;
  left: auto;
  border: none;
  box-shadow: none;
}

.teamcards-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.teamcards-photo--placeholder {
  background: #d0dae4;
}

.teamcards-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.teamcards-info::after {
  display: none;
}

.teamcards-name {
  font-family: var(--font1, "Manrope", sans-serif);
  font-size: 25px;
  font-weight: 700;
  color: #0e102e;
  margin: 0 0 10px;
  line-height: 1.2;
}

.teamcards-role {
  font-family: var(--font2, "Rubik", sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a7a8f;
}

.teamcards-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font2, "Rubik", sans-serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary, #007bb6);
  text-decoration: none;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(14, 16, 46, 0.08);
  width: 100%;
  justify-content: center;
  transition:
    color 0.2s,
    gap 0.2s;
}

.teamcards-link:hover {
  gap: 10px;
  color: var(--primary, #007bb6);
  text-decoration: none;
}

@media (max-width: 900px) {
  .teamcards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .teamcards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
