/*-------------*/
/* Members */
/*-------------*/

.tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.tab-button {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #444;
  transition: border-color 0.3s, color 0.3s;
}

.tab-button:hover {
  color: #000;
}

.tab-button.active {
  border-color: #000;
  color: #000;
}

/* Tab content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Layout */
.member-tab-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.member-list {
  padding: 1.25rem;
  border-right: 1px solid #e0e0e0;
  max-width: 320px;
  overflow-y: auto;
  background: #fafafa;
  border-radius: 8px;
}

/* Headings for roles */
.member-list h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.25rem;
  color: #333;
}

/* Member link */
.member-name {
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  transition: background 0.2s, font-weight 0.2s;
}

.member-name:hover,
.member-name.active {
  background: #f3f3f3;
  font-weight: 600;
}

/* Profile section */
.member-profile {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  box-sizing: border-box;
  text-align: center;
}

.member-profile-card {
  display: none;
}

.member-profile-card.active {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  text-align: left;
  padding: 1.5rem 0;
}

.member-name-block {
  text-align: left;
  margin-bottom: 1rem;
}

.member-profile h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
}

.member-institute {
  font-style: italic;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  color: #555;
  text-align: left;
}

/* Bio */
.member-bio {
  margin-top: 1rem;
  text-align: justify;
}

.member-bio p {
  margin: 0.5rem 0;
}

/* Social icons */
.member-socials {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 1.25rem;
}

.member-socials a {
  color: #555;
  font-size: 1.25rem;
  transition: color 0.2s;
}

.member-socials a:hover {
  color: #000;
}

/* Photo styling */
.member-photo {
  max-width: 180px;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  margin: 0;
  flex-shrink: 0;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .member-tab-content {
    flex-direction: column;
  }

  .member-list {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
  }

  .member-profile {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem 1rem;
  }

  .member-profile-card.active {
    flex-direction: column;
    text-align: center;
  }

  .member-name-block,
  .member-institute,
  .member-bio {
    text-align: center;
  }

  .member-socials {
    justify-content: center;
  }

  .member-photo {
    margin: 0 auto 1.5rem;
  }
}

/*-------------*/
/* Members END */
/*-------------*/

/* Collaborators Table */
.collaborators-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.collaborators-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.collaborators-table th,
.collaborators-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.collaborators-table th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.collaborators-table a {
  color: #0073aa;
  text-decoration: none;
}

.collaborators-table a:hover {
  text-decoration: underline;
}
