
/* =========================================
   TRADESTONE - MODERN TEAM SECTION
   ========================================= */

body .ts-people {
    display: block;
    width: 100%;
    clear: both;
    padding: 90px 0;
    background: #f5f8fc;
    font-family: inherit;
}

body .ts-people * {
    box-sizing: border-box;
}

/* Main container */
body .ts-people > .container {
    float: none;
    max-width: 1240px;
    width: calc(100% - 48px);
    margin: 0 auto;
}

/* Section heading */
body .ts-people .ts-people-heading {
    display: block;
    float: none;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}

body .ts-people .ts-eyebrow {
    display: block;
    color: #0e7490;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

body .ts-people .ts-people-heading h2 {
    text-align: center;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.18;
    font-weight: 700;
    color: #14253f;
    margin: 12px 0 16px;
}

body .ts-people .ts-people-heading p {
    text-align: center;
    font-size: 16px;
    line-height: 1.7;
    color: #637187;
    margin: 0 auto;
}

/* =========================================
   DEPARTMENT FILTER BUTTONS
   ========================================= */

body .ts-people .ts-team-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0 auto 38px;
    padding: 0;
}

body .ts-people .ts-team-filters button.ts-team-filter {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    float: none !important;
    clear: none !important;

    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 11px 18px !important;

    border: 1px solid #dce4ed !important;
    border-radius: 999px !important;

    background: #ffffff !important;
    color: #35465c !important;

    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    cursor: pointer;
    transition: all 0.25s ease;
}

body .ts-people .ts-team-filters button.ts-team-filter:hover {
    border-color: #0e7490 !important;
    color: #0e7490 !important;
}

body .ts-people .ts-team-filters button.ts-team-filter.is-active {
    background: #143a55 !important;
    color: #ffffff !important;
    border-color: #143a55 !important;
}

/* =========================================
   EMPLOYEE CARD GRID
   ========================================= */

body .ts-people .ts-team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100%;
}

body .ts-people .ts-person {
    display: block;
    min-width: 0;
    width: auto;
    float: none;
    margin: 0;

    background: #ffffff;
    border: 1px solid #e9eef4;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 12px 32px rgba(16, 37, 64, 0.06);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

body .ts-people .ts-person:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(16, 37, 64, 0.13);
}

body .ts-people .ts-person[hidden] {
    display: none !important;
}

/* =========================================
   EMPLOYEE PHOTOGRAPHS
   ========================================= */

body .ts-people .ts-person-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    overflow: hidden;
    background: #e8eff5;
}

body .ts-people .ts-person-image img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;

    object-fit: cover;
    object-position: center 20%;

    border-radius: 0;
    transition: transform 0.4s ease;
}

body .ts-people .ts-person:hover .ts-person-image img {
    transform: scale(1.045);
}

/* Department badge on photograph */
body .ts-people .ts-person-department {
    position: absolute;
    left: 14px;
    bottom: 14px;

    display: inline-block;
    padding: 7px 11px;

    background: rgba(255, 255, 255, 0.94);
    color: #15364e;

    font-size: 11px;
    font-weight: 800;
    border-radius: 30px;
}

/* =========================================
   EMPLOYEE DETAILS
   ========================================= */

body .ts-people .ts-person-content {
    padding: 22px 20px 24px;
    text-align: left;
}

body .ts-people .ts-person-content h3 {
    color: #15283f;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 5px;
}

body .ts-people .ts-person-role {
    color: #087b94;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 12px;
}

body .ts-people .ts-person-bio {
    color: #64748b;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
}

body .ts-people .ts-team-empty {
    text-align: center;
    color: #64748b;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet */
@media (max-width: 1050px) {
    body .ts-people .ts-team-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Small tablet */
@media (max-width: 760px) {
    body .ts-people {
        padding: 55px 0;
    }

    body .ts-people > .container {
        width: calc(100% - 30px);
    }

    body .ts-people .ts-team-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    body .ts-people .ts-person-content {
        padding: 17px 14px;
    }

    body .ts-people .ts-person-content h3 {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 470px) {
    body .ts-people .ts-team-grid {
        grid-template-columns: 1fr !important;
    }

    body .ts-people .ts-person-image {
        aspect-ratio: 4 / 3.7;
    }

    body .ts-people .ts-team-filters button.ts-team-filter {
        padding: 9px 13px !important;
        font-size: 12px !important;
    }
}
