/* =========================
   Team banner background
========================= */

.team-banner{
  background-image: url("images/team-banner.jpg");
}

/* =========================
   Team Grid (two columns)
========================= */
.team-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

/* =========================
   Individual Team Card
========================= */
.team-card{
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 28px 28px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 4px 12px rgba(15,23,42,0.03);
  min-height: 0;
}

/* =========================
   Team Photo
========================= */
.team-photo-wrap{
  width: 150px;
  height: 150px;
  min-width: 150px;
  min-height: 150px;
  flex-shrink: 0;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  box-shadow:
    0 4px 16px rgba(15,23,42,0.15),
    0 0 24px rgba(59,130,246,0.12),
    0 0 48px rgba(200,16,46,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.team-photo-wrap:hover{
  box-shadow:
    0 6px 22px rgba(15,23,42,0.20),
    0 0 32px rgba(59,130,246,0.18),
    0 0 56px rgba(200,16,46,0.10);
  transform: scale(1.04);
}

.team-photo{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================
   Team Info
========================= */
.team-info{
  flex: 1;
  min-width: 0;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-name{
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.team-role{
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.team-bio{
  font-size: 14px;
  line-height: 1.65;
  color: #374151;
  margin: 0;
}

/* Hide empty bio paragraphs so they don't take space */
.team-bio:empty{
  display: none;
}

/* =========================
   Team Card CTA (matches .card-link from research focus cards)
========================= */
.team-card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  gap: 12px;
}

.team-card-email{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s ease;
}

.team-card-email:hover{
  color: #c8102e;
}

.team-card-email svg{
  flex-shrink: 0;
  color: inherit;
}

.team-card-cta{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-card-cta:hover{
  color: #c8102e;
}

.team-card-cta .card-link-arrow{
  display: inline-block;
  transition: transform 0.2s ease;
}

.team-card-cta:hover .card-link-arrow{
  transform: translateX(3px);
}

/* =========================
   Responsive
========================= */
@media (max-width: 800px){
  .team-grid{
    grid-template-columns: 1fr;
  }

  .team-card{
    justify-content: flex-start;
  }

  .team-photo-wrap{
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 500px){
  .team-card{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .team-photo-wrap{
    width: 140px;
    height: 140px;
  }
}