/*
Theme Name: TzuChiClinic
Theme URI: http://ahnhosts.com/themes/tzuchiclinic
Author: AhnHosts
Author URI: http://ahnhosts.com/
Description: Website template for Tzu Chi Clinic Canada.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ah_clinic_tzuchi
*/
html {
	scroll-behavior:smooth
}

header {
    display: flex;
    justify-content: center;
	align-items: center;
    background-color: #031b6d;
	min-height: 101px;
}

#infoBar,
header {
    background-color: #fff0;
}

.navbar-sticky {
    background-color: #031b6d;
	box-shadow: 7px 3px 10px 0px;
}

@media (min-width:769px){
    header {
        margin-bottom: -123px;
    }
}

@media (min-width:690px) and (max-width:768px){
    header {
        margin-bottom: -153px;
    }
}

@media (min-width:487px) and (max-width:689px){
    header {
        margin-bottom: -185px;
    }
}

@media (max-width:486px){
    header {
        margin-bottom: -219px;
    }
}

body,
p,
span,
i, a {
    font-family: Segoe UI,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif;
    font-size: 1rem;
}

html:lang(zh-TW) {
    font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Segoe UI,Frutiger Linotype,Dejavu Sans,Helvetica Neue,Arial,sans-serif;
    font-weight: 600;
}

h1 {
    font-size: 1.75rem;
}

.fa-phone, .fa-mobile {
    padding: 0 0 0 5px;
    /*-webkit-transform: scaleX(-1);*/
    /*transform: scaleX(-1);*/
}

.custom-logo {
    /*max-height: 81px;*/
	max-height: 65px;
    height: auto;
    width: auto;
}

@media (max-width: 992px) {
    .show {
        color: #fff;
    }
}

@media (max-width: 992px) {
    .contact-info,
    .social-icons {
        -ms-flex-pack: center!important;
        justify-content: center!important;
    }
}

#infoBar {
    /*background-color: #031b6d;*/
    display: flex;

    /*padding: 5px 0;*/
    margin-bottom: -1px; /* fix for random white line */
    position: relative;
    z-index: 1030;
	/*height: 1.75rem;*/
	height: 3.5rem;
}

#infoBar > .container {
    max-width: 1194px;
    width: 100vw;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

@media (max-width:992px) {
	.mobileBar {
		width: 100%;
		display: flex;
	}
	#infoBar .container {
		display: none;
	}
}

@media (min-width:993px){
	.mobileBar {
		display: none;
	}
	#infoBar .container {
		display: flex;
	}
}

.mobileBar > ul {
	display: flex;
	justify-content: center;
	margin: 0;
	width: 100%;
}

.mobileBar > ul > li {
	padding: 0.5rem 0.5rem;
    display: flex;
    margin: 0;
}

.mobileBar > ul > li > a > i {
	font-size: 1.5rem!important;
}

.mobileBar .navbar-nav .dropdown-menu {
	position: absolute;
}

.navbar-language,
.navbar-language li {
    padding: 0!important;
}

.navbar-language .navbar-nav {
    -ms-flex-direction: row;
    flex-direction: row;
}

.navbar-language .navbar-nav .nav-link {
    padding: 0 0.5rem;
}

.navbar-toggler-icon {
	width: 1.65rem;
	height: 2rem;
}

@media (max-width: 768px){
    .contact-info > li {
        flex-basis: 100%;
        justify-content: center;
    }
}

.contact-info > li,
.social-icons > li {
    display: flex;
    /*font-size: 0.9rem;*/
}

.contact-info > li {
    color: rgb(33,37,41);
    padding-right: 2rem;
}

.contact-info > li > a {
    color: #fff;
}

.contact-info {
    display: flex;
    flex-grow: 1;
    padding: 0px 0;
    margin: 0px 0;
    align-items: center;
    flex-basis: 90%;
}

.social-icons {
    color: #031b6d;
    background-color: rgba(255,255,255,0);
    text-align: center;
    justify-content: flex-end;
    display: flex;
    flex-grow: 1;
    padding: 0px 0;
    margin: 0px 0;
}

.social-icons i,
.info-lang a {
    line-height: 1.8rem;
    display: inline-block;
    color: #fff;
    margin: 0 5px;
    width: 2rem;
    height: 2rem;
    border: 1px solid #c8ced7;
    text-align: center;
    border-radius: 50%;
}

