/* All */

body {
  overflow-x: hidden;
}

/* fixed wordpress bug with svg can't show in safari, remind that width has to follow the settings in wordpress */
.custom-logo {
  width: 150px;
  viewbox: "0 0 150 150";
}

#primary {
  margin: 0!important;
  padding: 0;
}

#row-center {
  text-align: center;
}

.ast-site-identity {
  z-index: 10;
}

/* Header */

.main-header-bar {
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
  background-color:#fff!important;
}

.main-header-bar.ast-sticky-active {
  box-shadow: 0 0 0!important;
}

/* Hide breadcrumb */

.ast-breadcrumbs-wrapper {
  display:none;
}

/* Menu styling */

.features-menu li {
  line-height: 2;
}

.features-menu ul {
  margin-top: 15px;
  list-style-type: none;
  list-style-position: outside;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}

.nav_intro {
  color: #000;
  cursor: pointer;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}

.nav_intro:hover {
  color: #ff5723;
}

/* new feature label */
.nav_new_feature {
  color: #fff;
  background-color: #ff5723;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-size: 12px;
  font-weight: bold;
}

/* language switcher */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item a.mega-menu-link:before {
  position: relative !important;
  font-size: 20px !important;
  top: -5px !important;
}

#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children.mega-weglot-language > a.mega-menu-link > span.mega-indicator:after {
  display: none;
}

/* speedtest */
.sub-nav_new_feature:after {
  content: 'New';
  color: #fff;
  background-color: #ff5723;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-size: 12px;
  font-weight: bold;
}

/* Footer */

.footer-adv-widget-5 ul li {
  margin-bottom: 20px;
  line-height: 19px;
}

.ast-col-lg-1,
.ast-col-lg-2,
.ast-col-lg-3,
.ast-col-lg-4,
.ast-col-lg-5 {
  width: 20%;
}

/* Preload overlay */

.preload-overlay {
  height: 100%;
  width:100%;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
  visibility:visible;
  opacity:1;
}

