.expertSearchResult {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.expertSearchResultAvatar img {
    border: 1px solid #ddd;
    border-radius: 50% 50% 0 50%;
    -webkit-border-radius: 50% 50% 0 50%;
    -moz-border-radius: 50% 50% 0 50%;
    -o-border-radius: 50% 50% 0 50%;
}

.publicProfile .sideColumnRight{
    width: 235px;
}

.profileTop {
    margin-bottom: 20px;
}

.profileTopButtons {
    text-align: center;
}

.profileTopButtons.desktop {
    float: right;
    margin:  0 0 7px 7px;
}

.profileTopButtonsDivider {
    font-style: italic;
    margin: 9px 0;
}

.profileTopButtons.mobile, .profileTopButtons.mobile .profileTopButtonsDivider {
    display: none;
}

.profileTopButtons.mobile > a {
    display: inline-block;
    margin: 15px 7px 0 7px;
}

.profileTopButtons.mobile div {
    font-size: 15px;
}

.profileTopAvatar {
    float: left;
    margin: 0 20px 0 0;
}

.profileTopAvatar img {
    border: 1px solid #ddd;
    border-radius: 73px;
    -webkit-border-radius: 73px;
    -moz-border-radius: 73px;
    -o-border-radius: 73px;
}

.profileTopTitles, .profileTopDetails, .profileTopContent .profileSubCategoryLinks {
    margin: 0 226px 0 155px;
}

.profileInlineDetails {
    line-height: 22px;
}

.profileInlineDetails a, .profileSubCategoryLinks a, #whatsTheDifferenceLink {
    /*color: #474747 !important;*/
}

.profileInlineDetails a:hover, .profileSubCategoryLinks a:hover, #whatsTheDifferenceLink:hover {
    text-decoration: none;
}

.editProfileButton {
    margin-top: 10px;
}

.editProfileButton button {
    font-size: 14px;
    padding: 9px 12px;
}

.profileTop h1 {
    margin-bottom: 0px;
}

.profileTop h2 {
    margin-bottom: 5px;
}

.profileInlineDetails .ratingAverage {
    vertical-align: top;
}

.profileInlineDetails .expertAverageRating {
    margin-left: -35px;
}

.profileInlineDetails .inlineDetail {
    display: inline-block;
}

.profileInlineDetails .divider {
    display: inline-block;
    margin: 0 5px;
}

.profileInlineDetails .location img {
    vertical-align: top;
}

.profileSubCategoryLinks, .profileTopContent .profileSubCategoryLinks {
    margin-top: 10px;
    font-size: 14px;
    margin-bottom: 2px;
}

.profileSubCategoryLink {
    background-color: #f2f2f2;
    display: inline-block;
    line-height: 1.4;
    margin: 0 4px 4px 0;
    padding: 4px 4px;
    text-decoration: none;
    border: 1px #474747 solid;
}

.profileSubCategoryLink:hover {
    color: #7c7c7a;
    text-decoration: underline;
}

.profileSubCategoryLink:visited {
    color: #7c7c7a;
}

.profileTextColumn {
    font-size: 15px;
    line-height: 22px;
    word-wrap: break-word;
}

.topRating {
    font-style: italic;
}

.topRatingComment {
    line-height: 20px;
}

.topRatingComment:before, .topRatingComment:after {
    content: '"';
}

.topRatingReferee {
    font-weight: bold;
}

.topRatingReferee a {
    color: #474747;
}

.topRatingReferee a:hover {
    text-decoration: none;
}

#contactExpert {
    background-color: #fff;
    padding: 20px;
}

.contactFormLabel {
    display: inline-block;
    vertical-align: top;
    width: 160px;
}

.hiddenCategoryLinks.unfolded {
    display: inline;
}

.hiddenCategoryLinks.folded {
    display: none;
}

.adminProfileInfoField, .adminProfileInfoBlock {
    box-sizing: border-box;
    float: left;
    padding-right: 10px;
    min-width: 200px;
    width: 50%;
}

.adminProfileInfoBlock .adminProfileInfoField {
    float: none;
    padding-right: 0;
    min-width: 0;
    width: 100%;
}

.adminProfileInfoBlock {
    margin-bottom: 10px;
}

.adminProfileInfoValue {
    font-weight: bold;
    word-wrap: break-word;
}

.contactFormField input[type=text] {
    width: 220px;
}

.contactFormField textarea {
    box-sizing: border-box;
    width: 100%;
}

.contactFormField.captcha {
    margin-bottom: 20px;
}

.publicProfile .projectsList table {
    table-layout: fixed;
}

