/*
 * Author: Carlos Alvarez
 * URL: http://Alvarez.is
 *
 * Project Name: SHIELD - Free Bootstrap 3 Theme
 * Version: 1.0
 * Date: 02-11-2013
 * URL: http://blacktie.co/
 */


/* ==========================================================================
   Base Styles and Bootstrap Modifications
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #f2c2c9;
    color: #a4003a;
    text-shadow: none;
}

::selection {
    background: #16a085;
    color: #a4003a;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

 hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

 img {
    vertical-align: middle;
}

/*
 * Allow only vertical resizing of textareas.
 */

 textarea {
    resize: vertical;
}


/* ==========================================================================
   General styles
   ========================================================================== */

html,
body {
    height: 100%;
}

body {
    font-family: "Microsoft JhengHei";
    font-weight: 300;
    font-size: 16px;
    color: #555;

    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

.col-md-4 {
	padding-bottom: 20px;
}

.row {
    margin-right: 0px;
    margin-left: 0;
    padding-top: 20px;
}
.row h1,h2{
    color: #009e96;
}
.modal-header {
	background: #3498db;
}

.modal-header h4 {
	color: white;
}

.modal-footer {
	background: #2b2b2b;
}


.navbar-default {
    border-color: transparent;
    background-color: #dadada;
}


.navbar-toggle {
    border-color: transparent;
    border: 0px solid transparent;
    position: absolute;
    padding: 0;
    width: 30px;
    right: 0px;
    top: 3px;
}
.navbar-nav {
    margin:0;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
	background-color: #16a085;
	color:#c0392b;
}

.container {
    padding: 0;
}

hr {
    position: relative;
    border: none;
}

hr:before {
    content: " ";
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: #ccc;
}

a img {
    background: white;
}

.odd a img {
    background: #f5f5f5;
}

/* Titles */
h1, h2, h3, h4, h5, h6 {
    font-family: "Microsoft JhengHei";
    font-weight: 300;
}


/* Paragraph & Typographic */
p {
    line-height: 28px;
    margin-bottom: 25px;
}

.centered {
    text-align: center;
}

.paragraph-lead {
    font-size: 20px;
    color: #3498db;
}

strong {
    font-weight: 700;
}

em {
    font-weight: 300;
}

pre {
    background: #ebebeb;
    border: none;
    font-family: "Monaco";
    font-size: 16px;
    color: #666;
    padding: 20px;
    line-height: 28px;
}

small {
    font-size: 12px;
}

blockquote,
blockquote p {
    line-height: 28px;
    color: #999;
    font-weight: 300;
    font-style: italic;
}

blockquote {
    position: relative;
    margin: 0 0 40px -30px;
    padding-left: 30px;
    border-left: 5px solid #3498db;
}

blockquote cite {
    position: absolute;
    bottom: -25px;
    right: 0;
    font-size: 12px;
    font-style: italic;
    color: #333;
    font-weight: 300;
}

blockquote cite:before {
    content: "-- "
}

/* Images */
.overflow-image {
    margin-top: -65px;
}

/* Links */
a {
    color: #fff;
    word-wrap: break-word;

    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
    
} 
#news a {
    border: 1px #fff solid;
    border-radius: 5px;
    padding:5px 12px;
    margin-top:15px; 
    display:inline-block;
}
a:hover,
a:focus {
    color: #aced20;
    text-decoration: none;
    outline: 0;
}
.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus {
    color: #8fc31f;
    background-color: #fff;  
}

.navbar-inverse .navbar-nav > li > a:hover {
    color: #8fc31f;
}
a:before,
a:after {
    -webkit-transition: color 0.1s ease-in, background 0.1s ease-in;
    -moz-transition: color 0.1s ease-in, background 0.1s ease-in;
    -ms-transition: color 0.1s ease-in, background 0.1s ease-in;
    -o-transition: color 0.1s ease-in, background 0.1s ease-in;
    transition: color 0.1s ease-in, background 0.1s ease-in;
}



