/* Clear two-part hierarchy for every dynamic team profile card. */
#team-section-cards .team-section-card{
  gap:12px!important;
  align-items:stretch!important;
  text-align:left!important;
  padding:16px!important;
}
#team-section-cards .team-profile-header{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  text-align:left!important;
}
#team-section-cards .team-profile-header .team-section-image{
  display:block!important;
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
  margin:0!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
#team-section-cards .team-profile-placeholder{
  display:grid!important;
  place-items:center!important;
  background:#e8eee7!important;
  color:#9b7b43!important;
  font-size:25px!important;
}
#team-section-cards .team-profile-identity{min-width:0!important;flex:1!important}
#team-section-cards .team-profile-name{
  margin:0 0 4px!important;
  color:#17364a!important;
  font:700 15px/1.25 Manrope,sans-serif!important;
  overflow-wrap:anywhere!important;
}
#team-section-cards .team-profile-designation{
  margin:0!important;
  color:#8a7045!important;
  font:600 11px/1.4 'DM Sans',sans-serif!important;
  overflow-wrap:anywhere!important;
}
#team-section-cards .team-message-box{
  width:100%!important;
  padding:12px!important;
  border:1px solid #e7e4da!important;
  border-radius:4px!important;
  background:#f4f2eb!important;
  text-align:left!important;
}
#team-section-cards .team-message-label{
  display:block!important;
  margin:0 0 6px!important;
  color:#987743!important;
  font:700 9px/1.3 'DM Sans',sans-serif!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
#team-section-cards .team-message-box p{
  margin:0!important;
  color:#52616a!important;
  font:400 11px/1.65 'DM Sans',sans-serif!important;
  overflow-wrap:anywhere!important;
}
#team-section-cards .team-role-founder .team-profile-header .team-section-image{flex-basis:76px!important;width:76px!important;height:76px!important}
#team-section-cards .team-role-founder .team-profile-name{font-size:17px!important}
#team-section-cards .team-role-partner{max-width:760px!important;min-height:0!important;margin:30px auto 0!important;border-color:#d9e3d9!important;background:linear-gradient(135deg,#fffdf8 0%,#f5f7f1 100%)!important}
#team-section-cards .team-role-partner .team-profile-header .team-section-image{flex-basis:76px!important;width:76px!important;height:76px!important}
#team-section-cards .team-role-partner .team-profile-name{font-size:19px!important}
#team-section-cards .team-role-partner .team-message-box p{font-size:13px!important;line-height:1.75!important}
#team-section-cards .team-partner-avatar{font-weight:800!important;letter-spacing:.04em!important;background:#e5eee7!important;color:#527664!important}
@media(max-width:760px){
 #team-section-cards .team-section-card{padding:13px!important;gap:10px!important}
 #team-section-cards .team-profile-header .team-section-image{flex-basis:54px!important;width:54px!important;height:54px!important}
 #team-section-cards .team-role-founder .team-profile-header .team-section-image{flex-basis:68px!important;width:68px!important;height:68px!important}
 #team-section-cards .team-message-box{padding:10px!important}
}

/* Exact visual parity: Teaching & Support Staff uses the same card treatment
   and responsive grid rules as Technology & Legal Advisory / Leadership. */