.loading-icon {
  position: absolute;
  z-index: 10000;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

/* footer */
.footer-sml-layout-2 .ast-small-footer-section-2 {
  color: #fff !important;
}

/* Selection words */
::-moz-selection {
  background-color: #588157;
  color: #fff;
}

::selection {
  background-color: #588157;
  color: #fff;
}

/* Components */

button {
  position: relative;
  letter-spacing: 2px;
  border-radius: 4px;
  font-weight: 700 !important;
  color: #fff !important;
}

button:hover,
button:focus {
  background-color: #ff5723;
  border: 1px solid #ff5723;
}

.link-button {
  width: 200px;
  text-align:center;
  position: relative;
  border-radius: 4px;
  color: #fff !important;
  background-color: #ff5723;
  padding: 10px 28px;
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  border: 2px solid #ff5723;
}

.link-button:hover {
  background: #B40905;
  border: 2px solid #B40905;
}

.link-button-reverse {
  width: 200px;
  text-align:center;
  border-radius: 4px;
  background-color: #fff;
  color: #ff5723 !important;
  border: 2px solid #ff5723;
  padding: 10px 28px;
  display: inline-block;
  margin-top: 6px;
  font-weight: bold;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}

.link-button-reverse:hover {
  color: #B40905 !important;
  border-color: #B40905;
  background-color: #fff;
}

.link-button-reverse.dark-bg {
  border-color: white;
}

.dark-bg:hover {
  opacity: 0.95;
}

.product-link-button {
  font-weight: 700;
  color: #ff5723;
}

.product-link-button:hover {
  color: #B40905;
}

input[type=text],
input[type=email],
.register-input {
  padding: 12px 21px;
  border-radius: 8px;
  border: 1px solid #414975;
  width: 300px;
  font-size: 20px;
  background-color: #fff;
}
  
input[type=text]::-webkit-input-placeholder,
.cta-block #hometop-input::-webkit-input-placeholder,
.cta-block #homebottom-input::-webkit-input-placeholder,
.register-input::-webkit-input-placeholder {
  color: #8c90a3;
  opacity: 1;
}

input[type=text]::-moz-placeholder,
.cta-block #hometop-input::-moz-placeholder,
.cta-block #homebottom-input::-moz-placeholder,
.register-input::-moz-placeholder {
  color: #8c90a3;
  opacity: 1;
}

input[type=text]:-ms-input-placeholder,
.cta-block #hometop-input:-ms-input-placeholder,
.cta-block #homebottom-input:-ms-input-placeholder,
.register-input::-moz-placeholder {
  color: #e1e1e1;
  opacity: 1;
}

input[type=text]:-moz-placeholder,
.cta-block #hometop-input:-moz-placeholder,
.cta-block #homebottom-input:-moz-placeholder,
.register-input:-moz-placeholder {
  color: #e1e1e1;
  opacity: 1;
}

input[type=text]:focus,
input[type=email]:focus,
.register-input:focus {
  outline: none;
  border: 1px solid #414975;
  color: #666;
}

/* Pre-header */

.pre-header {
  font-size: 0.9rem;
  line-height: 0;
  color: #588157;
  margin-bottom: 20px !important;
}

/* component */

.title_on_solid_bgc {
  color: #fff !important;
}

.bg_solid {
  background-color: #354F52;
}

.bg_transparent {
  background-color: rgba(53,79,82,0.03);
}

/* CTA */

.cta-section {
  margin: 0;
  padding: 4em 0em;
  background-color: #2C5E63;
  width: 100vw;
  position: relative;
  left: 50%;
  transform:  translateX(-50%);
}

.bottom-cta-headline .pre-header {
  margin-bottom: 14px;
}

.bottom-cta-headline h2 {
  font-family: 'Noto Sans', 'Noto Sans TC';
  margin-bottom: 30px;
  line-height:0.8;
}

.bottom-cta-headline h3 {
  color: #fff;
  margin-bottom: 20px;
}

.cta-block {
  display: inline-flex;
  position: relative;
}

.cta-block .link-button-reverse {
  margin-left:10px;
}

.cta-block #homebottom-input {
  padding: 12px 21px;
  border-radius: 8px 0 0 8px;
  border: 0;
  outline: 0;
  border-top: 1px solid #414975;
  border-left: 1px solid #414975;
  border-bottom: 1px solid #414975;
  width: 300px;
  font-size: 20px;
}

.cta-block #homebottom-button {
  position: relative;
  padding: 12px 21px;
  border: 0;
  outline: 0;
  border-radius: 0 8px 8px 0;
  border-top: 1px solid #534ce8;
  border-right: 1px solid #534ce8;
  border-bottom: 1px solid #534ce8;
  border-left: 1px solid #534ce8;
}

.cta-block #homebottom-button:hover {
  background: #5f5fff;
}

.cta-text {
  margin-top:10px;
  margin-left:25px;
}

.cta-text li {
  display: inline-block;
  font-size: 12px;
  margin-right: 10px;
  color: #414975;
}

.cta-text #last-item {
  margin-right: 0px;
}

/* CTA overlay */

.cta-overlay {
  height: 100%;
  width:100%;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
  visibility:hidden;
  opacity:0;
}
  
.cta-overlay .hs-form fieldset {
    max-width:100%;
}

.cta-overlay #logo {
  width:150px;
  margin: 70px 0 0 50px;
  display: block;
}

.cta-overlay .saas-content {
  width: 320px;
  margin: 100px auto auto auto;
  position: relative;
}


.cta-overlay .saas-content h2 {
  text-align:center;
}

.cta-overlay .saas-content hr {
  height:1px;
  border:0;
  background-color:#e8e8e8;
}

.cta-overlay .saas-content #title,
.cta-overlay .hs-form label {
  font-size:15px;
  font-weight:bold;
  color:#717171;
}

.cta-overlay .pop-testimonial {
  margin-top: 10em;
  text-align: center;
}
  
