.ie-team-page,
.ie-educator-profile {
  display: grid;
  gap: 1.25rem;
}

.ie-wrap.ie-theme.ie-educator-profile {
  background-color: transparent;
}

.ie-wrap.ie-theme.ie-team-page {
  background-color: transparent;
  margin-block-start: -1.5rem;
}

.ie-team-page {
  --iepro-shell-max: 1600px;
  --iepro-shell-side-space: clamp(200px, 12vw, 300px);
  --iepro-page-gutter: clamp(1.25rem, 4vw, 2.5rem);

  box-sizing: border-box;
  width: min(calc(100vw - var(--iepro-shell-side-space)), var(--iepro-shell-max));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-inline: auto;
  margin-block: 20px clamp(2.5rem, 6vw, 3.5rem);
  padding-inline: var(--iepro-page-gutter);
}

.ie-team-page__hero {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
  color: #0f172a;
}

.ie-team-page__hero h2 {
  margin: 0.25rem 0 0.5rem;
}

.ie-team-page__hero p {
  margin: 0;
  color: #334155;
}

.ie-team-page__eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  font-weight: 700;
}

.ie-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 280px));
  justify-content: center;
  gap: 1.25rem;
}

.ie-team-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ie-team-card__media img {
  width: 100%;
  height: 210px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ie-team-card__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.ie-team-card__content h3,
.ie-team-card__content p {
  margin: 0;
}

.ie-team-card__tagline {
  font-weight: 600;
}

.ie-team-card ul,
.ie-educator-profile ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ie-team-card .ie-button--primary {
  margin-top: auto;
}

.ie-team-card .ie-button--primary,
.ie-team-card .ie-button--primary:hover,
.ie-team-card .ie-button--primary:focus,
.ie-team-card .ie-button--primary:focus-visible,
.ie-team-card .ie-button--primary:visited {
  color: #fff !important;
}

.ie-educator-profile__hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(180px, 280px) 1fr;
  padding: 1rem;
}

.ie-educator-profile__image {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.ie-educator-profile__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.ie-educator-profile__media .ie-educator-profile__image {
  align-self: stretch;
}

.ie-educator-profile__highlights {
  width: fit-content;
  margin: 0;
}

.ie-educator-profile video {
  width: 100%;
  max-width: 560px;
  border-radius: 10px;
  margin-top: 1rem;
}



.ie-section-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.ie-educator-profile__supporting-label {
  margin: 0.4rem 0 0.75rem;
  color: #334155;
  font-weight: 600;
}

.ie-educator-profile__timezone {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

.ie-educator-profile__timezone [data-iepro-timezone-value] {
  font-weight: 700;
}

.ie-educator-profile__row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ie-educator-profile__row .ie-card h3 {
  margin-bottom: 0.4rem;
}

.ie-educator-profile__row a {
  font-weight: 600;
}

.ie-educator-profile__video-trigger {
  margin-top: 0;
}

.ie-educator-video-modal {
  width: min(90vw, 760px);
  border: 0;
  border-radius: 14px;
  padding: 1rem;
}

.ie-educator-video-modal::backdrop {
  background: rgba(2, 6, 23, 0.62);
}

.ie-educator-video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ie-educator-video-modal__header h3 {
  margin: 0;
}

.ie-educator-video-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .ie-team-page {
    --iepro-shell-side-space: clamp(2.5rem, 8vw, 6rem);
  }
}

@media (max-width: 700px) {
  .ie-team-page {
    --iepro-shell-side-space: 0;
  }

  .ie-educator-profile__hero {
    grid-template-columns: 1fr;
  }

  .ie-educator-profile__row {
    grid-template-columns: 1fr;
  }
}