.navbar-inverse .navbar-nav > li > a {
    color: #5d6e80;
    font-weight: 500;
    text-align: left;
}
 .navbar-inverse .navbar-nav > a:hover {
    color:  #5d6e80;
    background-color: #080808;
}

.navbar-inverse .navbar-collapse {
    border-color: #ccc;
    position: relative;
    text-align: center;
}
.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
    background-color: #eee;
}
.new-btn{
    display: flex;
}
.btn1{
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    position: relative;
    border: 1px solid #fff;
    padding: 8px 15px;
    line-height: 24px;
    /*display: inline-block;*/
    border-radius:5px;
    overflow: hidden;
}
.btn1:before{
    content: "";
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    width:0;
    padding-top: 0;
    background-color:rgba(256,256,256,0.2);
    border-radius: 50%;
    transition: all 0.2s;
    -ms-transition: all 0.2s;
}
.btn1:hover {
    color: #fff;
}
.btn1:hover:before{
    width: 120%;
    padding-top: 120%;
}
.btn1:active{
    box-shadow: 0 3px 5px  rgba(0,0,0,0.5);
}

/* ==========================================================================
   Wrap Sections
   ========================================================================== */

#headerwrap {
	background: url(../img/header_bg.jpg) no-repeat center top;
	margin-top: -50px;
	padding-top:120px;
	text-align:center;
	background-attachment: relative;
	background-position: center center;
	min-height: 650px;
	width: 100%;
	
    -webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size: 100%;
    background-size: 100%;

    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#headerwrap h1 {
	color:#ffffff;
	margin-top: 90px;
	letter-spacing: 2px;
	font-size: 78px;
	font-weight: bold;
	text-shadow: 2px 2px 2px #000;
}
#headerwrap h2 {
    color:#ffffff;
    font-size: 38px;
    text-shadow: 1px 1px 1px #000;
}
#headerwrap p {
	color:#ffffff;
	font-size: 18px;
	font-weight: 400;
	text-align: center;
	line-height: 40px;
	/*letter-spacing: 3px;*/
	text-shadow: 1px 1px 1px #000;
}
#headerwrap h3 {
    color:#ffffff;
    font-size:24px;
    visibility: visible;
    text-shadow: 1px 1px 1px #000;
}
#headerwrap span {
    font-size:58px;
    display: inline-block;
    vertical-align: top;
    text-shadow: 1px 1px 1px #000;
}
#headerwrap ul {
    margin: 0;
    padding: 0;
}
#headerwrap li {
    display: inline-block;
    padding: 0 20px;
}
.navbar-inverse {
    background-color: #fff;
    border-color:#eee;
}

.greywrap {
	background: #f5f5f5;
	margin-top: 0px;
	padding: 20px 0 40px 0;
	border-bottom: 1px solid #ddd;
	text-align: center;
}

.greywrap .row {
    margin: 0 auto;
    max-width: 1000px;
}
.greywrap .callout {
	margin-bottom: 20px;
}


.greywrap p {
	margin-left: 30px;
	margin-right: 30px;
	letter-spacing: 1px;
	padding-top: 15px;
	padding-bottom: 15px;
}

.greywrap .icon {
	font-size: 60px;
	line-height: 30px;
	margin-bottom: 10px;
}

.greenwrap {
    background: #9ec245;
    margin-top: 0px;
    padding: 20px 15px 70px 15px;
}
.greenwrap .col-lg-8 {
    padding-left: 0;
    padding-right: 0;
    padding-top: 15px;
}
.greenwrap .row {
    margin: 0 auto;
    /*max-width: 1000px;*/
}
.greenwrap p {
    margin-left: 30px;
    margin-right: 30px;
    letter-spacing: 1px;
    padding-top: 15px;
    padding-bottom: 15px;
}
.greenwrap h2 {
    color: #fff;
}
@media (min-width: 1200px) {
    .greywrap .col-lg-3 {
    width: 25%;
    }

}
@media (min-width: 1200px) {
    .col-lg-3 {
    width: 50%;
    }
}
 @media (min-width: 1200px){
   .add .col-lg-3 {
    width: 25%;
    }
}
.img-responsive {
    display: inline-block;
}




