﻿#ifPrint {
    display: none;
}

.card.profile-office-card {
    width: 100%;
    margin: 0;
}

.profile-box {
    position: relative;
    float: left;
    width: 50%;
    background: #fff;
    margin-bottom: 30px;
    margin-top: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

.profile-box-inner {
    position: relative;
    display: flex;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.profile-clickable {
    display: none;
}

.profile-image-outer {
    width: 33.33333333%;
}

.profile-image {
    line-height: 0px;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

.profile-image:before {
    display: block;
    content: " ";
    padding-top: 127%;
}

.profile-image-icon {
    position: relative;
    line-height: 0px;
    width: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding-bottom: 125%;
    color: #888888;
    background-color: #fff;
    color: #d1d1d1;
}

.profile-info {
    position: relative;
    width: 67.66666667%;
    text-align: left;
    /*height: 231px;*/
}

h2.profile-name {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 400;
    text-align: left;
    padding: 5px 15px;
    background-color: #005493;
    color:#111;
}

.profile-name a {
    color: #fff;
    text-decoration: none !important;
}

    .profile-name a:hover {
        text-decoration: none;
    }

.profile-position {
    font-size: 18px;
    font-weight: 300;
    color: #37424b;
    padding: 15px;
    padding-bottom: 5px;
}

.contact,
.contact a {
    color: #888;
}

.contact {
    font-size: 15px;
    line-height: 1.5;
    color: #37424b;
    padding-left: 15px;
    padding-top: 10px;
}

    .contact a {
        padding-bottom: 1px;
        border-bottom: 1px solid #ddd;
        text-decoration: none;
    }

        .contact a:hover {
            color: #555;
        }

    .contact i {
        display: inline-block;
        width: 20px;
        margin-right: 5px;
    }

        .contact i.fa-mobile {
            font-size: 1.4em;
        }

.about {
    line-height: 1.7;
    color: #888;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #e6e6e6;
}

.profile-about {
    font-size: 15px;
    line-height: 22px;
    margin-top: 20px;
}

.profile-about a {
    color: #005493;
}

.profile-abouta.morelink {
    text-decoration:none;
    outline: none;
}

.profile-about .morecontent span {
    display: none;
}

.profile-about .comment {
    width: 400px;
    background-color: #f0f0f0;
    margin: 10px;
}

.profile-box .social-transparent {
    text-align: center;
    background-color: #f8f8f8;
}

    .profile-box .social-transparent i {
        margin: 1em 5px;
    }

.profile-box .profile-link {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    background: #37424b;
    padding: 10px 15px;
    background: none;
}

.profile-box a.more-details-btn {
    position: relative;
    color: #fff;
    font-weight: 400;
    text-decoration: none;
    margin-top: 20px;
    transition: none;
    margin: 0 auto;
    background-color: #37424b;
    padding: 5px 10px;
    background: none;
    color: #37424b;
}

.profile-box a.more-details-btn:hover {
    color: #005493;
}

/* PROFILE TYPE */
.profile-type.profile-box {
    width: 100%;
}

.profile-type .profile-box-inner {
    border: none;
    box-shadow: none;
    border-radius: unset;
}

.profile-type .profile-image-outer {
    width: 50%;
    padding-right: 0px;
    /*padding-right: 10px;*/
}

.profile-type .profile-info {
    width: 50%;
    padding: 15px;
    /*padding-top: 0;*/
    border: solid 1px #005493;
}

.profile-type h2.profile-name {
    display: inline-block;
    color: #111;
    background: none;
    padding: 0;
    padding-bottom: 3px;
    border-bottom: 1px solid #005493;
    margin-bottom: 20px;
}

.profile-type .profile-position {
    padding: 0;
    margin-bottom: 30px;
}

.profile-type .contact,
.profile-type .contact a {
    color: #37424b;
    padding: 5px;
}


@media only screen and (min-width: 1061px) and (max-width: 1130px) {
    h2.profile-name {
        font-size: 22px;
        line-height: 1.2;
    }

    .profile-position {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .contact {
        font-size: 14px;
    }
}

@media only screen and (min-width: 1011px) and (max-width: 1060px) {
    h2.profile-name {
        font-size: 20px;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    .profile-position {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .contact {
        font-size: 14px;
    }
}

@media only screen and (max-width: 1010px) {
    .profile-box {
        width: 100%;
        float: none;
    }

    .profile-image-outer {
        width: 20%;
    }

    .profile-info {
        width: 80%;
    }
}

@media only screen and (max-width: 960px) {

    .profile-box-inner {
        display: block;
    }
    
    .profile-type .profile-image-outer {
        width: 100%;
        display: block;
    }

    .profile-type .profile-info {
        width: 100%;
        display: block;
    }
}

@media only screen and (max-width: 845px) {
        /*.profile-box {
        width: 33.3333%;
        float: left;
    }*/

        .profile-clickable {
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 23;
        }

        .profile-image-outer {
            width: 100%;
            padding: 0;
        }

        .profile-info {
            width: 100%;
            text-align: center;
        }

        h2.profile-name {
            font-size: 18px;
            text-align: center;
        }

        .profile-position {
            font-size: 14px;
            line-height: 1.2;
        }
    }

    @media only screen and (max-width: 690px) {
        /*.profile-box {
        width: 50%;
    }*/

        .profile-box {
            width: 100%;
        }

        .profile-box-inner > * {
            display: block;
        }

        .profile-box-inner {
            display: block;
        }

            .profile-box-inner .contact {
                text-align: left;
            }

            .profile-box-inner > .profile-info {
                padding-bottom: 5px;
            }
    }

    @media only screen and (max-width: 510px) {
        .profile-box {
            width: 100%;
        }
    }


    a.card.profile-office-card:hover .card-image-inner {
        filter: brightness(100%);
        transform: scale(1.05);
    }

    a.card.profile-office-card .card-image-inner {
        filter: brightness(100%);
        transform: scale(1);
    }

    a.card.profile-office-card .card-image-inner {
        transition: all 0.5s;
    }

    a.card.profile-office-card .image-caption {
        text-align: center;
    }

    a.card.profile-office-card {
        width: calc(33.3333333% - 30px);
        position: relative;
    }

    @media screen and (max-width:1180px) {
        a.card.profile-office-card {
            width: calc(33.3333333% - 30px);
        }
    }

    @media screen and (max-width:1080px) {
        a.card.profile-office-card {
            width: calc(50% - 30px);
        }
    }

    @media screen and (max-width:780px) {
        a.card.profile-office-card {
            width: calc(100% - 30px);
        }
    }



/* Card layout */

.card.profile-office-card {
    background-color: #e3e3e3;
}

.cards.profile-cards > .card {
    text-align: left !important;
}

h2.office-profile-name {
    padding-top: 0;
    font-size: 20px;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

h3.office-profile-position {
    font-size: 18px;
    font-weight: 200;
    margin-top: 5px;
}

h3.office-profile-position {
    height: 1em;
}


.card[data-href] {
    cursor: pointer;
}

li.contact-method.spacer-method {
    height: 1em;
}

@media screen and (max-width: 1024px) {
    .card.profile-office-card {
        width: calc(33.333333333% - 30px);
    }
}

@media screen and (max-width: 768px) {
    .card.profile-office-card {
        width: calc(50% - 30px);
    }
}

@media screen and (max-width: 550px) {
    .card.profile-office-card {
        width: 100%;
    }
}



.card.profile-office-card .image-caption {
    background-image: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

.profile-office-card .image-caption-content {
    padding: 15px;
    padding-top: 20px;
}

.image-caption-content a.contact-method-link {
    color: #fff;
}

.image-caption-content h3.office-profile-position {
    color: #fff;
    max-width: 100%;
    white-space: normal;
    text-overflow: ellipsis;
}