/** General **/
.clear { clear: both; }
img.mw { max-width: 100%; }

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.company-profile-block .c.three:nth-child(4n+1) {
  clear: both;
}

.c .company-keywords {
  display: none;
}
.c.open .company-keywords {
  display: block;
}

.mp-box {
    background: white;
    -webkit-box-shadow: 0 8px 16px 0 rgba(75,104,123,.2), 0 2px 4px 0 rgba(0,0,0,.2);
    box-shadow: 0 8px 16px 0 rgba(75,104,123,.2), 0 2px 4px 0 rgba(0,0,0,.2);
    border-bottom: 1px solid #d9e4eb;
    margin: 15px 20px 0 0;
    padding: 25px;
    border-radius: 2px;
}
.input-field {
    min-width: 300px;
    border: 1px solid #ccc;
    height: 32px;
    display: inline-block;
    line-height: 32px;
    padding: 0 10px;
    margin-top: -1px;
    border-radius: 3px;
}
span.activated {
    color: green;
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
    display: inline-block;
}

#search-company {
    margin: 30px 0px;
    position: relative;
    float: left;
    width:100%;
}

.companies-top {
    float:left;
    display:block;
    width:100%;
}

.companies-top .company-inner h2 {
    margin:0;
}

.companies-logo {
    float:left;
    display:block;
    width:100%;
}

.companies-logo .company-inner {
    text-align: center;
}

.companies-logo .company-inner h2 {
    margin:0;
    font-size: 12px !important;
    margin-top:10px;
    text-align: left;
    line-height: 14px;
    min-height: 35px;
}

.companies-logo .right-side {
    display:none;
}

.companies-regular {
    float:left;
    display:block;
    width:100%;
}

.companies-regular .company-inner {
    text-align:center;
    font-size: 12px !important;
}

.companies-regular .company-inner h2 {
    margin:0;
    font-size: 12px !important;
    line-height: 10px;
    min-height: 20px;
    margin-top: -5px;
    margin-bottom: -5px;
}

.companies-regular .right-side {
    display:none;
}

#search-company input,#search-company select {
    padding:10px;
    height:42px;
    background:#fff;
    border:1px solid #eee;
    width: 100%;
}
#search-company input:focus,#search-company select:focus {
    outline:none !important;
    border:1px solid green !important;
}

#search-company button {
    position:relative;
    background: #5faa5f;
    border-radius: 0;
    padding: 8px 10px;
    height:auto;
    border:1px;
    font-weight: bold;
    width: 100%;
}

#search-company label {
    color: #333;
    display: block;
    font-weight: 800;
    margin-bottom: 0.5em;
    font-size: 12px;
    margin-bottom: 3px;
}

.company-post-related p {
    margin:0;
}

.company-block {
    padding: 15px;
    transition:all 0.4s;
}

.company-profile-block p {
    font-size:12px !important;
    color:#000;
}

.company-block .company-inner .company-title {
    margin:0;
    font-size:16px;
    min-height:35px;
}

.company-profile-block .company-inner h2 {
    font-size:16px;
    margin:0;
    color:#000;
}

.company-profile-block .company-inner img {
    height:auto;
    max-width:100%;
}

.company-profile-block .c.five {
    padding:10px;
}

.c.five.company-block .view-company-profile, .c.five.company-block .company-inner .company-address  {
    display:none;
}
.c.five.company-block .left-side .company-info {
    display:none;
}
.c.five.company-block.open {
    width:100%;
}

.c.five.company-block.open .company-inner .company-title {
    display:none;
}
.c.five.company-block.open .left-side .company-info {
    display:block;
    margin-top: 12px;
}

.c.three.company-block .left-side .company-info {
    display:none;
}

.c.five.company-block.open .left-side, .c.five.company-block.open .right-side {
    float:left;
    width:50%;
}

.c.three.company-block.open .left-side, .c.three.company-block.open .right-side {
    float:left;
    width:50%;
}
.c.three.company-block.open .left-side .company-info {
    display:block;
}

.profile-inner {
    padding:15px;
}

.company-block .company-address {
    font-weight:600;
}

