/* Team Biography Modal Styles */
.member-bio-toggle {
  margin-top: 15px;
  padding: 8px 20px;
  background-color: transparent;
  color: #c7a86b;
  border: 1px solid #c7a86b;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

/* Mobile: Match button width to card width */
@media (max-width: 768px) {
  .member-bio-toggle {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .member-bio-toggle {
    width: 100%;
    max-width: 100%;
  }
}

.member-bio-toggle:hover {
  background-color: #c7a86b;
  color: #ffffff;
}

.member-bio-toggle:focus {
  outline: none;
}

.member-bio-toggle i {
  margin-left: 5px;
  font-size: 12px;
}

/* Modal Styles */
.team-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.team-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.team-modal-content {
  background-color: #ffffff;
  position: relative;
  border-radius: 5px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.team-modal-header {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 30px;
  border-radius: 5px 5px 0 0;
  position: relative;
}

.team-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  color: #c7a86b;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: all 0.3s ease;
}

.team-modal-close:hover {
  color: #ffffff;
  transform: rotate(90deg);
}

.team-modal-body {
  padding: 40px;
  display: flex;
  gap: 40px;
}

.team-modal-left {
  flex: 0 0 250px;
  text-align: center;
}

.team-modal-photo {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.team-modal-linkedin {
  display: inline-block;
  width: 45px;
  height: 38px;
  background-color: #0077b5;
  color: #ffffff;
  border-radius: 3px;
  line-height: 38px;
  text-align: center;
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-modal-linkedin:hover {
  background-color: #c7a86b;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 168, 107, 0.4);
}

.team-modal-right {
  flex: 1;
}

.team-modal-name {
  font-size: 28px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
  line-height: 1.3;
}

.team-modal-position {
  font-size: 16px;
  color: #c7a86b;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.5;
}

.team-modal-degree {
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.6;
}

.team-modal-bio {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-modal-content {
    margin: 10px;
    max-height: 95vh;
  }

  .team-modal-body {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .team-modal-left {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .team-modal-photo {
    max-width: 180px;
    margin: 0 auto 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  }

  /* Move LinkedIn button to a better position on mobile */
  .team-modal-linkedin {
    width: 180px;
    height: 42px;
    line-height: 42px;
    font-size: 16px;
    border-radius: 4px;
    margin-top: 10px;
  }

  .team-modal-linkedin i {
    margin-right: 8px;
  }

  .team-modal-linkedin::after {
    content: ' LinkedIn';
    font-size: 14px;
    font-weight: 600;
  }

  .team-modal-right {
    text-align: center;
  }

  .team-modal-name {
    font-size: 22px;
    text-align: center;
  }

  .team-modal-position {
    font-size: 14px;
    text-align: center;
  }

  .team-modal-degree {
    font-size: 13px;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .team-modal-bio {
    font-size: 14px;
    text-align: left;
    line-height: 1.7;
  }

  .team-modal-header {
    padding: 15px 55px 15px 15px;
  }

  .team-modal-close {
    top: 8px;
    right: 12px;
    font-size: 26px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.6);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .team-modal-content {
    margin: 5px;
    max-height: 97vh;
  }

  .team-modal-body {
    padding: 15px 12px;
    gap: 15px;
  }

  .team-modal-photo {
    max-width: 160px;
  }

  .team-modal-linkedin {
    width: 160px;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
  }

  .team-modal-name {
    font-size: 20px;
  }

  .team-modal-position {
    font-size: 13px;
  }

  .team-modal-degree {
    font-size: 12px;
  }

  .team-modal-bio {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Ensure member card has proper spacing */
.member {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}
