/* MasterMind Team — front-end styles (same look as the hand-pasted sections) */
.mm-team-section { font-family: 'Open Sans', sans-serif; max-width: 860px; margin: 0 auto; padding: 0 16px; }
.mm-team-heading { font-size: 22px; font-weight: 600; color: #4a4a4a; margin: 0 0 6px; }
.mm-team-subheading { font-size: 15px; color: #6b6b6b; margin: 0 0 28px; line-height: 1.5; }
.mm-team-subheading a, .mm-team-subgroup-note a, .mm-counsellor-creds a { color: #41a9d5; text-decoration: none; }
.mm-team-subheading a:hover, .mm-team-subgroup-note a:hover, .mm-counsellor-creds a:hover { text-decoration: underline; }
.mm-counsellor { display: flex; align-items: flex-start; gap: 18px; padding: 18px 0; border-bottom: 1px solid #ebebeb; }
.mm-team-people > .mm-counsellor:last-child { border-bottom: none; }
.mm-counsellor-photo-link { flex-shrink: 0; line-height: 0; }
.mm-counsellor-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #d6f0f8; }
.mm-counsellor-info { flex: 1; }
.mm-counsellor-name { font-size: 15px; font-weight: 600; color: #4a4a4a; margin: 0 0 2px; }
.mm-counsellor-creds { font-size: 12px; color: #888; margin: 0 0 6px; }
.mm-counsellor-quote { font-size: 13.5px; color: #5a5a5a; line-height: 1.55; margin: 0 0 10px; font-style: italic; }
.mm-pill-row { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.mm-pill { font-size: 11px; padding: 3px 9px; border-radius: 12px; background: #eaf7fc; color: #2a7a9e; font-weight: 500; white-space: nowrap; }
.mm-pill-lang { background: #fff3e0; color: #8a5000; }
.mm-pill-intern { background: #f3f3f3; color: #777; }
.mm-profile-link { font-size: 12px; color: #41a9d5; text-decoration: none; font-weight: 500; white-space: nowrap; }
.mm-profile-link:hover { text-decoration: underline; }
.mm-team-subgroup { font-size: 17px; font-weight: 600; color: #4a4a4a; margin: 40px 0 6px; }
.mm-team-subgroup-note { font-size: 14px; color: #6b6b6b; margin: 0 0 20px; line-height: 1.5; }
.mm-team-cta { margin-top: 24px; padding: 18px 20px; background: #f4fbfe; border-left: 3px solid #41a9d5; border-radius: 0 6px 6px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.mm-team-cta-text { font-size: 14px; color: #4a4a4a; margin: 0; line-height: 1.4; }
.mm-team-cta-text span { display: block; font-size: 12px; color: #888; margin-top: 3px; }
.mm-team-cta-btn { display: inline-block; background: #41a9d5; color: #fff !important; font-size: 13px; font-weight: 600; padding: 10px 20px; border-radius: 4px; text-decoration: none; white-space: nowrap; font-family: 'Open Sans', sans-serif; }
.mm-team-cta-btn:hover { background: #2a8ab5; }

/* Grid layout: large photos, 3 per row (home + location pages) */
.mm-layout-grid { max-width: 1140px; }
.mm-layout-grid .mm-team-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.mm-layout-grid .mm-counsellor { flex-direction: column; gap: 12px; padding: 0; border-bottom: none; }
.mm-layout-grid .mm-counsellor-photo-link { display: block; width: 100%; }
.mm-layout-grid .mm-counsellor-photo { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 6px; border: none; object-fit: cover; object-position: center top; }
.mm-layout-grid .mm-counsellor-name { font-size: 16px; }
.mm-layout-grid .mm-pill-row { margin-top: 2px; }
.mm-layout-grid .mm-profile-link { flex-basis: 100%; margin-top: 4px; }

@media (max-width: 860px) {
  .mm-layout-grid .mm-team-people { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .mm-layout-list .mm-counsellor { flex-direction: column; align-items: center; text-align: center; }
  .mm-layout-list .mm-pill-row { justify-content: center; }
  .mm-layout-grid .mm-team-people { grid-template-columns: 1fr; }
  .mm-team-cta { flex-direction: column; text-align: center; }
}