#team-section-cards .team-staff-grid.team-all-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,320px))!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:16px!important;
  width:100%!important;
  max-width:100%!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:320px!important;
  min-width:0!important;
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  margin:0 auto!important;
  padding:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
  border:1px solid #d9e3d9!important;
  border-top:3px solid #789d8c!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#fffdf8 0%,#f5f7f1 100%)!important;
  box-shadow:0 12px 30px rgba(23,54,74,.09)!important;
  text-align:left!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  height:82px!important;
  min-height:82px!important;
  flex:0 0 82px!important;
  gap:12px!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header .team-section-image{
  display:block!important;
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
  margin:0!important;
  border:3px solid #e1e8df!important;
  box-shadow:0 0 0 4px rgba(120,157,140,.12)!important;
  border-radius:50%!important;
  object-fit:cover!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-name{
  margin:0 0 4px!important;
  color:#17364a!important;
  font:700 15px/1.25 Manrope,sans-serif!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-designation{
  margin:0!important;
  color:#527664!important;
  font:600 11px/1.4 'DM Sans',sans-serif!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-identity:after{content:none!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-box{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  flex:1 1 auto!important;
  margin:10px 0 0!important;
  padding:12px 0 0!important;
  overflow:hidden!important;
  border:0!important;
  border-top:1px solid #e1e7dc!important;
  border-radius:0!important;
  background:transparent!important;
  text-align:left!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-label{
  display:block!important;
  margin:0 0 7px!important;
  color:#8a7045!important;
  font:700 9px/1.3 'DM Sans',sans-serif!important;
  letter-spacing:.13em!important;
  text-transform:uppercase!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-box p{
  margin:0!important;
  color:#465963!important;
  font:400 11px/1.6 'DM Sans',sans-serif!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:760px){
  #team-section-cards .team-staff-grid.team-all-grid{grid-template-columns:minmax(0,320px)!important;justify-content:center!important;gap:14px!important}
  #team-section-cards .team-staff-grid.team-all-grid > .team-section-card{width:100%!important;max-width:320px!important;height:320px!important;min-height:320px!important;max-height:320px!important;padding:16px!important}
  #team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header .team-section-image{flex-basis:64px!important;width:64px!important;height:64px!important}
}

/* Teaching & Support Staff: enforce the same card dimensions and inner layout,
   and prevent legacy mobile rules from squeezing these cards into narrow columns. */
#team-section-cards .team-staff-grid.team-all-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,320px))!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:16px!important;
  width:100%!important;
  max-width:100%!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:320px!important;
  min-width:0!important;
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  padding:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header{
  height:82px!important;
  min-height:82px!important;
  flex:0 0 82px!important;
  gap:12px!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header .team-section-image{
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
  margin:0!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-name{font-size:15px!important;line-height:1.25!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-designation{font-size:11px!important;line-height:1.4!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-box{flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;margin-top:10px!important;padding-top:12px!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-box p{font-size:11px!important;line-height:1.6!important}
#team-section-cards .team-staff-grid.team-all-grid > .staff-vice-principal-card{border-top:0!important;background:#fffdf8!important;box-shadow:0 8px 22px rgba(23,54,74,.06)!important}
#team-section-cards .team-staff-grid.team-all-grid > .staff-vice-principal-card .team-profile-identity:after{content:none!important}
@media(max-width:760px){
  #team-section-cards .team-staff-grid.team-all-grid{grid-template-columns:minmax(0,320px)!important;justify-content:center!important;gap:14px!important}
  #team-section-cards .team-staff-grid.team-all-grid > .team-section-card{width:100%!important;max-width:320px!important;height:320px!important;min-height:320px!important;max-height:320px!important}
}
/* Keep cards uniform within each team tier while allowing longer messages to fit. */
#team-section-cards .team-ceo-row,
#team-section-cards .team-leadership-row,
#team-section-cards .team-staff-grid{
  align-items:stretch!important;
}
#team-section-cards .team-ceo-row .team-section-card,
#team-section-cards .team-leadership-row .team-section-card,
#team-section-cards .team-staff-grid .team-section-card{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:320px!important;
  max-height:none!important;
}
#team-section-cards .team-profile-header{min-height:82px!important;flex:0 0 auto!important}
#team-section-cards .team-message-box{flex:1 1 auto!important}
@media(max-width:760px){
 #team-section-cards .team-ceo-row .team-section-card,
 #team-section-cards .team-leadership-row .team-section-card,
 #team-section-cards .team-staff-grid .team-section-card{min-height:290px!important}
}

/* Make the message an inset panel contained inside its person's single profile card. */
#team-section-cards .team-section-card{
  position:relative!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid #e4e8df!important;
  border-radius:10px!important;
  background:#fffdf8!important;
  box-shadow:0 8px 22px rgba(23,54,74,.06)!important;
}
#team-section-cards .team-section-card .team-profile-header{
  width:100%!important;
  flex:0 0 auto!important;
}
#team-section-cards .team-section-card .team-message-box{
  position:relative!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  margin:8px 0 0!important;
  flex:1 1 auto!important;
  border:1px solid #e1e7dc!important;
  border-radius:7px!important;
  background:transparent!important;
  border:0!important;
  border-top:1px solid #e5e9e1!important;
  border-radius:0!important;
  padding:12px 0 0!important;
  margin:10px 0 0!important;
}
/* The message remains inside the person's single profile card. */
#team-section-cards .team-section-card .team-message-box p{max-width:100%!important}
#team-section-cards .team-section-card .team-message-label{margin-bottom:7px!important}

/* Independent technology leadership profile — outside the school hierarchy. */
#team-section-cards .team-technology-label{
  margin:34px 0 14px!important;
  color:#8a7045!important;
}
#team-section-cards .team-technology-row{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:22px!important;
  width:100%!important;
}
#team-section-cards .team-technology-row .team-technology-card{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
#team-section-cards .team-technology-row .team-legal-card{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
}
#team-section-cards .team-technology-row .team-legal-card .team-profile-header{
  min-height:100px!important;
}
@media(max-width:680px){
  #team-section-cards .team-technology-row{
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
}
#team-section-cards .team-role-partner.team-technology-card{
  width:min(100%,760px)!important;
  min-height:0!important;
  height:auto!important;
  margin:0 auto 12px!important;
  padding:22px!important;
  border:1px solid #d9e3d9!important;
  border-top:3px solid #789d8c!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#fffdf8 0%,#f5f7f1 100%)!important;
  box-shadow:0 12px 30px rgba(23,54,74,.09)!important;
}
#team-section-cards .team-technology-card .team-profile-header{
  min-height:100px!important;
  gap:18px!important;
}
#team-section-cards .team-technology-card .team-section-image{
  flex:0 0 88px!important;
  width:88px!important;
  height:88px!important;
  display:grid!important;
  place-items:center!important;
  border:3px solid #e1e8df!important;
  box-shadow:0 0 0 4px rgba(120,157,140,.12)!important;
}
#team-section-cards .team-technology-card .team-profile-name{
  font-size:21px!important;
  color:#17364a!important;
}
#team-section-cards .team-technology-card .team-profile-designation{
  font-size:13px!important;
  color:#527664!important;
}
#team-section-cards .team-technology-card .team-profile-organization{
  margin:5px 0 0!important;
  color:#8a7045!important;
  font:600 12px/1.45 'DM Sans',sans-serif!important;
}
#team-section-cards .team-technology-card .team-message-box{
  padding-top:16px!important;
  margin-top:16px!important;
  border-top:1px solid #e1e7dc!important;
}
#team-section-cards .team-technology-card .team-message-box p{
  color:#465963!important;
  font-size:13px!important;
  line-height:1.8!important;
}
#team-section-cards .team-technology-card .team-partner-avatar{
  background:linear-gradient(145deg,#e8eee7,#dce7df)!important;
  color:#527664!important;
  font:800 24px/1 Manrope,sans-serif!important;
}
@media(max-width:760px){
  #team-section-cards .team-role-partner.team-technology-card{padding:16px!important}
  #team-section-cards .team-technology-card .team-section-image{flex-basis:70px!important;width:70px!important;height:70px!important}
  #team-section-cards .team-technology-card .team-profile-name{font-size:18px!important}
  #team-section-cards .team-technology-card .team-message-box p{font-size:12px!important;line-height:1.75!important}
}
/* Restore the leadership row: the director and principal cards are rendered inside this container. */
#team-section-cards .team-leadership-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,320px))!important;justify-content:center!important;align-items:stretch!important;gap:16px!important;width:100%!important;margin:0 auto!important}
@media(max-width:680px){#team-section-cards .team-leadership-row{grid-template-columns:minmax(0,320px)!important;justify-content:center!important;gap:14px!important}}
/* Requested order: Legal Advisor left, Founder & Principal middle, Technology Leader right. */
#team-section-cards .team-technology-row .team-legal-card{order:1!important}
#team-section-cards .team-technology-row .team-principal-card{order:2!important}
#team-section-cards .team-technology-row > .team-technology-card:first-child{order:3!important}
/* Consistent typeface and color for every hierarchy heading. */
#team-section-cards .team-level-label{font-family:Manrope,sans-serif!important;font-weight:800!important;color:#78958a!important;letter-spacing:.2em!important}
/* Standalone institutional leadership profile, separate from the school hierarchy and advisory row. */
#team-section-cards .team-director-label{margin:34px 0 14px!important;color:#8a7045!important}
#team-section-cards .team-director-card{width:min(100%,760px)!important;margin:0 auto 20px!important;border-top:3px solid #789d8c!important}
#team-section-cards .team-director-card .team-profile-header{min-height:100px!important;gap:18px!important}
#team-section-cards .team-director-card .team-profile-name{font-size:21px!important;color:#17364a!important}
#team-section-cards .team-director-card .team-profile-designation{font-size:13px!important;color:#527664!important}
#team-section-cards .team-director-card .team-profile-organization{margin:5px 0 0!important;color:#8a7045!important;font:600 12px/1.45 'DM Sans',sans-serif!important}
#team-section-cards .team-director-card .team-section-image{flex:0 0 88px!important;width:88px!important;height:88px!important;border:3px solid #e1e8df!important;box-shadow:0 0 0 4px rgba(120,157,140,.12)!important}
#team-section-cards .team-director-card .team-message-box{padding-top:16px!important;margin-top:16px!important;border-top:1px solid #e1e7dc!important}
#team-section-cards .team-director-card .team-message-box p{color:#465963!important;font-size:13px!important;line-height:1.8!important}
@media(max-width:760px){#team-section-cards .team-director-card{padding:16px!important}#team-section-cards .team-director-card .team-section-image{flex-basis:70px!important;width:70px!important;height:70px!important}#team-section-cards .team-director-card .team-profile-name{font-size:18px!important}#team-section-cards .team-director-card .team-message-box p{font-size:12px!important;line-height:1.75!important}}

/* One consistent profile-card size and typography across every leadership, advisory and staff profile. */
#team-section-cards .team-section-card,
#team-section-cards .team-section-card.team-role-partner,
#team-section-cards .team-section-card.team-technology-card,
#team-section-cards .team-section-card.team-director-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:320px!important;
  min-width:0!important;
  min-height:320px!important;
  height:320px!important;
  max-height:320px!important;
  margin:0 auto!important;
  padding:16px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
#team-section-cards .team-profile-header,
#team-section-cards .team-technology-card .team-profile-header,
#team-section-cards .team-director-card .team-profile-header{
  min-height:82px!important;
  gap:12px!important;
  flex:0 0 auto!important;
}
#team-section-cards .team-profile-header .team-section-image,
#team-section-cards .team-role-founder .team-profile-header .team-section-image,
#team-section-cards .team-role-partner .team-profile-header .team-section-image,
#team-section-cards .team-technology-card .team-section-image,
#team-section-cards .team-director-card .team-section-image{
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
}
#team-section-cards .team-profile-name,
#team-section-cards .team-role-founder .team-profile-name,
#team-section-cards .team-role-partner .team-profile-name,
#team-section-cards .team-technology-card .team-profile-name,
#team-section-cards .team-director-card .team-profile-name{font-size:15px!important;line-height:1.25!important}
#team-section-cards .team-profile-designation,
#team-section-cards .team-role-partner .team-profile-designation,
#team-section-cards .team-technology-card .team-profile-designation,
#team-section-cards .team-director-card .team-profile-designation{font-size:11px!important;line-height:1.4!important}
#team-section-cards .team-message-box,
#team-section-cards .team-technology-card .team-message-box,
#team-section-cards .team-director-card .team-message-box{flex:1 1 auto!important;margin-top:10px!important;padding-top:12px!important}
#team-section-cards .team-message-box p,
#team-section-cards .team-role-partner .team-message-box p,
#team-section-cards .team-technology-card .team-message-box p,
#team-section-cards .team-director-card .team-message-box p{font-size:11px!important;line-height:1.6!important}
#team-section-cards .team-technology-row{grid-template-columns:repeat(3,minmax(0,320px))!important;justify-content:center!important;align-items:stretch!important;gap:16px!important}
#team-section-cards .team-technology-row .team-section-card{width:100%!important;max-width:320px!important}
#team-section-cards .team-staff-grid{grid-template-columns:repeat(3,minmax(0,320px))!important;justify-content:center!important}
@media(max-width:760px){
 #team-section-cards .team-section-card,
 #team-section-cards .team-section-card.team-role-partner,
 #team-section-cards .team-section-card.team-technology-card,
 #team-section-cards .team-section-card.team-director-card{width:100%!important;max-width:320px!important;height:320px!important;min-height:320px!important;max-height:320px!important}
 #team-section-cards .team-technology-row,#team-section-cards .team-staff-grid{grid-template-columns:minmax(0,320px)!important;justify-content:center!important}
}
#team-section-cards .staff-vice-principal-card{box-sizing:border-box!important;width:100%!important;max-width:320px!important;min-width:0!important;min-height:320px!important;height:320px!important;max-height:320px!important;margin:0 auto!important;padding:16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow:hidden!important;border-top:3px solid #789d8c!important;background:linear-gradient(180deg,#fbfcf8 0%,#f8f7f0 100%)!important;box-shadow:0 12px 30px rgba(16,43,58,.09)!important}
#team-section-cards .staff-vice-principal-card .team-profile-identity:after{content:'IBN-E-CINA ACADEMIA';display:block;margin-top:5px;color:#8a7045;font:600 10px/1.45 'DM Sans',sans-serif;letter-spacing:.07em}
#team-section-cards .staff-vice-principal-card .team-message-box{border-top:1px solid #dfe7dd;padding-top:10px;margin-top:10px}
#team-section-cards .staff-vice-principal-card .team-profile-name{color:#17364a}
#team-section-cards .staff-vice-principal-card .team-profile-designation{color:#527664}

