body {
  background:
    radial-gradient(circle at top left, rgba(45, 147, 168, 0.14), transparent 32%),
    linear-gradient(180deg, #f3f6f7 0%, #eef3f5 100%);
}

.team-page {
  max-width: 1180px;
  margin: 2rem auto 5rem;
  padding: 0 1.5rem;
}

.team-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 42, 55, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(15, 42, 55, 0.08);
  backdrop-filter: blur(8px);
}

.team-intro {
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.team-panel__eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.team-intro h1,
.team-member__content h2 {
  margin-bottom: 0.75rem;
  color: #0f2a37;
  font-family: "Playfair Display", serif;
  line-height: 1.15;
}

.team-intro h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 860px;
}

.team-intro p,
.team-member__role,
.team-section p,
.team-section li {
  color: #51666f;
}

.team-member {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.4fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.team-member--reverse {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.85fr);
}

.team-member__media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(180deg, #10303d 0%, #1c6777 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

.team-member__media img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.team-member__media--stacked {
  flex-direction: column;
  justify-content: flex-start;
}

.team-member__media-copy {
  width: 100%;
  padding-top: 1.25rem;
}

.team-section--media {
  margin-top: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: rgba(247, 250, 251, 0.96);
  border: 1px solid #dce7ea;
}

.team-member--reverse .team-member__media {
  order: 2;
}

.team-member--reverse .team-member__content {
  order: 1;
}

.team-member__content {
  padding: 2rem;
}

.team-member__content h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.team-member__role {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.team-section + .team-section {
  margin-top: 1.25rem;
}

.team-section h3 {
  margin-bottom: 0.65rem;
  color: #0f2a37;
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.team-section p {
  margin-bottom: 0.9rem;
}

.team-member__content > .team-section p {
  text-align: justify;
}

.team-section p:last-child,
.team-section ul:last-child {
  margin-bottom: 0;
}

.team-section ul {
  margin: 0;
  padding-left: 1.15rem;
}

.team-section li + li {
  margin-top: 0.55rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
  margin-top: 1.5rem;
}

.team-grid .team-section {
  margin-top: 0;
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid #dce7ea;
}

.team-grid .team-section--full {
  grid-column: 1 / -1;
}

.team-actions {
  margin-top: 1.6rem;
  display: flex;
  justify-content: flex-start;
}

.team-actions .btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .team-member,
  .team-member--reverse {
    grid-template-columns: 1fr;
  }

  .team-member__media,
  .team-member--reverse .team-member__media,
  .team-member--reverse .team-member__content {
    order: initial;
  }

  .team-member__media img {
    max-height: 420px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .team-page {
    padding: 0 1rem;
    margin: 1.5rem auto 4rem;
  }

  .team-intro,
  .team-member__content {
    padding: 1.35rem;
  }

  .team-member__media img {
    max-height: 320px;
  }

  .team-panel {
    border-radius: 20px;
  }

  .team-actions .btn-primary-custom {
    width: 100%;
  }
}
