/* ===========================
   TEAM PAGE STYLES
   =========================== */

.team-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.team-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-white);
  margin: 0.75rem 0 1rem;
}
.team-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.team-main {
  padding: 5rem 0;
  background: var(--color-surface);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.team-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid--four {
  grid-template-columns: repeat(3, 1fr);
}

.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}
.team-card__avatar {
  background: rgba(25,39,129,0.06);
  overflow: hidden;
}
.team-card__photo {
  width: 100%;
  height: auto;
  display: block;
}
.team-card__avatar-placeholder svg {
  width: 64px; height: 64px;
  stroke: rgba(25,39,129,0.25);
}
.team-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.team-card__title {
  font-size: 0.85rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.team-card__quals {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.team-card__quals span {
  font-size: 0.75rem;
  background: rgba(25,39,129,0.08);
  color: var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}
.team-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.team-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* CTA */
.team-cta {
  background: var(--color-primary);
  padding: 4rem 0;
  text-align: center;
  color: var(--color-white);
}
.team-cta__inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}
.team-cta__inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid--four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .team-grid--two { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-grid--four { grid-template-columns: 1fr; }
}
