/**
 * @copyright	Copyright (c) 2017 JoomBoost (https://www.joomboost.com). All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

.testi-date, .testimonialText{
    margin-bottom: 5px;
}

.juit-form input, .juit-form textarea{
    box-sizing: border-box;
}

#jform_captcha{
    min-height: 120px;
}

/* for default and quotes layout */

a#testi-submit i{
    font-size: inherit;
}

.testiItem{
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.testiItem .testiEdit, .testiQuote .testiEdit, .cd-timeline-content .testiEdit{
    display: none;
}

.testiItem:hover .testiEdit, .testiQuote:hover .testiEdit, .cd-timeline-content:hover .testiEdit{
    display: inline-block;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 99;
}


.testi-avatar-top {
    text-align: center;
}

.testimonialsContainer{
    margin-top: 20px;
}

div.testiList > [class*=span],div.testiList > [class*=col-md]{
    margin-bottom: 15px;
}

.testi-avatar {
    background-color: #DDDDDD;
    background-image: url("../images/people_icon.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100px;
    width: 100px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
}

.testi-avatar-top .testi-avatar {
    margin-left: auto;
    margin-right: auto;
}

.testi-quote {
    margin-bottom: 15px;
}

.testi-name {
    font-size: 120%;
    font-weight: bold;
    line-height: 1.5;
}

.testiList [class*='col-'], .testiList [class*='span']{
    position: relative;
}

.testiQuote{
    padding: 20px;
}

.testi-quote-box{
    padding: 10px;
}

.testi-avatar-top .testiQuote .testi-information .testi-avatar{
    float: none;
}

.testi-avatar-top .testiQuote .testi-information{
    display: block;
}

.testi-avatar-top .testiQuote .testi-information .testi-avatar + .testi-information2{
    padding-left: initial;
}

.testi-avatar-top .testiQuote .testi-information2{
    display: block;
    margin-top: 10px;
}

.testi-information .testi-avatar + .testi-information2 {
    padding-left: 25px;
}

.testi-avatar-top .testiQuote .testi-quote-box:after, .testi-avatar-top .testiQuote .testi-quote-box:before{
    left: 50%;
}

.testi-position {
    font-size: 95%;
}

.testi-avatar-left .testi-avatar {
    float: left;
    margin-right: 10px;
}

.testi-avatar-left .testiItem .testi-quote,
.testi-avatar-left .testiItem  .testi-name,
.testi-avatar-left  .testiItem .testi-position {
    margin-left: 125px;
}

.testi-quote-box {
    position: relative;
    padding: 15px;
    margin-bottom: 25px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.testi-quote-box:after,
.testi-quote-box:before {
    top: 100%;
    left: 50px;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(245, 245, 245, 0);
}

.testi-quote-box:after {
    border-top-color: #f5f5f5;
    border-width: 9px;
    margin-left: -9px;
}

.testi-quote-box:before {
    border-top-color: #ddd;
    border-width: 10px;
    margin-left: -10px;
}

.testi-quote-box p:last-child {
    margin-bottom: 0;
}

.testi-information {
    display: table;
    height: 100%;
}

.testi-information .testi-avatar {
    float: left;
    margin-bottom: 0;
}

.testi-information2 {
    display: table-cell;
    vertical-align: middle;
    padding-left: 0;
}

@media only screen and (max-width: 768px){
    .testiList [class*='col-']:not(:last-child):after,.testiList [class*='span']:not(:last-child):after{
        display: none !important;
    }
}

/** MODULE **/

.joomtesti-module {
    position: relative;
    margin-top: 15px;
}

.joomtesti-module .testi-container {
    margin-top: 10px;
    margin-bottom: 10px;
}

.joomtesti-module .testi-nav {
    position: absolute;
    right: 0;
    top: 0;
    text-align: right;
    z-index: 100;
}

.joomtesti-module .testi-nav-bottom.testi-nav,
.joomtesti-module .testi-nav-bottom.testi-avatar-left.testi-nav,
.joomtesti-module.joomtesti-module-box .testi-nav-bottom.testi-nav {
    position: absolute;
    top: auto;
    bottom: 0;
    margin-bottom: 0;
}

.joomtesti-module .testi-avatar-left.testi-nav,
.joomtesti-module.joomtesti-module-box .testi-nav {
    position: static;
    margin-bottom: 10px;
}

.joomtesti-module .testi-nav .testi-prev,
.joomtesti-module .testi-nav .testi-next {
    background-color: #F5F5F5;
    background-repeat: no-repeat;
    display: inline-block;
    height: 27px;
    outline: medium none;
    width: 27px;

    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.joomtesti-module .testi-nav .testi-prev {
    background-image: url(../images/prev.png);
    background-position: left center;
}

.joomtesti-module .testi-nav .testi-prev:hover {
    background-position: right center;
}

.joomtesti-module .testi-nav .testi-next {
    background-image: url(../images/next.png);
    background-position: right center;
}

.joomtesti-module .testi-nav .testi-next:hover {
    background-position: left center;
}


.joomtesti-module .testi-item {
    margin: 0;
    float: left;
}

/* For Timeline Layout */

#cd-timeline {
    position: relative;
    padding: 2em 0;
    margin-top: 2em;
    margin-bottom: 2em;
}
#cd-timeline::before {
    /* this is the vertical line */
    content: '';
    position: absolute;
    top: 0;
    left: 18px;
    height: 100%;
    width: 4px;
}
@media only screen and (min-width: 1170px) {
    #cd-timeline {
        margin-top: 3em;
        margin-bottom: 3em;
    }
    #cd-timeline::before {
        left: 50%;
        margin-left: -2px;
    }
}

