/* ============================================================
   Section 1 — Hero / 成員總覽
   ============================================================ */

#hero {
  padding-top: var(--space-24);
  padding-bottom: var(--space-16);
}

/* --- 開場標題 --- */
.hero-heading {
  text-align: center;
  margin-bottom: var(--space-16);
}

.hero-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #F05030;
  margin-bottom: var(--space-4);
}

.hero-heading__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.hero-heading__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  line-height: var(--line-height-normal);
}

/* --- 角色分群 --- */
.hero-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* 講師 + 助教長 並排兩欄 */
.hero-upper-row {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  align-items: start;
}

.hero-group__label-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-group__rule {
  flex: 1;
  height: 1px;
  background: var(--color-border-light);
}

.hero-group__role-badge {
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.hero-group__role-badge[data-role="lecturer"] {
  background: var(--color-lecturer-light);
  color: var(--color-lecturer);
}

.hero-group__role-badge[data-role="assistant_lead"] {
  background: var(--color-assistant-lead-light);
  color: var(--color-assistant-lead);
}

.hero-group__role-badge[data-role="coach"] {
  background: var(--color-coach-light);
  color: var(--color-coach);
}

/* --- 頭像格線 --- */
.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  justify-content: center;
  padding: 0 var(--space-8);
}

.hero-grid--large {
  gap: var(--space-6) var(--space-8);
}

/* 教練：5 人一行固定格線 */
.hero-grid--coach {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6) var(--space-8);
  justify-items: center;
}

/* --- 單一成員 --- */
.hero-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  cursor: default;
  transition: var(--transition-default);
}

.hero-member:hover {
  transform: translateY(-4px);
}

.hero-member__avatar-wrap {
  position: relative;
}

.hero-member__avatar {
  border-radius: var(--radius-circle);
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-default);
}

.hero-member:hover .hero-member__avatar {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-surface);
}

.hero-member__name {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  text-align: center;
}

.hero-member__job {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

/* Sizes */
.hero-grid--large .hero-member__avatar {
  width: 80px;
  height: 80px;
}

.hero-grid--medium .hero-member__avatar {
  width: 80px;
  height: 80px;
}

.hero-grid--small .hero-member__avatar {
  width: 76px;
  height: 76px;
}

/* --- 統計列 --- */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border-light);
}

.hero-stat {
  text-align: center;
}

.hero-stat__number {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.hero-stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

@media (max-width: 900px) {
  .hero-upper-row {
    flex-direction: column;
    align-items: center;
    gap: var(--space-10);
  }

  .hero-grid--coach {
    grid-template-columns: repeat(3, auto);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-heading__title {
    font-size: var(--text-3xl);
  }

  .hero-stats {
    gap: var(--space-8);
  }

  .hero-grid--coach {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
  }
}