body {
    font-family: "Noto Sans TC", "微軟正黑體", "Open Sans", "Heiti TC", "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a {
    word-break: break-all;
}
.blog-row {
    display: block;
}

#index-blog .blog-row {
    display: flex;
}

.course-block .middle-title {
    line-height: 1.5;
}

.middle-title {
    margin-top: 0.5rem;
}

/*影片播放器*/
.video-js .vjs-play-progress:before {
    top: 0;
}

@media (max-width: 600px) {
    .aside-content {
        margin: 0;
    }

    .blog-row .img-fluid {
        width: 100%;
    }

    .middle-title {
        margin-top: 1rem;
    }
}

.navi-item ul li.dropdown a span::after {
    font-size: 0.8rem;
    position: relative;
    top: -3px;
}

/*CTA倒數導購*/
.cta-fix-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(238, 237, 235, .95);
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    padding: 16px 25px;
    z-index: 99;
    display: none;
    display: -ms-flexbox;
    -js-display: flex;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
}

.original-price {
    font-size: 0.8rem;
    text-decoration: line-through;
    padding-left: 5px;
}

@media all and (max-width: 479px) {
    .cta-fix-bottom {
        padding: 16px 15px;
    }
}

.cta-fix-bottom .cta-left {
    -ms-flex: 0 0 74%;
    flex: 0 0 74%;
    max-width: 74%;
    padding: 0 20px;
    font-weight: bold;
}

.cta-fix-bottom .cta-left .info-row {
    display: -ms-flexbox;
    -js-display: flex;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.cta-fix-bottom .cta-left .info-row.top {
    padding-bottom: 5px;
}

.cta-fix-bottom .cta-left .info-row.bottom {
    padding-top: 10px;
}

.cta-fix-bottom .cta-left .progress-counter>span {
    padding: 0 5px;
}

@media all and (max-width: 992px) {
    .cta-fix-bottom .cta-left {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 6px;
    }
}

.cta-fix-bottom .cta-right {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    text-align: right;
    padding: 0 20px;
}

.cta-fix-bottom .cta-right>.btn {
    margin-top: 0;
}


.cta-fix-bottom .cta-right>p {
    display: inline-block;
    margin-right: 10px;
    font-size: 1rem;
}

@media all and (max-width: 479px) {
    .cta-fix-bottom .cta-right>p {
        font-size: 12px;
    }

    .cta-fix-bottom .cta-right {
        padding-top: 10px;
    }
}

a .progress-info {
    display: flex;
    justify-content: space-between;
}

.course-content-nav {
    position: sticky;
    top: 0px;
    z-index: 1;
    padding: 0px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
}

.course-content-nav a {
    display: inline-block;
    padding: 14px 20px 10px 20px;
    margin: 0 5px;
    border-bottom: 4px solid transparent;
}

.course-content-nav a:hover {
    border-bottom: 4px solid;
}

.course-basic-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.course-basic-info {
    display: flex;
    align-items: center;
    padding: 10px 0;
    min-width: 220px;
}

.course-basic-info i {
    background: #333;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
}

.course-basic-info h4 {
    margin: 0 0 0 10px;
    font-size: 1rem;

}

.course-basic-info h4 b {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.collapse-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.collapse-icon:hover {
    text-decoration: none;
}

.collapse-icon i {
    font-size: 0.8rem;
    transform-origin: center;
    transition: all .3s ease-out;
    margin-left: 5px;
}

.collapse-icon[aria-expanded=false] i {
    transform: rotate(0deg);

}

.collapse-icon[aria-expanded=true] i {
    transform: rotate(180deg);
}

.middle-title.m0 {
    margin: 0;
}

.course-news-title.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f5f5;
}

.course-news-list {
    border-bottom: 1px dotted #ccc;
    padding: 10px 20px;
}

.modal-header {
    align-items: center;
}

.modal-header .h6 {
    margin: 0;
}

.modal-header .h6 small {
    display: block;
    margin-right: 10px;
    line-height: 2;
}

.chapter-info {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.chapter-info a {
    display: inline-block;
    padding: 0 10px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #999;
}

.chapter-unit-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 13px;
    border-bottom: 1px solid #f5f5f5;
}

.chapter-unit-text:hover {
    background-color: #fcfcfc;
}

.chapter-unit-text p {
    margin: 0;
    display: flex;
}

.chapter-unit-text span {
    color: #ccc;
    display: inline-block;
    min-width: 30px;
    text-align: center;
}

.chapter-list-video .modal-content {
    background-color: #000;
}

.chapter-list-video .modal-body {
    padding: 0;
}

.chapter-list-video .close {
    color: #fff;
    position: absolute;
    z-index: 99;
    top: -30px;
    right: 0px;
    opacity: 1;
}

.chapter-list-video .video-container {
    margin: 0;
    padding-top: 0;
    position: static;
}

.chapter-list-video .modal-dialog-scrollable .modal-content {
    overflow: visible;
}

.collapse-icon[aria-expanded=false] .chapter-info i {
    transform: rotate(0deg);
    color: #333;

}

.collapse-icon[aria-expanded=true] .chapter-info i {
    transform: rotate(45deg);
    color: #333;
}

.chapter-title-text {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    color: #333;
    border-radius: 8px;
    padding: 0 10px;
    font-weight: bold;
}

.chapter-title-text span {
    margin-right: 10px;
}

#chapter-list .card-header {
    padding: 0.75rem 10px 0.75rem 0;
}

