@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);

html,
body,
button,
input,
select,
textarea,
.page-title,
h1,
h2,
h3,
h4,
h5,
h6,
a {
  font-family: Themify, Arial, "Microsoft JhengHei", "Noto Sans TC", sans-serif !important;
}
html {
  font-size: 15px;
}
body {
  overflow-y: scroll !important;
  padding-top: 70px;
  background: #fff;
  color: #000;
}

#header {
  max-width: 1199px;
  height: 75px;
}

#pagewrap {
  padding-top: 0 !important;
}
#site-logo {
  margin: 0;
  font-size: 1rem;
  padding: 0;
  color: #fff;
}
#headerwrap #site-logo img,
#headerwrap #site-logo a img {
  width: auto;
  height: 70px;
}
#headerwrap {
  border-bottom: solid 4px #046868;
}

#headerwrap #searchform-wrap {
  position: absolute;
  right: 30px;
  top: 0;
}
#headerwrap #searchform {
  width: 200px;
}
#headerwrap #searchform #s,
#headerwrap #searchform #s:focus,
#headerwrap #searchform #s:hover {
  /* width: 155px; */
  background: #fff;
  border: solid 1px rgba(0, 0, 0, 0.7);
  margin: 0;
}
#headerwrap #searchform .tf_fa {
  right: 30px;
}
#headerwrap #searchform .fa-search,
.mobile_menu_active #headerwrap #searchform .fa-search {
  position: relative;
  right: auto;
  top: auto;
  color: #fff;
}
#headerwrap #searchform input[type="search"] {
  width: 155px;
  height: 35px;
}

.btn-yr {
  width: 30%;
  margin: 0 1rem 1rem 0;
  display: inline-block;
}

.mobile_menu_active #headerwrap #searchform #s,
.mobile_menu_active #headerwrap #searchform #s:focus,
.mobile_menu_active #headerwrap #searchform #s:hover,
.mobile_menu_active #headerwrap #searchform .fa-search:hover + #s,
#headerwrap #searchform #s {
  width: 100%;
  float: none;
  margin: 0;
}

.mobile_menu_active #headerwrap #searchform ::placeholder {
  /* color: rgba(255, 255, 255, 0.5); */
}
.mobile_menu_active .mobile-button {
  height: 30px;
  top: 33px;
}
#main-nav {
  bottom: -4px;
}
#main-nav a {
  padding: 3px 10px;
  color: #333;
  border-top: none;
  border-bottom: solid 4px rgba(0, 0, 0, 0);
  font-weight: 400;
  height: auto;
  line-height: 1.2rem;
}
#main-nav a:hover,
#main-nav .current_page_item a,
#main-nav .current-menu-item a {
  border-top: none;
  border-bottom: 4px solid #f60;
}
#main-nav a:hover,
#main-nav .current_menu_item a {
  color: #fff;
}
#main-nav .current_menu_item a {
  color: #db4312;
}
#main-nav ul li a {
  color: #117fa5;
}
a,
#main-nav a:hover,
#main-nav .current_page_item a,
#main-nav .current-menu-item a,
.widget #wp-calendar th,
.testimonial .testimonial-author,
.gallery-info .post-category a:hover {
  color: #f60;
}
#main-nav ul a,
#main-nav .current_page_item ul a,
#main-nav ul .current_page_item a,
#main-nav .current-menu-item ul a,
#main-nav ul .current-menu-item a {
  width: auto;
  min-width: 150px;
  /* white-space:nowrap; */
}
#main-nav .menu-item-has-children > a:after,
#main-nav .page_item_has_children > a:after,
#main-nav .has-sub-menu > a:after {
  position: initial;
  margin-left: 4px;
}

