/* Team Page Styles */
.team-intro {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 20px;
}

.team-divider {
    width: 80px;
    border-top: 3px solid #5DAC41;
    margin: 20px auto 40px;
}

/* Team Member Styles */
.team-member {
    margin-bottom: 40px;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.team-row {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.team-row:hover {
    box-shadow: 0 10px 25px rgba(93, 172, 65, 0.2);
}

/* Image Styles */
.member-image {
    height: 280px;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    border-radius: 0px;
    overflow: hidden;
    width: 100%;
}

/* For even rows, move image to right side */
.team-row.even .member-image-col {
    order: 2;
}

.team-row.even .member-info-col {
    order: 1;
}

.member-info {
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member h2 {
    font-size: 28px;
    color: #112A72;
    margin: 0;
    padding: 0;
}

.team-member h4 {
    font-size: 18px;
    color: #5DAC41;
    margin: 5px 0 0 0;
    padding: 0;
    font-style: italic;
}

.member-role {
    background-color: #f8f8f8;
    color: #666;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin: 10px 0;
}

.member-bio {
    margin: 15px 0;
    line-height: 1.6;
    color: #444;
    width: 100%;
    overflow: visible;
}

/* Mobile-only Media Queries */
/* For tablets and smaller devices */
@media (max-width: 991px) {
    .team-members {
        padding: 0 20px;
    }

    .member-image {
        height: 250px;
        width: 100%;
        min-height: 250px;
        display: block;
    }

    .member-info {
        padding: 15px;
    }

    .team-member h2 {
        font-size: 22px;
    }

    .team-member h4 {
        font-size: 16px;
    }

    /* On mobile, always show image on top and bio below */
    .team-row {
        display: block;
        flex-direction: column;
    }

    .team-row.even .member-image-col,
    .team-row.odd .member-image-col {
        order: 1;
        width: 100%;
        display: block;
    }

    .team-row.even .member-info-col,
    .team-row.odd .member-info-col {
        order: 2;
        width: 100%;
        display: block;
    }

    .member-image-col, .member-info-col {
        width: 100%;
        padding: 0;
    }
    
    /* Custom mobile styles for Team.cshtml structure */
    .row.odd .col-md-5, .row.odd .col-md-7,
    .row.even .col-md-5, .row.even .col-md-7 {
        width: 100%;
    }
}

/* For smaller mobile devices */
@media (max-width: 767px) {
    /* Custom mobile styles for Team.cshtml structure */
    .row.odd .col-sm-5, .row.odd .col-sm-7,
    .row.even .col-sm-5, .row.even .col-sm-7 {
        width: 100%;
        float: none;
    }
    
    /* For odd rows, make image appear above bio on mobile */
    .row.odd {
        display: flex;
        flex-direction: column;
    }
    
    .row.odd .col-sm-5 {
        order: 1;
    }
    
    .row.odd .col-sm-7 {
        order: 2;
    }
}
