/* Our Team page — content only (site header/footer unchanged) */

#team-page {
  --navy-1: #0b1638;
  --navy-2: #142859;
  --navy-3: #0d1c40;
  --blue: #2f6feb;
  --sky: #66c7ff;
  --border: #e6e9f0;
  --text-gray: #667085;
  --radius-lg: 22px;
  --radius-md: 16px;
  background: #fff;
  color: #1b2334;
}

#team-page a:not(.ijc-fellowship-cta__button) {
  text-decoration: none;
  color: inherit;
}

#team-page .wrap {
  max-width: var(--container, 1480px);
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* Preserve Team hero title measure from the original page banner */
#team-page .ijc-inner-hero h1 {
  max-width: 18ch;
}

#team-page .ijc-inner-hero__lead {
  max-width: 620px;
}

/* ---------- TEAM GRID ---------- */
#team-page .ijc-team-roster {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container, 1480px);
  margin: 40px auto 0;
  padding: 0 40px 60px;
  overflow: visible;
  background: transparent;
  box-sizing: border-box;
}

#team-page .ijc-team-roster__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

#team-page .ijc-doc-card {
  display: flex;
  flex: 0 1 calc((100% - 96px) / 4);
  flex-direction: column;
  width: calc((100% - 96px) / 4);
  max-width: calc((100% - 96px) / 4);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(20, 40, 89, 0.06);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#team-page a.ijc-doc-card:hover {
  box-shadow: 0 18px 40px rgba(20, 40, 89, 0.12);
  transform: translateY(-4px);
}

#team-page .ijc-doc-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(1100px 500px at 50% 8%, #1b3372 0%, var(--navy-1) 55%, var(--navy-3) 100%);
}

#team-page .ijc-doc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

#team-page .ijc-doc-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
  background: repeating-linear-gradient(45deg,
      #1c2c5c,
      #1c2c5c 10px,
      #223268 10px,
      #223268 20px);
  color: #7f8fc4;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

#team-page .ijc-doc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}

#team-page .ijc-doc-card__title {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#team-page .ijc-doc-card__name {
  margin: 0 0 10px;
  color: #12172b;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

#team-page .ijc-doc-card__specialty {
  margin: 0 0 18px;
  color: var(--text-gray);
  font-size: 13.5px;
  line-height: 1.5;
}

#team-page .ijc-doc-card__profile {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 700;
}

#team-page .ijc-doc-card__profile svg {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

#team-page a.ijc-doc-card:hover .ijc-doc-card__profile svg {
  transform: translateX(3px);
}

#team-page .ijc-doc-card--coordinator {
  cursor: default;
}

#team-page .ijc-doc-card--coordinator .ijc-doc-card__title {
  color: #8b93a7;
}

#team-page .ijc-doc-card--coordinator .ijc-doc-card__body {
  justify-content: center;
}

#team-page .ijc-doc-card--coordinator:hover {
  box-shadow: 0 10px 30px rgba(20, 40, 89, 0.06);
  transform: none;
}

/* ---------- CTA BANNER ---------- */
#team-page .ijc-team-cta {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: linear-gradient(120deg, var(--navy-2) 0%, var(--navy-3) 100%);
  box-sizing: border-box;
}

#team-page .ijc-team-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: calc(var(--container, 1480px) - 80px);
  margin: 0 auto;
  padding: 34px 44px;
  box-sizing: border-box;
}

#team-page .ijc-team-cta h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

#team-page .ijc-team-cta p {
  margin: 0;
  color: #b7c2e0;
  font-size: 14.5px;
}

#team-page .ijc-team-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#team-page .ijc-team-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

#team-page .ijc-team-cta__btn--primary {
  border: none;
  background: var(--blue);
  color: #fff;
}

#team-page .ijc-team-cta__btn--primary:hover {
  box-shadow:
    0 0 10px rgba(80, 170, 255, 0.45),
    0 0 24px rgba(47, 111, 235, 0.35);
  color: #fff;
}

#team-page .ijc-team-cta__btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

#team-page .ijc-team-cta__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 1100px) {
  #team-page .ijc-doc-card {
    flex-basis: calc((100% - 64px) / 3);
    width: calc((100% - 64px) / 3);
    max-width: calc((100% - 64px) / 3);
  }
}

@media (max-width: 760px) {
  #team-page .wrap {
    padding: 0 20px;
  }

  #team-page .ijc-team-roster {
    margin-top: 28px;
    padding: 0 20px 64px;
  }

  #team-page .ijc-team-roster__grid {
    gap: 20px;
  }

  #team-page .ijc-doc-card {
    flex-basis: calc((100% - 20px) / 2);
    width: calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
  }

  #team-page .ijc-team-cta {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  #team-page .ijc-team-cta__inner {
    max-width: calc(100% - 40px);
    padding: 28px 24px;
  }
}

@media (max-width: 520px) {
  #team-page .ijc-doc-card {
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
  }

  #team-page .ijc-team-cta__actions {
    width: 100%;
  }

  #team-page .ijc-team-cta__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  #team-page .ijc-doc-card,
  #team-page .ijc-doc-card__profile svg,
  #team-page .ijc-team-cta__btn {
    transition: none;
  }

  #team-page a.ijc-doc-card:hover {
    transform: none;
  }
}