* {
  font-family: 'Titillium Web', sans-serif;
}

body {
  overflow-x: hidden;
  background: url(../images/bg-body.jpg?1) repeat-y;
  background-size: cover;
  -webkit-animation: slidein 20s;
  animation: slidein 20s;

  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;

  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;

  -webkit-animation-direction: alternate;
  animation-direction: alternate;
}

@keyframes slidein {
  from {
    background-position: top;
    background-size: 3000px;
  }

  to {
    background-position: -100px 0px;
    background-size: 2750px;
  }

}

section {
  padding-top: 60px;
  padding-bottom: 120px;
}

@media (max-width:768px) {

  section {
    padding: 20px 20px 40px;
  }
}

h1 {
  font-size: 40px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

hr {
  width: 87px;
  border: none;
  height: 4px;
  color: #14a58c;
  background-color: #14a58c;
}

p {
  font-size: 24px;
  margin-top: 24px;
}

img {
  max-width: 100%;
}

.action-button {
  display: inline-block;
  border: none;
  text-transform: uppercase;
  box-shadow: 0 6px #c86a40;
  background: #eb7d4b;
  padding: 27px 82px 23px 82px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none !important;
}

.action-button:hover {
  box-shadow: 0 4px #c86a40;
  background: #eb7d4b;
  transform: translateY(2px);
  color: white;
}

.action-button:active {
  background-color: #eb7d4b;
  transform: translateY(6px);
  box-shadow: none;
}

.action-button:focus {
  color: white;
  outline: 0 !important;
}

.navbar {
  margin-top: 60px;
  font-size: 16px;
  margin: 0;
  padding: 0 40px;
  transition: all 0.4s ease;
}

.navbar h1 a {
  display: inline-block;
  background: url(../images/logo.png) no-repeat;
  background-size: contain;
  width: 275px;
  height: 80px;
  margin-top: 20px;
  text-indent: -3000px;
}

.logo {
  text-indent: -999em;
  width: 200px;
  height: 80px;
}

.navbar ul {
  padding: 20px;
}

.navbar ul li a,
.navbar ul li a:visited {
  color: #fff;
  text-shadow: #000 2px 2px 2px;
  outline: none;
  text-transform: uppercase;
  font-size: 16px;
  background: url(../images/btn-menu.png) no-repeat;
  border-radius: 5px;
  background-size: contain;
  padding: 30px 60px;
  line-height: 12px;
  opacity: .6;
}
.navbar ul li.new a,
.navbar ul li.new a:visited {
  background: url(../images/btn-menu-new.png) no-repeat center;
  background-size: contain;
}

.nav>li>a:focus,
.nav>li>a:hover,
.navbar ul li a:hover {
  background: url(../images/btn-menu-hover.png) no-repeat;
  background-size: contain;
  opacity: 1;
}
.navbar-nav li+li {
  margin-left: 10px;
}

.navbar ul li.active a,
.navbar ul li.active a:visited,
.navbar ul li.active a:hover,
.navbar ul li.active a:focus {
  color: #fff;
  background: url(../images/btn-menu-hover.png) no-repeat;
  background-size: contain;
}


.navbar ul li.new.active a,
.navbar ul li.new.active a:visited,
.navbar ul li.new.active a:hover,
.navbar ul li.new.active a:focus ,
.nav>li.new>a:focus,
.nav>li.new>a:hover,
.navbar ul li.new a:hover {
  background: url(../images/btn-menu-new-hover.png) no-repeat center;
  background-size: contain;
}


.navbar.shrink {
  padding: 0 40px;
  /* box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5); */
}

.navbar .navbar-toggle {
  border-color: #1a4598;
  margin-top: 35px;
  margin-right: 0;
  margin-right: 20px;
}

.navbar .navbar-toggle .icon-bar {
  background-color: #1a4598;
}
@media (max-width:1195px) {
  .navbar h1 a {
      width: 220px;
  }
  .navbar.shrink,
  .navbar {
    padding: 0 0 0 20px;
  }
  .navbar ul {
    padding: 20px 0;
  }
}
@media (max-width: 1015px) {
    .navbar h1 a {
        width: 195px;
    }
    .navbar ul li a,
    .navbar ul li a:visited {
      padding: 30px 49px;
      line-height: 0px;
    }
    .navbar-nav li+li {
      margin-left: 0;
    }
}
@media (max-width: 919px) {
  .navbar ul li a, 
  .navbar ul li a:visited {
    padding: 28px 40px;
  }
  .navbar h1 a {
    width: 160px;
  }
  
}
@media (max-width:768px) {

  .navbar,
  .navbar.shrink {
    padding: 0;
    background: rgba(255, 255, 255, 0.85);
  }

  .navbar h1 a {
    width: 215px;
    height: 70px;
    margin-top: 20px;
    margin-left: 10px;
  }

  .navbar-nav li+li {
    margin-left: 0;
    margin-top: 10px;
  }

  .nav>li {
    text-align: center;
  }

  .navbar ul li a,
  .navbar ul li a:hover,
  .navbar ul li.active a,
  .navbar ul li.active a:visited,
  .navbar ul li.active a:hover,
  .navbar ul li.active a:focus {
    background-position: center;
  }
}

#home {
  height: 100vh;
  padding-top: 165px;
  position: relative;
}

