.team-hero {
  padding: 90px 0 54px;
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  text-align: center;
}

.team-hero h1 {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(3rem, 7vw, 6rem);
}

.team-lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.team-section { padding: 70px 0 104px; }

.instructor-profile {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.5fr);
  gap: 64px;
  align-items: stretch;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.instructor-media {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--navy);
}

.instructor-photo,
.instructor-photo img {
  width: 100%;
  height: 100%;
}

.instructor-photo img { object-fit: cover; object-position: center top; }

.instructor-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  place-items: center;
  gap: 12px;
  padding: 34px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 32%, #263651 0%, var(--navy) 66%);
}

.instructor-fallback img { width: min(190px, 70%); filter: drop-shadow(0 18px 24px rgba(0,0,0,.2)); }
.instructor-fallback > span:last-child { color: #ccd4e1; font-size: .82rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.instructor-initials { font-size: 2.1rem; font-weight: 850; letter-spacing: .08em; }
.instructor-media.photo-missing .instructor-fallback { display: grid; }

.instructor-content { padding: 18px 16px 18px 0; }
.instructor-content h2 { margin-bottom: 10px; }
.instructor-role { margin-bottom: 30px; color: var(--red); font-size: 1.05rem; font-weight: 780; }
.instructor-role span { padding-inline: 5px; color: #bdc4cf; }
.instructor-bio { color: #475367; }
.instructor-bio p { margin-bottom: 18px; }
.instructor-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 30px 0 0; padding: 0; list-style: none; }
.instructor-tags li { padding: 8px 13px; border: 1px solid #ffd7da; border-radius: 999px; color: #a9151e; background: #fff4f5; font-size: .79rem; font-weight: 800; }
.team-cta { padding: 0 0 104px; }

@media (max-width: 900px) {
  .instructor-profile { grid-template-columns: 1fr; gap: 36px; padding: 28px; }
  .instructor-media { min-height: 420px; }
  .instructor-content { padding: 0 4px 8px; }
}

@media (max-width: 580px) {
  .team-hero { padding: 58px 0 38px; }
  .team-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .team-section { padding: 42px 0 72px; }
  .instructor-profile { gap: 28px; padding: 18px; border-radius: 20px; }
  .instructor-media { min-height: 340px; border-radius: 16px; }
  .instructor-role span { display: none; }
  .instructor-role { display: grid; gap: 2px; }
  .team-cta { padding-bottom: 72px; }
}