.cd-timeline-block {
    position: relative;
    margin: 2em 0;
}
.cd-timeline-block:after {
    content: "";
    display: table;
    clear: both;
}
.cd-timeline-block:first-child {
    margin-top: 0;
}
.cd-timeline-block:last-child {
    margin-bottom: 0;
}
@media only screen and (min-width: 1170px) {
    .cd-timeline-block {
        margin: 4em 0;
    }
    .cd-timeline-block:first-child {
        margin-top: 0;
    }
    .cd-timeline-block:last-child {
        margin-bottom: 0;
    }
}

.cd-timeline-img {
    background-color: #DDDDDD;
    background-image: url("../images/people_icon.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white, inset 0 2px 0 rgba(0, 0, 0, 0.08), 0 3px 0 4px rgba(0, 0, 0, 0.05);
}


@media only screen and (min-width: 1170px) {
    .cd-timeline-img {
        width: 60px;
        height: 60px;
        left: 50%;
        margin-left: -30px;
        /* Force Hardware Acceleration in WebKit */
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
    .cssanimations .cd-timeline-img.is-hidden {
        visibility: hidden;
    }
    .cssanimations .cd-timeline-img.bounce-in {
        visibility: visible;
        -webkit-animation: cd-bounce-1 0.6s;
        -moz-animation: cd-bounce-1 0.6s;
        animation: cd-bounce-1 0.6s;
    }
}

@-webkit-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
    }

    100% {
        -webkit-transform: scale(1);
    }
}
@-moz-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -moz-transform: scale(0.5);
    }

    60% {
        opacity: 1;
        -moz-transform: scale(1.2);
    }

    100% {
        -moz-transform: scale(1);
    }
}
@keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        -moz-transform: scale(0.5);
        -ms-transform: scale(0.5);
        -o-transform: scale(0.5);
        transform: scale(0.5);
    }

    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        -moz-transform: scale(1.2);
        -ms-transform: scale(1.2);
        -o-transform: scale(1.2);
        transform: scale(1.2);
    }

    100% {
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
    }
}
.cd-timeline-content {
    position: relative;
    margin-left: 60px;
    background: white;
    border-radius: 0.25em;
    padding: 1em;
}
.cd-timeline-content:after {
    content: "";
    display: table;
    clear: both;
}


.cd-timeline-content .cd-read-more, .cd-timeline-content .cd-date {
    display: inline-block;
}
.cd-timeline-content p {
    margin: 1em 0;
    line-height: 1.6;
}

.cd-timeline-content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 100%;
    height: 0;
    width: 0;
    border: 7px solid transparent;
}
@media only screen and (min-width: 1170px) {
    .cd-timeline-content {
        margin-left: 0;
        padding: 15px;
        box-sizing: border-box;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        -ms-box-sizing: border-box;
        -o-box-sizing: border-box;
        width: 44%;
    }
    .cd-timeline-content::before {
        top: 24px;
        left: 100%;
        border-color: transparent;
    }

    .cd-timeline-block:nth-child(even) .cd-timeline-content {
        float: right;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content::before {
        top: 24px;
        left: auto;
        right: 100%;
        border-color: transparent;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more {
        float: right;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date {
        left: auto;
        right: 122%;
        text-align: right;
    }
    .cssanimations .cd-timeline-content.is-hidden {
        visibility: hidden;
    }
    .cssanimations .cd-timeline-content.bounce-in {
        visibility: visible;
        -webkit-animation: cd-bounce-2 0.6s;
        -moz-animation: cd-bounce-2 0.6s;
        animation: cd-bounce-2 0.6s;
    }
}

@media only screen and (min-width: 1170px) {
    /* inverse bounce effect on even content blocks */
    .cssanimations .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in {
        -webkit-animation: cd-bounce-2-inverse 0.6s;
        -moz-animation: cd-bounce-2-inverse 0.6s;
        animation: cd-bounce-2-inverse 0.6s;
    }
}
@-webkit-keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
    }

    100% {
        -webkit-transform: translateX(0);
    }
}
@-moz-keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -moz-transform: translateX(-100px);
    }

    60% {
        opacity: 1;
        -moz-transform: translateX(20px);
    }

    100% {
        -moz-transform: translateX(0);
    }
}
@keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
        -moz-transform: translateX(-100px);
        -ms-transform: translateX(-100px);
        -o-transform: translateX(-100px);
        transform: translateX(-100px);
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
        -moz-transform: translateX(20px);
        -ms-transform: translateX(20px);
        -o-transform: translateX(20px);
        transform: translateX(20px);
    }

    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}
@-webkit-keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
    }

    100% {
        -webkit-transform: translateX(0);
    }
}
@-moz-keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -moz-transform: translateX(100px);
    }

    60% {
        opacity: 1;
        -moz-transform: translateX(-20px);
    }

    100% {
        -moz-transform: translateX(0);
    }
}
@keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
        -moz-transform: translateX(100px);
        -ms-transform: translateX(100px);
        -o-transform: translateX(100px);
        transform: translateX(100px);
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
        -moz-transform: translateX(-20px);
        -ms-transform: translateX(-20px);
        -o-transform: translateX(-20px);
        transform: translateX(-20px);
    }

    100% {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
        transform: translateX(0);
    }
}

.juit-form select, .juit-form textarea, .juit-form input[type="text"], .juit-form input[type="password"], .juit-form input[type="datetime"], .juit-form input[type="datetime-local"], .juit-form input[type="date"], .juit-form input[type="month"], .juit-form input[type="time"], .juit-form input[type="week"], .juit-form input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {

    height: initial !important;

}
.juit-form .uk-form-label{
    display: inline-block !important;

}
body.modal {
    padding-top: 0 !important;
    position: initial !important;
    display: block !important;
}