#chapter-list .btn,
#qa-list .btn {
    padding: 0;
}

#qa-list .card-header {
    background: none;
    padding: 1rem 0;
    font-weight: bold;
}

#qa-list .card,
#chapter-list .card {
    margin-bottom: 10px;
}

#qa-list .card-body {
    padding: 1rem;
    font-size: 0.9rem;
    border-top: 1px solid #f5f5f5;
}
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 700px;
    }

    .chapter-list-video .modal-dialog {
        max-width: 1000px;
    }
}

:root {
    scroll-padding-top: 110px;
    scroll-behavior: smooth;
}

/* 課程內容 read more
.html-info-content {
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
}
.html-info-content .html-info {
    height: 400px;
    margin-bottom: 0;
  }
  
  
  #read-more {
    display: none;
  }
  
  #read-more + label {
    display: block;
    position: absolute;
    width: 100%;
    height: 150px;
    bottom: 0;
    left: 0;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 70%);
    pointer-events: none;
    margin: 0;
    z-index: 1;
  }
  
  #read-more + label::after {
    content: '更多內容';
    display: inline-block;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 14px;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, .2);
    cursor: pointer;
    pointer-events: auto;
    min-width: 180px;
    text-align: center;
  }
  
  #read-more + label:hover::after {
    background-color: #000;
  }
  
  #read-more:checked ~ .html-info {
    height: auto;
  }
  
  #read-more:checked + label::after {
    content: '收起內容';
  }
  #read-more:checked + label {
    background-image: none;
  }
    */

@media all and (max-width: 600px) {
    #chapter-list .card-header {
        padding: 4px 0;
    }

    #chapter-list .collapse-icon {
        flex-direction: column;
        align-items: flex-start;
    }

    .collapse-icon {
        font-size: 1rem;
    }

    .chapter-info {
        align-self: flex-end;
        margin: 5px 0;
        font-size: 0.9rem;
    }

    .chapter-unit-text {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .text-muted {
        display: inline-block;
        margin: 5px 0;
    }

    .course-content-nav {
        top: 65px;
    }

}

/*訂閱制方案*/

input[type=checkbox]#plan-switch {
    height: 0;
    width: 0;
    visibility: hidden;
}

label.plan-switch {
    cursor: pointer;
    width: 100px;
    height: 40px;
    background: #d69f35;
    display: block;
    border-radius: 50px;
    position: relative;
    margin: 20px auto;
}

label.plan-switch::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 40px;
    transition: 0.3s;
}

.switch-txt {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 40px;
    font-size: 0.9rem;
    padding: 0 5px;
}

.switch-txt::before,
.switch-txt::after {
    display: block;
    color: #fff;
    font-weight: bold;
    box-sizing: border-box;
    opacity: 0;
}

.switch-txt::before {
    content: attr(choosemoon);
}

.switch-txt::after {
    content: attr(chooseyear);
}

input#plan-switch:checked+label {
    background: #666;
}

input#plan-switch:checked+label .switch-txt::before {
    opacity: 1;
}

input#plan-switch:checked+label .switch-txt::after {
    opacity: 0;
}

input#plan-switch+label .switch-txt::after {
    opacity: 1;
}

label.plan-switch:active::after {
    width: 50px;
}

input#plan-switch:checked+label::after {
    left: calc(100% - 5px);
    transform: translateX(-100%);
}

.plan-features {
    align-items: stretch;
    justify-content: space-between;
}

.plan-features ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.plan-features h6 {
    display: none;
}

.plan-features .best-plan h6 {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: #d69f35;
    position: absolute;
    left: 10px;
    top: -18px;
    color: #fff;
}

.card-header.best-plan {
    background: #666;
    color: #fff;
}

