/* Team list, homepage strip, and profile — static cards (no hover-only text). */

.team-grid {
  --team-card-radius: 0.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--team-card-radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.team-card-photo-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #1e293b;
  flex-shrink: 0;
}

.team-card-photo-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.team-card:hover .team-card-photo-link img {
  transform: scale(1.02);
}

.team-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: left;
}

.team-card-name {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.team-card-name a {
  color: #0f172a;
  text-decoration: none;
}

.team-card-name a:hover {
  color: var(--primary-color, #2563eb);
}

.team-card-credentials {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  line-height: 1.4;
}

.team-card-role {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color, #2563eb);
  line-height: 1.4;
}

.team-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.team-card-link:hover {
  color: var(--primary-color, #2563eb);
}

.team-card-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.team-card-link:hover i {
  transform: translateX(3px);
}

/* Profile detail */
.team-profile-photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--team-card-radius, 0.5rem);
  background: #1e293b;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.team-profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-profile-role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-color, #2563eb);
  margin-bottom: 0.25rem;
}

.team-profile-credentials {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .team-card-body {
    padding: 1rem 1.1rem 1.15rem;
  }

  .team-card-name {
    font-size: 1rem;
  }
}