.cta-overlay .pop-testimonial p {
  font-size: 24px;
  color: #c1c1c1;
  margin-bottom: 0;
}
  
.cta-overlay .pop-testimonial p:nth-of-type(2) {
  font-size: 16px;
}

.cta-overlay #required {
  color:#e2587d;
  margin-left:4px;
  font-size:13px;
}
  
.cta-overlay .register-input, 
.cta-overlay .hs-form input[type="text"],
.cta-overlay .hs-form input[type="email"] {
  width: 320px;
  border-radius: 8px;
}
  
.cta-overlay .hs-form textarea {
  width:100%!important;
  display:block;
  height:100px;
  border-radius:8px;
  border: 1px solid #e8e8e8;
  padding:10px 20px;
  font-size:20px;
  color:#717171;
  background-color:#fff;
  margin-top:10px;
}
  
.cta-overlay .hs-form input[type="text"],
.cta-overlay .hs-form input[type="email"], 
.cta-overlay .hs-form textarea {
  margin-bottom:15px;
}
  
.cta-overlay .hs-form .hs-error-msgs label{
  display:none;
}
  
.cta-overlay ul.hs-error-msgs.inputs-list {
  color:transparent; 
  position:absolute;
}

.cta-overlay .hs-form input.invalid, 
.cta-overlay .hs-form textarea.invalid, 
.cta-overlay .hs-form select.invalid {
  border-color:#FF7575;
}
  
.cta-overlay .register-button,
.cta-overlay .hs-button.primary,
.cta-overlay input[type="submit"],
.cta-overlay input[type="button"]{
  position: relative;
  padding: 12px 21px;
  margin-top: 17px;
  text-align: center;
  border-radius: 8px;
  background-color:#534ce8;
  color: #fff!important;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
  -webkit-transition: all 300ms ease;
  -moz-transition: all 300ms ease;
  -ms-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}
  
.cta-overlay .hs-submit {
  text-align:center;  
}
  
.cta-overlay .register-button:hover,
.cta-overlay .register-button:focus,
.cta-overlay .hs-button.primary:hover,
.cta-overlay input[type="submit"]:hover,
.cta-overlay input[type="button"]:hover,
.cta-overlay .hs-button.primary:focus,
.cta-overlay input[type="submit"]:focus,
.cta-overlay input[type="button"]:focus {
  background-color:#443EB9;
  color: #fff!important;
}

.cta-overlay .text {
  color:#717171;
  font-size:12px;
  line-height:10px;
}

.register-button .fas { 
  display: none;
  position: absolute;
  padding: 0;
  top: 36%;
  left: 45%;
  color: #534ce8;
}

.cta-overlay a {
  font-weight:bold;
}

.cta-overlay #closebtn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 60px;
  text-decoration:none;
  color:#717171;
  transition:0.3s;
}

#closebtn:hover {
  color:#000;
}
  
.invalid-email-homebottom,
.invalid-email-pop {
  position: absolute;
  padding:10px 50px;
  text-align:center;
  background-color:#fff;
  border-radius:6px;  
  display:none;
  box-shadow: 0 2px 14px 0 rgba(160,161,188,.4);
  z-index: 1;
}

.invalid-email-homebottom {
  width: calc(100% - 120px);
  left:2px;
  bottom: 70px;
}

.invalid-email-pop {
  left:0px;
  width: 100%;
  bottom: 170px;
}

.invalid-email-homebottom:after,
.invalid-email-pop:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
  margin-left: -8px;
  margin-bottom: -8px;
}

.footer-social-media-block br {
  display: none;
}

