/* Team-specific styles */
.team-member-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.team-member-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.team-member-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f0f0;
  margin: 0 auto 20px;
  display: block;
  background-color: #e9ecef;
}

.placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  font-size: 3.5rem;
  font-weight: 300;
}

.team-member-name {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1.25rem;
}

.team-member-title {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1rem;
}

.team-member-org {
  color: #666;
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.team-member-contact {
  background-color: #f8f9fa;
  padding: 12px 15px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 3px solid var(--primary-color);
}

.contact-label {
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.contact-email {
  color: var(--secondary-color);
  font-weight: 500;
  word-break: break-word;
}

.contact-email:hover {
  text-decoration: underline;
}

.lead-organizer {
  border: 2px solid #ffc107;
  position: relative;
}

.lead-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #ffc107;
  color: #212529;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 2;
}

.team-section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.team-section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.org-logo {
  max-height: 40px;
  margin-right: 10px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.org-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .team-member-img {
    width: 140px;
    height: 140px;
  }
  
  .lead-badge {
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}

/* Remove or update lead organizer specific styles */
.lead-organizer {
    /* Remove special border/styling if it exists */
    border: 1px solid #e9ecef !important; /* Use same as other cards */
}

.lead-badge {
    display: none; /* Hide the lead badge */
}

/* Ensure all cards have equal height and consistent styling */
.team-member-card {
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

/* Adjust for 4-column layout on larger screens */
@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
}

/* Placeholder for missing logos */
.institution-placeholder {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    border-radius: 5px;
    background-color: #f8f9fa;
}