/* === PEOPLE CARDS === */
.people-section {
  padding: 30px 0 60px 0;
}
/* Add space between 'Our Leadership' title and photos */
/* Fix spacing for Our Leadership title */
/* ===== OUR LEADERSHIP TITLE ===== */
#leadership h2.leadership-title {
    margin-top: 40px !important;
    margin-bottom: 30px !important;
    text-align: center;

    /* Animation initial state */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* When entering viewport */
#leadership h2.leadership-title.show {
    opacity: 1;
    transform: translateY(0);
}

.people-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.person-card {
  width: 230px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 当元素进入画面 → 加这个 class */
.person-card.show {
  opacity: 1;
  transform: translateY(0);
}

.person-card img {
  width: 100%;
  border-radius: 12px;
  transition: 0.3s ease;
}

.person-card:hover {
  transform: scale(1.06);
}

.person-card.active-card {
  transform: scale(1.08);
}


/* === RIGHT SLIDE BIO PANEL (FIXED, DOES NOT MOVE PAGE) === */
.bio-panel {
  position: fixed;
  top: 80px;
  right: -420px;
  width: 420px;
  height: calc(100% - 80px);
  padding-top: 25px;
  background: #fff;
  box-shadow: -4px 0 25px rgba(0,0,0,0.25);
  z-index: 9999;
  padding: 40px 30px;
  overflow-y: auto;
  transition: right 0.35s ease;
}

.bio-panel.active {
  right: 0;
}

/* Close button */
.bio-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
}

/* === PHOTO STYLE (方案 B - 方形 + 200px) === */
#bio-img {
  max-width: 320px;           /* 固定宽度 */
  height: 200px;          /* 固定高度 */
  object-fit: cover;      /* 维持脸部比例 */
  border-radius: 12px;    /* 方形小圆角 */
  display: block;
  margin: 0 auto 20px auto;  /* 居中 */
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* Text layout */
.bio-panel h2 {
  color: #10368a;
  text-align: center;
}

.bio-panel h3,
.bio-panel h4 {
  color: #444;
  text-align: center;
  margin-bottom: 10px;
}

#bio-desc p {
  color: #555;
  margin-bottom: 12px;
}

.bio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
  z-index: 9998;
  display: none;
}

.bio-overlay.active {
  display: block;
}