.publicProfile .projectsList td:first-child {
    width: 70%;
}

.publicProfile .projectsList td:nth-child(2) {
    white-space: nowrap;
}

.shareProfile {
    float: right;
    text-align: right;
}

.shareProfileLabel {
    display: inline-block;
    font-style: italic;
    line-height: 20px;
    margin-right: 6px;
    vertical-align: middle;
}

.shareProfileIcons {
    display: inline-block;
}

.adminExpertActions {
    float: left;
    width: 115px;
}

.profileBackButtons {
    display: block;
    margin: -20px 0 8px;
    text-align: center;
}

.profileBackButtons button {
    font-size: 13px;
    margin-right: 5px;
    padding: 6px 10px;
}

.profileBackButtons button:last-child {
    margin-right: 0;
}

#profileTabs .tabPanel {
    min-height: 160px;
}

.profileSectionTitle {
    border-bottom: 1px solid #999;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.profileSubCategoriesPlaceHolder {
    border: 1px dotted #474747;
    float: left;
    font-style: italic;
    margin-top: 10px;
    padding: 10px;
}

/*
Portfolio
*/

.portfolio-item {
    border-bottom: 1px solid #9A9A9A;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.portfolio-visual {
    float: left;
    margin-bottom: 10px;
    text-align: center;
    width: 50%;
}


.portfolio-visual img,
.portfolio-visual audio,
.portfolio-visual video {
    max-width: 100%;
    max-height: 350px;
}

.portfolio-iframe {
    height: 0px;
    padding-bottom: 65%;
    position: relative;
    width: 100%;
}

.portfolio-iframe iframe {
    height: 100%;
    left: 0px;
    position: absolute;
    top: 0px;
    width: 100%;
}

.portfolio-description {
    float: left;
    margin-bottom: 10px;
    padding-left: 3%;
    position: relative;
    width: 47%;
    word-wrap: break-word;
}

.portfolio-description h3, #contactExpert h3 {
    font-weight: normal;
    color: #3c99ac;
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-description #description {
    margin-bottom: 10px;
}

form.addPortfolioItem .formInlineLabel {
    font-weight: bold;
    min-width: 90px;
    width: 15%;
}

.portfolio-item-top {
    position: relative;
}

.downloadPortfolioFile {
    bottom: 10px;
    position: absolute;
    right: 0;
    width: 47%;
}

.portfolioForms {
    display: table;
    width: 100%;
}

.portfolioUploadForm, .portfolioRemoveForm {
    display: table-cell;
    position: relative;
}

.portfolioUploadForm {
    width: 60%;
}

.portfolioRemoveForm {
    width: 40%;
}

.portfolioRemoveForm form {
    bottom: 0;
    position: absolute;
    right: 0;
}

/*
Portfolio END
*/

/*
Inline editing
*/

.editable {
    background-color: #f2f8f8;
    border-bottom: 1px dashed #474747;
    cursor: pointer;
}

.editable:after {
    content: url("../img/edit-icon.png");
    cursor: pointer;
    display: inline-block;
    margin-left: 2px;
    height: 20px;
}

.profileTopForms {
    border-bottom: 1px solid #999;
    border-top: 1px solid #999;
    margin: 15px 0;
    padding: 0 0 12px 0;
}

.editAvatarForm, .profileTopSocialMediaUrls, .showInProfile {
    margin: 15px 0 0 0;
}

.editAvatarForm {
    float: left;
    padding-right: 4%;
}

.editAvatarForm input[type=file] {
    max-width: 190px;
}

.profileTopSocialMediaUrls {
    float: left;
    padding-right: 5%;
}

.profileTopSocialMediaUrls label {
    display: inline-block;
    margin-bottom: 5px;
    width: 70px;
}

.profileTopSocialMediaUrls a.editable {
    word-wrap: break-word;
}

.profileTopSocialMediaUrls .error {
    display: block;
    width: 100%;
}

.showInProfile {
    float: left;
}

.showInProfile .red {
    display: inline-block;
}

.avatarPreviewContainer {
    width: 135px;
}

.hasPendingAvatar {
    color: red;
    font-size: 12px;
    margin-top: 3px;
}

#avatarPreview {
    text-align: center;
    font-style: italic;
    width: 135px;
    height: 135px;
}

.avatarUpload {

}

.emptyAvatar {
    width: 105px;
    height: 80px;
    padding: 40px 15px 15px;
    border: 1px solid #A1A1A1;
}

#avatarPreview img {
    width: 100%;
}

.profileInlineForm textarea {
    box-sizing: border-box;
    width: 100% !important;
}

