/**
 * Common styling
 */

.views-field-field-testimonial-text p:before, .views-field-field-testimonial-text p:after,
.field-name-field-testimonial-text .field-item:before, .field-name-field-testimonial-text .field-item:after {
    content: '"';
}

/**
 * Node and field styling
 */

.node-testimonial {
    margin: 0 0 30px 0;
}

@media (max-width: 650px) {
    .node-testimonial {
        margin: 0 auto;
        width: 650px;
    }

    .node-type-testimonial .content {
        max-width: 520px;
    }
}

@media (max-width: 450px) {
    .node-testimonial {
        margin: 0 auto 20px auto;
        padding-bottom: 20px;
        width: 320px;
        border-bottom: 1px solid #ccc;
    }

    .node-type-testimonial .content {
        max-width: 320px;
    }
}

.node-testimonial .field-name-field-testimonial-image img {
    border: 1px solid #fff;
    border-radius: 1000px;
    filter: grayscale(20%);
    height: 220px;
    width: 220px;
}

@media (max-width: 450px) {
    .node-testimonial .field-name-field-testimonial-image img {
        border: 1px solid #fff;
        border-radius: 1000px;
        filter: grayscale(20%);
        height: auto;
        width: 80%;
        margin: auto;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .node-testimonial .field-name-field-testimonial-image img {

    }
}

.node-testimonial .field-name-field-testimonial-image {
    width: 220px;
    display: inline-block;
    float: left;
    margin-right: 30px;
}

@media (max-width: 650px) {
    .node-testimonial .field-name-field-testimonial-image {
        height: 400px;

    }
}

@media (max-width: 450px) {
    .node-testimonial .field-name-field-testimonial-image {
        width: 100%;
        margin: auto;
        display: block;
        float: none;
        text-align: center;
        height: auto;
    }
}

.node-testimonial .field-name-field-testimonial-text {
    font-style: italic;
    overflow: hidden;
    padding-top: 2.5em;
    font-size: 1.1em;
    line-height: 1.5em;
    margin-bottom: 18px;
    opacity: 0.8;
}

@media (min-width: 600px) {
    .node-testimonial .field-name-field-testimonial-text {
        max-width: 600px;
    }
}

@media (max-width: 450px) {
    .node-testimonial .field-name-field-testimonial-text {
        font-style: normal;
        text-align: center;
        margin: 0 15px;
        line-height: 1.5em;
        font-size: 1.07em;
        padding-top: 0.5em;
    }
}

.node-testimonial .field-name-field-testimonial-author-name {
    color: #0071b3;
    font-size: 1.3em;
    line-height: 1.6;
    margin-top: 1em;
}

@media (max-width: 450px) {
    .node-testimonial .field-name-field-testimonial-author-name {
        font-size: 1.5em;
        text-align: center;
    }
}

.node-testimonial .field-name-field-testimonial-author-role {
    margin: 0 7px 0 0;
    display: inline-block;
    float: left;
    font-weight: bold;
    font-size: 0.9em;
}

@media (max-width: 450px) {
    .node-testimonial .field-name-field-testimonial-author-role {
        margin: 0;
        display: block;
        float: none;
        font-weight: bold;
        font-size: 1.1em;
        text-align: center;
    }
}

.node-testimonial .field-name-field-testimonial-author-company {
    display: inline-block;
    float: left;
    font-size: 0.9em;
}

@media (max-width: 450px) {
    .node-testimonial .field-name-field-testimonial-author-company {
        display: block;
        float: none;
        font-size: 1em;
        text-align: center;
        margin: 5px 0 0 0;
    }
}

/**
 * Testimonials page styling
 */

.view-id-testimonials {
    margin-bottom: 20px;
}

.testimonials-page {
    margin: 0 3em 3em 0;
}

@media (max-width: 650px) {
    .testimonials-page {
        padding: 0 10px;
        margin: 0;
    }
}

.testimonials-page .views-row {
    float: none;
    clear: both;
    display: block;
    border-bottom: 1px solid #ccc;
    min-height: 175px;
    margin: 0;
    padding: 1em 0;
}

@media (max-width: 650px) {
    .testimonials-page .views-row {

        padding: 2em 0;
    }
}

.testimonials-page .view-header p {
    margin: 40px 0 40px 0;
    font-size: 1.2em;
}

.testimonials-page .view-empty p {
    margin: 40px 0 40px 0;
    font-size: 1.2em;
}

.testimonials-page .views-row:last-child {

    border-bottom: 0px solid #ccc;

}

@media (max-width: 650px) {
    .testimonials-page .views-row:last-child {
        border-bottom: 1px solid #ccc;
    }
}

.testimonials-page .views-field-field-testimonial-image img {
    border: 1px solid #fff;
    border-radius: 1000px;
    filter: grayscale(20%);
    height: 175px;
    width: 175px;
}

@media (max-width: 650px) {
    .testimonials-page .views-field-field-testimonial-image img {
        border: 1px solid #fff;
        border-radius: 1000px;
        filter: grayscale(20%);
        height: auto;
        width: 250px;
        margin: auto;
        text-align: center;
    }
}

.testimonials-page .views-field-field-testimonial-image {
    width: 175px;
    display: inline-block;
    float: left;
    margin-right: 30px;
    clear: both;

}

@media (max-width: 650px) {
    .testimonials-page .views-field-field-testimonial-image {
        width: 100%;
        margin: auto;
        display: block;
        float: none;
        text-align: center;
        height: auto;
    }
}

.testimonials-page .views-field-title {
    font-size: 1.429em;
    line-height: 1.4;
    padding: 15px 0;

}

.testimonials-page h1.page-title {
    color: #000000;

    font-size: 32px;
    font-weight: 300;
    line-height: 38px;
    margin: 0;
    padding: 0 0 12px;
}

@media (max-width: 650px) {
    .testimonials-page .views-field-title {
        text-align: center;

    }
}

.testimonials-page .views-field-field-testimonial-text {
    font-style: normal;
    overflow: hidden;
    font-size: 1em;
    line-height: 1.3em;
}

@media (max-width: 650px) {
    .testimonials-page .views-field-field-testimonial-text {
        text-align: center;

    }
}

.testimonials-page .views-field-field-testimonial-text p {
    margin: 0 0 10px 0;
}

.testimonials-page .views-field-field-testimonial-author-name {
    font-size: 1.2em;
    line-height: 1.6;

}

@media (max-width: 650px) {
    .testimonials-page .views-field-field-testimonial-author-name {
        text-align: center;

    }
}

.testimonials-page .views-field-field-testimonial-author-company {
    margin: 0;
    width: 100%;
    font-size: 0.9em;

}

@media (max-width: 650px) {
    .testimonials-page .views-field-field-testimonial-author-company {
        display: block;
        float: none;
        font-size: 1em;
        text-align: center;
        margin: 5px 0 0 0;
    }
}

.testimonials-page .views-field-field-testimonial-author-company strong {

    font-size: 1em;

}

@media (min-width: 650px) {
    .testimonials-page .views-field-field-testimonial-author-company strong:after {
        content: ", ";
    }
}

.testimonials-page .hr {
    float: none;
    clear: both;
    display: block;
}

/**
 * Testimonials random block styling
 */

@media (max-width: 650px) {
    .testimonials-random .view-header {
        text-align: center;
    }
}

.testimonials-random .views-field-field-testimonial-image img {
    border: 1px solid #fff;
    border-radius: 1000px;
    filter: grayscale(20%);
    height: 150px;
    width: 150px;
    margin-top: 10px;
}

.testimonials-random .views-field-field-testimonial-image {
    width: 100%;
    display: block;
    height: auto;
    margin: 10px auto 0 auto;
    text-align: center;
}

.testimonials-random .views-field-title {
    width: 100%;
    display: block;
    height: auto;
    margin: 10px auto;
    text-align: center;
    line-height: 1.75em;
}

.testimonials-random .views-field-title h2 {
    font-size: 1.5em;
}

.testimonials-random .views-field-field-testimonial-text {
    font-style: italic;
    overflow: hidden;
    font-size: 1.1em;
    line-height: 1.3em;
    text-align: center;
}

.testimonials-random .views-field-field-testimonial-text p {
    margin: 0 0 10px 0;
}

.testimonials-random .views-field-field-testimonial-author-name {
    font-size: 1.2em;
    text-align: center;
    line-height: 1.6;

}

.testimonials-random .views-field-field-testimonial-author-role {
    margin: 0 8px 0 0;
    display: block;
    width: 100%;
    font-size: 1em;
    text-align: center;
}

.testimonials-random .views-field-field-testimonial-author-company {
    margin: 0 8px 20px 0;
    display: block;
    width: 100%;
    font-size: 0.9em;
    text-align: center;
}

.testimonials-random .views-field-field-testimonial-author-company strong {

    font-size: 1em;

}

.testimonials-random .more-link {
    float: none;
    clear: both;
}

/**
 * Testimonials latest block styling
 */

.testimonials-recent {
    margin: 0 2em 3em 0;
    background: #fff none repeat scroll 0 0;
    box-sizing: border-box;

}

@media (max-width: 650px) {
    .testimonials-recent {
        padding: 0 10px;
        margin: 0 0 20px 0;
        border-bottom: 1px solid #ccc;
    }
}

@media (max-width: 650px) {
    .testimonials-recent .views-row {
        border-bottom: 1px solid #ccc;
    }
}

.testimonials-recent .view-header {
    margin: 2em 0 3em 0;
}

@media (max-width: 650px) {
    .testimonials-recent .view-header {
        text-align: center;
    }
}

.testimonials-recent .views-field-field-testimonial-image img {
    border: 1px solid #fff;
    border-radius: 1000px;
    filter: grayscale(20%);
    height: 185px;
    width: 185px;

}

@media (max-width: 650px) {
    .testimonials-recent .views-field-field-testimonial-image img {
        border: 1px solid #fff;
        border-radius: 1000px;
        filter: grayscale(20%);
        height: auto;
        width: 250px;
        margin: auto;
        text-align: center;
    }
}

@media (min-width: 650px) {
    .testimonials-recent .views-field-field-testimonial-image {

        float: left;
        margin-right: 30px;
        max-width: 45%;
        width: 185px;
    }
}

@media (max-width: 650px) {
    .testimonials-recent .views-field-field-testimonial-image {
        width: 100%;
        max-width: 100%;
        margin: auto;
        display: block;
        float: none;
        text-align: center;
        height: auto;
    }
}

.testimonials-recent .flexslider .slides img {
    border: 1px solid #fff;
    border-radius: 1000px;
    filter: grayscale(20%);
    height: 185px;
    width: 185px;
}

@media (max-width: 650px) {
    .testimonials-recent .flexslider .slides img {
        border: 1px solid #fff;
        border-radius: 1000px;
        filter: grayscale(20%);
        height: 250px;
        width: 250px;
    }
}

.testimonials-recent .views-field-title {
    margin: 0.5em 0 0 0;
    font-size: 1.5em;
    line-height: 1.2;
}

@media (max-width: 650px) {
    .testimonials-recent .views-field-title {
        margin: 1em 0 0 0;
        text-align: center;
    }
}

.testimonials-recent .views-field-field-testimonial-text {
    font-style: italic;
    overflow: hidden;
    padding-top: 19px;
    font-size: 1.1em;
    line-height: 1.3em;
    opacity: 0.8;
}

@media (max-width: 650px) {
    .testimonials-recent .views-field-field-testimonial-text {
        text-align: center;

    }
}

.testimonials-recent .views-field-field-testimonial-text p {
    margin: 0 0 1em 0;
}

.testimonials-recent .views-field-field-testimonial-author-name {
    font-size: 1.2em;
    line-height: 1.6;

}

@media (max-width: 650px) {
    .testimonials-recent .views-field-field-testimonial-author-name {
        text-align: center;

    }
}

@media (max-width: 650px) {
    .testimonials-recent .views-field-field-testimonial-author-role {
        display: block;
        float: none;
        font-size: 1em;
        text-align: center;
        margin: 5px 0 0 0;
    }
}

/* Browser Resets
*********************************/
#testimonials-recent-slider .flex-container a:active,
#testimonials-recent-slider .flexslider a:active,
#testimonials-recent-slider .flex-container a:focus,
#testimonials-recent-slider .flexslider a:focus {
    outline: none;
}