.mobile_menu_active #main-nav ul {
  padding-left: 8px;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 2px !important;
}
.mobile_menu_active #main-nav a {
  border-bottom: none !important;
  color: #fff;
  line-height: 2rem;
}
.mobile_menu_active .sidemenu {
  background-color: #075071;
  padding: 0 20px;
}
.mobile_menu_active #main-nav ul a:hover,
.mobile_menu_active #main-nav .current_page_item ul a:hover,
.mobile_menu_active #main-nav ul .current_page_item a:hover,
.mobile_menu_active #main-nav .current-menu-item ul a:hover,
.mobile_menu_active #main-nav ul .current-menu-item a:hover {
  color: #db4312;
}
.mobile_menu_active #main-nav a:hover,
.mobile_menu_active #main-nav .current_page_item a,
.mobile_menu_active #main-nav .current-menu-item a {
  color: #db4312;
}
.mobile_menu_active .sub-menu {
  margin-top: -10px !important;
}
.mobile_menu_active #main-nav-wrap {
  position: relative;
  top: 70px;
}
.mobile_menu_active #menu-icon {
  background: #075071;
  padding: 6px 11px 3px 0;
  border-radius: 4px;
  color: rgba(0, 0, 0, 0);
  font-size: 0rem;
  height: 34px;
}
.mobile_menu_active #menu-icon::after {
  color: #fff;
  font-size: 1rem;
}
.mobile_menu_active #mobile-menu.sidemenu-on {
  left: 0;
  right: auto;
}
.mobile_menu_active #mobile-menu {
  left: -300px;
  right: auto;
}
.mobile_menu_active.sidemenu-right,
.mobile_menu_active.sidemenu-right #headerwrap {
  left: auto;
  right: 0px;
}
#menu-icon-close {
  display: none !important;
}

.mobile_menu_active .social-widget {
  position: absolute;
  top: 0;
  left: 15px;
}
.social-widget ul li:first-child,
.social-widget ul li {
  padding: 5px 2px 0 0;
}
.social-widget ul li:first-child,
.social-widget ul li {
  padding: 5px 2px 0 0;
}

.mobile_menu_active #searchform-wrap {
  position: absolute !important;
  top: 20px !important;
  left: 0;
  right: 20px !important;
  display: block;
}
.mobile_menu_active #searchform-wrap #searchform {
  position: relative;
  top: 0;
}
.search-results .entry-featured {
  display: none;
}

.footer p {
  color: #666;
  line-height: 1rem;
  font-size: 0.8rem;
}
#footer-tab {
  display: none !important;
}
#footerwrap {
  bottom: 0;
  position: relative;
  z-index: 0;
}
#footerwrap-inner {
  display: block !important;
}

.carousel-wrap {
  max-width: 1920px;
  max-height: 900px;
  margin: 0 auto;
}
.module-slider {
  margin-bottom: 0;
}
.themify_builder_slider_wrap .carousel-nav-wrap {
  padding: 0;
}
.module-slider .carousel-nav-wrap .carousel-prev,
.module-slider .carousel-nav-wrap .carousel-next {
  position: absolute !important;
  font-size: 32px !important;
  width: 32px !important;
  height: 64px !important;
  background: none;
  color: #fff;
  z-index: 500;
}
.themify_builder_slider_wrap .carousel-pager {
  position: absolute;
  width: 100%;
  bottom: 5px;
  z-index: 500;
}
.module-slider.slider-overlay .slide-content h1,
.module-slider.slider-overlay .slide-content h2,
.module-slider.slider-overlay .slide-content h3,
.module-slider.slider-overlay .slide-content h4,
.module-slider.slider-overlay .slide-content h5,
.module-slider.slider-overlay .slide-content h6 {
  color: #fff !important;
}
.slide-content {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0)
  ) !important;
  position: absolute;
  bottom: 0;
  width: 100%;
  min-height: 70px;
  padding: 0 !important;
}
.slide-image {
  margin: 0 !important;
}
.slide-image img {
  min-height: 300px;
  object-fit: cover;
}