/* Final shared sizing system: school leadership, technology/legal advisory, and teaching/support staff. */
#team-section-cards .team-section-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:320px!important;
  min-width:0!important;
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  padding:16px!important;
  margin:0 auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
}
#team-section-cards .team-section-card .team-profile-header{
  min-height:82px!important;
  height:82px!important;
  flex:0 0 82px!important;
  gap:12px!important;
}
#team-section-cards .team-section-card .team-profile-header .team-section-image{
  flex:0 0 64px!important;
  width:64px!important;
  height:64px!important;
}
#team-section-cards .team-section-card .team-profile-name{font-size:15px!important;line-height:1.25!important}
#team-section-cards .team-section-card .team-profile-designation{font-size:11px!important;line-height:1.4!important}
#team-section-cards .team-section-card .team-message-box{
  box-sizing:border-box!important;
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  margin-top:10px!important;
  padding-top:12px!important;
}
#team-section-cards .team-section-card .team-message-box p{font-size:11px!important;line-height:1.6!important}
#team-section-cards .team-staff-grid,
#team-section-cards .team-technology-row{
  align-items:stretch!important;
}
@media(max-width:760px){
  #team-section-cards .team-section-card{
    width:100%!important;
    max-width:320px!important;
    height:320px!important;
    min-height:320px!important;
    max-height:320px!important;
  }
}