#home * {
  position: relative;
  z-index: 1;
}
#home .title {    
  margin-bottom: 40px;
}

#home .bg {
  display: block;
  position: absolute;
  z-index: 0;
  background: url(../images/bg-kv.png) no-repeat center bottom;
  background-size: cover;
  height: 100%;
  width: 100%;
  top: 0;
}

#home::after {
  content: "";
  background: url(../images/img-title-light.png) no-repeat center;
  position: absolute;
  display: block;
  top: 0;
  margin: auto;
  bottom: 0;
  left: 0;
  width: 98%;
  height: 98%;
  background-size: contain;    
  z-index: -1;
}
@media (max-width:1366px) {
  #home .bg {
    display: none;
  }

  #home {
    height: auto;
    background: url(../images/bg-kv.png) no-repeat center bottom;
    background-size: contain;
  }
}
@media (max-width:450px) {
  #home {    
    padding: 165px 0 40px;
  }
  #home .container{
    padding: 0;
  }
  #home .title {
    margin-bottom: -10px;
}
}

#home h1 {
  text-transform: none;
  margin: 120px 0 62px 0;
}

#home .action-button:hover {
  box-shadow: 0 4px #c86a40;
  background: #eb7d4b;
  transform: translateY(2px);
  color: white;
}

#home .action-button:active {
  background-color: #eb7d4b;
  transform: translateY(6px);
  box-shadow: none;
}

#home .action-button:focus {
  color: white;
  outline: 0 !important;
}

#home .btn-cta {
  background: url(../images/btn-cta.png) no-repeat center;
  background-size: contain;
  text-indent: -9999em;
  width: 500px;
  max-width: 100%;
  height: 130px;
  display: block;
  opacity: .85;
  margin: auto;
  transition: all 0.2s;
}

@media (max-width:768px) {
  #home .btn-cta {
    width: 215px;
  }
}

#home .btn-cta:hover {
  opacity: 1;
}

#feather .title {
  background: url(../images/title-feather.png) no-repeat center;
  background-size: contain;
  text-indent: -9999em;
  height: 170px;
  display: block;
  margin: auto;
}

.services-tabs .btn-group {
  border: #cdcdcd solid 6px;
  padding-inline-start: 0;
  border-radius: 37px;
}

.services-tabs .btn-group .btn a {
  color: #666;
  font-size: 2.2rem;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
}

.services-tabs .btn-group .btn {
  border-radius: 30px;
}