#testimonials-recent-slider .slides,
#testimonials-recent-slider .flex-control-nav,
#testimonials-recent-slider .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Icon Fonts
*********************************/
/* Font-face Icons */
@font-face {
    font-family: 'flexslider-icon';
    src: url('fonts/flexslider-icon.eot');
    src: url('fonts/flexslider-icon.eot?#iefix') format('embedded-opentype'),
    url('fonts/flexslider-icon.woff') format('woff'),
    url('fonts/flexslider-icon.ttf') format('truetype'),
    url('fonts/flexslider-icon.svg#flexslider-icon') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* FlexSlider Necessary Styles
*********************************/
#testimonials-recent-slider .flexslider {
    margin: 0;
    padding: 0;
}

#testimonials-recent-slider .flexslider .slides > li {
    display: none;
    -webkit-backface-visibility: hidden;
}

#testimonials-recent-slider ul {
    list-style-type: none;
    margin: 0.25em 0 0.25em 0;
}

/* Hide the slides before the JS is loaded. Avoids image jumping */
#testimonials-recent-slider .flexslider .slides img {
    width: 100%;
    display: block;
}

#testimonials-recent-slider .flex-pauseplay span {
    text-transform: capitalize;
}

/* Clearfix for the .slides element */
#testimonials-recent-slider .slides:after {
    content: "\0020";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

