.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
} 
.clearfix:after {
    clear: both;
}
.clearfix {
    zoom: 1; /* For IE 6/7 (trigger hasLayout) */
}

/******************* CONTAINERS ********************/
.container {
	width: 1280px;
	max-width: 1280px;
	margin: 0 auto;
}

@media(max-width: 1280px) {
	.container {
		width: 95%;
	}
}

/******************* COMMON CLASSES *******************/

.align-left   { text-align: left !important; }
.align-center { text-align: center !important; }
.align-right  { text-align: right !important; }

.warning { border: 1px solid #319db5 !important; }

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}


.hidden {
    display: inline-block !important;
    visibility: hidden;
}

.m-0 {
  margin: 0 !important;
}

.p-0 {
  padding: 0 !important;
}

/******************* BREADCRUMBS ********************/
.breadcrumbs {
	margin: 20px 8px 40px 0;
	text-transform: lowercase;
}

.breadcrumbs a {
	color: #319db5;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;  
    font-weight: bold;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs a:after {
    display: inline-block;
    margin: 0 2px 0 4px;
    color: #b5b5b5;  
    content: "/\00a0";
}

.breadcrumbs .crumb-current {
	color: #777777;
	text-decoration: none;
	cursor: default;
    font-weight: bold;
}


/******************* PAGINATION ********************/
.pagination {
	margin: 20px 20px 25px;
	text-align: center;
}

.pagination a {
	margin: 0 4px 0 0;
	padding: 4px 6px;
	background-color: #f6c214;
	border: none;
	cursor: pointer;
}

.pagination a {
	background-color: #319db5;
	color: #ffffff;
	border: 1px solid #319db5;
}

.pagination a.active {
	background-color: #ffffff;
	color: #319db5;
	cursor: default;
}

.pagination a.inactive {
	background-color: #f2f2f2;
	color: #319db5;
    cursor: default;
}


/******************* BACK TO TOP BUTTON ********************/
#backTop {
	position: fixed;
	width: 45px;
    height: 45px;
    right: 20px;
    bottom: 10px;
    padding: 18px 5px;
    background-color: #319db5;
    border: 2px solid #319db5;
    opacity: 0.7;
    cursor: pointer;
    text-align: center;	
    z-index: 12;
    -webkit-border-radius: 90px;
    -moz-border-radius: 90px;
    border-radius: 90px;    
    display: none;
}

#backTop i {
    display: inline-block;
    padding: 6px;
    border: 1px solid #fff;
    border-width: 0 4px 4px 0;
 	transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);  
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#backTop:hover {
    opacity: 1;
}

/******************* LOADER AND OVERLAY ********************/
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 998;
    display: none;
}

#overlay {
    display: block;
}

#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

/* spinner */

.loader-spinner {
    display: block;
    width: 64px;
    height: 64px;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    animation: animate_spinner 2s linear infinite;
}

@keyframes animate_spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* dots */

.loader-dots span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #9b59b6;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    animation: animate_scaling 1.5s infinite ease-in-out;
    transform: scale(0.3);
}

.loader-dots span:nth-child(2) {
    margin: 0 4px;
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes animate_scaling {
    0% {
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(0.3);
    }
}

/* ripple */

.loader-ripple span {
    position: absolute;
    display: block;
    width: 60px;
    height: 60px;
    background-color: #1abc9c;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    animation: animate_ripple 2.4s infinite linear;
    opacity: 0;
}

.loader-ripple span:nth-child(2) {
    background-color: #16a085;
    animation-delay: 0.8s;
}

.loader-ripple span:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes animate_ripple {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    20% {
        transform: scale(0.2);
        opacity: 0.2;
    }
    40% {
        transform: scale(0.4);
        opacity: 0.4;
    }
    60% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    60% {
        transform: scale(1);
        opacity: 1;
    }
    90% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}


/******************* POPUP ********************/
.popup-box {
	display: none;
	position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);   	
	background-color: #fff; 
	border: 1px solid #cccccc;
	z-index: 999;
	cursor: default;
	width: 400px;
}

/* popup header */
.popup-box .popup-box-header {
    padding: 10px 10px;
    background-color: #319db5;
    color: #fff;
    text-align: center;
}


.popup-box .popup-box-header .popup-box-exit {
	/*position: relative;*/
    position: absolute;
	display: block;
    height: 20px;
    width: 20px;
    top: -10px;
    right: -10px;
    background-color: #fff;
    border: 1px solid #319db5;
}

.popup-box .popup-box-header .popup-box-exit:hover,
.popup-box .popup-box-header .popup-box-exit:active {
	background-color: #319db5;
	color: #fff;
    border: 1px solid #fff;
}

