/* Team page + profile pages. Prefix tm- so theme classes cannot collide. */
.tm-wrap{max-width:1200px;margin:0 auto;padding:0 15px}
.tm-intro .small-container,.team-details-page .small-container{max-width:1200px}
.tm-intro .title-box{text-align:left}
.tm-intro-text{text-align:left;max-width:none}
.tm-intro-text p{font-size:17px;line-height:1.75}
.tm-section{padding:70px 0 40px;background:#f4f7fb}
.tm-head{text-align:center;margin-bottom:44px}
.tm-head h2{font-size:34px;line-height:1.2;color:#0b2a4a;margin:8px 0 10px}
.tm-head p{max-width:640px;margin:0 auto;color:#52627a}

.tm-card{display:grid;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 10px 30px rgba(11,42,74,.10);transition:transform .25s ease,box-shadow .25s ease}
.tm-card:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(11,42,74,.16)}
.tm-photo{position:relative;background:#0b2a4a;display:block;overflow:hidden}
.tm-photo img{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:4/5}
.tm-body{padding:30px 32px;display:flex;flex-direction:column;justify-content:center}
.tm-role{display:inline-block;align-self:flex-start;background:#e8f0fb;color:#1f5fbf;font-weight:700;font-size:13px;letter-spacing:.04em;text-transform:uppercase;padding:6px 12px;border-radius:999px;margin-bottom:12px}
.tm-name{font-size:28px;line-height:1.15;margin:0 0 6px;color:#0b2a4a}
.tm-name a{color:inherit}
.tm-co{color:#52627a;margin:0 0 16px}
.tm-blurb{color:#33445c;margin:0 0 18px;line-height:1.6}
.tm-lines{list-style:none;margin:0 0 22px;padding:0;display:grid;gap:8px}
.tm-lines li{display:flex;gap:10px;align-items:center;color:#13233a;font-size:15px}
.tm-lines i{color:#d62e2e;width:18px;text-align:center}
.tm-lines a{color:#13233a}.tm-lines a:hover{color:#1f5fbf}
.tm-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.tm-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border-radius:10px;font-weight:700;font-size:15px;text-decoration:none;border:2px solid #0b2a4a;color:#0b2a4a;background:#fff;transition:background .2s,color .2s}
.tm-btn:hover{background:#0b2a4a;color:#fff}
.tm-btn.solid{background:#d62e2e;border-color:#d62e2e;color:#fff}
.tm-btn.solid:hover{background:#b32323;border-color:#b32323}

/* Featured (Anthony): full width, big photo left */
.tm-feature{grid-template-columns:minmax(280px,40%) 1fr;margin-bottom:28px}
.tm-feature .tm-name{font-size:36px}
.tm-feature .tm-body{padding:40px 44px}

/* Two-up rows */
.tm-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:28px}
.tm-grid .tm-card{grid-template-columns:42% 1fr}
.tm-grid .tm-body{padding:26px 26px}
.tm-grid .tm-name{font-size:24px}
.tm-grid .tm-btn{padding:11px 16px;font-size:14px}

@media (max-width:991px){
  .tm-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .tm-feature,.tm-grid .tm-card{grid-template-columns:1fr}
  .tm-photo img{aspect-ratio:16/11}
  .tm-feature .tm-body,.tm-body{padding:24px 22px}
  .tm-feature .tm-name{font-size:30px}
  .tm-head h2{font-size:28px}
}

/* Profile pages */
.tm-profile{padding-top:60px}
.tm-profile-card{margin-bottom:0}
.tm-profile-card .tm-photo img{aspect-ratio:4/5}
.tm-btn{white-space:nowrap}
.tm-qr{display:flex;gap:20px;align-items:center;margin-top:26px;padding-top:24px;border-top:1px solid #e3e9f2}
.tm-qr img{width:130px;height:130px;flex:none}
.tm-qr h4{font-size:18px;margin:0 0 6px;color:#0b2a4a}
.tm-qr p{margin:0 0 6px;color:#52627a;font-size:14px}
.tm-qr a{color:#1f5fbf;font-weight:600;font-size:14px}
.tm-about{background:#fff;border-radius:18px;padding:40px 44px;margin-top:28px;box-shadow:0 10px 30px rgba(11,42,74,.10);text-align:left}
.tm-about h2{font-size:28px;color:#0b2a4a;margin:0 0 18px}
.tm-about p{color:#33445c;line-height:1.75;margin:0 0 16px}
.tm-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px 48px;margin-top:30px;padding-top:28px;border-top:1px solid #e3e9f2}
.tm-stats .team-details-progress-bar{margin:0 0 18px!important}
@media (max-width:640px){
  .tm-qr{flex-direction:column;align-items:flex-start}
  .tm-about{padding:28px 22px}
  .tm-stats{grid-template-columns:1fr}
}

/* Team list: reference-style cards, filter tabs, socials */
.tm-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:0 0 34px}
.tm-tab{border:2px solid #0b2a4a;background:#fff;color:#0b2a4a;font-weight:700;font-size:15px;padding:10px 22px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.tm-tab:hover{background:#e8f0fb}
.tm-tab.active{background:#0b2a4a;color:#fff}
.tm-people{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.tm-person{display:grid;grid-template-columns:128px 1fr auto;gap:26px;align-items:center;background:#fff;border-radius:10px;padding:36px 34px;box-shadow:0 4px 18px rgba(11,42,74,.08);transition:box-shadow .25s,transform .25s}
.tm-person[hidden]{display:none}
.tm-person:hover{box-shadow:0 12px 30px rgba(11,42,74,.15);transform:translateY(-3px)}
.tm-avatar{display:block;width:128px;height:128px;border-radius:50%;overflow:hidden;background:#0b2a4a}
.tm-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.tm-pname{font-size:21px;margin:0 0 4px;color:#0b2a4a}.tm-pname a{color:inherit}
.tm-ptitle{margin:0 0 12px;color:#1f5fbf;font-weight:600}
.tm-person .tm-lines{margin:0 0 16px;gap:6px}
.tm-person .tm-lines li{font-size:14px;word-break:break-word}
.tm-social{display:flex;flex-direction:column;gap:12px}
.tm-social a{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:15px;transition:transform .2s,opacity .2s}
.tm-social a:hover{transform:scale(1.12);opacity:.9}
.tm-social .fb{background:#3b6fd4}.tm-social .li{background:#0a66c2}.tm-social .ig{background:#d62e6f}
.tm-social-row{flex-direction:row;margin-top:22px}
@media (max-width:991px){.tm-people{grid-template-columns:1fr}}
@media (max-width:560px){
  .tm-person{grid-template-columns:96px 1fr;padding:26px 22px;gap:18px}
  .tm-avatar{width:96px;height:96px}
  .tm-person .tm-social{grid-column:1/-1;flex-direction:row}
}

/* Align intro with breadcrumb and grid left edge */
.tm-intro .row{margin-left:0;margin-right:0}
.tm-intro .row>.col-12{padding-left:0;padding-right:0}