.plan-features .card {
    padding-right: 0;
    padding-left: 0;
    max-width: 32%;
}

.plan-features li i {
    font-size: 0.8rem;
    color: #B93F23;
}

.plan-description {
    max-width: 800px;
    padding: 0px 10px;
    display: inline-block;
}

.plan-features .text-muted {
    font-size: 0.9rem;
    display: inline-block;
    margin-left: 5px;
}

.plan-features h3 {
    font-weight: bold;
    font-size: 2.4rem;
    margin-bottom: 0;
}

.plan-price-info {
    color: #999;
    text-align: center;
    font-size: 0.9rem;
}

.plan-price-info b {
    text-decoration: line-through;
    margin-right: 5px;
}

.number-font {
    font-family: "Heiti TC", "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.best-plan {}

@media all and (max-width: 700px) {

    .plan-features .card {
        max-width: 90%;
    }

    .plan-features {
        justify-content: center;
    }

}

/*訂閱專屬css*/
.members-only {
    background-color: #f0f0ef;
    border: 1px solid #dfdfdf;
    border-radius: 10px;
    padding: 30px 20px 15px;
    margin: 30px 0 20px;
    text-align: center;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.members-only::before {
    content: "訂閱專屬";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333333;
    color: white;
    padding: 4px 12px 4px 32px;
    font-size: 0.9em;
    border-radius: 20px;
    white-space: nowrap;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='16' height='16'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
    background-size: 16px;
    z-index: 1;
}

@media screen and (max-width: 480px) {
    .members-only {
        padding-top: 25px;
    }

    .members-only::before {
        top: -10px;
        font-size: 0.8em;
        padding: 3px 10px 3px 28px;
        background-size: 14px;
        background-position: 8px center;
    }
}

/*video 預覽圖*/
.intro_video_img {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-top: calc(1rem + 30px);
    background: #000;
}

.intro_video_img img {
    height: auto;
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

/*帳號註冊說明*/
.login-info {
    border-bottom: 1px solid #f2f2f2;
    line-height: 1.8;
}

/*BLOG TAG區塊加上捲軸*/
.tag-box {
    height: 40vh;
    overflow: auto;
    scrollbar-color: #f1f1f1 #fcfcfc;
    scrollbar-width: thin;
}

/* 對全頁做設定 */
html {
    scrollbar-color: #f1f1f1 #fcfcfc;
    scrollbar-width: thin;
}

/* 捲軸寬度及高度 */
.tag-box::-webkit-scrollbar {
    width: 4px;
    /*右側捲軸寬度*/
}

/* 軌道背景底色 */
.tag-box::-webkit-scrollbar-track {
    background: #fcfcfc;
}

/* 滑桿顏色 */
.tag-box::-webkit-scrollbar-thumb {
    background: #f1f1f1;
}

/* 滑桿滑鼠滑入時的顏色 */
.tag-box::-webkit-scrollbar-thumb:hover {
    background: #f1f1f1;
}

aside .tag-group .article-tag {
    background-color: #afafaf;
    color: #fff;
}

aside .tag-group .article-tag {
    margin-top: 10px;
    font-size: 0.8rem;
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px;
}

/*會員紀錄手機版顯示優化*/
@media screen and (max-width: 768px) {
    .order-row div[data-heading]:before {
        color: #757575;
        content: attr(data-heading);
        display: block;
        line-height: 1;
        margin-bottom: .25rem;
        text-align: left;
        word-break: normal;
        font-size: 0.9rem;
    }

    .order-title {
        display: none;
    }

    .order-row {
        text-align: left;
        background: #f5f5f5;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        line-height: 2;
        font-size: 1rem;

    }

    .order-row div {
        padding: 10px 0;
    }

    .order-row+.order-row {
        border-top: none;
    }
}
/*隱藏文章目錄數字*/
.article-category.no-number ol > li::before {
    content: " ";
    counter-increment: none;
}

/*404優化*/
section.style404 {
    padding-top:5rem;
    padding-bottom: 1.5rem;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}
.style404 .title {
    font-size:8rem;
    letter-spacing: 10px;
    line-height: 1.2;
    font-weight: bold;
	color:#999;
	padding-bottom: 1rem;
	margin-bottom: 1rem;
}
.style404 .title span {
    display:block;
    margin: 10px auto;
    font-size: 2rem;
    position: relative;
    left: 10px;
    letter-spacing: 20px;
}
.style404  .middle-title {
	line-height: 1.8;
}
@media (max-width: 768px) {
    section.style404 {
        padding-top: 2rem;
        height: 60vh;
        min-height: 400px;
    }
}
