/* ============================================================
   TEAM FEATURE BLOCK — GLOBAL-ALIGNED
============================================================ */

.team-feature {
    width: 100%;
    background: var(--color-grey-light);
}

.team-feature__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--section-padding-y) var(--section-padding-x);
}

/* ============================================================
   LEFT COLUMN (TEXT)
============================================================ */

.team-feature__content {
    max-width: 650px;
    margin: 0;
}

.team-feature__heading {
    font-size: var(--font-h2);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
    text-align: left;
}

.team-feature__body p {
    font-family: var(--font-body-family);
    font-size: var(--font-body);
    line-height: var(--lh-relaxed);
    color: var(--color-black);
    max-width: 650px;
    text-align: left;
}

/* ============================================================
   RIGHT COLUMN (IMAGE + CARD)
============================================================ */

.team-feature__profile {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 474px;
}

.team-feature__image {
    width: 100%;
    height: 251px;
    background: var(--color-grey-mid);
    overflow: hidden;
}

.team-feature__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-feature__card {
    width: 100%;
    background: var(--color-white);
    padding: var(--space-md);
    margin-top: 0;
    box-sizing: border-box;
}

.team-feature__name {
    font-family: var(--font-heading);
    font-size: var(--font-h3);
    color: var(--color-purple);
    margin-bottom: var(--space-xxs);
    text-align: left;
}

.team-feature__title {
    font-family: var(--font-body-family);
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--color-purple);
    margin-bottom: var(--space-sm);
    text-align: left;
}

.team-feature__bio {
    font-family: var(--font-body-family);
    font-size: var(--font-body);
    line-height: var(--lh-relaxed);
    color: var(--color-black);
}

/* ============================================================
   LAYOUT ORIENTATION (TEXT LEFT / TEXT RIGHT)
============================================================ */

.team-feature.text-right .team-feature__content { order: 2; }
.team-feature.text-right .team-feature__profile { order: 1; }

/* ============================================================
   TABLET STYLES
============================================================ */

@media (max-width: 1024px) {

    .team-feature__inner {
        display: block;
        text-align: center;
        padding: var(--space-lg) var(--space-sm);
    }

    .team-feature__content {
        margin-bottom: var(--space-lg);
        text-align: center;
    }

    .team-feature__heading,
    .team-feature__body p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .team-feature__profile {
        max-width: 474px;
        margin: 0 auto;
    }

    .team-feature__image {
        height: 230px;
    }

    .team-feature__card {
        width: 100%;
        padding: var(--space-md);
        text-align: center;
    }
}

/* ============================================================
   MOBILE STYLES
============================================================ */

@media (max-width: 767px) {

    .team-feature__inner {
        padding: var(--space-md) var(--space-xs);
    }

    .team-feature__heading {
        font-size: var(--font-h3);
        line-height: var(--lh-tight);
    }

    .team-feature__image {
        height: 200px;
    }

    .team-feature__card {
        padding: var(--space-sm);
        text-align: center;
    }
}


@media (max-width: 1024px) {

    /* Force single-column layout */
    .team-feature__inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* Left column becomes centered */
    .team-feature__content {
        width: 100% !important;
        max-width: 700px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Right column becomes centered */
    .team-feature__profile {
        width: 100% !important;
        max-width: 474px !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Ensure text inside card is centered */
    .team-feature__card,
    .team-feature__name,
    .team-feature__title,
    .team-feature__bio {
        text-align: center !important;
    }
}

/* ============================================================
   TEAM FEATURE — MATCH APPROACH BLOCK HEADING SIZING
============================================================ */

/* Desktop / Tablet / Mobile — same as global H2 */
.team-feature__heading {
    font-size: var(--font-h2) !important;    /* 36 → 26px responsive clamp */
    line-height: var(--lh-tight) !important;
}

/* Mobile — match Approach Block mobile behaviour */
@media (max-width: 767px) {
    .team-feature__heading {
        font-size: 26px !important;          /* same as Approach Block mobile */
    }
}