/* Final visibility safeguard: keep both school-leadership profiles rendered above legacy layout rules. */
#team-section-cards .team-leadership-row.team-leadership-pair{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  grid-template-columns:repeat(2,minmax(0,320px))!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:16px!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  margin:0 auto 22px!important;
}
#team-section-cards .team-leadership-row.team-leadership-pair>.team-section-card{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  width:100%!important;
  max-width:320px!important;
  min-width:0!important;
  height:auto!important;
  min-height:320px!important;
  max-height:none!important;
  overflow:visible!important;
}
@media(max-width:680px){
  #team-section-cards .team-leadership-row.team-leadership-pair{
    grid-template-columns:minmax(0,320px)!important;
    gap:14px!important;
  }
}
/* FINAL parity overrides: staff cards match advisory and leadership card styling. */
#team-section-cards .team-staff-grid.team-all-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,320px))!important;justify-content:center!important;align-items:stretch!important;gap:16px!important;width:100%!important;max-width:100%!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card{
 box-sizing:border-box!important;width:100%!important;max-width:320px!important;min-width:0!important;height:320px!important;min-height:320px!important;max-height:320px!important;margin:0 auto!important;padding:16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;overflow:hidden!important;text-align:left!important;border:1px solid #d9e3d9!important;border-top:3px solid #789d8c!important;border-radius:12px!important;background:linear-gradient(135deg,#fffdf8 0%,#f5f7f1 100%)!important;box-shadow:0 12px 30px rgba(23,54,74,.09)!important;
}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:82px!important;min-height:82px!important;flex:0 0 82px!important;gap:12px!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header .team-section-image{display:block!important;flex:0 0 64px!important;width:64px!important;height:64px!important;margin:0!important;border:3px solid #e1e8df!important;box-shadow:0 0 0 4px rgba(120,157,140,.12)!important;border-radius:50%!important;object-fit:cover!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-name{margin:0 0 4px!important;color:#17364a!important;font:700 15px/1.25 Manrope,sans-serif!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-designation{margin:0!important;color:#527664!important;font:600 11px/1.4 'DM Sans',sans-serif!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-identity:after{content:none!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-box{box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;min-height:0!important;flex:1 1 auto!important;margin:10px 0 0!important;padding:12px 0 0!important;overflow:hidden!important;border:0!important;border-top:1px solid #e1e7dc!important;border-radius:0!important;background:transparent!important;text-align:left!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-label{display:block!important;margin:0 0 7px!important;color:#8a7045!important;font:700 9px/1.3 'DM Sans',sans-serif!important;letter-spacing:.13em!important;text-transform:uppercase!important}
#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-message-box p{margin:0!important;color:#465963!important;font:400 11px/1.6 'DM Sans',sans-serif!important;overflow-wrap:anywhere!important}
@media(max-width:760px){#team-section-cards .team-staff-grid.team-all-grid{grid-template-columns:minmax(0,320px)!important;justify-content:center!important;gap:14px!important}#team-section-cards .team-staff-grid.team-all-grid > .team-section-card{width:100%!important;max-width:320px!important;height:320px!important;min-height:320px!important;max-height:320px!important;padding:16px!important}#team-section-cards .team-staff-grid.team-all-grid > .team-section-card .team-profile-header .team-section-image{flex-basis:64px!important;width:64px!important;height:64px!important}}

/* Legal Advisor card: match the exact shared 320x320 profile-card layout. */
#team-section-cards .team-legal-card{box-sizing:border-box!important;width:100%!important;max-width:320px!important;min-width:0!important;height:320px!important;min-height:320px!important;max-height:320px!important;margin:0 auto!important;padding:16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;overflow:hidden!important;text-align:left!important}
#team-section-cards .team-legal-card .team-profile-header{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;height:82px!important;min-height:82px!important;flex:0 0 82px!important;gap:12px!important;text-align:left!important}
#team-section-cards .team-legal-card .team-profile-header .team-section-image{display:block!important;flex:0 0 64px!important;width:64px!important;height:64px!important;margin:0!important;object-fit:cover!important;border-radius:50%!important}
#team-section-cards .team-legal-card .team-profile-identity{flex:1 1 auto!important;min-width:0!important;text-align:left!important}
#team-section-cards .team-legal-card .team-profile-name{margin:0 0 4px!important;font-size:15px!important;line-height:1.25!important}
#team-section-cards .team-legal-card .team-profile-designation{margin:0!important;font-size:11px!important;line-height:1.4!important}
#team-section-cards .team-legal-card .team-message-box{box-sizing:border-box!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;margin-top:10px!important;padding:12px 0 0!important;border:0!important;border-top:1px solid #e1e7dc!important;border-radius:0!important;background:transparent!important;text-align:left!important}
#team-section-cards .team-legal-card .team-message-box p{margin:0!important;font-size:11px!important;line-height:1.6!important;overflow-wrap:anywhere!important}
@media(max-width:760px){#team-section-cards .team-legal-card{width:100%!important;max-width:320px!important;height:320px!important;min-height:320px!important;max-height:320px!important;padding:16px!important}#team-section-cards .team-legal-card .team-profile-header .team-section-image{flex-basis:64px!important;width:64px!important;height:64px!important}}