:root {
    /*主色輔色 改色*/
    --main-color: #f4722a;
    --sub-color: #e6d0b7;
    --sub2-color: #97d6df;
    --sub3-color: #675845;

    /*勿動*/
    --white-color: #fff;
    --black-color:#1e1e1e;
}

.owl-theme .owl-nav [class*=owl-]:hover{
    background-color: var(--sub-color);
}
.owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev, .owl-carousel button.owl-dot{
    background-color: #0C2320;
    color: #eff4fe;
    width: 30px;
    height: 30px;
    margin: 0;
    border-radius: 0;
    font-size: 1.25rem;
    align-content: center;
}

.unit-title{
    font-family: "Noto Serif TC", serif;
}
.unit-title h2{
    font-size: 2.5rem;
}
.mbr-section-hidden{
    overflow: hidden;
}
.forpc{
    display: block;
}
.forphone{
    display: none;
}
@media (max-width: 768px) {
    .unit-title h2{
        font-size: 1.7rem;
    }
    .forpc {
        display: none;
    }
    .forphone{
        display: block;
    }
}

.navbar{
    background-color: #0C2320;
}
.nav-item a{
    color:var(--white-color);
    font-size: 1rem;
    line-height: 1rem;
    letter-spacing: 1px;
}
.nav-item a:hover{
    background:var(--sub3-color);
    border: solid 2px var(--sub3-color);
}
.btn-ticket{
    background-color: var(--main-color);
    color:  #0C2320;
    border: solid 2px var(--main-color);
    border-radius: 2rem;
    padding: 0.75rem 1rem !important ;
}
.btn-ticket:hover,nav .btn-ticket:focus {
    background-color: var(--main-color);
    color: var(--white-color);
    border: solid 2px var(--main-color);
}
nav .nav-link { margin-top: 0; margin-bottom: 0;}
nav .mainlogo {
    display: flex;
    align-items: center;
}
nav .mainlogo img {
    max-width: 160px;
    text-align: left;
    padding-right: 5px;
}
nav .mainlogo img.school {
    max-width: 180px;
}

@media (max-width: 768px) {
    nav .navbar-collapse{
        display: flex;
    }
    nav .navbar-collapse .navbar-nav{
        width: 100%;
    }
    nav .nav-item{
        justify-content: center;
    }
    .nav-item a {
        font-size: 1rem;
        line-height: 1rem;
        padding: 1.25rem 0;
    }
    .nav-item a .sm-txt, .nav-item p .sm-txt{
        font-size: 13px;
    }
    .navbar-toggler, .navbar-toggler:focus, .navbar-toggler:active{
        padding: 2px;
        border: 0px;
    }
    .navbar img{
        width: 130px;
    }
    nav .mainlogo img.school {
        max-width: 130px;
    }
    nav .mainlogo img {
        max-width: 90px;
        height: auto;
    }
}

/* main ---------- */
#main{
    background: url(../../images/bg-main.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: var(--main-color) 12px solid;
    overflow: hidden;
    position: relative;
    z-index: -2;
}
#main img.bg2{
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}
#main .d-flex {
    justify-content: end;
}
#main .liner {
    width: 80%;
}
#main .spk-img {
    max-width: 60%;
    z-index: 2;
}
#main img{
    filter: drop-shadow(0 25px 25px rgb(0 0 0));
}
#main .title{
    max-width: 600px;
    position: absolute;
    left: 0;
    top:8%;
    z-index: 1;
}
#main .sub{
    font-family: "Noto Serif TC", serif;
    color: #fff;
    line-height: 1.8;
    letter-spacing: 5px;
    font-weight: 600;
    position: absolute;
    left: 0;
    bottom:10%;
    z-index: 3;
}
#main .sub span{
    color: #f4722a;
}
@media (max-width: 1200px) {
    #main .title{
        max-width: 500px;
    }
    #main .sub{
        bottom:6%;
    }
    #main .title{
        top:0;
    }
}
@media (max-width: 992px) {
    #main .liner {
        width: 90%;
    }
    #main .title{
        max-width: 410px;
    }
    #main .sub {
        font-size: 1.1rem;
    }
}
@media (max-width: 768px) {
    #main .liner {
        width: 96%;
    }
    #main img.bg2{
        left: 8%;
    }
    #main .title{
        max-width: 300px;
    }
}
@media (max-width: 576px) {
    #main .sub {
        font-size: .9rem;
        line-height: 1.6;
        bottom: 2%;
    }
    #main .title{
        margin-top: -20px;
        max-width: 300px;
    }
    #main .spk-img {
        margin-right: -10%;
    }
}
@media (max-width: 414px) {
    #main .sub {
        font-size: .8rem;
    }
    #main .title{
        max-width: 230px;
    }
}