.services-tabs .btn-default.active {
  background: linear-gradient(to right, #004ea2 0%, #c92a2e 100%);
}

.services-tabs .btn-default.active a {
  color: #fff;
}

.services-tabs .tab-content {
  background: url(../images/bg-tabcont.jpg) no-repeat;
  margin-top: -50px;
  background-size: cover;
  padding-bottom: 40px;
}

.services-tabs .tab-content .tab-pane {
  min-height: 600px;
  padding-top: 60px;
}

.services-tabs .tab-content .tab-pane img {
  max-width: 100%;
}

.services-tabs .tab-content .d-flex {
  display: flex;
}

.services-tabs .tab-content .item {
  position: relative;
  padding: 0 0 40px;
}

@media (max-width:600px) {
  .services-tabs .btn-group .btn a {
    font-size: 1.8rem;
    padding: 10px 0px;
  }
}

/* .services-tabs .tab-content .btn-qr {
  position: absolute;
  left: 110px;
  bottom: 115px;
}

.services-tabs .tab-content .btn-qr.student {
  left: 100px;
  bottom: 70px;
}
 */
#feather .item {
  min-height: 50vh;
  margin-top: 4rem;
}

#feather .item .title-sec {
  background-size: contain;
  text-indent: -9999em;
  height: 200px;
  display: block;
  margin: 3rem auto 0;
  width: 90%;
}

#feather .item1 .title-sec {
  background: url(../images/title-point-01.png) no-repeat;
  background-size: contain;
}

#feather .item2 .title-sec {
  background: url(../images/title-point-02.png) no-repeat;
  background-size: contain;
}

#feather .item3 .title-sec {
  background: url(../images/title-point-03.png) no-repeat;
  background-size: contain;
}

#feather .item4 .title-sec {
  background: url(../images/title-point-04.png) no-repeat;
  background-size: contain;
}


#featherModal .modal-header {
  border: none;
}
#featherModal .modal-header * {
  color: #fff;
  font-size: 2.5rem;
}

#featherModal .modal-header .title {
  background: url(../images/title-function.png) no-repeat center;
  background-size: contain;
  text-indent: -9999em;
  height: 170px;
  display: block;
  margin: auto;
}
#featherModal .modal-header .close {
  opacity: 1;
  font-size: 3rem;
}
#featherModal .modal-content {
  /* background: #1a4598; */
  background: linear-gradient(to right, #001da2 0%, #c92a2e 100%);
}
#featherModal .item .title-sec {
  background-size: contain;
  text-indent: -9999em;
  height: 200px;
  display: block;
  margin: 3rem auto 0;
  width: 90%;
}
#featherModal .item1 .title-sec {
  background: url(../images/title-function-01.png) no-repeat;
  background-size: contain;
}


#featherModal .item2 .title-sec {
  background: url(../images/title-function-02.png) no-repeat;
  background-size: contain;
}

#featherModal .item3 .title-sec {
  background: url(../images/title-function-03.png) no-repeat;
  background-size: contain;
}

#featherModal .item4 .title-sec {
  background: url(../images/title-function-04.png) no-repeat;
  background-size: contain;
}

#feather .row img {
  display: block;
  margin: 80px auto 50px auto;
}

#feather .row h2 {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 700;
}

#feather .row p {
  font-size: 16px;
  margin: 24px auto 0 auto;
  font-weight: 300;
}
@media (max-width: 919px) {
  #featherModal .item1 .title-sec {
    height: 120px;
    width: 100%;
  }  
  #featherModal .modal-header .title {
    width: 100%;
    height: 60px;
  }
  #featherModal .item1 .title-sec,
  #featherModal .item2 .title-sec,
  #featherModal .item3 .title-sec,
  #featherModal .item4 .title-sec{
    height: 120px;
    width: 100%;
  }  
}
@media (max-width:768px) {
  #featherModal .item .title-sec,
  #feather .item .title-sec {
    margin: 20px auto 0;
    height: 85px;
  }

  #feather .item {
    min-height: auto;
    margin-top: 0;
  }
  
}

section .title {
  color: #1a4598;
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 4rem;
}

#video .item {
  text-align: center;
}