/* ==========================================================================
   Box Sections
   ========================================================================== */
.white {
    padding-bottom: 30px;
}
.white .col-lg-5 {
    padding-top: 20px;
    text-align: center;
}
.white .col-lg-5 img {
    
}

.white p {
	padding-top: 25px;
}
.white ul {
    padding: 0;
    text-align: center;
    display: table;
    margin: 0 auto;
}
.white li {
    list-style: none;
    text-align: center;
    display: inline-block;
    padding: 0 12px;
}
.white li h4 {
    white-space:nowrap;

}
.white .col-lg-4 {
    padding-right: 0;
    padding-left: 0;
}
.white .col-lg-4 p,h1 {
    padding: 15px 30px;
}
.white .col-lg-4 h2{
    padding: 0 ;
}
.white .col-lg-4 h4 {
    color: #4eb880;
}

.white .col-lg-7 {
    padding-right: 0;
    padding-left: 0;
}
.white .col-lg-7 p {
    padding: 15px 30px;
}
.white .col-lg-7 .txt-middle {
    top: 50%;
    left: 50%;
    position: relative;
}
.white .col-lg-7 .txt-middle {
    transform: translate(-50%,0);
}
.white .txt-middle {
    /* height: 110px; */
    display: table;
}

.greywrap ul {
    padding: 0;
    text-align: center;
    display: table;
    margin: 0 auto;
}
.greywrap li {
    list-style: none;
    text-align: center;
    display: inline-block;
    padding: 0 14px;
    width: 150px;
}
.greywrap li h4 {
    white-space:nowrap;

}
.greywrap .txt-middle {
    top: 50%;
    left: 50%;
    position: relative;
}
.greywrap .txt-middle {
    transform: translate(-50%,0);
}
.greywrap h4 {
    color: #4eb880;
}
.about1 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 15px 40px 15px;
}
.about1 .row {
    margin: 0px;
}
.about1 .col-lg-8 {
    padding-left: 0;
    padding-right: 0;
}
.about1 .row p {
    padding: 15px 30px;
}

/* Section Dividers */
.section-divider {
    z-index: 999;
    width: 100%;
    display: table;
    max-height: 450px;
    border-bottom: 2px solid #E6EAED;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    padding-top: 30px;
    padding-bottom: 70px;
    background-position: center center;

    -webkit-background-size: 100%;
    -moz-background-size: 100%;
    -o-background-size: 100%;
    background-size: 100%;

    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;

    background-attachment: relative;
    
    text-align: center;
}

.textdivider h1 {
	padding-top: 10px;
	color: white;
	font-size: 40px;
}

.textdivider p {
	color: white;
	font-size: 18px;
}


/* Section Dividers Backgrounds */

.divider1 {
	background-image: url('../img/bg/news_bg.jpg')
}
.divider1 .news_img{
    max-width: 100%;
}
.divider1 .news_img .imgbox-inner{
    width: 100%;
    padding-top: calc(100% * 2 / 3.2);
    height: 0;
    position: relative;
}
.news_img .image{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center;
}
.divider1 h2 {
    color: #fff;
    text-align: left;
    font-size: 28px;
    padding: 0;
}
.divider1 p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    display: -moz-box;
    -moz-box-orient: vertical;
   /* -moz-line-clamp: 1;*/
    display: -o-box;
    -o-box-orient: vertical;
    -o-line-clamp: 1;
    display: -ms-box;
    -ms-box-orient: vertical;
    -ms-line-clamp: 1;
    overflow: hidden;
    text-align: left;
    height: 28px;
    text-overflow: ellipsis;
    /*white-space : nowrap;*/
}




/* ==========================================================================
   Services Section
   ========================================================================== */

.service-trigger {
    display: block;
	position: relative;
    margin-bottom: 15px;
    color: white;
    font-size: 20px;
    text-align: center;
    height: 168px;
    cursor: pointer;
	padding: 90px 20px 50px 20px;
    border: none;
    background: #333;
}