#testimonials-recent-slider html[xmlns] .slides {
    display: block;
}

#testimonials-recent-slider * html .slides {
    height: 1%;
}

/* No JavaScript Fallback */
/* If you are not using another script, such as Modernizr, make sure you
 * include js that eliminates this class on page load */
#testimonials-recent-slider .no-js .slides > li:first-child {
    display: block;
}

/* FlexSlider Default Theme
*********************************/
#testimonials-recent-slider .flexslider {
    margin: 0 0 60px;
    background: #fff;
    border: 1px solid #fff;
    position: relative;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    -o-box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    zoom: 1;
}

#testimonials-recent-slider .flexslider::after {
    z-index: -1;
    position: absolute;
    content: "";
    bottom: 15px;
    right: 10px;
    left: auto;
    width: 50%;
    top: 80%;
    max-width: 300px;
    background: #777;
    -webkit-box-shadow: 0 15px 10px #777;
    -moz-box-shadow: 0 15px 10px #777;
    box-shadow: 0 15px 10px #777;
    -webkit-transform: rotate(3deg);
    -moz-transform: rotate(3deg);
    -o-transform: rotate(3deg);
    -ms-transform: rotate(3deg);
    transform: rotate(3deg);
}

#testimonials-recent-slider .flex-viewport {
    max-height: 2000px;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    transition: all 1s ease;
}

