﻿.profiles {
    clear: both;
    width: 100%;
}

.profile-container {
    display: block;
    float: left;
    width: 50%;
    min-width: 306px;
    margin-bottom: 8px;
    padding-left: 20px;
    margin-bottom: 20px;
}

    .profile-container:nth-of-type(odd) {
        padding-left: 0;
    }

.profile-container-inner {
    position: relative;
    background-color: #000;
    color: #FFF;
    padding: 10px;
}

    .profile-container-inner a {
        /*color: #231f20;*/
        text-decoration: none;
    }

        .profile-container-inner a:hover {
            text-decoration: underline;
        }

.first-profile-container {
    padding-left: 0px;
}

.profile-clickable {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-decoration: none; /* Makes sure the link   doesn't get underlined */
    z-index: 10; /* raises anchor tag above everything else in div */
    background-color: white; /*workaround to make clickable in IE */
    opacity: 0; /*workaround to make clickable in IE */
    filter: alpha(opacity=1); /*workaround to make clickable in IE */
    display: none;
}


.profile-name {
    padding-top: 5px;
    padding-bottom: 6px;
    overflow: hidden;
    font-size: 20px;
    color: #ED1C24;
}

    .profile-name a {
        color: #ED1C24;
        text-decoration: none;
    }

        .profile-name a:hover {
            text-decoration: underline;
        }

.profile-position {
    font-size: 16px;
    padding-bottom: 10px;
}

.profile-image {
    float: left;
    margin-right: 10px;
    line-height: 0px;
}

    .profile-image img {
        height: 160px;
        width: 120px;
    }

.profile-phone,
.profile-mobile,
.profile-fax {
    padding-bottom: 3px;
    font-size: 14px;
}

.profile-fax {
    padding-top: 2px;
    padding-bottom: 8px;
}

.profile-more-details {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

    .profile-more-details a {
        color: #ed1b24;
        text-decoration: none;
    }

        .profile-more-details a:hover {
            color: #FFF;
            text-decoration: underline;
        }

/* Icons */
i.fa.fa-mobile {
    font-size: 21px;
    vertical-align: middle;
    padding-left: 4.5px;
    padding-right: 4.5px;
}

i.fa.fa-phone {
    font-size: 15px;
    vertical-align: middle;
    padding-left: 3px;
    padding-right: 3px;
}

@media only screen and (max-width: 980px) {
    .profile-container {
        width: 100%;
        padding-left: 0px;
    }

    .profile-container-inner {
        margin-left: 0px;
    }
}

@media only screen and (max-width: 500px) {
    .profile-container {
        display: block;
        width: 100%;
        min-width: 0px;
        height: 60px;
        margin-bottom: 10px;
    }

        .profile-container:hover .profile-container-inner {
            background-color: #ed1c24;
        }

    .profile-container-inner {
        padding: 0;
        padding-left: 10px;
        background-image: url("../images/menu-arrow.png");
        background-repeat: no-repeat;
        background-position: right center;
        height: 100%;
        /*border-top:none;*/
    }

    .profile-clickable {
        visibility: visible;
        display: block;
    }

    .profile-position {
        font-style: italic;
    }

    .profile-name {
        padding-top: 9px;
        padding-bottom: 5px;
    }

    .profile-position {
        display: none;
    }

    .profile-image,
    .profile-phone,
    .profile-fax,
    .profile-email,
    .profile-more-details {
        display: none;
    }

    .profile-name {
        color: #FFF;
    }
}