/* [ Tablet ]
----------------------------- */

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

  /* Global */

  h1 {
    font-size: 1.3em!important;
  }
  
  h2 {
    font-size: 3em!important;
  }
  
  h3 {
    font-size: 2em!important;
  }
  
  #primary {
    margin-top:0!important;
    padding: 0;
  }

  #mobile-center {
    text-align:center;
  }

  /* Pre-header */

  .pre-header  {
    font-size: 0.9rem;
    color: #588157;
    margin-bottom: 10px !important;
    line-height: 1.3;
  }

  /* Header */

  #mega-menu-item-14835 {
    display:none!important;
  }

  /* Footer */

  .footer-adv-overlay .ast-row {
    margin-right:0;
    margin-left: 0;
  }

  .footer-adv-widget {
    width:20%;
  }

  .footer-adv-widget h2 {
    font-size: 1.4rem!important;
  }
}

/* [ Mobile ]
----------------------------- */

@media only screen and (max-width: 719px) {
    
    /* Global */
  
  h1 {
    line-height: 1.5!important;
  }
  
  h2 {
    font-size: 2.5em!important;
    line-height: 1.5!important;
  }
  
  h3 {
    line-height: 1.5!important;
  }
  
  h4 {
    font-size: 1.5em!important;
    line-height: 1.5!important;
  }

  /* Header */
  
  #mega-menu-wrap-primary #mega-menu-primary {
    margin: 0!important;
  }

  .ast-header-sticked {
    height: 70px;
  }

  .ast-header-break-point .main-header-bar {
    padding-top:1.5em;
  }

  .mega-menu-toggle {
    width: 15%;
    float: right;
  }

  .ast-main-header-bar-alignment {
    margin-top: -33px;
    margin-right: -10px;
  }

  .ast-site-identity {
    width: 80% !important;
  }

  .custom-logo-link img {
    margin-top: 5px;
  }

  /* Pre-header */

  .pre-header {
    font-size: 16px;
  }

    .cta-section {
      padding: 120px 0px;
    }

    /* CTA */

  .cta-block {
    display:inline-block;
    width:100%;
  }

  .cta-block .link-button-reverse {
    margin-left:auto;
  }

  .cta-block .link-button,
  .cta-block .link-button-reverse {
    width: 100%;
    max-width: 300px;
    margin-left: 0 !important;
  }

  .cta-block .link-button-reverse {
    margin-top: 20px;
  }

  .cta-block #homebottom-input {
    border-radius: 8px;
    border: 1px solid #414975;
    width: 100%;
  }

  .cta-block #homebottom-button {
    padding: 12px 21px;
    border: 2px solid trasparent;
    border-radius: 8px;
    margin-top: 6px;
    width: 100%;
  }

  .cta-overlay .saas-content {
    width: 100%;
  }

  .cta-overlay .pop-testimonial {
    margin-top: 3em;
  }
  
  .cta-overlay .pop-testimonial p {
    font-size: 14px;
    color: #c1c1c1;
    margin-bottom: 0;
  }
  
  .cta-overlay .pop-testimonial p:nth-of-type(2) {
    font-size: 12px;
  }

  .cta-overlay #closebtn {
    top: 0;
    right: 25px;
    font-size: 40px;
  }

  .cta-overlay #logo {
    display:none;
  }

  .invalid-email-homebottom {
    left: 0;
    width: 100%;
    bottom: 125px;
  }
  
  .invalid-email-pop {
    margin-left: 12px;
    margin-right: 12px;
    width: 93%;
    bottom: 160px;
  }
  
  .cta-overlay .register-input,
  .cta-overlay .hs-form input[type="text"],
  .cta-overlay .hs-form input[type="email"] {
    margin-right: 0px;
    width: 93%;
    border-radius: 8px;
  }
  
  .cta-overlay .register-button {
    width: 93%;
    margin-top: 10px;
  }
  
  .register-button .fas { 
    top: 70%;
    left: 10%;
  }
  
  .register-button .fas { 
    margin-top: -18px;
    margin-left: 40%;
  }

  /* Footer */

  .footer-adv-overlay {
    padding-top: 60px;
    padding-bottom: 60px;
    overflow: hidden;
  }

  .footer-adv-widget {
    width: 90%!important;
    margin: auto 20px auto 20px;
  }

  .widget:last-child {
    margin: 0 0 2.8em;
  }

}