#form,
#practice {
  background: url(../images/bg-form.jpg) no-repeat center;
  padding-bottom: 0;
  padding-top: 0;
}

#form .title {
  background: url(../images/title-form.png) no-repeat center;
  background-size: contain;
  text-indent: -9999em;
  height: 120px;
  display: block;
  margin: 0 auto 40px;
}

#form img {
  max-width: 85%;
  margin: auto;
}

/* show more expand */
.container .jumbotron {
  padding: 20px 40px;
}
.jumbotron {
  background: #fff;
  position: relative;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5); 
}
.text-container {
  max-height: 200px;
  overflow: hidden;
  transition: max-height .5s ease;
  position: relative;
}
.text-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, white 100%);
}

.text-container.show {
  max-height: 2000px;
  /* padding-bottom: 5rem; */
}
.text-container.show::after {
  display: none;
}

.gradient::before {
  content: '';
  height: 150px;
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 70%);
  transition: height .25s ease;
}

.show.gradient::before {
  height: 50px;
}

.show-btn {
  background-color: #fff;
  border: #a1a1a1 solid 1px;
  bottom: 20px;
  cursor: pointer;
  height: 40px;
  left: 0;
  position: absolute;
  transition: background-color .25s ease;
  font-size: 20px;
  right: 0;
  margin: auto;
  width: fit-content;
  border-radius: 5px;
}

.show-btn:hover {
  color: #fff;
  background-color: #000;
}

/* .show-btn.fa.rotate {
  transform: rotate(180deg);
} */

/**/
.step-item {
  margin-bottom: 40px;
}

@media (max-width:919px) {
  .step-item {
    padding: 20px;
    margin-bottom: 0;
  }
}

.title-step {
  background: url(../images/img-step1.png) no-repeat;
  background-size: contain;
  text-indent: -9999em;
  height: 50px;
  display: block;
  margin: 0 auto 10px;
}

.title-step.step2 {
  background: url(../images/img-step2.png) no-repeat;
  background-size: contain;
}

.title-step.step3 {
  background: url(../images/img-step3.png) no-repeat;
  background-size: contain;
}

.title-step.step4 {
  background: url(../images/img-step4.png) no-repeat;
  background-size: contain;
}

/* .area {
  width: 95%;
  padding-inline-start: 0;
} */

.area li {
  list-style: none;
  position: relative;
  /* margin-bottom: 40px; */
}

.title-area {
  font-size: 2rem;
  border-bottom: #666 solid 1px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.title-area::before {
  content: "";
  display: block;
  width: 15px;
  height: 15px;
  background: #000;
  border: #999 solid 1px;
  position: absolute;
  left: 1px;
  margin-top: 6px;
}

.north .title-area::before {
  background: #f3ffdb;
}

.central .title-area::before {
  background: #c4fbcc;
}

.south .title-area::before {
  background: #ffffa8;
}

.btn-form {
  color: #fff;
  font-size: 2rem;
  background: #003f98;
  padding: 10px 20px;
  border-radius: 25px;
  position: absolute;
  right: 0;
  top: 0;
}

.btn-form:hover {
  color: #fff;
  background: #002963;
}

#form .cont {
  padding-left: 20px;
}

#form .alert {
  background: #ffd431;
  border-radius: 10px;
  width: 90%;
  margin: 20px 0;
}

#form .alert p {
  margin: 0;
}

.copy-text {
  position: relative;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  width: 90%;
}

.copy-text .text {
  padding: 10px;
  font-size: 18px;
  color: #555;
  border: none;
  outline: none;
  width: 100%;
  font-size: 2.4rem;
}

.copy-text button {
  padding: 10px 25px;
  background: #000;
  color: #fff;
  font-size: 18px;
  border: none;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
}

.copy-text button:active {
  background: #809ce2;
}

.copy-text button:before {
  content: "已複製";
  position: absolute;
  top: -45px;
  right: 5px;
  background: #000000;
  padding: 8px 10px;
  border-radius: 20px;
  font-size: 20px;
  display: none;
}

