.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
.team-grid .team-card {
  perspective: 1000px;
  height: 100%;
  min-height: 450px;
  min-width: 260px;
  border-radius: 20px;
  cursor: pointer;
}
.team-grid .team-card:hover {
  outline: 4px solid #0194d3;
  outline-offset: 2px;
  border-radius: 20px;
}
.team-grid .team-card .card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  border-radius: 20px;
  height: 100%;
}
.team-grid .team-card.flipped .card-inner {
  transform: rotateY(180deg);
}
.team-grid .team-card .card-front {
  background: #F0F0F0;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
  text-align: center;
  height: 100%;
  padding: 1rem;
  width: 100%;
}
.team-grid .team-card .card-back {
  position: absolute;
  backface-visibility: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: visible;
  text-align: center;
  height: 100%;
  padding: 1rem;
  width: 100%;
}
.team-grid .team-card .card-front img {
  background: #001E2A;
  width: 100%;
  aspect-ratio: 5/6;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 20px;
  display: block;
}
.team-grid .team-card .card-front .info {
  display: flex;
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  background: #FFF;
  margin-top: 20px;
}
.team-grid .team-card .card-front .info h3 {
  margin: 0;
  color: #212121;
  text-align: center;
  font-family: "Asap Condensed";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
}
.team-grid .team-card .card-front .info p {
  color: #001E2A;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  margin: 0;
}
.team-grid .team-card .card-back {
  transform: rotateY(180deg);
  border-radius: 20px;
  background: #0194D3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.team-grid .team-card .card-back .badge {
  background: #B3DFF2;
  padding: 12px;
  color: #212121;
  text-align: center;
  font-family: "Asap Condensed";
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 17px;
  width: 100%;
  border-radius: 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}
.team-grid .team-card .card-back .badge::before, .team-grid .team-card .card-back .badge::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url("/wp-content/uploads/2025/08/star-1.svg") no-repeat center;
  background-size: contain;
  display: inline-block;
}
.team-grid .team-card .card-back p {
  padding: 10px;
  color: #212121;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  background: #ffffff;
  border-radius: 10px;
}
.team-grid .team-card .card-back .info {
  display: flex;
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  background: #FFF;
}
.team-grid .team-card .card-back .info h3 {
  margin: 0;
  color: #212121;
  text-align: center;
  font-family: "Asap Condensed";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
}
.team-grid .team-card .card-back .info p {
  color: #001E2A;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}
.team-grid:has(.team-card:nth-child(1):nth-last-child(1)) {
  justify-content: center;
}
.team-grid .team-card {
  max-width: 300px;
  margin: 0;
}

.team-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}
.team-filters .filter-pill {
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  height: 52px;
  padding: 0 20px;
  justify-content: center;
  align-items: center;
  gap: 40px;
  border-radius: 20px;
  border: 1px solid #D5D5D5;
  background: #FFF;
  color: var(--Neutral-900, #212121);
  text-align: center;
  font-family: "Asap Condensed";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 17px;
}
.team-filters .filter-pill.active {
  background: #7fff00;
  color: #000;
  border-color: #7fff00;
}
.team-filters .filter-pill:hover {
  background: #7fff00;
  color: #000;
  border-color: #7fff00;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