.service-trigger:before {
    width: 100%;
    top: 50px;
    color: #3498db;
    font-size: 36px;
    text-align: center;
	position: absolute;
	left: 0;
}

.service-active .service-trigger {
    background: #222;
}

.service-active p {
	font-family: 'Lato', sans-serif;
	padding-top: 10px;
}

.service-content {
    padding: 15px 20px;
    background: #e6eaed;
    display: block;
    height: auto
}

.service-content p:last-child {
    margin: 0;
}


/* ==========================================================================
   Image Mask
   ========================================================================== */

.grid figure {
	margin: 0;
	position: relative;
}

.grid figure img {
	width: 100%;
	display: block;
	position: relative;
}

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 20px;
	color: #fff;
	background: #3498db;
}

.grid figcaption h5 {
	margin: 0;
	padding-top: 0px;
	padding-left: 20px;
	padding-bottom: 5px;
	color: #fff;
	font-weight: 700;
	text-align: left;
	letter-spacing: 2px;
	
}

.grid figcaption a {
	text-align: left;
	padding: 5px 10px;
	margin-left: 20px;
	display: inline-block;
	background: #2f2f2f;
	color: #fff;
	font-size: 13px;
}

/* Caption Style */
.mask figure {
	overflow: hidden;
}

.mask figure img {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .mask figure:hover img,
.mask figure.cs-hover img {
	-webkit-transform: translateY(-30px);
	-moz-transform: translateY(-30px);
	-ms-transform: translateY(-30px);
	transform: translateY(-30px);
}

.mask figcaption {
	height: 50px;
	width: 100%;
	top: auto;
	bottom: 0;
	opacity: 0;
	-webkit-transform: translateY(100%);
	-moz-transform: translateY(100%);
	-ms-transform: translateY(100%);
	transform: translateY(100%);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .mask figure:hover figcaption,
.mask figure.cs-hover figcaption {
	opacity: 1;
	-webkit-transform: translateY(0px);
	-moz-transform: translateY(0px);
	-ms-transform: translateY(0px);
	transform: translateY(0px);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.mask figcaption a {
	position: absolute;
	top:10px;
	bottom: 10px;
	right: 30px;
}
.footer_contact {
    background-color: #313131;
    color: #fff;
    padding: 20px 0;
    position: relative;
}
.footer_contact .col-lg-4 {
    border-left: 1px #5c5c5c solid;
}
.footer_contact .col-lg-4:nth-child(1) {
    border-left: 1px rgba(255,255,255,0) solid;
}
.footer_contact .col-lg-4 .txt-middle{
    top: 50%;
    left: 50%;
    position: relative;
}
.footer_contact .col-lg-4 .txt-middle {
    transform: translate(-50%,0);
    -ms-transform: translate(-50%,0);
    display: inline-block;
}
.footer_contact .txt-middle {
    /*height: 110px;*/
    display: table;
}
.footer_contact .txt-middle p {
    display: table-cell;
    vertical-align: middle;
}
.footer_contact .txt-middle ul {
    display: table-cell;
    vertical-align: middle;
}
.footer_contact img {
    width: 80%;
    display: inline-block;
}
.footer_contact p {
    margin-bottom: 0;
}
.footer_contact .row {
    padding-top:0px;
}
.footer_menu {
    /*width: 280px;*/
}
.footer_menu ul {
    line-height: 28px;
    padding-left: 12px;
    /*width: 50%;*/
}
.footer_menu li{
    list-style: none; 
}
.footerwrap {
    color: #fff;
    background: #5c5c5c;
    margin-top: 0px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}


/* ==========================================================================
   服務資料登錄
   ========================================================================== */
.form-horizontal  input {
    display: inline;
    /*max-width: 70%;*/
    /*width: auto;*/
    vertical-align:middle ;
}
.form-horizontal  label {
    padding: 0px 10px 0 0;
    /*width: 30%;*/
    /*display: inline-block;*/
    font-family: Arial,"微軟正黑體","Microsoft JhengHei","新細明體", sans-serif;
    text-align: right;
    color: #fff;
    width: 100%;
}
.pretty-select {
  /*移除箭頭樣式*/
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;

  /*改變右邊箭頭樣式*/
  /*background: url("../img/arrow.png") no-repeat right center transparent;*/
  font-size: 14px;
  border:0px;
  width: 30%;
  /*width:100%;*/
  height:34px;
  vertical-align:middle ;
  padding: 6px 12px;
  background-color:#fff;
  color:#555;
  border: 1px solid #ccc;
  border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-horizontal .inputstree {
    /*position: absolute;*/
    width: 70%;
}

/*IE隱藏箭頭樣式*/
.pretty-select::-ms-expand { 
  display: none; 
}

.pretty-select:focus{
  box-shadow: 0 0 5px 2px #467BF4;    
}

.form-horizontal .form-group {
    margin: 0 0 10px 0;
}
/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-bg {
	background: #2b2b2b;
	padding-right: 0px;
	padding-left: 0px;
	
}

.blog-bg h4 {
	color: #dadada;
	padding-top: 0px;
}

.blog-bg h5 {
	color: #dadada;
	font-size: 11px;
}

.blog-content {
	padding-top: 10px;
	background: #f2f2f2;
}


/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */


@media screen and (max-width:1050px), screen and (max-device-width:1050px){
	body .header{background-attachment: scroll;}

}


/*ipad portrait*/
@media only screen and (min-device-width:768px) and (max-device-width : 1024px) and (orientation : portrait){
	.header{background-attachment: scroll;}
    
}

@media screen and (max-width:769px) {
	#headerwrap h1 {
		font-size: 80px;
	}
	#headerwrap p {
		font-size: 30px;
		line-height: 38px;
	}
}

@media screen and (min-device-width:568px) and (max-width:1200px) {
    .footer_contact .col-lg-4 .img-center {
        display: inline-block;
        position: relative;
        width:auto;
    }
       
}

@media screen and (max-width:1200px) {
    .col-lg-4 .txt-middle {
        /*padding-top: 15px;*/
        /*padding-bottom: 10px;*/
        text-align: center;
    }
    .footer_menu ul {
        padding-left: 0;
    }
    .footer_menu li {
        line-height: 2.5em;
        padding:0 8px;
    }
    .footer_contact .col-lg-4 .txt-middle p {
        line-height: 2.5em;
    }
    .footer_contact .col-lg-4 {
        border-left: 0px ;
    }

}

@media (min-width: 768px){
   .navbar-nav {
        float: right;
    }

    
}
@media screen and (max-width: 1024px) {

    .form-horizontal  input {
        max-width: 100%;
    }
    .form-horizontal  label {   
        /*width: 100%;*/
        text-align: left; 
    }
    .form-horizontal .inputstree {

        box-sizing: border-box;
    }
    .pretty-select {
        /*width: 30%;*/
        box-sizing: border-box;
    }

}
@media screen and (max-width: 368px) {
    .form-horizontal {
        margin: 0 auto;
    }
    label {
        width: 100%
    }
    .form-horizontal  input {
        width: 100%;
    }
    .form-horizontal .inputstree {
        width:70%;
    }
    .pretty-select {
        width: 30%;
    }
}
@media screen and (min-device-width: 768px)  and (max-width: 990px){
    .navbar-nav {
        display: block;
        float: none;
    }
    .form-horizontal .control-label {
        text-align:left;
    }
} 

@media (max-width: 1200px) {
        .col-lg-offset-2 {
        margin: 0 auto;
        max-width: 350px;
    }
 }



@media screen   and (min-width: 1200px){
    .col-lg-offset-2 {
     margin: 0 auto;
     max-width: 350px;
    }
    .greenwrap .col-lg-8{

    }
}
@media screen and (min-width: 768px){
    .col-lg-offset-2 {
        margin: 0 auto;
        max-width: 550px;
    }
}



@media screen and (min-width: 768px) and (max-width: 990px){
    .container > .navbar-header{
        width: inherit;
    }
    .navbar-nav > li {
        float: none;
        display: inline-block;
    }
}

@media (min-width: 768px){
    .form-horizontal .control-label {
    text-align: left;
}
}