.popup-box .popup-box-header .popup-box-exit:after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "\274c"; /* hex value for "x"... */
    font-size: 20px;
    color: #319db5;
    line-height: 19px;
    text-align: center;
}

.popup-box .popup-box-header .popup-box-exit:hover:after {
	color: #fff;
}

/* popup body */
.popup-box .popup-box-body {
	padding: 10px;
}

.popup-box .popup-box-body .popup-box-section {
	margin: 0 0 10px 0;
}

/* popup footer */
.popup-box .popup-box-footer {
	padding: 10px;
}

.popup-box .popup-box-footer .popup-box-btn {
	width: 80px;
	padding: 6px 10px;
	font-size: 15px;
	border: 1px solid #319db5;
	text-align: center;
	cursor: pointer;
}

.popup-box .popup-box-footer .btn-cancel {
	float: left;
	background-color: #fff;
	color: #319db5;
}

.popup-box .popup-box-footer .btn-ok {
	float: right;
    background-color: #fff;
    color: #319db5;
}

.popup-box .popup-box-footer .btn-cancel:hover,
.popup-box .popup-box-footer .btn-cancel:active {
    background-color: #319db5;
    color: #fff;
}

.popup-box .popup-box-footer .btn-ok:hover,
.popup-box .popup-box-footer .btn-ok:active {
	background-color: #319db5;
	color: #fff;
}


@media(max-width: 700px) {
	.popup-box {
	    width: 80%;
	}
}


/******************* PAGE WRAPPER ********************/
#pageWrapper {
    min-height: 100%;
}

#pageWrapper:after {
    content: "";
    display: block;
    /*height: 40px; */
}


/******************* NS GALLERY ********************/
.nsgallery figure {
	position: relative;
	display: inline-block;
	width: 200px;
	height: 200px;
	margin: 0 5px 5px;
	border: 1px solid #319db5;
	overflow: hidden;
}

