/* Team page — leadership profile cards
   Palette: --primary #2142A1 · --accent #FF7A00 · Poppins + Inter */

.tm-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.tm-card {
  flex: 0 1 calc((100% - 56px) / 3);
}

.tm-card {
  position: relative;
  overflow: hidden;
  padding: 42px 28px 32px;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(33, 66, 161, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 280ms ease, box-shadow 280ms ease;
}

.tm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 102px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 122, 0, 0.12), transparent 46%),
    linear-gradient(135deg, rgba(33, 66, 161, 0.1), rgba(33, 66, 161, 0.02));
}

.tm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.tm-avatar {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 20px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--primary), var(--accent), var(--primary));
}

.tm-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 50%;
  transition: transform 350ms ease;
}

.tm-card:hover .tm-avatar img { transform: scale(1.05); }

.tm-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.tm-card h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.tm-role {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tm-bio {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.tm-social {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all var(--transition);
}

.tm-name .tm-social {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.tm-social:hover {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

@media (max-width: 980px) {
  .tm-card { flex-basis: calc((100% - 28px) / 2); }
}

@media (max-width: 680px) {
  .tm-card { flex-basis: 100%; }
}