.copy-text button:after {
  content: "";
  position: absolute;
  top: -5px;
  right: 40px;
  width: 10px;
  height: 10px;
  background: #000000;
  transform: rotate(45deg);
  display: none;
}

.copy-text.active button:before,
.copy-text.active button:after {
  display: block;
}

@media (max-width:919px) {
  .copy-text {
    width: 100%;
  }
}

.tooltip-inner {
  max-width: 260px;
  padding: 3px 8px;
  font-size: 1.6rem;
}

footer {
  background: #1a4598;
  padding: 60px 20px 40px;
  text-align: center;
}

@media (max-width:768px) {

  footer {
    padding: 40px 20px;
  }
}

/* top */
.btn-top,
.btn-top:focus,
.btn-top:hover {
  background: #000;
  display: block;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  position: fixed;
  z-index: 1;
  opacity: 0;
  text-indent: 4px;
  transition: all 0.2s linear;
  text-decoration: none;
  bottom: 35px;
  right: 35px;
  line-height: 35px;
  padding-left: 6px;
}

.btn-top {
  bottom: 35px;
  right: 35px;
}

.btn-top:hover {
  background: linear-gradient(to right, #004ea2 0%, #c92a2e 100%);
}

.btn-top.show {
  opacity: 1;
  cursor: pointer;
}

.btn-top:hover {
  text-decoration: none;
}

.btn-top span {
  line-height: 2.3rem;
}

@media(max-width:767px) {
  .btn-top {
    bottom: 20px;
    right: 20px;
  }
}

@media(max-width:645px) {
  .btn-top {
    bottom: 10px;
    right: 10px;
  }
}

/* exam */
.jumbotron h3 {
  font-size: 3rem;
  color: #e40e13;
  text-align: center;
}
#exam .area {
  margin-bottom: 2rem;
}
#exam .area .nav-justified {
  margin-bottom: 15px;
}
#exam .area .nav-justified a {
  font-size: 2.2rem;
  color: #214fa1;
  background: #fff;    
  border: #214fa1 solid 2px;
}
#exam .area .nav-justified li+li {
  padding-left: 15px;
}
#exam .area .nav-justified .active a {
  color: #fff;
  background: #214fa1;
}
#exam .tab-content {
  color: #fff;
  background: rgba(26, 68, 152, 0.8);
  padding: 10px 35px 40px 35px;
  border-radius: 15px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5); 
}
#exam .tab-content h3,
.scroe {
  color: #fff100;
}
.scroe {
  font-size: 3rem;
}
.scroe span {
  font-size: 6rem;
}
.tab-content .nav-tabs li a {
  font-size: 2.2rem;
  color: #1a1a1a;
  background: #fcd37e;
  border-color: #fcd37e;
  border-radius: 15px 15px 0 0;
}
.tab-content .nav-tabs li.active a {
  color: #fff;
  background: #f08500;
  border-color: #f08500;
}
#exam .tab-content .tab-content {
  color: #444;
  background: #fff89e;  
  border-radius: 0 0 15px 15px;
} 

@media (max-width: 768px) {    
  /* #exam .area .nav-justified li+li {
    padding-left: 0;
  }  */
  #exam .area .nav-justified li {
    display: table-cell;
    width: 1%;
  }
  #exam .area .nav-justified a {
    font-size: 1.8rem;
    padding: 5px 7px;
  }
  .tab-content .nav-tabs li a{
    font-size: 1.8rem;
  }
  p {
    font-size: 18px;
    margin-top: 18px;
  }
  #exam .tab-content {
    padding: 5px 15px 10px 15px;
  }
  .jumbotron p {
    margin-bottom: 15px;
    font-size: 18px;
  }
  .jumbotron h3 {
    font-size: 2.8rem;
    margin: 15px 0 5px;
  }
  .container .jumbotron {
    padding: 10px 20px;
  }
  .tab-content .nav-tabs li a {
    font-size: 1.6rem;
    padding: 5px 7px;
  }
  section .title {
    font-size: 3rem;
  }
}