#testimonials-recent-slider .loading .flex-viewport {
    max-height: 300px;
}

#testimonials-recent-slider .flexslider .slides {
    zoom: 1;
}

#testimonials-recent-slider .carousel li {
    margin-right: 5px;
}

/* Direction Nav */
#testimonials-recent-slider .flex-direction-nav {
    *height: 0;
}

#testimonials-recent-slider .flex-direction-nav a {
    display: block;
    width: 40px;
    height: 40px;
    margin: -20px 0 0;
    position: absolute;
    top: 50%;
    z-index: 10;
    overflow: hidden;
    opacity: 0;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    transition: all .3s ease;
}

#testimonials-recent-slider .flex-direction-nav .flex-prev {
    left: -50px;
}

#testimonials-recent-slider .flex-direction-nav .flex-next {
    right: -50px;
    text-align: right;
}

#testimonials-recent-slider .flexslider:hover .flex-prev {
    opacity: 0.7;
    left: 10px;
}

#testimonials-recent-slider .flexslider:hover .flex-next {
    opacity: 0.7;
    right: 10px;
}

#testimonials-recent-slider .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {
    opacity: 1;
}

#testimonials-recent-slider .flex-direction-nav .flex-disabled {
    opacity: 0 !important;
    filter: alpha(opacity=0);
    cursor: default;
}

#testimonials-recent-slider .flex-direction-nav a:before {
    font-family: "flexslider-icon";
    font-size: 40px;
    display: inline-block;
    content: '\f001';
}

#testimonials-recent-slider .flex-direction-nav a.flex-next:before {
    content: '\f002';
}

/* Pause/Play */
#testimonials-recent-slider .flex-pauseplay a {
    display: block;
    width: 20px;
    height: 20px;
    position: absolute;
    bottom: 5px;
    left: 10px;
    opacity: 0.8;
    z-index: 10;
    overflow: hidden;
    cursor: pointer;
    color: #000;
}

#testimonials-recent-slider .flex-pauseplay a:before {
    font-family: "flexslider-icon";
    font-size: 20px;
    display: inline-block;
    content: '\f004';
}

#testimonials-recent-slider .flex-pauseplay a:hover {
    opacity: 1;
}

#testimonials-recent-slider .flex-pauseplay a.flex-play:before {
    content: '\f003';
}

/* Control Nav */
#testimonials-recent-slider .flex-control-nav {
    width: 100%;
    position: absolute;
    bottom: -40px;
    text-align: center;
}

#testimonials-recent-slider .flex-control-nav li {
    margin: 0 6px;
    display: inline-block;
    zoom: 1;
    *display: inline;
}

#testimonials-recent-slider .flex-control-paging li a {
    width: 11px;
    height: 11px;
    display: block;
    background: #666;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-indent: -9999px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    -o-box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

#testimonials-recent-slider .flex-control-paging li a:hover {
    background: #333;
    background: rgba(0, 0, 0, 0.7);
}

#testimonials-recent-slider .flex-control-paging li a.flex-active {
    background: #000;
    background: rgba(0, 0, 0, 0.9);
    cursor: default;
}

#testimonials-recent-slider .flex-control-thumbs {
    margin: 5px 0 0;
    position: static;
    overflow: hidden;
}

#testimonials-recent-slider .flex-control-thumbs li {
    width: 25%;
    float: left;
    margin: 0;
}

#testimonials-recent-slider .flex-control-thumbs img {
    width: 100%;
    display: block;
    opacity: .7;
    cursor: pointer;
}

#testimonials-recent-slider .flex-control-thumbs img:hover {
    opacity: 1;
}

#testimonials-recent-slider .flex-control-thumbs .flex-active {
    opacity: 1;
    cursor: default;
}

@media screen and (max-width: 860px) {
    #testimonials-recent-slider .flex-direction-nav .flex-prev {
        opacity: 1;
        left: 10px;
    }

    #testimonials-recent-slider .flex-direction-nav .flex-next {
        opacity: 1;
        right: 10px;
    }
}
