/* Updated Team Member Page Styles */

.member-intro {
    background-color: #f3f3f5;
    padding-top: 60px;
    padding-bottom: 60px;
}

.member-intro .breadcrumbs-container {
    margin-bottom: 30px;
}

.member-intro .staff__photo__mob {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media(min-width: 768px) {
    .member-intro .staff__photo__mob {
        display: none;
    }
}

.member-intro .staff__photo__mob img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 100%;
}

.member-intro .staff__photo {
    display: none;
}

@media(min-width: 768px) {
    .member-intro .staff__photo {
        display: block;
    }
}

.member-intro .staff__photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1/1;
    border-radius: 100%;
}

.member-intro .staff__partner {
    display: block;
    margin-bottom: 14px;
}

.member-expertise {
    position: relative;
}

@media(min-width:992px) {

    .member-expertise .container {
        display: flex;
    }
}

.member-expertise .col-l {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media(min-width:992px) {

    .member-expertise .col-l {
        padding-right: 50px;
    }
}

.member-expertise .col-l h4 {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 40px;
}

.member-expertise .list-menu ul {
    margin-bottom: 0;
}

@media(min-width: 768px) {

    .member-expertise .list-menu ul {
        display: flex;
        flex-flow: row wrap;
    }
}

.member-expertise .list-menu li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background-color: #eee;
    padding: 20px;
    height: auto;
    margin-bottom: 4%;
}

@media(min-width: 768px) {

    .member-expertise .list-menu li {
        margin-right: 4%;
        width: 48%;
    }

    .member-expertise .list-menu li:nth-of-type(2n) {
        margin-right: 0;
    }
}

.member-expertise .list-menu li img {
    max-width: 60px;
    margin-bottom: 15px;
}

.member-expertise .list-menu li::before {
    display: none;
}

.member-expertise .list-menu li a {
    display: flex;
    position: relative;
    width: 100%;
    color: #333;
    font-weight: 400;
}

.member-expertise .list-menu li a::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: calc(50% - 12px);
    right: 0;
    background-image: url('./assets/img/pagelink-arrow.png');
    background-repeat: no-repeat;
    background-size: 10px;
    background-position: center;
    width: 24px;
    height: 24px;
}

.member-expertise .col-r {
    background-color: #5b1f69;
    padding-top: 60px;
    padding-bottom: 60px;
}

.member-expertise .col-r ul {
    padding-left: 20px;
}

.member-expertise .col-r li {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 45px;
}

.member-expertise .col-r li:not(:last-of-type) {
    margin-bottom: 40px;
}

.member-expertise .col-r li::before {
    content:"";
    display: inline-block;
    position: absolute;
    left: 0;
    width: 35px;
    height: 35px;
    background-size: 35px;
    background-position: center;
    background-repeat: no-repeat;
}

.member-expertise .col-r li.branch::before {
    background-image: url('./assets/img/Location-icon.png');
}

.member-expertise .col-r li.phone::before {
    background-image: url('./assets/img/Phone-icon.png');
}

.member-expertise .col-r li.fax::before {
    background-image: url('./assets/img/Fax-icon.png');
}

.member-expertise .col-r li.email::before {
    background-image: url('./assets/img/Email-icon.png'); 
}

.member-expertise .col-r::after {
    content:"";
    display: block;
    position: absolute;
    background-color: #5b1f69;
    right: calc(100% - 1174px);
    width: 1170px;
    height: 100%;
    top: 0;
    z-index: -1;
}

.member-expertise .col-r * {
    color: #fff;
}

.member-expertise .col-r h4 {
    padding-left: 20px;
    font-weight: 300;
    font-size: 30px;
    line-height: 40px;
    margin-bottom: 30px;
}

.member-testimonial {
    background-color: #f3f3f5;
    padding-top: 60px;
    padding-bottom: 60px;
}

.member-testimonial h4 {
    text-align: center;
    font-weight: 500;
    font-size: 30px;
    line-height: 40px;
}

.member-testimonial .testimonial_rotator_wrap  {
    text-align: center!important;
}

.testimonial_rotator .testimonial_rotator_author_info {
    border: 0!important;
}

.testimonial_rotator_quote {
    font-style: normal;
    color: #5b1f69;
    font-family: Lato,Helvetica,Arial,sans-serif;
    font-weight: 300;
}

.testimonial_rotator_quote em {
    font-style: normal;
}

.testimonial_rotator_author_info p {
    font-style: normal;
    color: #5b1f69;
    font-family: Lato,Helvetica,Arial,sans-serif;
    font-weight: 400;
}

.memberships-accreditations {
    padding-top: 60px;
    padding-bottom: 60px;
}

.memberships-accreditations h4 {
    margin-bottom: 30px;
    font-weight: 500;
    font-size: 30px;
    line-height: 40px;
}

@media(min-width: 768px) {

    .memberships-accreditations .memberships {
        padding-right: 10%!important;
    }
}

.memberships-accreditations p {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
}

.memberships-accreditations p a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 0 50%;
    padding: 0 20px;
}

.memberships-accreditations p a img {
    width: 100%;
}

.member-cases {
    position: relative;
}

.member-cases .container {
    padding-top: 60px;
    padding-bottom: 180px;
    border-top: 1px solid #5b1f69;
}

.member-cases h4 {
    text-align: center;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 60px;
    font-size: 30px;
    line-height: 40px;
}

.member-cases ul {
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    padding: 0;
}

.member-cases li {
    display: inline-block;
    border: 1px solid #5b1f69;
    color: #5b1f69;
    padding: 20px;
    width: 49%;
    margin-bottom: 2%;
    margin-right: 2%;
    font-size: 14px;
    line-height: 20px;
}

.member-cases li:nth-of-type(2n) {
    margin-right: 0;
}

@media(min-width: 768px) {

    .member-cases li {
        width: 32%;
        height: 150px;
    }

    .member-cases li:nth-of-type(2n) {
        margin-right: 2%;
    }

    .member-cases li:nth-of-type(3n) {
        margin-right: 0;
    }
}

@media(min-width: 768px) {

    .member-cases li {
        font-size: 16px;
        line-height: 22px;
    }
}

.member-cases li a {
    color: #5b1f69;
    text-decoration: underline;
}

.member-cases li:hover {
    background-color: #5b1f69;
    color: #fff;
}

.member-cases li:hover a {
    color: #fff;
    text-decoration: underline;
}

.bottom-grey--skew {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -90px;
    height: 180px;
    background: #f3f3f5;
    z-index: 0;
    -webkit-transform: skewY(-5deg);
    -ms-transform: skewY(-5deg);
    transform: skewY(-5deg);
}

.member-posts h4:not(.box--post__content h4) {
    text-align: center;
    font-size: 30px;
    line-height: 40px;
}

.member-posts {
    padding-top: 60px;
}

.member-posts .btn {
    margin-top: 20px;
}