/* ==========================================================
   Meet the Team page — card layout matching the reference:
   bordered logo/cover frame up top, a squared-off portrait
   overlapping its bottom-right corner, then name, position,
   tenure, rating, and a bio row with icons beside the label.
   Built on this site's existing theme tokens so it adapts to
   light/dark mode automatically.
   ========================================================== */

.team-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  overflow: visible; /* portrait is allowed to overlap the cover image, but stays inside the card's own bounds */
  transition: transform .2s ease, border-color .2s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--color-gold); }

/* Cover / background image: the top rounded frame. Contained to its own box. */
.team-card-cover {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 3px solid var(--color-gold);
  margin-bottom: 20px;
}
.team-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Team member portrait: a squared-off, bordered photo layered ABOVE the
   cover image, floating on the right and overlapping the cover's bottom
   edge down into the name/position/years area -- matching the reference
   design. It's anchored by top+bottom so it scales with the card rather
   than a fixed aspect ratio, but never spills outside the card itself. */
.team-card-photo {
  position: absolute;
  top: 19%;
  bottom: 34%;
  right: 14px;
  width: 44%;
  max-width: 190px;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--color-gold);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  z-index: 3;
  background: var(--color-bg-alt);
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.team-card-body { position: relative; z-index: 1; }

.team-card-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 30px;
  margin: 0 0 6px;
}
.team-card-name span { color: var(--color-heading); }
.team-card-name .accent { color: var(--color-gold); }

.team-card-position {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  margin: 0 0 10px;
}

.team-card-years {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.team-card-years i { color: var(--color-gold); margin-right: 8px; width: 14px; text-align: center; }
.team-card-years strong { color: var(--color-gold); font-weight: 700; }

.team-card-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.team-card-stars i { color: var(--color-gold); font-size: 15px; margin-right: 2px; }
.team-card-stars i.is-empty { color: var(--color-border); }
.team-card-rating-value { font-weight: 700; color: var(--color-heading); font-size: 15px; }

.team-card-bio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-heading);
  margin-bottom: 14px;
}
.team-card-bio-label {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 15px;
}
.team-card-bio-icons { display: flex; align-items: center; gap: 8px; }
.team-card-icon-decorative {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-size: 16px;
}
.team-card-linkedin-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: #0a66c2;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px;
  transition: opacity .2s ease;
}
.team-card-linkedin-icon:hover { opacity: 0.85; }

.team-card-bio-text {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-text);
  line-height: 1.65;
  margin: 0;
}

/* Keep the name/position/years text clear of the overlapping portrait. */
.team-card-name,
.team-card-position,
.team-card-years {
  padding-right: 46%;
}
@media (max-width: 520px) {
  .team-card-photo { width: 40%; max-width: 150px; min-height: 170px; }
  .team-card-name,
  .team-card-position,
  .team-card-years { padding-right: 42%; }
  .team-card-name { font-size: 26px; }
}