.c.five.company-block.open .view-company-profile {
    display: inline-block;
    width:100%;
    text-align:center;
    background: #dadada;
    color: #898989;
    padding:10px;
    position:relative;
    border: 1px solid #aaa;
    box-shadow: none;
    transition: all 0.4s;
}

.c.five.company-block.open .view-company-profile:hover {
    background:#d5d5d5;
    color:#696969;
}
.c.five.company-block.open .company-inner .right-side {
    float:right;
    padding:15px;
    width:45%;
}
.c.five.company-block.open .company-inner img {
    max-width: 50% !important;
    width: 50% !important;
    height: auto !important;
    max-height: 100%;
}

.c.five.company-block.open .company-inner .company-address {
    display:block;
}

.c.three.company-block.open .view-company-profile {
    display: inline-block;
    width:100%;
    text-align:center;
    background: #dadada;
    color: #898989;
    padding:10px;
    position:relative;
    border: 1px solid #aaa;
    box-shadow: none;
    transition: all 0.4s;
}

.c.three.company-block.open .view-company-profile:hover {
    background:#d5d5d5;
    color:#696969;
}

.c.three.company-block.open .left-side .description {
    display:block;
}

/* Result styling */

.company-block.top-result {

}

.company-block.top-result p {
    margin:0 !important;
    font-size: 12px;
    line-height: 13px;
}

.company-block.top-result .company-title {
    margin:0;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    line-height: 17px;
    text-align: left;
}

.company-block.top-result img {
    width: 185px !important;
    height: auto;
}

.company-block.logo-result {
}

.company-block.logo-result p {
    margin:0 !important;
}

.company-block.logo-result .company-title {
    margin:0;
}

.company-block.logo-result img {
    /* width: 150px !important; */
    height: auto;
    /* height:55px !important; */
}

.company-block.regular-result {

}

.company-block.regular-result p {
    margin:0 !important;
}

.company-block.regular-result .company-title {
    margin:0;
    font-size:12px;
    line-height:14px;
    min-height:30px;
}

.company-block.logo-result .company-title {
    margin:0;
    font-size: 14px;
    line-height: 17px;
    min-height: 35px;
}

.c.three.company-block .view-company-profile, .c.six.company-block .company-inner .company-address  {
    display:none;
}

.c.three.company-block.open {
    width:100%;
}

.c.three.company-block.open .company-inner .company-title {
    display:none;
}

.c.three.company-block.open .company-inner .right-side {
    float:right;
    padding:15px;
    width:45%;
}
.c.three.company-block.open .company-inner img {
    max-width:50%;
}

.c.three.company-block.open .company-inner .company-address {
    display:block;
}

.c.three.company-block {
    text-align: center;
}

.c.three.company-block .right-side {
    text-align: left;
    display:block;
    min-height: 40px;
}

.c.three.company-block .right-side .company-address {
    display:none;
}

.c.three.company-block.open .company-inner .right-side {
    text-align: left;
    display:block;
}

h1.company-listing-header {
    margin:0 !important;
    font-size:24px !important;
}

h3.company-listing-sub-header {
    margin: 0 0 0px 0 !important;
    font-size:18px !important;
}

.company-inner {
    margin: 0px;
    padding: 20px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    height: auto;
    display: block;
    float: left;
    width: 100%;
    border-radius: 0;
    border: 1px solid #ffffff;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.07);
    background:#fff;
}

.company-profile-block .company-inner {
    box-shadow:none;
    border:1px solid #d4d4d1;
    border-radius:0;
}

.company-inner img {
    margin:0 auto;
    width:100%;
    max-width:100%;
}

.c.five.company-block .company-inner img {
    width: auto;
    min-height: 105px;
    transition: all 0.4s;
}

.c.three.company-block.open .company-inner img {
    height:150px;
    width:auto;
}

.c.three.company-block .company-inner .company-title h2 {
    margin:5px 0px 5px 0px;
    color:#000;
    font-size: 12px;
    line-height:14px;
    vertical-align: middle;
    min-height: 26px;
}

