.dh-team-grid {
    padding: 40px 0;
    background-color: #fff;
}

.dh-team-grid__header {
    text-align: left;
    max-width: 915px;
    margin: 0 0 40px;
}

.dh-team-grid__overline {
    color: var(--primary-red-100, #DF002F);
    text-align: left;
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.dh-team-grid__title {
    color: var(--primary-black-100, #111B29);
    text-align: left;
    font-family: Lato, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 116%;
    margin-bottom: 16px;
}

.dh-team-grid__description {
    color: var(--primary-black-100, #111B29);
    text-align: left;
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 132%;
}

/* Desktop */
@media (min-width: 768px) {
    .dh-team-grid__header {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 50px;
    }

    .dh-team-grid__overline,
    .dh-team-grid__title,
    .dh-team-grid__description {
        text-align: center;
    }
}

/* =========================================
   CEO Card
   ========================================= */

.team-ceo-card {
    background-color: #FFF8F8;
    /* Secondary White Red */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.team-ceo-card__image {
    width: 100%;
    position: relative;
    /* Mobile height based on Figma */
    min-height: 244px;
}

.team-ceo-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-ceo-card__content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-ceo-card__header-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.team-ceo-card__overline {
    color: #DF002F;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin: 0;
}

.team-ceo-card__title {
    color: #111B29;
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.team-ceo-card__description {
    color: #111B29;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.32;
}

.team-ceo-card__description p {
    margin-bottom: 12px;
}

.team-ceo-card__description p:last-child {
    margin-bottom: 0;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .team-ceo-card {
        flex-direction: row;
        align-items: stretch;
    }

    .team-ceo-card__image {
        width: 40%;
        /* Adjust width share */
        min-height: auto;
        /* Let flex handle height */
    }

    .team-ceo-card__image img {
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .team-ceo-card__content {
        width: 60%;
        padding: 40px 50px;
        /* More padding on desktop */
        justify-content: center;
    }

    .team-ceo-card__title {
        font-size: 32px;
        /* Likely larger on desktop, though Figma said 24px? Checking context. */
    }
}

@media (min-width: 992px) {
    .dh-team-grid {
        padding: 100px 0;
    }

    .dh-team-grid__title {
        font-size: 36px;
    }
}

/* =========================================
   Team Members Grid
   ========================================= */

.team-members-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    /* Prevent items from stretching to row height */
}

.team-member-card {
    display: flex;
    flex-direction: column;
    background-color: #F7F8FA;
    /* Primary Grey 20% */
    border-radius: 10px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    /* height: 100%; Removed to allow natural height */
}

.team-member-card__image {
    width: 100%;
    position: relative;
    height: 261px;
    /* Fixed height from Figma */
    /* aspect-ratio removed in favor of fixed height to match design */
}

.team-member-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member-card__content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* flex-grow: 1; Removed to allow natural height */
}

.team-member-card__header-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.team-member-card__name {
    color: #111B29;
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.team-member-card__role {
    color: #DF002F;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin: 0;
}

.team-member-card__description {
    color: #111B29;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.32;
    margin: 0;
    font-style: normal;
}

@media (min-width: 768px) {
    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 992px) {
    .dh-team-grid {
        padding: 60px 0;
    }

    .dh-team-grid__title {
        font-size: 36px;
    }

    .team-members-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        /* Reduced gap to fit 3 in standard container if needed, or stick to 30/40 */
    }
}