.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
@media (min-width: 1024px) {
  .team {
    grid-template-columns: repeat(4, 1fr);
  }
}

.team-member {
  text-align: center;
  padding: 16px;
}
@media (min-width: 768px) {
  .team-member {
    padding: 24px;
  }
}

.team-avatar {
  position: relative;
  margin-bottom: 16px;
  width: 100%;
}
.team-avatar img {
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 2px solid #e0e0e0;
  background-color: #f8f8f8;
  padding: 12px;
  box-sizing: border-box;
  transition: transform 250ms ease-in-out ease-in-out;
}
@media (min-width: 768px) {
  .team-avatar img {
    width: 250px;
    height: 250px;
  }
}
.team-avatar:hover img {
  transform: scale(1.05);
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  margin: 16px 0 8px;
  text-transform: uppercase;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .team-name {
    font-size: 20px;
  }
}

.team-role {
  font-size: 16px;
  color: #666666;
  font-style: italic;
  margin-bottom: 12px;
  display: block;
}

.team-bio {
  font-size: 14px;
  color: #666666;
  line-height: 1.75;
  margin-bottom: 16px;
}
.team-bio a {
  color: #8b0e0e;
  text-decoration: none;
}
.team-bio a:hover {
  text-decoration: underline;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.team-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.team-social-item a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #8b0e0e;
  color: #ffffff;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 250ms ease-in-out ease-in-out, transform 250ms ease-in-out ease-in-out;
}
.team-social-item a:hover {
  background-color: #5d0909;
  transform: translateY(-2px);
}
.team-social-item a svg,
.team-social-item a i {
  width: 18px;
  height: 18px;
}
.team-social-item.facebook a {
  background-color: #3b5998;
}
.team-social-item.facebook a:hover {
  background-color: #2d448b;
}
.team-social-item.twitter a {
  background-color: #1da1f2;
}
.team-social-item.twitter a:hover {
  background-color: #1a91da;
}
.team-social-item.linkedin a {
  background-color: #0077b5;
}
.team-social-item.linkedin a:hover {
  background-color: #006399;
}
.team-social-item.instagram a {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.team-social-item.instagram a:hover {
  filter: brightness(0.95);
}
.team-social-item.pinterest a {
  background-color: #e60023;
}
.team-social-item.pinterest a:hover {
  background-color: #c4001c;
}
.team-social-item.youtube a {
  background-color: #ff0000;
}
.team-social-item.youtube a:hover {
  background-color: #cc0000;
}
.team-social-item.email a {
  background-color: #d4af37;
}
.team-social-item.email a:hover {
  background-color: #b29126;
}

.team-skills {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e0e0e0;
}

.team-skills-title {
  font-weight: 700;
  color: #222222;
  font-size: 14px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.team-skills-item {
  display: inline-block;
  padding: 4px 12px;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 9999px;
  font-size: 12px;
  color: #666666;
  transition: background-color 250ms ease-in-out ease-in-out, color 250ms ease-in-out ease-in-out;
}
.team-skills-item:hover {
  background-color: #8b0e0e;
  color: #ffffff;
  border-color: #8b0e0e;
}

.team-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e0e0e0;
}

.team-contact-item {
  font-size: 14px;
}
.team-contact-item a {
  color: #8b0e0e;
  text-decoration: none;
}
.team-contact-item a:hover {
  text-decoration: underline;
}

.team-container {
  width: 100%;
  margin: 0 auto;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
@media (min-width: 768px) {
  .team-row {
    gap: 48px;
  }
}

.team-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.team-section-header .team-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #222222;
  margin: 0 0 12px 0;
}
@media (min-width: 768px) {
  .team-section-header .team-section-title {
    font-size: 28px;
  }
}
.team-section-header .team-section-subtitle {
  font-size: 16px;
  color: #666666;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-avatar img {
    width: 250px;
    height: 250px;
  }
  .team-bio {
    font-size: 16px;
  }
}
@media (min-width: 1024px) {
  .team {
    grid-template-columns: repeat(4, 1fr);
  }
}