.social-icons i:hover,
.social-icons i:focus {
    color: #031b6de0;
}

.navbar {
    max-width: 1194px;
    width: 100%;
    padding-top: 0px;
    padding-bottom: 0px;
    position: sticky;
    justify-content: center;

    /*background-color: #031b6d;*/
}

@media (max-width: 992px){
    .navbar-collapse {
        text-align: center;
    }
}

.navbar-light .navbar-brand {
    color: #fff;
}

.dropdown-menu {
    font-size: 0.9rem;
}

.navbar-nav > .menu-item {
    padding-right: 10px;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: #ffffff;
}

.navbar-light .navbar-nav .show > .nav-link {
    color: #031b6dbf;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #031b6da0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #031b6d80;
}

.btn-bookonline {
    background-color: #031b6d00;
    border: 2px solid #fff;
	padding: 0.75em 1.5em;
    border-radius: 28px;
    /* font-weight: 500; */
}

.btn-bookonline:hover {
    background-color: #031b6de0;
	color: #fff!important;
}

main .page .container {
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0px;
}

.hero-block {
    height: 100vh;
}

.hero-block-min {
    height: 60vh;
}

/* FOOTER */
.footer-dark {
    padding: 50px 0;
    color: #f0f9ff;
    background-color: #282d32;
}

@media (max-width:767px){
    .footer-widget > .widget > .textwidget > table {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-widget,
    .footer-social {
        text-align: center;
        width: 100%;
    }

    .footer-widget {
        padding: 0 15px 0 15px;
    }
}

.widget {
    /*padding-bottom: 15px;*/
}

.btn-social > .fa-fw {
    width: 1rem!important;
}

.service-card-title {
    -webkit-transform: translateY(16px);
    -ms-transform: translateY(16px);
    transform: translateY(16px);
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    padding: 0.5em 0;
    background-color: transparent;
    width: 100%;
}

.service-card:hover > .service-card-body > .service-card-link > .service-card-title, .service-card:hover .service-card-link > .service-card-title {
    -webkit-transform: translateY(8px);
    -ms-transform: translateY(8px);
    transform: translateY(8px);
}

.service-card:hover > .service-card-body > .service-card-link > .service-card-text, .service-card:hover .service-card-link > .service-card-text {
    opacity: 1!important;
    filter: alpha(opacity=100)!important;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}

.service-card-text,
.service-card-title {
    display: flex;
    justify-content: center;
}

.service-card {
    border: 0px;
    overflow: hidden;
    min-height: 231.984px;

    border-radius:28px;
}

.service-card-link {
    text-shadow: 2px 2px 3px #2f2f2f;
}

.service-card-text {
    opacity: 0!important;
    filter: alpha(opacity=0)!important;
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);

    /*-webkit-transition: all 0.4s ease-in-out;*/
    /*transition: all 0.4s ease-in-out;*/
    font-size: 14px;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(100%,0,0);
    transform: translate3d(100%,0,0);
    flex: 1 0 100%;
    padding: 0px;
    margin: 0;

    /*display: none;*/
    /*opacity: 0;*/
    /*font-size: 0px;*/
    color: rgb(255,255,255);
}

.service-card-body {
    align-content: center;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 150px;

    /*background-color: rgba(115,178,50,0.2);*/
    background-color: rgba(0,0,0,0.15);
}

.service-card-body:hover {
    background-color: #031b6da8;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.service-card-title:after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    content: '';
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(-100%,0,0);
    transform: translate3d(-100%,0,0);
    opacity: 0;
    filter: alpha(opacity=0);
}

.service-card:hover .service-card-link .service-card-title:after {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    opacity: unset;
    filter: alpha(opacity=0)!important;
}

#services.clean-block {
    padding-bottom: 25px;
}