a.more-link,
a.more-link:link,
a.more-link:visited,
a.more-link:focus {
  color: #fff;
  background-color: #600;
  border-radius: 4px;
  padding: 0 8px;
  float: right;
}
a.more-link:hover,
a.more-link:active {
  background-color: #f00;
}
a.anchor {
  display: block;
  position: relative;
  top: -200px;
  visibility: hidden;
}
.image-caption {
  line-height: 1.2rem;
  font-size: 1rem;
  font-weight: normal;
}
.image-caption small {
  line-height: 1rem;
  font-size: 0.8rem;
}

/* headings & titles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold !important;
  color: #666 !important;
}
h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.4rem;
}
.module-text h1,
.module-text h2,
.module-text h3,
.module-text h4,
.module-text h5,
.module-text h6 {
  color: #069;
  font-weight: bold;
}
h1 .main-head {
  margin: 0.5rem 0.5rem 0 0.5rem;
}
h1.page-title,
h1.post-title {
  color: #000;
  text-align: left;
  margin: 0 0 2rem 0;
  padding: 2rem 0 0 0;
  background: linear-gradient(to right, #eee, #fff);
}
h2 {
  font-size: 1.8rem;
  padding-top: 1rem;
}
.module-text h4 {
  color: #666;
  font-weight: bold;
}
h3.module-title {
  font-weight: bold;
  margin: 1rem 0 0 0;
  line-height: 1.5rem;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  color: #fff !important;
  padding: 3px 0 0 3px;
}

h3.module-title {
  color: #666;
}
.module-fancy-heading {
  background-position: center center;
  height: 160px;
  margin-bottom: 1.5rem;
}
.module-fancy-heading h1 {
  font-size: 25px;
  font-weight: 300;
  margin: 2.5rem 0 0 0;
  position: absolute;
  bottom: 0;
  padding: 0 20px 0 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.module-fancy-heading .sub-head {
  margin: 0;
}
.module-fancy-heading .sub-head:before {
  border: none;
}

#content {
  margin-top: 0 !important;
}
#pagewrap {
  padding-bottom: 0;
}
.body-overlay {
  left: auto;
  right: auto;
  z-index: 600;
}
.widgettitle {
  color: #000;
  font-size: 1.2rem;
}
.page-title {
  color: #000;
  text-align: left;
  margin: 1.5rem 0 0.5rem 0 !important;
}
.post-title a {
  color: #c00;
}
.post-image img {
  max-width: 830px;
  /* max-height:300px; */
  object-fit: cover;
}
.loops-wrapper .post-image {
  height: 200px;
  /* background:#ccc; */
  overflow: hidden;
}
.image-caption {
  line-height: 1.2rem;
  font-size: 1rem;
  font-weight: normal;
}
.image-caption small {
  line-height: 1rem;
  font-size: 0.8rem;
}
.testimonial-content .entry-content,
.testimonial-content .entry-content p {
  font-size: 0.8rem;
  font-weight: normal;
}
.testimonial-content {
  margin: 0 !important;
  position: absolute;
  text-align: left;
  top: 2rem;
  left: 150px;
}
.i-date {
  color: #06c;
}
.post-date {
  font-size: 0.8rem;
}
.post-date b {
  background: #666;
  color: #fff;
  padding: 0 4px;
}
.module-post .loops-wrapper.list-post .post-meta span,
.post-meta span.post-author-name,
.post-meta span.post-category {
  display: none !important;
}
.pagenav {
  background: none;
}
.loops-wrapper.list-post .post,
.single .list-post .post {
  padding-left: 0;
  margin-bottom: 1rem;
  min-height: auto;
}
.ui .tab-content a,
.ui.window .content a,
.ui.module-accordion .accordion-content a {
  color: #127a9f;
}
input[type="reset"],
input[type="submit"],
button {
  background: #333;
}
input[type="reset"]:hover,
input[type="submit"]:hover,
button:hover {
  background: #33f;
  color: #fff;
}
.front-logo {
  margin: 0 auto 2rem auto;
}

