/* ============================================================
   FLY EAGLE SPORT — Team Page Styles
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.team-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background-image: url('../assets/images/fes-media/remos-runway-flight.jpg');
  background-size: cover;
  background-position: center 40%;
  padding: 120px 0 64px;
}

.team-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,8,0.64) 0%, rgba(8,8,8,0.42) 55%, rgba(8,8,8,0.22) 100%);
}

.team-hero .container {
  position: relative;
  z-index: 1;
}

.team-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.1;
}

.team-hero__sub {
  font-size: 1.1rem;
  color: var(--white);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Leadership Section ───────────────────────────────────── */
.leadership-section {
  padding: 80px 0 64px;
  background: var(--bg-primary);
}

.leadership-section > .container > h2 {
  margin: 8px 0 40px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

.leadership-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.2s;
}

.leadership-card:hover {
  border-color: var(--ox);
}

.leadership-card__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--ox);
}

.leadership-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leadership-card__body {
  flex: 1;
  min-width: 0;
}

.leadership-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 2px;
}

.leadership-card__title {
  font-size: 0.82rem;
  color: var(--ox-hover);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.leadership-card__email {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--silver);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.2s;
}

.leadership-card__email:hover { color: var(--ox-hover); }

.leadership-card__bio {
  font-size: 0.88rem;
  color: var(--silver);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.leadership-card__bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--ox-hover);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
  display: block;
  transition: color 0.2s;
}

.read-more-btn:hover { color: var(--white); }

/* ── CFI Section ──────────────────────────────────────────── */
.cfi-section {
  padding: 72px 0 80px;
  background: var(--bg-secondary);
}

.cfi-section > .container > h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cfi-section > .container > .cfi-intro-text {
  color: var(--silver);
  max-width: 640px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--silver);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}

.filter-btn:hover {
  border-color: var(--ox);
  color: var(--white);
}

.filter-btn.active {
  background: var(--ox);
  border-color: var(--ox);
  color: var(--white);
}

/* ── CFI Grid ─────────────────────────────────────────────── */
.cfi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 28px;
}

.cfi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.cfi-card:hover {
  border-color: var(--ox);
  transform: translateY(-3px);
}

.cfi-card.hidden {
  display: none;
}

.cfi-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cfi-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.cfi-card:hover .cfi-card__photo img {
  transform: scale(1.03);
}

.cfi-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cfi-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.cfi-card__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.rating-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(139, 0, 0, 0.18);
  color: var(--ox-hover);
  border: 1px solid rgba(139, 0, 0, 0.30);
  font-family: var(--font-heading);
}

.rating-badge--senior {
  background: rgba(180, 180, 180, 0.12);
  color: var(--silver);
  border-color: var(--border);
}

.cfi-card__bio {
  font-size: 0.865rem;
  color: var(--silver);
  line-height: 1.65;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.cfi-card__bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.cfi-card__bio--pending {
  color: rgba(180,180,180,0.55);
  font-style: italic;
}

.cfi-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.program-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--silver);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font-heading);
}

.program-tag:hover {
  background: var(--ox);
  color: var(--white);
  border-color: var(--ox);
}

/* ── Support Section ──────────────────────────────────────── */
.support-section {
  padding: 64px 0 72px;
  background: var(--bg-primary);
}

.support-section > .container > h2 {
  margin: 8px 0 40px;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* Support cards reuse leadership-card styles */
.support-card {
  display: flex;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  transition: border-color 0.2s;
}

.support-card:hover { border-color: var(--ox); }

.support-card__photo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.support-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.support-card__body { flex: 1; min-width: 0; }

.support-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 2px;
}

.support-card__title {
  font-size: 0.78rem;
  color: var(--ox-hover);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.support-card__bio {
  font-size: 0.865rem;
  color: var(--silver);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.support-card__bio.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* ── Join CTA ─────────────────────────────────────────────── */
.team-join-cta {
  background: linear-gradient(135deg, #0e0e0e 0%, #1c1010 100%);
  border-top: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}

.team-join-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  margin: 0 0 12px;
}

.team-join-cta p {
  color: var(--silver);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.6;
}

.team-join-cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .leadership-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .leadership-card__photo {
    width: 100px;
    height: 100px;
  }

  .support-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .filter-bar {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 13px;
    font-size: 0.78rem;
  }
}