.company-inner:hover {
    cursor: pointer;
    border-color: #f36929;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}

.company-inner:hover .company-title {
    color: #f36929;
}

.company-listing-header {
    margin: 0;
    margin-bottom: -21px;
    color: #aaa;
}

.company-listing-sub-header {
    font-size:18px;
    font-weight:bold;
}

.company-inner p,.company-inner a,.company-inner .company-title {
    margin: 2px;
    font-size:14px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}


#categories-company {
    width:100%;
    float:left;
    display:block;
}

#categories-company ul {

}

#categories-company ul li {
    float:left;
    list-style-type:none;
    width: 5.5em;
    height:5em;
}

#categories-company ul li a{
}

#categories-company ul li a span.company-cat-name{
    font-size: 10px;
    width: 87%;
    display: block;
    text-align: center;
    line-height: 12px;
    margin: 0 auto;
    margin-top: -11px;
    color: #000;
    word-break: break-word;
}

.company-cat-image svg {
    fill: #aaa;
    max-width: 100%;
    padding: 10px;
    -webkit-transition: all 0.4s;
    -moz-transition: all 0.4s;
    -ms-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}

.company-cat-image svg:hover {
    fill: green;
    max-width: 100%;
    transform:scale(1.1);
}



.company-gallery-image {
    padding:5px;
}

.company-category-selector {
    margin-top:20px;
}

.alignleft {
    float: left;
    margin-top: 6px;
    margin-right: 24px;
    margin-bottom: 6px !important;
    margin-left: 0;
}

.alignright {
    float: right;
    margin-top: 6px;
    margin-right: 0;
    margin-bottom: 6px !important;
    margin-left: 24px;
}

.company-block.open .img-holder img{
    position:relative;
}




/** Styling page **/
.styling-unit {
    width: 33%;
    display: inline-block;
}
.styling-unit input[type="color"] {
    clear: both;
    display: block;
    margin: 5px 0 15px;
}

/** tabs styling **/

/* Style the tab */
.tabs-menu {
    height: 40px;
    float: left;
    margin: 0;
    margin-bottom: 0px !important;
    clear: both;
    width: 100%;
}

.tabs-menu li {
    height: 40px;
    line-height: 40px;
    float: left;
    list-style-type: none !important;
    background-color: #ccc;
    border-top: 1px solid #d4d4d1;
    border-right: 1px solid #d4d4d1;
    border-left: 1px solid #d4d4d1;
    text-align: center;
    width: calc(100%/2);
    border-bottom: 0 !important;
    margin:0;
}

.tabs-menu li.current {
    position: relative;
    background-color: #fff;
    border-bottom: 0;
    z-index: 5;
}

.tabs-menu li a {
    padding: 10px 10px 4px 10px;
    color: #fff;
    text-decoration: none;
    box-shadow: none;
    line-height: 37px;
}

.tabs-menu .current a {
    color: #5b5b5b;
    text-decoration: none;
    border: 0;
    box-shadow:none;
}

.tab {
    border: 1px solid #d4d4d1;
    background-color: #fff;
    float: left;
    margin-bottom: 20px;
    width: 100%;
}

.tab-content {
    width: 100%;
    padding: 20px;
    float: left;
    display: none;
}

#tab-1 {
    display: block;
}

.company-info p {
    font-size:9px !important;
    line-height: 13px !important;
}

.right-side p, .right-side p a {
    font-size: 10px !important;
    color: #000;
}

@-webkit-keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/*Responsive base grid*/
.c {float:left; display:block;}

.c.six {width:calc(100%/2);}
.c.four {width: calc(100%/3);}
.c.three {width: calc(100%/4);}
.c.five {width: calc(100%/5);}
.c.two {width:calc(100%/6);}
.c.two-small {width:calc(100%/12);}
.c.one {width:100%;}




/* helpers */

.mp-row {
    float:left;
    width:100%;
    display:block;
}

.company-element-search {
    padding:15px;
    width:100%;
    height:auto;
    background:#f1f1f1;
    display:inline-block;
}

.company-element-search.single-search {
    padding: 0 15px;
    background:#eee;
    color:#aaa;
}

