/* YouMind Team Profiles — about-us.html people-section */

.ymct-team-profiles {
  --tp-ink: #031728;
  --tp-body: #021019;
  --tp-ice: #ecf7f9;
  font: 400 16px/1.5 Poppins, Arial, sans-serif;
  color: var(--tp-ink);
  width: 100%;
  max-width: none !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
.ymct-team-profiles.alignfull {
  width: 100vw;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
.ymct-team-profiles *,
.ymct-team-profiles *::before,
.ymct-team-profiles *::after { box-sizing: border-box; }
.ymct-team-profiles h2,
.ymct-team-profiles h3,
.ymct-team-profiles p { margin: 0; }
.ymct-team-profiles img {
  display: block;
  max-width: 100%;
  border: 0;
}
.ymct-team-profiles a {
  color: inherit;
  text-decoration: none;
}

.ymct-team-profiles .tp-section {
  padding-block: 80px;
  background: transparent;
}
.ymct-team-profiles--leadership .tp-section {
  background: var(--tp-ice);
}

.ymct-team-profiles .tp-container {
  width: calc(100% - 160px);
  max-width: 1280px;
  margin-inline: auto;
}

.ymct-team-profiles .tp-heading {
  font-size: 48px;
  line-height: 62px;
  font-weight: 500;
  margin-bottom: 52px;
  color: var(--tp-ink);
  text-transform: uppercase;
}

.ymct-team-profiles .tp-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.ymct-team-profiles .tp-row + .tp-row {
  margin-top: 52px;
}

.ymct-team-profiles .tp-card,
.ymct-team-profiles article.tp-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px;
  background: #fff !important;
  background-color: #fff !important;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px #f2f2f2;
  color: var(--tp-body);
  min-width: 0;
  overflow: hidden;
}
.ymct-team-profiles--advisory .tp-card,
.ymct-team-profiles--advisory article.tp-card {
  background: var(--tp-ice) !important;
  background-color: var(--tp-ice) !important;
}

.ymct-team-profiles .tp-header {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 100px;
}
.ymct-team-profiles .tp-portrait {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  outline: 1.5px solid var(--tp-body);
  outline-offset: -1.5px;
}
.ymct-team-profiles .tp-identity {
  min-width: 0;
  flex: 1;
}
.ymct-team-profiles .tp-name {
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  color: var(--tp-body);
}
.ymct-team-profiles .tp-role {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin-top: 6px;
  color: var(--tp-body);
}
.ymct-team-profiles .tp-bio {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: var(--tp-body);
}
.ymct-team-profiles .tp-social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  min-height: 18px;
  color: var(--tp-body);
}
.ymct-team-profiles .tp-social:hover span {
  color: #14877f;
}
.ymct-team-profiles .tp-social-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.ymct-team-profiles .tp-social span {
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* —— Tablet (keep portrait + name side-by-side like desktop screenshot) —— */
@media (min-width: 768px) and (max-width: 1199px) {
  .ymct-team-profiles .tp-container {
    width: calc(100% - 64px);
  }
  .ymct-team-profiles .tp-section {
    padding-block: 56px;
  }
  .ymct-team-profiles .tp-heading {
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 36px;
  }
  .ymct-team-profiles .tp-card {
    padding: 24px;
    gap: 24px;
  }
  .ymct-team-profiles .tp-row + .tp-row {
    margin-top: 32px;
  }
}

/* Editor canvas: avoid full-bleed overflow */
.editor-styles-wrapper .ymct-team-profiles.alignfull,
.block-editor-block-list__block .ymct-team-profiles.alignfull {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.editor-styles-wrapper .ymct-team-profiles .tp-container {
  width: calc(100% - 48px);
}

/* —— Mobile —— */
@media (max-width: 767px) {
  .ymct-team-profiles .tp-container {
    width: calc(100% - 40px);
  }
  .ymct-team-profiles .tp-section {
    padding-block: 32px;
  }
  .ymct-team-profiles .tp-heading {
    color: #1e1f2b;
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 32px;
    text-transform: none;
  }
  .ymct-team-profiles .tp-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .ymct-team-profiles .tp-row + .tp-row {
    margin-top: 32px;
  }
  .ymct-team-profiles .tp-row--second {
    gap: 0;
  }
  .ymct-team-profiles .tp-card {
    padding: 20px;
    gap: 20px;
  }
  .ymct-team-profiles .tp-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .ymct-team-profiles .tp-identity {
    width: 100%;
  }
  .ymct-team-profiles .tp-name {
    font-size: 24px;
    line-height: 36px;
  }
  .ymct-team-profiles .tp-role {
    font-size: 16px;
    line-height: 24px;
  }
}
