/* Member section styling */
.member-section {
  margin-bottom: 3rem;
}

.member-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  color: var(--global-text-color);
}

.member-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--global-card-bg-color);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* transition: box-shadow 0.3s ease, transform 0.3s ease; */
}

.member-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  /* transform: translateY(-2px); */
}

.member-photo {
  flex-shrink: 0;
  margin-right: 1.5rem;
  width: 150px;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  flex: 1;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--global-theme-color);
  margin-bottom: 0.25rem;
}

.member-title {
  font-size: 0.95rem;
  color: var(--global-text-color-light);
  margin-bottom: 1rem;
  font-style: italic;
}

.member-details {
  line-height: 1.6;
}

.member-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.member-details strong {
  color: var(--global-text-color);
  font-weight: 600;
}

.member-details a {
  color: var(--global-theme-color);
  text-decoration: none;
}

.member-details a:hover {
  text-decoration: underline;
}

/* Dark mode adjustments */
html[data-theme="dark"] .member-card {
  background: var(--global-bg-color);
  border: 1px solid var(--global-divider-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .member-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .member-photo {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .member-card {
    flex-direction: column;
    text-align: center;
  }

  .member-photo {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 120px;
    height: 144px;
    align-self: center;
  }

  .member-info {
    text-align: left;
  }
}