.company-element-search.single-search #search-company{
    margin: 15px 0px;
}

.company-element-search.single-search a.single-search-name{
    font-size:16px;
    font-weight:bold;
    color:#aaa;
    line-height:42px;
}

.company-element-search.single-search #search-company button{
    background:#c7c7c7;
    color:#fff;
    height:40px;
    border:0;
    margin-top:1px;
}

.single-search:hover a.single-search-name {
    color:#878786;
}

.company-element-listing {
    padding:15px;
    width:100%;
    height:auto;
    background:#f1f1f1;
    display:inline-block;
    font-family:Arial;
}

.company-result-divider {
    width: 100%;
    display: block;
    margin: 10px 0px;
    height: 2px;
    position: relative;
    float: left;
}

/* Set sizes type blocks */
.companies-top .company-inner {
    min-height:225px;
}
.companies-top .img-holder {
    min-height:135px;
    position:relative;
}
.companies-top .img-holder img {
    bottom: 0;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
}



@media (max-width:480px) {
    .c.six,.c.four,.c.three,.c.two,.c.five {
        width:100% !important;
        position:relative;
    }
    #search-company {
        height: 305px;
        margin: 30px 0px;
        position: relative;
        float: left;
    }
}

.company-listing-container .company-block:nth-child(4n+1) {
  clear: both;
}
span.pre-info {
  width: 15px;
  display: inline-block;
}

ul.mp-pagination {
    margin: 0 15px 0 0;
    padding: 0;
    float: right;
    clear: both;
}
ul.mp-pagination > li {
    list-style: none;
    display: inline-block;
    margin: 0 0 0 5px;
}
ul.mp-pagination > li > a {
    border-radius: 4px;
    border: 1px solid #fff;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.07);
    display: inline-block;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
ul.mp-pagination > li > a.active-page {
    color: grey;
    border: 1px solid #000;
}

.regular-result.open .left-side {
    display:none;
}

.regular-result.open .right-side{
    display:block;
    text-align:left;
}

.logo-result.open .right-side{
    display:block;
    text-align:left;
}

.company-block.open .right-side p,.company-block.open .right-side a {
    font-size:12px !important;
    line-height:18px !important;
}

/* Related posts styling */

.company-post-related .c.three {
    width:calc(100%/3);
}
.company-post-related .c.five {
    width:calc(100%/4);
}

.company-post-related .c.five.company-block .company-inner img {
    width: auto;
    min-height: 75px;
    transition: all 0.4s;
}

.company-post-related .companies-top .img-holder {
    min-height: 105px;
    position: relative;
}

.company-post-related {
	    float: left;
    width: 100%;
    background: #f5f5f5;
    padding: 10px;
}

@media screen and (max-width:1024px){
    .c.six,.c.four,.c.three,.c.two {
        width:50%;
        position:relative;
    }
    .c.five {
        width:calc(100%/3);
        position:relative;
    }
}


/* Mobile query */
@media screen and (max-width:480px) {
    #categories-company{
        display:none;
    }
    .company-block.open .left-side, .company-block.open .right-side, .company-block.open img {
        width:100% !important;
        float:left !important;
        margin:0 !important;
        height: auto !important;
        width: auto !important;
        padding:0 !important;
    }
    .c.five.company-block.open .left-side, .c.five.company-block.open .right-side, .c.five.company-block.open .company-inner img {
        width:100% !important;
        float:left !important;
        margin:0 !important;
        height: auto !important;
        width: auto !important;
        max-width: 100% !important;
    }
    .tabs-menu {
        height: 120px;
        float: left;
        margin: 0;
        margin-bottom: 0px;
        clear: both;
        width: 100%;
    }
    .tabs-menu li {
        height: 40px;
        line-height: 40px;
        float: left;
        list-style-type: none !important;
        background-color: #ccc;
        border-top: 1px solid #d4d4d1;
        border-right: 1px solid #d4d4d1;
        border-left: 1px solid #d4d4d1;
        text-align: center;
        width: 100%;
        display: block;
        border-bottom: 0 !important;
    }
}
