/* Team Page Specific Styles */

.banner img {
    width: 100%;
    height: auto;
    display: block;
}

.team-section {
    padding: 50px 0;
    background-color: #fff;
}

.team-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #E2188F;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.section-text {
    text-align: center;
    color: #666;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
    font-size: 16px;
}

.team-container {
    margin-top: 50px;
}

.team-member {
    display: grid;
    grid-template-columns: 1fr 300px;
    column-gap: 40px;
    row-gap: 0;
    align-items: start;
    margin-bottom: 80px;
    position: relative;
}

/* Hairline that ends before the image, aligned with bottom of image */
.team-member::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 350px;
    height: 1px;
    background-color: #ddd;
}

.team-member-info {
    grid-column: 1;
    grid-row: 1;
}

.team-member-contact {
    grid-column: 1;
    grid-row: 2;
}

.member-name {
    color: #E2188F;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.member-credentials {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin: 2px 0;
}

.member-credentials:last-of-type {
    margin-bottom: 0;
}

.member-contact {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-contact:first-of-type {
    margin-top: 25px;
}

.contact-icon {
    color: #E2188F;
    font-size: 16px;
}

.team-member-image {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 300px;
}

.team-member-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-member {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .team-member::after {
        right: 0;
    }

    .team-member-info {
        order: 1;
        text-align: center;
    }

    .team-member-image {
        width: 100%;
        order: 2;
    }

    .team-member-contact {
        order: 3;
        margin-top: -10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .member-contact {
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .member-contact:first-of-type {
        margin-top: 15px;
    }

    .section-title {
        font-size: 26px;
    }

    .member-name {
        font-size: 20px;
    }

    .team-section {
        padding: 40px 0;
    }

    .section-text {
        padding: 0 20px;
    }

    .team-member {
        margin-bottom: 60px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
        padding: 0 15px;
    }

    .section-text {
        font-size: 15px;
        padding: 0 15px;
    }

    .member-name {
        font-size: 18px;
    }

    .member-credentials {
        font-size: 14px;
    }

    .member-contact {
        font-size: 13px;
    }

    .team-member {
        margin-bottom: 50px;
    }
}