.bsearch_results_page {
  max-width: 1160px;
  margin: 0 auto !important;
  padding: 100px 20px 0 20px;
}
.bsearch_results_page h1,
.bsearch_results_page h2,
.bsearch_results_page h3 {
  color: #069;
  font-weight: bold;
}
.bsearch_results_page h1 {
  font-size: 1.8em;
}
.bsearch_results_page h2 {
  font-size: 1.4em;
  margin-top: 2.5rem;
  margin-bottom: 0;
}
.bsearch_results_page h3 {
  font-size: 1.2em;
}
.bsearch_excerpt {
  width: 10rem;
  height: 3rem;
}
.bsearch_results_page .bsearchform,
.bsearch_date {
  display: none;
}

.table1 {
  background: #f7e7a5;
  border-collapse: collapse;
}
.table1 th,
.table1 td {
  padding: 6px !important;
  border: solid 1px #369;
  vertical-align: middle;
  text-align: left;
}
.table1 th {
  text-align: center;
  font-weight: bold;
  background: #b8e0e8;
  color: #369;
}
.img-center {
  text-align: center;
}
.center-pic-md {
  margin: 0 auto;
  max-width: 800px;
}

/* Themify Fullpane */
.module-image.bordered .image-wrap img {
  height: 240px;
  object-fit: cover;
  padding: 0;
  border: solid 1px #000;
}

.main-row {
  margin-top: 20px;
}
.main-row .image-content {
  pointer-events: none;
}

.main-row .image-caption {
  font-size: 2rem;
  font-weight: bold;
  line-height: 2rem;
  text-align: center;
}

.module .carousel-pager a {
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.2);
}

.module .carousel-pager a.selected {
  border-color: #000;
  background: #000;
}

.display-posts-listing {
  list-style-type: none;
}

.display-posts-listing li {
  margin-bottom: 2rem;
}

.display-posts-listing .image {
  display: block;
  object-fit: cover;
  width: 300px;
  height: 169px;
  overflow: hidden;
  border-radius: 10px;
  border: solid 1px #000;
  margin-bottom: 5px;
}

.display-posts-listing .title {
  display: block;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 2rem;
}
.display-posts-listing .excerpt-more {
  display: block;
  float: right;
  background: #600;
  border-radius: 4px;
  float: right;
  color: #fff;
  padding: 0 8px;
  margin-top: 10px;
  text-decoration: none;
}

@media screen and (max-width: 942px) {
  #headerwrap #searchform #s,
  #headerwrap #searchform #s:focus,
  #headerwrap #searchform #s:hover,
  #headerwrap #searchform .tf_fa:hover + #s {
    color: #000 !important;
  }
  #headerwrap #searchform .tf_fa {
    color: #000;
    top: 1.3rem;
  }
  #headerwrap #searchform {
    width: auto;
  }
}

@media screen and (max-width: 780px) {
  .module-image .image-content,
  .module-video .video-content,
  .module-slider .slide-content {
    position: absolute !important;
  }
  .btn-yr {
    width: 45%;
  }
}

@media screen and (max-width: 394px) {
  .btn-yr {
    width: 100%;
  }
}

@media screen and (min-width: 681px) {
  .front-logo {
    margin: 4rem 0 0 1rem;
  }
}

@media screen and (min-width: 1041px) {
  .social-widget {
    position: absolute;
    right: 0;
  }
  .module-fancy-heading h1 {
    font-size: 3.2rem;
    width: 70%;
  }
  #main-nav ul a,
  #main-nav .current_page_item ul a,
  #main-nav ul .current_page_item a,
  #main-nav .current-menu-item ul a,
  #main-nav ul .current-menu-item a {
    white-space: nowrap;
  }
  #main-nav .tf_fa {
    margin-top: -3px;
  }
  #header {
    min-height: 145px;
  }
  #header.shrink {
    min-height: 95px;
  }
  body {
    padding-top: 145px;
  }
  body.b-shrink {
    padding-top: 95px;
  }
  #headerwrap #site-logo img,
  #headerwrap #site-logo a img {
    height: 130px;
    width: auto;
    margin: 0;
  }
  #headerwrap #site-logo img.p-shrink {
    height: 90px;
    width: auto;
    margin: 0;
  }
}
