/* Team Members Grid Styles */
.team-members-section {
  width: 100%;
  padding: 0 20px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.team-members-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Filter Tabs */
.team-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
}

.filter-tab {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: all 0.3s ease;
  color: #696c6f;
}

.filter-tab--active {
  color: #164aba;
}

.filter-tab--active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #164aba;
  border-radius: 2px;
}

.filter-tab:hover {
  color: #164aba;
}

.filter-tab:hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #164aba;
  border-radius: 2px;
}

/* Team Members Grid */
.team-members-grid {
  display: none;
  gap: 32px;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.team-members-grid--active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

/* Team Member Card */
.team-member-card {
  background: white;
  border-radius: 12px;
  padding: 0;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
  cursor: pointer;
}

.member-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.member-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Member Image */
.member-image-container {
  margin-bottom: 0;
  width: 100%;
}

.member-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  margin: 0;
  display: block;
  max-height: fit-content;
}

.member-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background-color: #60a5fa;
  margin: 0;
  overflow: hidden;
}

.member-image-placeholder svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46%;
  max-width: 120px;
  height: auto;
}

@supports not (aspect-ratio: 1 / 1) {
  .member-image-placeholder {
    padding-top: 100%;
  }
}

/* Member Info */
.member-info {
  text-align: center;
  padding: 20px;
}

.member-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1e293b;
  line-height: 1.3;
}

.member-title {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 12px 0;
  color: #696c6f;
  line-height: 1.4;
}

/* Member Divider */
.member-divider {
  width: 100%;
  height: 1px;
  background-color: #e2e8f0;
  border: none;
  margin: 0 auto 12px auto;
  border-radius: 1px;
}

.member-department {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: #696c6f;
  line-height: 1.4;
}

/* Board Member Card (Simplified) */
.board-member-card {
  padding: 0;
}

.board-member-card .member-image,
.board-member-card .member-image-placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}

.board-member-card .member-info {
  padding: 20px;
}

.board-member-card .member-name {
  font-size: 16px;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .team-members-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .team-members-section {
    padding: 0 16px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .team-filter-tabs {
    gap: 32px;
    margin-bottom: 40px;
  }

  .filter-tab {
    font-size: 16px;
  }

  .team-members-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  .member-info {
    padding: 16px;
  }

  .member-name {
    font-size: 16px;
  }

  .member-title {
    font-size: 13px;
  }

  .member-department {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .team-members-section {
    padding: 0 12px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .team-filter-tabs {
    gap: 24px;
    margin-bottom: 32px;
  }

  .filter-tab {
    font-size: 15px;
  }

  .team-members-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .member-info {
    padding: 16px;
  }

  .member-name {
    font-size: 15px;
  }

  .member-title {
    font-size: 12px;
  }

  .member-department {
    font-size: 12px;
  }
}
