/* Our Team page — aligned with the finalized pink/navy site design. */
.team-page {
    padding: 44px 0 64px;
    background: #fff7fa;
    color: #273851;
}
.team-page, .team-page * { box-sizing: border-box; }
.team-page > .container {
    width: calc(100% - 30px) !important;
    max-width: 1170px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.team-page #tg-content { width: 100%; }
.team-page .tg-sectionhead {
    max-width: 850px;
    margin: 0 auto 30px;
    padding: 28px 32px 22px;
    border: 1px solid #f0dce5;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(38, 25, 44, .06);
}
.team-page .tg-sectiontitle { margin: 0 0 12px !important; }
.team-page .tg-sectiontitle h2 {
    margin: 0;
    color: #182b47;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}
.team-page .tg-sectionhead .tg-description,
.team-page .tg-sectionhead .tg-description p {
    margin: 0;
    color: #64748a;
    font-size: 15px;
    line-height: 1.8;
}
.team-page .team-members-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 0 !important;
    padding: 0 !important;
}
.team-page .team-member-column {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    min-width: 0;
}
.team-page .tg-teammember {
    height: 100%;
    overflow: hidden;
    margin: 0 !important;
    border: 1px solid #f0dce5;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(38, 25, 44, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.team-page .tg-teammember:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(38, 25, 44, .1);
}
.team-page .tg-teammember figure {
    margin: 0 !important;
    overflow: hidden;
    background: #fff0f6;
}
.team-page .tg-teammember figure img {
    display: block;
    width: 100%;
    height: 265px;
    object-fit: cover;
    object-position: center top;
}
.team-page .tg-teammembercontent {
    padding: 19px 16px 20px;
    text-align: center;
}
.team-page .tg-teammembercontent h3 {
    margin: 0 0 7px;
    color: #182b47;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}
.team-page .tg-teammembercontent h3 a {
    color: inherit;
    text-decoration: none;
}
.team-page .tg-teammembercontent h3 a:hover { color: #ec087b; }
.team-page .tg-teammembercontent > span {
    display: block;
    min-height: 20px;
    color: #64748a;
    font-size: 13px;
    line-height: 1.5;
}
.team-page .tg-socialicons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}
.team-page .tg-socialicons li { margin: 0 !important; }
.team-page .tg-socialicons li a {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0dce5;
    border-radius: 50%;
    background: #fff7fa;
    color: #ec087b;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.team-page .tg-socialicons li a:hover {
    background: #ec087b;
    color: #fff;
}
@media (max-width: 1100px) {
    .team-page .team-members-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .team-page { padding: 32px 0 46px; }
    .team-page .team-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .team-page .tg-sectionhead { padding: 24px 20px; margin-bottom: 24px; }
    .team-page .tg-teammember figure img { height: 235px; }
}
@media (max-width: 480px) {
    .team-page > .container { width: calc(100% - 28px) !important; }
    .team-page .team-members-grid { grid-template-columns: minmax(0, 1fr); }
    .team-page .tg-teammember figure img { height: 290px; }
}