.profileInlineForm input {
    width:100%;
} 

.profileCategoryColumn {
    float: left;
    width: 50%;
}

.profileCategoryList {
    list-style: none;
    margin-bottom: 10px;
}

/*
Inline editing END
*/

/*
Sidebar BEGIN
*/

.profileContactDetail, .profileSocialMediaLinks {
    background-image: url(../img/navigation-arrow-orange.png);
    background-position-y: 2px;
    background-repeat: no-repeat;
    padding: 0 0 10px 20px;
    line-height: 19px;
}

.profileContactDetail div.sideline {
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

.profileContactDetail a {
    color: #666 !important;
}

.profileContactDetail a:hover {
    text-decoration: none;
}

.profileSocialMediaLine {
    margin-bottom: 5px;
}

.profileSocialMediaTextLink {
    color: #474747 !important;
    margin-left: 3px;
    text-decoration: none;
    vertical-align: bottom;
}

.profileSocialMediaTextLink:hover {
    text-decoration: underline;
}


/*
Sidebar END
*/

/*
Media queries
*/

@media screen and (max-width: 950px) {

    .profileTopTitles, .profileTopDetails, .profileTopContent .profileSubCategoryLinks {
        margin-right: 0px;
    }

    .profileTopButtons.desktop {
        display: none;
    }

    .profileTopButtons.mobile {
        display: block;
    }

}

@media screen and (max-width: 850px) {

    .publicProfile .sideColumnRight {
        display: block;
        float: none;
        margin: 0;
        width: 100%;
    }

    .publicProfile .pageElement {
        margin-bottom: 20px;
    }

    .profileContactDetail {
        box-sizing: border-box;
        float: left;
        width: 25%;
    }

    .profileSocialMediaLinks {
        margin-top: 10px;
    }

    .profileSocialMediaLine {
        box-sizing: border-box;
        float: left;
        width: 20%;
    }
}

@media screen and (max-width: 770px) {

    .profileTopContent .profileSubCategoryLinks {
        float: left;
        margin: 15px 0 0 0;
        text-align: center;
    }

    .profileTopDetails.profileInlineDetails {
        line-height: 26px;
    }
}

@media screen and (max-width: 710px) {

    .profileContactDetail {
        width: 50%;
    }

    .profileSocialMediaLine {
        width: 50%;
    }

}

@media screen and (max-width: 600px) {

    .publicProfile .projectsList td:nth-child(2) {
        display: none;
    }

    .portfolio-item,
    .portfolio-visual,
    .portfolio-description,
    .portfolioForms,
    .portfolioUploadForm,
    .portfolioRemoveForm {
        display: block;
        float: none;
        width: auto;
    }

    .portfolio-iframe {
        width: 100%;
        padding-bottom: 80%;
    }

    .portfolio-description {
        padding: 0 ;
        width: auto;
    }

    .portfolioRemoveForm form {
        margin-top: 20px;
        position: static;
        text-align: center;
    }
    .downloadPortfolioFile {
        margin-bottom: 15px;
        position: static;
        width: auto;
    }

    .profileTopDetails {
        margin: 0;
    }

    .profileTopDetails {
        float: left;
        margin: 15px 0 0 0;
        text-align: center;
    }

    .profileTopTitles {
        line-height: 26px;
        margin-top: 15px;
    }

}

@media screen and (max-width: 500px) {

    .profileTopAvatar {
        margin-right: 5%;
        width: 35%;
    }

    .profileTopAvatar img {
        width: 100%;
    }

    .profileTopTitles {
        margin: 10px 0 0 40%;
    }

    #avatarPreview {
        float: none;
    }

    .avatarPreviewContainer, #avatarPreview {
        width: auto;
    }

    .avatarUpload {
        margin-top: 10px;
        position: static;
    }

    .avatarUploadContainer {
        margin-bottom: 0;
    }

    .publicProfile .projectsList td:last-child, .publicProfile .projectsList td:nth-child(2) {
        display: none;
    }

    .publicProfile .projectsList td:first-child {
        width: 100%;
    }

    .editAvatarForm, .profileTopSocialMediaUrls, .showInProfile {
        float: none;
        min-width: auto;
        padding: 0;
        width: auto;
    }

}

@media screen and (max-width: 410px) {

    .profileBackButtons {
        margin: 0 0 5px 0;
    }

    .profileBackButtons button {
        font-weight: normal;
        margin-bottom: 6px;
        padding: 6px 8px;
    }

    .profileCategoryColumn {
        float: none;
        width: auto;
    }

}