.nsgallery figure img {
	max-width: 100%;	
    max-height: 100%;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.nsgallery figure img.icon-youtube {
    width: 50px !important;
    height: 35px !important;
    top: 50% !important;
    left: 50% !important;
    bottom: auto !important;
    right: auto !important;
    -webkit-transform: translateX(-50%) translateY(-50%) !important;
    transform: translateX(-50%) translateY(-50%) !important;
    z-index: 1;     
}

.nsgallery figure:hover img {
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
	transform: scale(1.1);
}


/******************* IMAGE WRAPPER ********************/
.image-wrapper {
    position: relative;
    height: 150px;
    margin: 0 0 10px 0;
    vertical-align: middle;
    cursor: pointer; 
    overflow: hidden;
}

.image-wrapper img {
    position: absolute;
    max-width: 100%;
    height: auto;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.image-wrapper .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(45, 45, 45, 0.8);
    overflow: hidden;
    width: 100%;
    height: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    z-index: 2;
}

.image-wrapper:hover .image-overlay {
    height: 100%;
}

.image-wrapper .icon-more-big {
    width: 45px;
    height: 45px;
    position: absolute;
    left: 50%;
    top: 50%;   
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

/*.image-wrapper:hover img {*/
    /*-webkit-transition: all 0.5s ease;*/
    /*-moz-transition: all 0.5s ease;*/
    /*-ms-transition: all 0.5s ease;*/
    /*-o-transition: all 0.5s ease;*/
    /*transition: all 0.5s ease;    */
    /*!*-webkit-transform: scale(1.2);  */
    /*-ms-transform: scale(1.2);*/
    /*transform: scale(1.2);  *!*/
    /*-webkit-transform: scale(1.2) rotate(-15deg) translate(0, 0);  */
    /*-ms-transform: scale(1.2) rotate(-15deg) translate(0, 0);*/
    /*transform: scale(1.2) rotate(-15deg) translate(0, 0);  */
/*}*/

.bg-image-wrapper {
    overflow: hidden;
}

.bg-image-wrapper .bg-image {
    height: 150px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

@media (min-width: 768px) {
    .bg-image-wrapper .bg-image:hover {
        transform: scale(1.2);
    }
}

/******************* BOX ********************/
.box {
    display: inline-block;
    padding: 10px 10px 15px;
    background-color: #fff;
    -webkit-box-shadow: 0px 2px 9px 0px rgba(101, 101, 101, 0.75);
    -moz-box-shadow:    0px 2px 9px 0px rgba(101, 101, 101, 0.75);
    box-shadow:         0px 2px 9px 0px rgba(101, 101, 101, 0.75); 
}

.box .caption {
    text-align: center;
}

.box .caption .title {
    margin: 0 0 10px 0;
}

.box .caption .subtitle {
    margin: 0 0 10px 0;
}

.box .caption .code {
    margin: 0 0 10px 0;
    color: #319db5;
    font-size: 12px;
}

.box .caption .desc {
    font-size: 13px;
    color: #767676;
    margin: 0 0 10px 0;
}


/******************* DESC BOX ********************/
.desc-box {
    display: inline-block;
    margin: 0 0 30px 0;
    padding: 10px 15px 20px;
    background-color: #fff;
    text-align: center;
    border: 1px solid #e0e0e0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;     
}

.desc-box:hover {
    -webkit-box-shadow: 0px 2px 30px 0px rgba(101, 101, 101, 0.75);
    -moz-box-shadow:    0px 2px 30px 0px rgba(101, 101, 101, 0.75);
    box-shadow:         0px 2px 30px 0px rgba(101, 101, 101, 0.75);
    /*-webkit-box-shadow: 0px 2px 15px 0px rgba(139, 0, 0, 0.75);
    -moz-box-shadow:    0px 2px 15px 0px rgba(139, 0, 0, 0.75);
    box-shadow:         0px 2px 15px 0px rgba(139, 0, 0, 0.75);    */
}

.desc-box .img {
    display: inline-block;
    width: 90px;
    height: 90px;
    margin: 0 0 20px 0;
    border: 2px solid #319db5;
    vertical-align: middle;
    -webkit-border-radius: 90px;
    -moz-border-radius: 90px;
    border-radius: 90px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;  
}

.desc-box .img span {
    display: block;
    width: 70px;
    margin: 0 auto 0;
    background-repeat: no-repeat;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;    
}

.desc-box:hover .img {
    background-color: #319db5;
}

.desc-box:hover .img span {
    background-position: bottom;
}

.desc-box .title {
    margin: 0 0 20px 0;    
    color: #319db5;
    font-size: 26px;
    text-transform: uppercase;
}

.desc-box .desc { 
    font-size: 14px;
    line-height: 21px;    
    color: #767676;
}

@media(max-width: 480px) {
    .desc-box,
    .desc-box.big {
        display: block;
        width: 95%;
        min-height: auto;
        float: none;
        margin: 0 auto 30px;
    }  
}

@media(min-width: 480px) {
    .desc-box {
        float: left;
        width: 49%;
        height: 520px;
    }

    .desc-box:nth-child(2n+2) {
        float: right;
        margin: 0 auto 30px;
    } 

    .desc-box.big {
        float: none;
        width: 100%;
        margin: 0;
        min-height: auto;
    }    
}

@media(min-width: 600px) {
    .desc-box {
        height: 450px;
    }
}

@media(min-width: 768px) {
    .desc-box {
        height: 400px;
    }
}

@media(min-width: 992px) {
    .desc-box {
        width: 32%;
        height: 410px;
        float: none !important;
    }

    .desc-box:nth-child(3n+2) {
        height: 410px;
        margin: 0 1.5%;
    } 

    .desc-box.big {
        width: 65.5%;
        height: 410px;
        margin: 0 0 0 1.5%;
    }       
}

@media(min-width: 1200px) {
    .desc-box,
    .desc-box.big {
        height: 370px;
    }

    .desc-box:nth-child(3n+2) {
        height: 370px;
    } 
}

/******************* RIPPLE EFFECT ********************/
.ripple-effect {
  position: relative;
  overflow: hidden;
}

.ripple-effect:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, .5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }
  20% {
    transform: scale(25, 25);
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

.ripple-effect:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}


/******************* SHINEY BUTTON ********************/

@keyframes sheen {
    0% {
        transform: skewY(-45deg) translateX(0);
    }
    100% {
        transform: skewY(-45deg) translateX(12.5em);
    }
}

.shiney-button {
    position: relative;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #2194E0;
    border: 2px solid #2194E0;
    transition: all 0.2s ease-in-out;
    overflow: hidden;
}

.shiney-button:before {
    display: block;
    position: absolute;
    top: 0;
    left: -4.5em;
    width: 3em;
    height: 100%;
    content: "";
    background-color: rgba(255,255,255,0.5);
    transform: skewX(-45deg) translateX(0);
    transition: none;
}

.shiney-button:hover {
    background-color: #2194E0;
    color: #fff;
}

.shiney-button:hover:before {
    transform: skewX(-45deg) translateX(14.5em);
    transition: all 0.5s ease-in-out;
}


/******************* ELEMENT CENTER ********************/
.element-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/******************* INITIALS ICON ********************/
.initialsIcon {
    display: block;
    position: relative;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    background-color: #f1f1f1;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.initialsIcon .initials {
    color: #8c8c8c;
}