body,h1,h2,h3,h4,h5,h6,p,span,button{
  font-family: "微軟正黑體", Arial;
}

a{ text-decoration: none;}
.hidden{ display: none;}
.lock-scroll{overflow: hidden;}
.border-l-title{ border-left: 4px solid #113080;}

.fs-7{ font-size: 0.9rem;}
.text-justify{text-align: justify;}
.letter-2{ letter-spacing: 1.2px;}

.text-blue{ color: #093A69;}
.text-skyblue{ color: #38C0DA;}
.text-gray{ color: #707070;}
.text-orange{ color: #FA6717;}

.bg-skyblue{ background: #38C0DA;}
.bg-darkblue{ background: #083867;}
.bg-lightgray{ background: #F8F9FA;}

.border-top-dashed{ border-top: 1px dashed #dddddd;}
.border-bottom-dashed{ border-bottom: 1px dashed #dddddd;}
.btn-square{
  border-radius: 0px;
  padding: 6px 15px;
  background: #38C0DA;
  color: #ffffff;
  font-size: 1rem;
}
.btn-square:hover{
  background: #38C0DA;
  color: #ffffff;
}
/* ----------------- 表單樣式 ----------------- */
.btn:focus,
.btn:active,
.btn:focus,
.a:focus,
.form-control:focus,
.form-select:focus{
  outline: none;
  box-shadow: none;
}
.form-control:focus,
.form-select:focus{
  border-color: #d1d7e0;
}
.form-control,
.form-select{
  min-height: calc(1.5em + 1.225rem);
  padding: 0.55rem 0.75rem;
  font-size: 15px;
  line-height: 1.5;
  color: #66799e;
  background-color: #ffffff;
  border: 0.0625rem solid #d1d7e0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.input-group-text{
  padding: 0.55rem 0.75rem;
  font-size: 14px;
  font-weight: 400;
  color: #93a5be;
  background-color: #ffffff;
  border: 0.0625rem solid #d1d7e0;
  border-radius: 0.5rem;
}
/* 分頁按鈕 */
.page-link {
  padding: 3px 10px;
  color: #3d5aa6;
  margin: 0px 5px;
}
.page-item.active .page-link {
  background-color: #3d5aa6;
  border-color: #3d5aa6;
}
.page-item:first-child .page-link {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.page-item:last-child .page-link {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.page-link:focus {
  box-shadow: 0 0 0 0 rgb(13 110 253/ 25%);
}
/* ----------------- header footer container ----------------- */
body{
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
.main-container{
  flex: 1;
  padding-top: 60px;
  position: relative;
}
.navbar.fixed-top{
  height: 60px;
}
.navbar h3{
  margin-bottom: 0px;
  color: #4d4d4d;
}
.btn-logout{
  border: 1px solid #093A69;
  color: #093A69;
  padding: 4px 16px;
  font-weight: bold;
  font-size: 14px;
}
.btn-logout:hover{
  background: #093A69;
  color: #ffffff;
}
.nav-news{ position: relative;}
.nav-news a i{ font-size: 22px; color: #707070;}
.nav-news .news-badge{
  position: absolute;
  top: 0px;
  right: 4px;
  background: #DC3545;
  font-size: 12px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
}
.news-badge-sm{
  display: inline-block;
  background: #DC3545;
  font-size: 12px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #ffffff;
  border-radius: 50%;
  opacity: 0.8;
}
.navbar .dropdown .nav-photo,
.nav-wrapper .nav-photo div{
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: url("../images/photo03.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nav-wrapper .nav-photo{
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #093A69;
  padding: 2px;
}
.nav-wrapper .nav-photo div{
  width: 60px;
  height: 60px;
}
.nav-ul{ flex: 1 0 auto;}
.nav-search{
  display: flex;
}
.nav-search.show-search{
  display: flex;
  position: absolute;
  top: 64px;
  left: 0px;
  width: calc(100% - 8px);
  margin: 0 0 0 4px;
  box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.2);
}
.navbar .dropdown-menu{
  top: 50px;
  padding: 0px;
}
.navbar .dropdown-menu a.dropdown-item{
  padding: 8px 16px;
}
/* mega menu*/
.mega-nav{ flex:0 0 80px;}
.mega-container{
  height: 60px;
  line-height: 60px;
}
.mega-container *{
  line-height: 1.5;
}
.mega-container > ul {
  min-height: 400px;
  width: 500px;
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 300ms ease-in-out 500ms;
  transition: all 300ms ease-in-out;
  background: #ffffff;
  border:1px solid #dddddd;
}
.mega-container:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
  transition: all 300ms ease-in-out;
}

.mega-container .mega-title {
  width: 200px;
  border-right: 1px solid #dddddd;
}
.mega-container .mega-title > a{
  padding: 10px;
  display: block;
  position: relative;
}
.mega-container .mega-title > a:after{
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: 10px;
  left: 180px;
  font-size: 13px;
  color: #aaaaaa;
}
.mega-container .mega-title > ul {
  display: none;
  position: absolute;
  top: -1px;
  left: 199px;
  width: 300px;
  border-left: 1px solid #dddddd;
}
.mega-container .mega-title.show ul{
  display: block;
}
.mega-container ul a{
  padding:8px 10px;
  font-size: 15px;
  text-decoration:none;
  color: #4d4d4d;
  display:block;
}
.mega-container .mega-title ul a{
  font-size: 14px;
  padding:4px 10px;
}
.mega-container ul a:hover{
  background-color:rgba(0,0,0,0.15);
}
.mega-subtitle{
  margin: 5px 10px 0px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dddddd;
}

/* Multi-Level push menu */
.nav-wrapper {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 300px;
  height: 100vh;
  transition: transform 0.3s;
  transform: translateX(100%);
  z-index: 999;
}
.nav-wrapper.show-menu{
  transform: none;
}
.nav-wrapper.show-menu .bg-overly{
  margin: 0px;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0px;
  left: 0px;
  background: rgba(0,0,0,0.5);
  z-index: 997;
}
.js-nav-toggle{
  position: absolute;
  top: 0;
  left: -50px;
  width: 33px;
  height: 30px;
  margin: 15px 4px;
  display: block;
  padding: 0px;
  color: #707070;
  border: 2px solid #707070;
}
.nav-wrapper.show-menu .js-nav-toggle{
  left: 100%;
}
.nav-wrapper .js-nav-close{
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 33px;
  height: 30px;
  margin: 15px 8px;
  padding-top: 2px;
  z-index: 999;
  border-bottom-width: 0px;
}
.nav-wrapper .js-nav-close:hover{
  background: #093A69;
}
.nav-wrapper.show-menu .js-nav-close{
  display: block;
}
.js-nav-toggle span,
.js-nav-close span{
  position: relative;
  background-color: #707070;
  height: 2px;
  display: block;
  width: 18px;
  margin: 12px auto 0;
  transition: all 0.4s;
  transition-delay: 0.3s;
}
.js-nav-toggle span:before,
.js-nav-toggle span:after,
.js-nav-close span:before,
.js-nav-close span:after {
  content: "";
  position: absolute;
  display: block;
  width: 16px;
  height: 0;
  left: 1px;
  top: 50%;
  margin-top: -7px;
  transition: all 0.3s 0.3s;
}
.js-nav-toggle span:before,
.js-nav-close span:before{
  box-shadow: 0 14px 0 1px #707070;
}
.js-nav-toggle span:after,
.js-nav-close span:after {
  box-shadow: 0 0 0 1px #707070;
}
.js-nav-close span {
  background-color: transparent;
}
.js-nav-close span:before {
  transform: rotate(-45deg);
}
.js-nav-close span:after {
  transform: rotate(45deg);
}
.js-nav-close span:before, .js-nav-close span:after {
  margin-top: 0;
  box-shadow: 0 0 0 1px #ffffff;
}

.side-nav {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #fafafa;
  z-index: 998;
}
.nav-wrapper.show-menu .side-nav{
  box-shadow: 0 0 5px 1px rgba(0,0,0,0.2);
}
.side-nav .nav-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 8px;
  background-color: #093A69;
  color: #ffffff;
  z-index: 998;
  cursor: pointer;
  transition: backgroun-color 0.2s;
}
.side-nav .nav-toggle.back-visible .nav-back {
  opacity: 1;
}
.side-nav .nav-toggle.back-visible .nav-title {
  padding-left: 48px;
}
.side-nav .nav-title {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 20px;
  transition: transform 0.3s;
  width: 250px;
  display : inline-block;
  overflow : hidden;
  text-overflow : ellipsis;
  white-space : nowrap;
}
.side-nav .nav-back {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 30px;
  vertical-align: middle;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s;
}
.side-nav .nav-back:before, nav .nav-back:after {
  content: "";
  position: absolute;
  top: 50%;
}
.side-nav .nav-back:before {
  left: 50%;
  width: 9px;
  height: 9px;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: translate(-50%, -50%) rotateZ(-45deg);
}
.side-nav .nav-back:after {
  left: 28%;
  width: 15px;
  height: 2px;
  background-color: currentcolor;
  margin-top: -1px;
}

.side-nav a {
  display: block;
  position: relative;
  padding: 0.7em;
  border-bottom: 1px dashed #eee;
  color: #707070;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.side-nav a.logout,.side-nav a.login{
  border-bottom-width:0px;
}
.side-nav a:hover {
  color: #333;
  background-color: #efefef;
}
.side-nav ul {
  list-style: none;
  padding: 60px 0px 0px 0px;
  transition: transform 0.3s;
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
}
.side-nav ul ul {
  display: none;
  left: 100%;
}
.side-nav li.has-dropdown > a {
  padding-right: 2.5em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.side-nav li.has-dropdown > a:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1em;
  width: 9px;
  height: 9px;
  border: 1px solid currentcolor;
  border-left-color: transparent;
  border-top-color: transparent;
  transform: translateY(-90%) rotateZ(-45deg);
  transition: transform 0.3s;
  transform-origin: 100%;
}
.side-nav li.nav-dropdown-open ul {
  display: block;
}
.footer{
  background: #3C3C3C;
  font-size: 14px;
  padding: 20px;
}
@media screen and (max-width:991.9px){
  .navbar h3{
    font-size: 20px;
  }
  #navbar-course{
    position: absolute;
    top: 61px;
    right: 0;
    z-index: 99;
    width: 100%;
  }
  .navbar-nav{
    background: #ffffff;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.1);
  }
  .btn-logout{
    border-width: 0px;
    font-size: 16px;
    color: #707070;
  }
  .btn-logout:hover{
    background: #ffffff;
    color: #707070;
  }
  .nav-search{
    display: none;
  }
}
@media screen and (max-width:388.9px){
  .navbar-brand{ margin-right: 5px;}
  .navbar-brand img{ width: 50px;}
  .navbar-brand h3{ font-size: 18px;}
}
/* ----------------- login page ----------------- */
.login-container{
  background: #F5F8FB;
  display: flex;
  align-items: center; 
}
.login-panel h1:after {
  content: " ";
  display: table;
  border-radius: 4px;
  background: #14bdcc;
  width: 80px;
  height: 3px;
  margin: 8px auto 12px auto;
}
.login-panel{
  background: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #eaedf2;
  box-shadow: 0 2px 18px rgb(0 0 0 / 2%);
}
.login-img{
  margin-right: -20px;
  text-align: center;
}
.login-panel .form-label{
  color: #4A5073;
}
.login-panel .input-group .form-control:not(:first-child) {
  border-left: 0;
  padding-left: 0;
}
.prompt-text{
  color: #aaaaaa;
  font-size: 14px;
}
.error-prompt{
  padding: 16px;
  background-color: #f2dede;
  border: 1px solid #ebccd1;
  font-size: 15px;
  margin-bottom: 24px;
}
.btn-login{
  color: #ffffff;
  background-color: #262B40;
  padding: 0.55rem 0.75rem;
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), 0 1px 1px rgb(46 54 80 / 8%);
}
.btn-login:hover{
  color: #ffffff;
}
@media screen and (max-width:767.9px){
  .login-img img{
    width: 100%;
    max-width: 270px;
  }
}
@media screen and (max-width:575.9px){
  .login-img img{
    max-width: 170px;
  }
  .btn-login{
    padding: 0.45rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 15%), 0 1px 1px rgb(46 54 80 / 8%);
  }
}
/* ----------------- index ----------------- */

.index-carousel .carousel-caption{
  top: 50%;
  transform: translate(0%, -50%);
}
.index-carousel .carousel-caption h3,
.index-carousel .carousel-caption p{
  text-shadow: 1px 1px 2px #333;
}
.carousel-control-prev,
.carousel-control-next{
  text-decoration: none;
  width: 10%;
}
.carousel-control-prev .fas,
.carousel-control-next .fas{
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #ffffff;
}

.block-title{
  border-bottom: 1px dotted #dddddd;
}
.block-title .btn{
  font-size: 15px;
  line-height: 15px;
  padding: 8px 20px;
}
.free-container{
  background: #FAFAFA;
}


/* ----------------- course list ----------------- */

.search-course,
.search-course .form-control,
.search-course .input-group-text{
  border-radius: 0.25rem;
}
.search-course.search-pill,
.search-course.search-pill .form-control,
.search-course.search-pill .input-group-text{
  border-radius: 40px;
}
.search-course .input-group-text{
  padding: 9px;
  border-left-width: 0px;
}
.search-course.search-pill .input-group-text{
  padding-right: 16px;
}
.search-course .form-control{
  padding: 9px;
  border-right-width: 0px;
}
.search-course.search-pill .form-control{
  padding-left: 16px;
}
.card-course .card-body{
  padding: 1rem 1rem 0.5rem 1rem;
}
.card-course .card-footer{
  background: #ffffff;
  border-top-width: 0px;
  padding: 0.25rem 1rem 1rem 1rem;
}
.card-course .card-img-container{
  width: 100%;
  height: 200px;
}
.card-course .course-img,
.card-profile .course-img{
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat:no-repeat;
  background-size: cover;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}
.card-course .card-title{
  font-size: 17px;
  font-weight: 600;
  color: #4d4d4d;
  text-decoration: none;
  margin-bottom: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-course .card-text{
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: #707070;
}
.card-course .card-stu{
  color: #707070;
  font-size: 14px;
  margin-bottom: 0px;
}
.card-course .progress-text{
  color: #707070;
  font-size: 12px;
  width: 40px;
  display: inline-block;
  vertical-align: middle;
}
.card-course .progress{
  display: inline-block;
  width: calc(100% - 50px);
  height: 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin: 0;
}
.card-course .progress-bar{
  border-radius: 5px;
  height: 5px;
  background-color: #38c0da;
}
.card-course .card-price{
  text-align: right;
  color: #FA6717;
  font-size: 27px;
  font-weight: bold;
}
.card-course .card-price span{
  font-size: 20px;
}
.card-course .card-price .del-price{
  text-decoration: line-through;
  color: #aaaaaa;
  font-weight: normal;
}
@media (max-width:1199.9px) and (min-width: 992px){
  .card-course .card-img-container{
    height: 230px;
  }
}
@media (max-width:991.9px) and (min-width: 768px){
  .card-course .card-img-container{
    height: 300px;
  }
}
@media (max-width:575.9px) and (min-width: 490px){
  .card-course .card-img-container{
    height: 350px;
  }
}
@media (max-width:489.9px) and (min-width: 375px){
  .card-course .card-img-container{
    height: 250px;
  }
}
@media screen and (max-width: 767.9px){
  .card-course .card-price{
    font-size: 22px;
  }
  .card-course .card-price span{
    font-size: 17px;
  }
}

/* ----------------- 系統公告 ----------------- */
.page-title{
  position: relative;
}
.page-title:after{
  content: "";
  height: 2px;
  width: 80px;
  background: #38C0DA;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform:translateX(-50%);
}
.news-h5{
  font-weight: bold;
  font-size: 24px;
  color: #093A69;
  text-align: center;
  padding: 12px;
}
.news-h5 span{display: block;}
.news-container{
  flex: 1;
}
.news-container .news-content{
  padding: 8px;
  border-bottom: 1px dashed #dddddd;
}
.news-container.news-list .news-content{
  padding: 12px 8px;
}
.news-container .news-content:first-child{
  border-top: 1px dashed #dddddd;
}
.news-content .new-sort{ flex: 0 0 60px;}
.news-content .news-title{ flex: 1;}
.news-content .news-date{ 
  flex: 0 0 110px; 
  text-align: center;
  font-size: 0.9rem;
  color: #707070;
}
.new-sort span{ 
  padding: 2px 8px; 
  color: #ffffff;
  font-size: 14px;
}
.sort-important{ background: #F24030;}
.sort-normal{ background: #0DCAF0;}
.news-content .news-title a{ 
  text-decoration: none;
  color: #4d4d4d;
  font-size: 16px;
  font-weight: bold;
  line-height: 24px;
  text-align: justify;
  margin-bottom: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.news-content .news-title a:hover{ 
  opacity: 0.8;
}
#news-content p{ text-align: justify;}
@media screen and (max-width: 767.9px) {
  .news-content .news-title a{
    font-size: 0.95rem;
    line-height: 1.2rem;
  }
}
@media screen and (max-width: 575.9px) {
  .news-h5{ 
    flex:0 0 100%; 
    text-align: left;
    padding: 12px 0px;
    font-size: calc(1.3rem + .6vw);
  }
  .news-h5 span{ display: inline-block;}
  .news-container .news-content{ padding: 8px 4px; flex-wrap: wrap;}
  .news-content .new-sort{ flex: 0 0 55px;}
  .news-content .news-title{
    flex: 0 0 calc(100% - 55px);
  }
  .news-content .news-date{
    flex: 0 0 100%;
    padding-left: 55px;
    text-align: left;
    margin-top: 2px;
  }
}
/* ----------------- category ----------------- */
.header-banner{ background: #093B67;}
.header-banner .breadcrumb a{
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  padding-right: 5px;
}
.header-banner .breadcrumb a:after{
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  padding-left: 5px;
}
.header-banner .breadcrumb a:last-child:after{
  display: none;
}
.header-banner img{
  max-height: 230px;
}
/* ----------------- profile ----------------- */
.card-profile .card-body{
  padding: 1.5rem;
  height: calc(100% - 69px);
  background: #fafafa;
}
.card-profile .card-footer{
  background: #fafafa;
  padding: 15px;
}
.card-profile .card-img-container{
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.card-profile .course-img{
  border-top-left-radius: calc(0.25rem - 1px);
  border-bottom-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: 0px;
}
.card-profile .card-title{
  font-weight: 600;
  color: #4d4d4d;
}
.card-profile .card-text{
  margin-top: 4px;
  font-size: 15px;
  line-height: 20px;
  color: #707070;
}
.card-profile .card-info{
  line-height: 26px;
  color: #4d4d4d;
  text-align: justify;
}
/* TAB 課程介紹 */
.profile-tab{
  background: #ffffff;
  border: 1px solid #dddddd;
}
.profile-tab .nav{
  flex-wrap: nowrap;
  justify-content: space-between;
}
.profile-tab .nav-item{
  flex: 1;
  text-align: center;
}
.profile-tab .nav-link{
  font-size: 20px;
  color: #4d4d4d;
  font-weight: bold;
  padding: 12px 20px;
}
.profile-tab .nav-link:hover,
.profile-tab .nav-link.active{
  color: #38C0DA;
  border-bottom: 2px solid #38C0DA;
}
.profile-tab .tab-content{
  border-top: 1px solid #dddddd;
  padding: 2.5rem;
}
.profile-tab .tab-content p{
  color: #707070;
  line-height: 30px;
  text-align: justify;
  font-size: 16px;
  margin-bottom: 1rem;
}
/* TAB 課程公告 */
.accordion-notice .accordion-item{
  margin-bottom: 24px;
  border: 1px solid #dddddd;
}
.accordion-flush .accordion-item:first-child {
  border-top: 1px solid #dddddd;
}
.accordion-flush .accordion-item:last-child {
  border-bottom: 1px solid #dddddd;
}
.accordion-notice .accordion-button{
  background-color: #f6f6f6;
  border-width: 0px;
  color: #707070;
  font-weight: bold;
  outline: none;
  box-shadow: none;
  text-align: left;
  padding: 0.75rem 1rem;
  align-items: flex-start;
  line-height: 24px;
}
.accordion-notice .accordion-button .sort-important,
.accordion-notice .accordion-button .sort-normal{
  flex: 0 0 50px;
  font-size: 0.9rem;
  color: #ffffff;
  text-align: center;
  margin-right: 4px;
  height: 20px;
  line-height: 20px;
  margin-top: 2px;
}
.accordion-notice .accordion-button .sort-important{
  background: #F24030;
}
.accordion-notice .accordion-button .sort-normal{
  background: #0DCAF0;
}
.accordion-notice .accordion-button.show::after{
  background: #093A69;
  margin-top: 4px;
}
.accordion-notice .accordion-body{
  background: #ffffff;
}
/* TAB 課程章節 */
.chapter .ch-title{
  font-weight: bold;
  color: #093A69;
  margin-bottom: 24px;
}
.ch-list{
  padding: 12px 0;
  border-top: 1px solid #D3DEE5;
}
.ch-list:hover{ background: #F6F6F6;}
.chapter .ch-list:last-child{
  border-bottom: 1px solid #D3DEE5;
}
.ch-list .ch-number,
.ch-list .ch-name a,
.ch-list .ch-name,
.ch-list .ch-time{
  color: #707070;
}
.ch-list .ch-number{
  width: 60px;
  text-align: center;
}
.ch-list .ch-name{
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
}
.ch-list .ch-name a{text-decoration: none;}
.ch-list:hover .ch-name,.ch-list:hover .ch-name a{color: #093A69;}
.ch-list .ch-name .sub-name{
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  text-overflow: ellipsis;
  word-break: break-all;
  overflow: hidden;
  display: -webkit-box;
  display: -moz-box;
  -webkit-line-clamp: 2;
  -moz-line-clamp: 2;
  line-clamp: 2;
}
.ch-list .ch-name .ch-desc{
  font-size: 0.9rem;
  color: #7a7a7a;
}
.ch-list .ch-download{ width: 25px;}
.ch-list .ch-status{
  font-size: 13px;
  width: 110px;
  text-align: center;
}
.ch-list .text-status{ margin-left: 4px;}
.status-finish{ 
  color: #0DCAF0; 
  border: 1px solid #0DCAF0;
  font-size: 12px;
  border-radius: 20px;
  padding: 2px 4px;
  margin-bottom: 4px;
}
.status-ing{ color: #DC3545;}
.status-not{ color: #aaaaaa;}
.ch-list .ch-time{
  width: 85px;
  text-align: center;
}
/* TAB 課程學生清單 */
.stu-list{
  padding: 4px 0px;
  color: #707070;
}
.stu-list .stu-name{
  width: 170px;
}
.stu-list .stu-ch{
  width: 80px;
  text-align: center;
}
.stu-list .stu-time{
  width: 100px;
  text-align: center;
}
.stu-list .progress{
  height: 6px;
}
.stu-list .progress-bar{
  background: #FFC107;
}
/* TAB 問題討論 */
.discuss-container{
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
}
.discuss-content{
  padding: 16px;
  border-bottom: 1px solid #dddddd;
}
.discuss-body{ display: none;}
.discuss-content.toggled .discuss-body{
  display: block;
}
.discuss-content .form-control,
.discuss-new .form-control{
  border-radius: 0px;
  min-height: 24px;
  padding: 0.375rem 0.75rem;
}
.discuss-content .discuss-upload{
  margin-top: -1px;
}
.photo-content{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #dddddd;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.text-break{
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.discuss-content.toggled .text-break{
  -webkit-line-clamp: 10;
}
.discuss-header .discuss-photo{
  flex:0 0 60px;
}
.discuss-header .discuss-faq{
  flex:1;
}
.discuss-header .discuss-faq .discuss-title{
  margin-bottom: 0px;
  color: #4d4d4d;
  font-size: 17px;
  font-weight: bold;
  line-height: 24px;
}
.discuss-header .discuss-faq span,
.discuss-body .faq-comment span{
  font-size: 13px;
  color: #707070;
  vertical-align: middle;
}
.discuss-header .discuss-num{
  flex:0 0 60px;
  text-align: center;
  font-size: 13px;
  color: #707070;
}
.discuss-header .discuss-num p{
  margin-bottom: 0px;
  color: #093A69;
  font-size: 30px;
  text-align: center;
}
.discuss-body{
  padding: 12px 60px;
}
.discuss-body .faq-content,
.discuss-body .faq-content p,
.discuss-body .faq-comment,
.discuss-body .faq-comment p{
  color: #4d4d4d;
  font-size: 16px;
  margin-bottom: 0px;
  line-height: 28px;
  text-align: justify;
}
.discuss-body .faq-comment .comment-content{
  padding-left: 60px;
}
.discuss-new{
  background: #fafafa;
  border: 1px solid #dddddd;
}
.discuss-new .new-title{ font-size: 18px;}
.discuss-new .new-title:after{
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f078";
  font-size: 16px;
  margin-left: 8px;
}
.discuss-new.toggled .new-title:after{
  content: "\f077";
}
.discuss-new .new-body{display: none;}
.discuss-new.toggled .new-body{display: block;}

@media screen and (max-width: 767.9px){
  .profile-tab .nav-link{
    font-size: 18px;
    padding: 12px 16px;
  }
  .card-profile .course-img{
    border-top-left-radius: calc(0.25rem - 1px);
    border-bottom-left-radius: 0px;
    border-top-right-radius: calc(0.25rem - 1px);;
  }
  .card-profile .card-img-container{ min-height: none;}
  .discuss-body{ padding: 12px 16px;}
  .discuss-body .faq-comment .comment-content{
    padding-left: 0px;
  }

}
@media screen and (max-width: 575.9px){
  .card-profile .card-body{
    padding: 16px 12px;
    height: auto;
  }
  .card-profile .card-footer{
    padding: 12px;
  }
  .card-profile .card-footer a{
    margin: 2px auto;
  }
  .profile-tab .tab-content{
    padding: 2rem 1rem;
  }
  .profile-tab .tab-content p{
    font-size: 15px;
    line-height: 24px;
  }
  .text-mobile{
    display: block;
  }
  .card-profile .card-info{
    font-size: 15px;
    line-height: 22px;
  }
  .profile-tab .nav-link{
    font-size: 17px;
    padding: 12px 4px;
  }
  .accordion-notice .accordion-button{
    flex-wrap: wrap;
  }
  .accordion-notice .accordion-btn-title{
    margin: 4px 0px;
    flex: 0 0 calc(100% - 24px);
  }
  .accordion-notice .accordion-button div{
    width: 50px;
  }
  .chapter .ch-title{ font-size: 19px;}
  .ch-list{ padding: 8px 0;}
  .ch-list .ch-number,
  .ch-list .ch-name a{
    font-size: 15px;
  }
  .ch-list .ch-number{
    width: 40px;
    font-size: 13px;
    text-align: left;
    display: none;
  }
  .ch-list .ch-time{
    width: 60px;
    font-size: 13px;
  }
  .ch-list .ch-status{
    width: 28px;
    order: 4;
  }
  .status-finish{ border-width: 0px; margin-bottom: 0px;}
  .ch-list .text-status{ display: none;}
  .stu-list{ font-size: 15px;}
  .stu-list .stu-name{ width: 110px;}
  .stu-list .stu-time{ font-size: 13px;}
  .discuss-content{ padding: 12px;}
  .discuss-body{ padding: 12px 0px;}
  .discuss-header .discuss-faq .discuss-title{ font-size: 16px;}
  .photo-content{
    width: 40px;
    height: 40px;
  }
  .discuss-body .faq-content,
  .discuss-body .faq-content p,
  .discuss-body .faq-comment,
  .discuss-body .faq-comment p{
    font-size: 15px;
    line-height: 24px;
  }
  .discuss-header .discuss-photo{
    flex:0 0 45px;
  }
  .discuss-header .discuss-num{
    flex:0 0 40px;
  }
  .discuss-header .discuss-num p{
    font-size: 20px;
  }
}
@media screen and (max-width: 441.9px){
  .stu-list .stu-name{
    flex-grow:1;
  }
  .stu-list .stu-progress{
    display: none;
  }
}


/* ----------------- player ----------------- */
.player-container{
  height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  background: #000000;
}
.player-bar{
  background: #093A69;
  height: 60px; 
}
.player-bar .course-name{
  font-size: 20px;
  line-height: 60px;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.player-bar .player-back a{
  text-decoration: none;
  color: #ffffff;
  line-height: 60px;
  padding: 0px 8px;
}
#menu-toggle{
  background: #093A69;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 14px;
  margin: 4px;
}
.video-container{
  position: relative;
  display: block;
  text-align: center;
  margin: 0 auto;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
#player-container.toggled .video-container{
  padding-right: 350px;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.video{
  padding: 40px;
  max-height: calc(100vh - 60px);
}
.player-list{
  position: fixed;
  top: 60px;
  right: 0px;
  width: 0px;
  /*flex: 0 0 350px;*/
  height: calc(100vh - 60px);
  overflow-y: scroll;
  background: #000000;
  color: #aaaaaa;
  border-left: 4px solid rgba(255,255,255,0.2);
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}
#player-container.toggled .player-list{
  position: fixed;
  right: 350px;
  width: 350px;
  margin-right: -350px;
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}
.player-list .ch-submenu{
  padding: 20px 8px;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 18px;
  background: #212a34;
  text-align: left;
  border-radius: 0px;
}

.player-list .player-ch{
  border-bottom: 2px solid #000000;
  padding: 8px 4px;
  background: rgba(34,34,34,0.7);
}
.player-list .player-ch:hover,
.player-list .player-ch.active{
  background: rgba(34,34,34,1);
}
.player-list .player-ch p{
  margin: 4px;
}
.player-list .player-ch .player-icon{
  flex: 0 0 30px;
  text-align: center;
  padding: 4px;
}
.player-list .player-ch .player-time{
  font-size: 13px;
  color: #707070;
}
.btn-download button{ /* 20210421 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* SCROLLBAR*/
.player-list::-webkit-scrollbar-track{
  background-color: rgba(255,255,255,0);
}
.player-list::-webkit-scrollbar{
  width: 8px;
  background-color: rgba(255,255,255,0);
}
.player-list::-webkit-scrollbar-thumb{
  border-radius: 8px;
  background-color: rgba(255,255,255,0.5);
}
@media screen and (max-width: 575.9px){
  #player-container.toggled .player-list{
    width: 100%;
  }
  .player-list .ch-submenu{
    font-size: 16px;
  }
  .player-list .player-ch{
    font-size: 15px;
  }
}
@media screen and (max-width: 320px){
  .player-bar .course-name,
  .player-bar .back-text{
    display: none;
  }
}


/* ----------------- 帳號設定 ----------------- */
.header-bg{
  position: relative;
  background: url("../images/banner01.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 160px;
}
.header-bg h2{
  line-height: 160px;
}
.sort-tabs .nav-item{ margin: 0px 2px;}
.nav-pills.sort-tabs .nav-link{
  border: 1px solid #38C0DA;
  border-radius: 40px;
  color: #38C0DA;
  padding: 8px 16px;
}
.nav-pills.sort-tabs .nav-link.active, 
.nav-pills.sort-tabs .show>.nav-link,
.nav-pills.sort-tabs .nav-item:hover .nav-link{
  color: #fff;
  background-color: #38C0DA;
}
.photo-container{
  position: relative;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  border: 2px solid #093A69;
  padding: 4px;
}
.circle {
  border-radius: 50%;
  overflow: hidden;
  width: 160px;
  height: 160px;
  background: url("../images/photo03.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-upload{ display: none;}
.upload-button{
  position: absolute;
  bottom: 8px;
  right: 0px;
  color: #ffffff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background-color: #38C0DA;
  border-radius: 50%;
  opacity: 0.9;
  font-size: 15px;
}
.upload-button:hover{
  opacity: 1;
}
@media screen and (max-width: 575px) {
  .nav-pills.sort-tabs .nav-item{
    flex: 1 1 auto;
    text-align: center;
    margin: 4px 2px;
  }
  .nav-pills.sort-tabs .nav-link{ 
    padding: 4px;
  }
  .header-bg{
    height: 120px;
  }
  .header-bg h2{
    line-height: 120px;
  }
}
/* ----------------- 訂單資訊 ----------------- */
.table-detail{ 
  font-size: 0.95rem;
  color: #555555;
}
.table-detail thead{
  clip: rect(0 0 0 0);
  height: 1px;
  margin: 0px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.table-detail tbody tr:first-child{
  border-top-width: 1px;
}
.license{ 
  font-size: 0.9rem;
  color: #707070;
}
.license .fa-level-up-alt{ transform: rotateZ(90deg);}
.detail-course{
  font-size: 0.95rem;
  line-height: 30px;
  color: #4d4d4d;
  font-weight: bold;
}
.table-order,.table-order td{ 
  font-size: 0.9rem;
  text-align: center;
}
.table-order td{
  border-bottom-color: #eeeeee;
  padding: 12px 4px;
}
.table-order thead tr th,
.table-detail thead tr th{
  border-bottom-width: 0px;
  padding: 16px 8px;
  color: #555555;
}
.table-order .th-date,
.table-order .th-paid,
.table-order .th-price,
.table-order .th-status{ 
  min-width: 80px;
}
.table-order .th-serial,
.table-order .th-info{
  width: 90px;
  min-width: 90px;
}
.btn-order{
  display: block;
  color: #ffffff;
  background: #38C0DA;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 16px;
  text-align: center;
}
.btn-order:hover{
  color: #ffffff;
  opacity: 0.9;
}
@media screen and (max-width: 767.9px) {
  .table-order thead{
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  .table-order td:before{
    content: attr(data-label);
    display: flex;
    flex: 0 0 80px;
    text-transform: uppercase;
    color: #555555;
    font-weight: bold;
  }
  .table-order tbody tr{
    display: block;
    margin-bottom: 28px;
  }
  .table-order tbody tr:last-child{
    margin-bottom: 0px;
  }
  .table-order tbody td{ 
    display: flex;
    flex-wrap: wrap;
  }
  .table-order tbody td:first-child{ 
    background: #F8F9FA;
    align-items: center;
    padding: 0.5rem;
    border-bottom-width: 0px;
  }
  .table-order tbody td:nth-child(5){ 
    border-bottom-width: 0px;
  }
  .table-order tbody td:last-child{ 
    border-bottom-width: 0px;
    justify-content: center;
    padding: 0.5rem 0;
  }
  .table-order tr td:last-child:before{
    display: none;
  }
  .btn-order{
    width: auto;
    height: auto;
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 2px 16px;
    width: 100%;
  }
}
@media screen and (max-width: 575.9px) {
  .table-detail tbody td{ 
    display: flex;
    flex-wrap: wrap;
    border-bottom-width: 0px;
  }
  .table-detail tbody td:last-child{
    border-bottom-width: 1px;
    justify-content: flex-end;
  }
  .license{ 
    width: 100%;
  }
}
/* ----------------- 購物車 ----------------- */
.cart-list{
  background: #ffffff;
  margin: 16px 0px;
  padding: 16px 0px;
}
.cart-list .cart-img{ 
  flex:0 0 180px;
  height: 100px;
  overflow: hidden;
}
.cart-list .cart-img img{ min-height: 60px;}
@media screen and (max-width: 575.9px) {
  .cart-list{ 
    flex-wrap: wrap;
    padding: 16px 0px 8px 0px;
  }
  .cart-list .cart-img{ 
    flex:0 0 140px;
    height: 85px;
  }
  .cart-course{
    flex: 1 1 calc(100% - 140px);
  }
  .cart-cancel{
    width: 100%;
    text-align: right;
    border-top: 1px solid #dddddd;
    margin-top: 12px;
    padding-top: 8px;
  }
}
@media screen and (max-width: 319.9px) {
  .cart-list .cart-img{ 
    flex:0 0 100%;
    height: auto;
    padding: 0px 16px;
  }
  .cart-course{
    flex: 1 1 100%;
    margin: 8px 0px;
  }
}
/* ----------------- 訂單完成 ----------------- */
.completed-icon{
  font-size: 60px;
}
.zigzag{
  position:relative;
  background-color: #ffffff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}
.zigzag:after{
  background: linear-gradient(
    -45deg, 
    #ffffff 16px, 
    transparent 0
  ), 
  linear-gradient(
    45deg, 
    #ffffff 16px, 
    transparent 0
  );
  background-repeat: repeat-x;
  background-size: 24px 24px;
  content: " ";
  display: block;
  position: absolute;
  bottom: -24px;
  left: 0px;
  width: 100%;
  height: 24px;
  transform: rotate(180deg);
}
figure > img {
  width: 100%;
}
.label {
  cursor: pointer;
}
.progress {
  display: none;
  margin-bottom: 1rem;
}
.alert {
  display: none;
}
.img-container img {
  max-width: 100%;
}
/* ----------------- 404 20210901新增 ----------------- */
.notfound-404 .position-absolute{
  overflow: hidden;
  z-index: -1;
}
.notfound i{ font-size: 160px;}
.notfound p{ font-size: 18px;}
.notfound h1{
  font-family: maven pro, sans-serif, Arial;
  color: #ececec;
  font-weight: 900;
  font-size: 300px;
}
.notfound-404 .notfound-img{
  max-width: 400px;
}
@media screen and (max-width:767.9px){
  .notfound-404 h1{ font-size: 180px;}
  .notfound i{ font-size: 120px; flex: 0 0 100%;}
  .notfound p{ font-size: 16px;}
  .notfound-404{ flex-wrap:wrap;}
  .notfound-404 .notfound-img{
    width: 100%;
  }
}