/* time ---------- */
#time{
    color: var(--black-color);
    background: #000;
    padding: 1rem;
}
#time h5.word{
    margin-bottom: 1rem;
    font-family: "Noto Serif TC", serif;
    padding: 0 .6rem;
    text-align: center;
}
#time .flex-l{
    flex-basis: 57%;
    background-color: var(--sub-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
#time .flex-r{
    flex-basis: 40%;
    background-color: var(--sub-color);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
#time input {
    background-color: var(--sub-color);
    border: none;
    color: var(--black-color);
    font-size: 2.6rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 70px;
    line-height: 1;
    margin: 0 .8rem;
}
#time .time-w {
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    padding: 10px .5rem;
}
#time .nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#time .flex-l .nav-item {
    display: none;
}
@media (max-width: 992px) {
    #time .flex-l, #time .flex-r{
        flex-direction: column;
        align-items: center;
    }
    #time h5.word {
        padding: 0 .3rem;
        margin: 0;
    }
    #time input {
        font-size: 2rem;
        margin: 0 .3rem;
    }
    #time .time-w {
        font-size: 2rem;
        padding: 10px .3rem;
    }
}
@media (max-width: 768px) {
    #time{
        position: fixed;
        bottom: 0;
        z-index: 99;
        padding: 0;
        width: 100%;
        background: var(--sub-color);
    }
    #time .flex-l{
        flex-direction: row;
        flex-basis: 100%;
        padding: 0.5rem 0;
        flex-wrap: wrap;
        margin: 0;
        border-radius: 0;
        justify-content:center;
    }
    #time h5.word{
        width: 100%;
    }
    #time .flex-l .nav-item {
        display: block;
    }
    #time .flex-r{
        display: none;
    }
    #time input {
        margin: 0 0rem;
        font-size: 1.5rem;
        padding: 4px 8px;
    }
    #time form p{
        margin: 0 0rem;
        font-size: .5rem;
    }
    #time form>div{
        margin: 0;
    }
    #time .btn-ticket{
        padding: 6px 12px !important;
    }
}
@media (max-width: 576px) {
    #time .flex-l h5.word{
        font-size: .9rem;
    }
    #time input {
        padding: 4px 0px;
    }
}

#mov{
    background: linear-gradient(10deg, #3d3c3b, #000);
    padding-top: 1rem;
    padding-bottom: 1rem;
}
#mov .unit-title{
    color: var(--white-color);
}

/* 課綱／議程[切換Tab式] */
#method{
    background: linear-gradient(180deg, #3d3c3b40, #0000007d),url(../../images/agenda.png);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Noto Serif TC", serif;
}
#method .unit-title{
    color: var(--white-color);
}

/*--講師陣容改色--*/
#lecturer {
    background: linear-gradient(60deg, #3d3c3b, #121111);
    color: var(--white-color);
    font-family: "Noto Sans TC";
    position: relative;
    padding-top: 5rem;
    padding-bottom: 5rem;
}
#lecturer .sp0 {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 400px;
    filter: saturate(40%);
}
#lecturer h2 {
    color: var(--sub-color);
    font-family: "Noto Serif TC", serif;
}
#lecturer .h5 {
    font-family: "Noto Serif TC", serif !important;
    font-weight: normal;
    line-height: 28px;
}
@media (max-width: 992px) {
    #lecturer .sp0 {
        left: 5%;
    }
}
@media (max-width: 768px) {
    #lecturer .sp0 {
        width: 380px;
    }
    #lecturer .col-md-7 .p{
        font-size: .9rem;
    }
}
@media (max-width: 576px) {
    #lecturer .sp0 {
        width: 320px;
        left: -5%;
    }
    #lecturer .col-md-7 .p{
        font-size: .85rem;
    }
}

/* 課綱／議程*/
#agenda{
    background: linear-gradient(30deg, #3d3c3b40, #0000007d),url(../../images/agenda.png);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Noto Serif TC", serif;
}
#agenda .unit-title{
    color: var(--white-color);
    margin-bottom: 3rem;
}
#agenda h3{
    color: var(--main-color);
    margin-bottom: 0.5rem;
}
#agenda h5{
    color: var(--white-color);
}
#agenda img{
    width: 0.8rem;
    margin: 10px auto -10px auto;
}
.ag-num {
    color: var(--white-color);
    font-size: 4rem;
    flex-direction: column;
    align-items: center;
}
@media (max-width: 768px) {
    #agenda .sub-title-img{
        object-fit: contain;
        height: unset;
        width: 100%;
        object-position: left;
    }
}

