.tas-team-leadership {
  --tas-content-gutter: 20px;
  padding: clamp(40px, 5vw, 56px) 0;
  background: var(--background-color);
  position: relative;
  z-index: 1;
  overflow: visible;
}

.tas-team-leadership__inner {
  width: min(100% - calc(var(--tas-content-gutter) * 2), var(--layout-max-width));
  margin: 0 auto;
}

.tas-team-leadership .tas-section-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.tas-team-leadership__grid {
  display: grid;
  gap: clamp(20px, 2.5vw, 28px);
  align-items: start;
}

.tas-team-leadership__grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tas-team-leadership__grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tas-team-leadership__grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tas-team-leadership__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tas-team-leadership__card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.tas-team-leadership__photo {
  margin: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--light);
  flex-shrink: 0;
}

.tas-team-leadership__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

.tas-team-leadership__name {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--primary);
  text-align: center;
}

.tas-team-leadership__title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  text-align: center;
}

.tas-team-leadership__bio {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
}

.tas-team-leadership__body {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  padding: clamp(16px, 2vw, 20px) clamp(14px, 1.8vw, 18px);
}

.tas-team-leadership__card:not(:has(.tas-team-leadership__social)) .tas-team-leadership__body {
  padding-bottom: clamp(16px, 2vw, 20px);
}

.tas-team-leadership__card--linked .tas-team-leadership__profile-link {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.tas-team-leadership__card--linked:hover {
  transform: translateY(-2px);
}

.tas-team-leadership__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 14px auto clamp(16px, 2vw, 20px);
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-on-primary) !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tas-team-leadership__social i {
  font-size: 0.875rem;
  line-height: 1;
}

.tas-team-leadership__social:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 1199px) {
  .tas-team-leadership__grid.cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .tas-team-leadership__grid.cols-5,
  .tas-team-leadership__grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tas-team-leadership {
    --tas-content-gutter: 16px;
    padding-bottom: clamp(40px, 8vw, 56px);
  }

  .tas-team-leadership__grid {
    gap: 14px;
  }

  .tas-team-leadership__grid.mobile-cols-2.cols-5,
  .tas-team-leadership__grid.mobile-cols-2.cols-4,
  .tas-team-leadership__grid.mobile-cols-2.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin: 0;
  }

  .tas-team-leadership__grid.mobile-cols-1.cols-5,
  .tas-team-leadership__grid.mobile-cols-1.cols-4,
  .tas-team-leadership__grid.mobile-cols-1.cols-3 {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 28px);
    max-width: min(100%, 360px);
    margin: 0 auto;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__card {
    border-radius: 10px;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__photo {
    border-radius: 10px 10px 0 0;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__body {
    padding: 12px 10px 14px;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__name {
    font-size: 0.875rem;
    margin-bottom: 2px;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__title {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__bio {
    font-size: 0.6875rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__social {
    width: 28px;
    height: 28px;
    margin: 10px auto 12px;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__social i {
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .tas-team-leadership__grid.mobile-cols-2 {
    gap: 12px;
  }

  .tas-team-leadership__grid.mobile-cols-2 .tas-team-leadership__body {
    padding: 10px 8px 12px;
  }
}