@media (min-width: 992px) {
    .card-rotating > .back {
        /*transform: rotateY(180deg);*/
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

    .card-rotating > .front {
        z-index: 2;

        /* for firefox 31 */
        /*transform: rotateX(0deg) rotateY(0deg);*/
    }

    .card-rotating:hover .back {
        -webkit-transform: rotateY(0);
    }

    /*
    .card-rotating:hover .front {
        -webkit-transform: rotateY(180deg);
        -moz-transform: rotateY(180deg);
        -ms-transform: rotateY(180deg);
        -webkit-backface-visibility: visible;
        -moz-backface-visibility: visible;
        -ms-backface-visibility: visible;
    }

    .card-rotating > .front,
    .card-rotating > .back {
        backface-visibility: hidden;
        transition: all 0.4s ease-in-out;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
    }
    */
    .card-rotating {
        /*cursor: pointer;*/
        width: inherit;
        height: inherit;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -moz-backface-visibility: hidden;
        -ms-backface-visibility: hidden;
        min-height: 380px;
        width: 100%;
    }

    .card-rotating {
        flex: 0 0 45%;
    }
}

@media (min-width:1200px){
    .card-rotating {
        flex: 0 0 30%;
    }
}

.card-rotating {
    margin: 15px;
}

.face.front > div {
    padding: 1em
}

.front .avatar {
    border: 5px solid #fff;
    z-index: 2;
    margin-top: 10%;
	min-width: 250px;
}

.front > .card-up {
    z-index: -1;
}

.card-body > ul > li > a {
    color: #000;
}

.ah-anchor {
    padding-top: 101px;
    margin-top: -101px;
}

@media (max-width:768px){
    .ah-anchor {
        padding-top: 180px;
        margin-top: -180px;
    }
}

@media (max-width:486px){
    .ah-anchor {
        padding-top: 200px;
        margin-top: -200px;
    }
}

.entry-title {
    display: flex;
    justify-content: center;
}

/* Custom: for Contact Page */
.contact-options .sow-features-feature {
    max-width: 45%;
    min-width: 350px;
    border: 1px solid #cecece;
    min-height: 350px;
    border-radius: 28px;
    z-index: 10;
    background-color: #fff;
    padding: 35px!important;
}

@media (max-width: 780px){
    .ah_extraWidgetBorder_left {
        border-left: 0px!important;
        padding-left: 0!important;
        border-top: 2px solid #f4f4f4;
        padding-top: 2.77778em;
    }

    .ah_extraWidget {
        border-right: 0px!important;
        padding-right: 0!important;
        border-bottom: 2px solid #f4f4f4;
        padding-bottom: 2.77778em;
    }
}

@media (min-width: 1200px){
	/* Contact page floating buttons */
    .contact-options .sow-features-feature {
        /*margin-top: -150px;*/
    }
}

@media (max-width: 1199px){
    .contact-options .sow-features-list {
        justify-content: center!important;
        flex-wrap: wrap!important;
    }
}

.contact-options .sow-features-list {
    display: flex;
    justify-content: space-between;
}

.entry-title-hero {
    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
	font-size: 2.4rem;
}

.bio {
	flex-wrap: wrap;
}

.bio-person {
    flex: 1 0 33.3%;
    /*height: 100%;*/
    /*background-color: #031b6d;*/
    color: #fff;
}

.bio-person-pic {
    width: 100%;
    height: auto;
    margin-bottom: 8px;
	min-width: 220px;
}

.bio-person-specialinfo{
	padding: 0 1.5em 0.5em;
	color: #031b6d;
    background-color: #ebf2ff;
}

.bio-person-specialinfo p{
	padding: 0.5em 0;
    margin: 0px;
}

.bio-person-specialinfo .misc-header{
    font-weight:  600;
    text-decoration: underline;
}

.bio-info {
    flex: 1 0 66.7%;
    height: 100%;
	padding-left: 1em;
}

@media(max-width:768px){
	.bio, .bio-info .container {
		padding:0!important;
	}
	
	.bio-info {
		padding: 2em!important;
	}
}


.bookingFrame {
	position: fixed;
    z-index: 999999;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #031b6dc7;
    justify-content: center;
    align-items: center;
    display: flex;
    opacity: 0;
    transform: scale(0);
    filter: alpha(opacity=0);
    -webkit-transition: opacity .35s,-webkit-transform .35s;
    transition: opacity .35s;
    flex-wrap: wrap;
}

.bookingFrameContainer {
	height: 75%;
    width: 75%;
    max-width: 1280px;
    max-height: 768px;
    transform: translate(0,-150%);
    text-align: center;
	transform: translate(0,0)!important;
	transition: translate 1s ease-in-out!important
}

.showBooking{
	opacity: 1!important;
	transform: scale(1)!important;
	transition: opacity .5s ease-in-out!important;
}