/* 學程 */
.picbox {
    position: relative;
    background-image: url(../../images/bg2.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    overflow: hidden;
    min-height: 630px;
    color: #dcf1f3;
}
.pic-en {
    font-size: 6rem;
    color: var(--sub2-color);
    opacity: 0.8;
    font-weight: 700;
    font-family: "Noto Serif TC", serif;
    mix-blend-mode: difference;
    letter-spacing: -2px;
    position: absolute;
    top: 50%;
    right: 10%;
    text-align: right;
    line-height: 1.1;
    display: flex;
    width: 100%;
    filter: blur(0.15rem);
    writing-mode: tb;
}
.pic-en2 {
    font-size: 10rem;
    color: var(--sub2-color);
    opacity: 0.8;
    font-weight: 700;
    font-family: "Noto Serif TC", serif;
    mix-blend-mode: difference;
    letter-spacing: -2px;
    position: absolute;
    top: 50%;
    right: 15%;
    text-align: right;
    line-height: 1.1;
    display: flex;
    width: 100%;
    filter: blur(0.3rem);
    writing-mode: tb;
}
.marquee-content, .marquee-content2, .marquee-content3 {
    font-family: "Noto Serif TC", serif;
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}
.marquee-content2-1, .marquee-content2-2, .marquee-content2-3 {
    font-family: "Noto Serif TC", serif;
    display: inline-block;
    white-space: nowrap;
    animation: marquee2 30s linear infinite;
}

.picbox .cta-group{
    font-family: "Noto Serif TC", serif;
    background: var(--sub2-color);
    color: var(--black-color);
    font-weight: 700;
    padding: .5rem 1.25rem ;
    border-radius: 50px;
    font-size: 24px;
    margin-top: 1rem;
    display: inline-block;
}
.picbox .cta-group:hover{
    background: var(--sub3-color);
    color: var(--white-color);
    transition: .2s all linear;
}

@keyframes marquee2{
    0% {
        transform: translateY(-15%);
    }
    
    100% {
        transform: translateY(-115%);
    }
}
@keyframes marquee{
    0% {
        transform: translateY(-10%);
    }
    
    100% {
        transform: translateY(-110%);
    }
}

@media (max-width: 768px) {
    .picbox{
        min-height: 770px;
    }
    .picbox h3{
        font-size: 21px;
        line-height: 2rem;
    }
    .picbox h5{
        font-size: 16px;
        font-weight: 400;
        line-height: 2rem;
    }
    .pic-en {
        font-size: 6rem;
        writing-mode: unset;
        top: 84%;
        filter: blur(0.25rem);
    }
    .pic-en2 {
        font-size: 3rem;
        writing-mode: unset;
        top: 81%;
        filter: blur(0.05rem);
    }
    @keyframes marquee2{
        0% {
            transform: translateX(-15%);
        }
        
        100% {
            transform: translateX(-115%);
        }
    }
    @keyframes marquee{
        0% {
            transform: translateX(0%);
        }
        
        100% {
            transform: translateX(-100%);
        }
    }
}

/* 課程資訊－特刊加購 */
#infomation5{
    background: var(--sub3-color);
    color: var(--white-color);
}
#infomation5 .btn-sold .sold01 {
    background: linear-gradient(to right bottom, #FFFFFF, #ff792e 90%);
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-radius: 3px;
    color: var(--black-color);
}
#infomation5 .btn-sold .sold02 {
    background: linear-gradient(to right bottom, #FFFFFF, #33ffff 90%);
    padding-top: 2.5rem;
    padding-bottom: 2rem;    
    border-radius: 3px;
    color: var(--black-color);
}
#infomation5 .btn-sold .hotsold {
    background: linear-gradient(to right bottom, #FFFFFF, #f9d300 90%);
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-radius: 3px;
    color: var(--black-color);
}
#infomation5 .btn-sold .sold-normal {
    background: linear-gradient(to right bottom, #FFFFFF, #dfcd8f 90%);
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-radius: 3px;
    color: var(--black-color);
}
#infomation5 .btn-sold .sold-normal:hover,
#infomation5 .btn-sold .sold-normal:focus,
#infomation5 .btn-sold .hotsold:hover,
#infomation5 .btn-sold .hotsold:focus,
#infomation5 .btn-sold .sold01:hover,
#infomation5 .btn-sold .sold01:focus,
#infomation5 .btn-sold .sold02:hover,
#infomation5 .btn-sold .sold02:focus {
    background: var(--sub-color);
    color: var(--black-color);
}

#infomation5 .info-mag:hover img {
    transform: scale(1.05);
    transition: .25s all linear;
}

/* Q&A ---------- */
#qna{
    background: #1e1e1e;
    color: var(--white-color);
}
#qna li p a{
    color: var(--sub-color);
}
#qna li p{
    color: #dddddd;
}

/*footer改色 ---------- */
#footer p{
    text-align: left;
}
#footer {
    position: absolute;
    width: 100%;
    background-color: var(--sub-color);
}
#footer .scrolltop {
    background: var(--main-color);
    color: var(--white-color);
    opacity: .9;
}
@media (max-width: 576px) {
    #footer{
        padding-bottom: 130px;
    }
}