/* ==============================
   People Page - Dedicated Styles
   Extracted from page/people/people.html
   ============================== */

/* Ensure in-page anchors clear the sticky header */
.people-section-title,
.founder-highlight,
.executive-section,
.members-grid { scroll-margin-top: 100px; }

/* ===== Page banner - people ===== */
.page-banner--people {
  min-height: 360px;
  padding: 90px 0 82px;
}
.page-banner--people h1 {
  font-size: clamp(3.2rem, 6vw, 5.1rem);
  line-height: 1;
  margin-bottom: 18px;
  letter-spacing: 0;
}
.page-banner--people .banner-subtitle {
  max-width: 760px;
  font-size: 1.16rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
}

/* ===== People section ===== */
.people-section {
  padding: 88px 0;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
}

/* Section title */
.people-section-title {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px 0 34px;
}
.people-section-title:first-of-type { margin-top: 0; }
.people-section-title h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.18;
  color: #152035;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0;
}
.people-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #0095b3, rgba(221,229,238,0.6), transparent);
}

/* ============================================================
   Tier 1: Founding Director
   ============================================================ */
.founder-highlight {
  min-height: 360px;
  margin-bottom: 78px;
  padding: 58px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(21,32,53,0.98), rgba(21,32,53,0.86) 54%, rgba(0,149,179,0.62)),
    linear-gradient(135deg, #152035, #0d3a6e 58%, #0095b3);
  box-shadow: 0 26px 70px rgba(21,32,53,0.18);
}
.founder-highlight::after {
  content: "RCM";
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255,255,255,0.055);
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.1em;
  pointer-events: none;
}
.founder-inner {
  display: flex;
  align-items: center;
  gap: 54px;
  position: relative;
  z-index: 1;
}
.founder-avatar {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 3px solid rgba(255,255,255,0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.founder-avatar:hover { transform: scale(1.03); }
.founder-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.founder-info h3 {
  color: #fff;
  font-size: clamp(2.55rem, 4vw, 3.65rem);
  line-height: 1.05;
  margin-bottom: 14px;
  cursor: pointer;
}
.founder-info h3:hover { color: #f0d17a; }
.founder-info .founder-title {
  color: #f0d17a;
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.founder-info .founder-positions {
  color: rgba(255,255,255,0.76);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.founder-info .founder-desc {
  color: rgba(255,255,255,0.86);
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.86;
  margin-bottom: 16px;
}
.founder-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.founder-badge {
  background: rgba(201,162,39,0.2);
  border: 1px solid rgba(201,162,39,0.4);
  color: #e8bc3c;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 13px;
  border-radius: 6px;
}

/* ============================================================
   Tier 2: Executive Directors (current + past)
   ============================================================ */
.executive-section { margin-bottom: 78px; }

/* Current executive director - highlight card */
.executive-current {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  margin-bottom: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(0,149,179,0.08) 0%, rgba(255,255,255,1) 60%),
    #fff;
  border: 1px solid #dde5ee;
  border-left: 5px solid #0095b3;
  box-shadow: 0 16px 42px rgba(21,32,53,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.executive-current::before {
  content: "现任 Current";
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 5px 12px;
  border-radius: 4px;
  background: #0095b3;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.executive-current:hover {
  transform: translateY(-4px);
  border-color: #0095b3;
  box-shadow: 0 28px 62px rgba(21,32,53,0.14);
}
.executive-current-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef4f7;
  box-shadow:
    0 10px 24px rgba(0,149,179,0.18),
    inset 0 0 0 4px #fff,
    0 0 0 2px rgba(0,149,179,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 700;
  color: #0095b3;
  justify-self: center;
}
.executive-current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.executive-current-info .role-label {
  display: inline-block;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: 6px;
  background: rgba(0,149,179,0.1);
  color: #007a99;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.executive-current-info h3 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 10px;
  color: #152035;
}
.executive-current-info .position {
  color: #0095b3;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.executive-current-info .desc {
  color: #5b6678;
  font-size: 1rem;
  line-height: 1.82;
  max-width: 620px;
}

/* Past directors */
.executive-past-label {
  font-size: 1.12rem;
  font-weight: 700;
  color: #5b6678;
  margin: 28px 0 20px;
  padding-left: 14px;
  border-left: 3px solid #c9a227;
  letter-spacing: 0.05em;
}
.executive-past-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

/* ============================================================
   Tier 3: Members Grid (two-column layout)
   ============================================================ */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
/* Single-item variant (e.g. current Executive Director) -
   keeps two-column grid so the card width matches the members below */
.members-grid--single {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 48px;
}

.person-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 30px 26px 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde5ee;
  box-shadow: 0 16px 42px rgba(21,32,53,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-align: left;
  min-height: 260px;
  position: relative;
}
.person-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,149,179,0.5);
  box-shadow: 0 26px 62px rgba(21,32,53,0.14);
}

/* Past director card variation */
.person-card.is-past::after {
  content: "历任 Past";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(201,162,39,0.15);
  color: #8a6d1b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.person-card.is-past {
  border-left: 4px solid #c9a227;
}

/* Avatar - unified circular, enlarged */
.person-avatar {
  width: 156px;
  height: 156px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #eef4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0095b3;
  font-size: 3rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0,149,179,0.15);
  transition: transform 0.3s ease;
}
.person-card:hover .person-avatar { transform: scale(1.04); }
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Card body */
.person-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.person-name {
  color: #152035;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}
.person-card:hover .person-name { color: #0095b3; }
.person-title {
  color: #0095b3;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.person-position {
  display: inline-block;
  width: fit-content;
  padding: 5px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: rgba(0,149,179,0.08);
  color: #007a99;
  font-size: 0.84rem;
  font-weight: 600;
}
.person-research {
  color: #5b6678;
  font-size: 0.95rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.person-honors {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.person-honors:empty { display: none; }
.honor-text {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.2);
  color: #7a6424;
  font-size: 0.76rem;
  font-weight: 600;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .page-banner--people {
    min-height: 260px;
    padding: 58px 0 50px;
  }
  .page-banner--people h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
  .page-banner--people .banner-subtitle { font-size: 1.02rem; }

  .people-section { padding: 56px 0 76px; }
  .people-section-title {
    align-items: flex-start;
    gap: 12px;
    margin: 52px 0 28px;
  }
  .people-section-title h2 {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }
  .people-section-title::after {
    min-width: 42px;
    margin-top: 1.1rem;
  }

  .founder-highlight { padding: 36px 30px; }
  .founder-inner {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }
.founder-badges {
    text-align: center;
    justify-content: center;
}
  .founder-avatar { width: 160px; height: 160px; }
  .founder-highlight::after { display: none; }

  .executive-current {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
    padding: 32px 26px;
  }
  .executive-current::before { top: 14px; right: 14px; }
  .executive-current-avatar { width: 150px; height: 150px; }
  .executive-current-info .desc { max-width: 100%; }

  .executive-past-grid { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .people-section-title {
    display: block;
  }
  .people-section-title::after {
    display: block;
    width: 70px;
    margin-top: 14px;
  }
  .founder-info h3 {
    font-size: clamp(2rem, 12vw, 2.8rem);
    overflow-wrap: anywhere;
  }
  .person-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
    gap: 18px;
    min-height: 0;
  }
  .person-body { align-items: center; }
  .person-position { margin-left: auto; margin-right: auto; }
  .person-honors { justify-content: center; }
}