:root {
    /*主色輔色 改色*/
    --main-color: #D0B368;
    --sub-color: #D0B368;
    --sub2-color: #DCE4F7;
    --sub3-color: #E7D0B7;


    /*勿動*/
    --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;
}

.forpc{
    display: block;
}
.forphone{
    display: none !important;
}
@media (max-width: 768px) {
    .unit-title h2{
        font-size: 1.7rem;
    }
    .forpc {
        display: none !important;
    }
    .forphone{
        display: block !important;
    }
}

.navbar{
    background-color:  #0C2320;
}
.nav-item a{
    color:var(--white-color);
    font-size: 1rem;
    line-height: 1rem;
    letter-spacing: 1px;
}
.nav-item a:hover{
    color:var(--sub2-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/first-section-bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: var(--sub-color) 12px solid;
    /* aspect-ratio: 1280 / 580 ; */
}
#main h2{
    margin-top: 2rem;
    margin-left: 40px;
    font-size: 30px;
    color: #dbbb75;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: "Noto Serif TC", serif;
    line-height: 5rem;
}
#main h5{
    margin-left: 40px;
    font-size: 20px;
    color: #f5f5f5;
    line-height: 2.5rem;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: "Noto Serif TC", serif;
    margin-bottom: 3rem;
    z-index: 5;
}

.highlight {
    color: #dbbb75;
}


#main .spk-img{
    object-fit: cover;
    overflow: visible;
}

@media (max-width: 768px) {
    #main{
        background: url(../../images/bg-m.jpg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding-top: 1rem;
    }
    #main h5{
        margin-top: 20px;
        margin-left: 20px;
    }
    #main .spk-img{
        margin-left: -10px;
        margin-top: -30px;
    }
}




/* 滿意度推薦-輪播 */
#feedback2{
    background:url(../../images/slide-bg.png) , linear-gradient( to bottom right , #162c2a , #112422);
    color: var(--white-color);
}
#feedback2 .item{
    overflow: hidden;
    /* aspect-ratio: 16 / 9; */
}
#feedback2 .owl-theme .owl-nav{
    position: absolute;
    top: -45px;
    right: 16.5%;
    width: 67%;
    justify-content: end;
    display: none;
}

#feedback2 .info-area{
    top: 8%;
    left: 3%;
    z-index: 10;
    font-family: "Noto Serif TC", serif;
}
#feedback2 .info-area ul{
    margin: 12px 6px;
    border-left: 6px var(--sub-color) solid;
}
#feedback2 .info-area ul li{
    font-size: 21px;
    line-height: 2rem;
    letter-spacing: 1px;
    list-style-image:url(../../images/Rectangle\ 5.svg);
}

#feedback2 .referrer_box {
    margin: 20px auto;
}

@media (max-width: 768px) {
    #feedback2 .owl-theme .owl-nav{
        position: absolute;
        top: -45px;
        right: 0;
        width: 100%;
        justify-content: end;
        display: flex;
    }

    #feedback2 .info-area{
        top: unset;
        bottom: 75%;
        left: 5%;
    }
    #feedback2 .info-area ul{
        margin: 12px 6px;
        border-left: 6px var(--sub-color) solid;
    }
    #feedback2 .info-area ul li{
        font-size: 16px;
        line-height: 1.5rem;
    }
    #feedback2 .referrer_box {
        margin: 40px auto;
    }
}


/* 課綱／議程[切換Tab式] */
#method{
    background-image: url(../../images/method-bg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Noto Serif TC", serif;
}
#method .unit-title{
    color: var(--white-color);
}

#method .sub-title-img{
    object-fit: contain;
    height: 70px;
    object-position: left;
}
#method .tips-img{
    object-fit: cover;
}
.nav-tabs{
    border: 0;
}
.nav-tabs .nav-link {
    background: #adadad;
    border: unset;
    border-radius: 0;
    color: #737373;
    height: 100%;
}
.nav-tabs .nav-link:hover {
    background: var(--main-color);
    color: var(--white-color);
    transition: .25s all linear;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
    color: var(--white-color);
    background-color: var(--main-color);
    border-color: unset;
    border-radius: 0;
    position: relative;
}
.nav-tabs .nav-item.show .nav-link::after, .nav-tabs .nav-link.active::after{
    position: absolute;
    content: '';
    bottom: -21px;
    left: calc( 50% - 35.5px);
    width: 71px;
    height: 21px;
    background: url(../../images/arrow-down.svg);
}


.nav-tabs #method-tab-02.nav-link:hover {
    background: var(--sub-color);
    color: var(--white-color);
    transition: .25s all linear;
}
#method .nav-tabs #method-tab-02.nav-link.active,
#method #method-tab-02-info .tab-sub{
    background: #CEA879;
}
.nav-tabs .nav-item.show  #method-tab-02.nav-link::after, .nav-tabs  #method-tab-02.nav-link.active::after{
    position: absolute;
    content: '';
    bottom: -21px;
    left: calc( 50% - 35.5px);
    width: 71px;
    height: 21px;
    background: url(../../images/arrow-down2.svg);
}

/*--講師陣容改色--*/
/* 桌機版背景圖 */
/* 桌機版背景圖 */
#lecturer {
    background: url(../../images/lecturer-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white-color);
    font-family: "Noto Sans TC";
    padding-top: 5rem;
}

#lecturer .teacher {
    width: 100%;
    border-bottom: solid 2px #6c6c6c;
}

#lecturer h1 {
    color: #dbbb75;
    font-family: "Noto Serif TC", serif;
    display: flex;
    align-items: center;
}

#lecturer .h5 {
    font-family: "Noto Serif TC", serif !important;
    font-weight: normal !important;
    line-height: 28px !important;
}

/* 手機專用區塊 */
.lecturer-mobile {
    background-image: url(../../images/lecturer-bg-phone.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    aspect-ratio: 4 / 5;
    position: relative;
    color: var(--white-color);
    font-family: "Noto Sans TC";
}

/* 手機版內部文字樣式，與桌機一致 */
.lecturer-mobile-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 1.5rem; /* 或根據需要微調 */
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: "Noto Serif TC", serif;
}

.lecturer-mobile h1 {
    color: #dbbb75;
    font-family: "Noto Serif TC", serif;
    display: flex;
    align-items: center;
}

.lecturer-mobile .h5 {
    font-family: "Noto Serif TC", serif;
    font-weight: normal;
    line-height: 28px;
}


/* 桌機版原本的講師區塊只在 md 以上出現 */
@media (max-width: 767px) {
    #lecturer {
        display: none;
    }
}




/* slogan ---------- */
#slogan {
    background-image: url(../../images/bg3.png);
    background-size: cover;
    background-repeat: no-repeat;
    color: #dbbb75;
    font-family: "Noto Sans TC";
    padding-block-end: 1rem;
}

.custom-arrow {
    width: 20px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* time ---------- */
#time{
    color: #fff;
    background-color: #042217;
    padding: 0.5rem
}
#time h5{
    text-align: center;
    margin-bottom: 1rem;
    font-family: "Noto Serif TC", serif;

}
#time .flex-l{
    flex-basis: 80%;
    background-color: #042217;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
#time .flex h5.word {
    padding: 0 1rem;
}
#time input {
    background-color: #042217;
    border: none;
    color: #fff;
    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;
}

@media (max-width: 992px) {
    #time .flex h5.word {
        padding: 0 .3rem;
    }
    #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;
    }
    #time .flex-l{
        flex-basis: 100%;
        padding: 0.5rem 0;
        flex-wrap: wrap;
        margin: 0;
        border-radius: 0;
        justify-content:center;
    }
    #time .flex-l h5{
        width: 100%;
    }
    #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;
    }
}



#method .tab-sub{
    background: var(--sub-color);
    color: var(--white-color);
    padding: 6px 0;
}
#method .event-box:nth-child(odd){
    background: transparent;
}
#method .event-box:nth-child(even){
    background: transparent;
}

@media (max-width: 768px) {
    #method .sub-title-img{
        object-fit: contain;
        height: unset;
        width: 100%;
        object-position: left;
    }
    #method ul li.nav-item h2{
        font-size: 1.25rem;
    }
}

#feedback {
    color: var(--white-color);
}
#feedback h4,#feedback h6{
    margin-bottom: 0.5rem;
}
#feedback .owl-theme .owl-nav{
    position: absolute;
    right: 0%;
    bottom: -100%;
    width: 100%;
    justify-content: end;
    display: flex;
}
#feedback .owl-carousel .owl-nav button.owl-next, 
#feedback .owl-carousel .owl-nav button.owl-prev{
    background-color: var(--main-color);
}


@media (max-width: 768px) {
    #feedback .owl-theme .owl-nav{
        bottom: calc(-30%);
        justify-content: center;}
}

#feedback .quote-box {
    display: flex;
    flex-wrap: wrap;
    min-height: 120px;
    align-items: start;
    justify-content: center;
    position: relative;
    text-align: center;
}

/* 課綱／議程[切換Tab式] */
#agenda{
    background-image: url(../../images/agenda.svg);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Noto Serif TC", serif;
}
#agenda .unit-title{
    color: var(--white-color);
    text-align: center;
    margin-bottom: 4rem;
}
#agenda h3{
    color: var(--main-color);
    margin-bottom: 0.5rem;
}
#agenda img{
    width: 0.8rem;
    margin-right: 1rem;
    display: inline-block;
}
.ag-num {
    color: var(--white-color);
    font-size: 4rem;
}


#agenda .section{
margin-bottom:2.5rem ;
}

@media (max-width: 768px) {
    #agenda .sub-title-img{
        object-fit: contain;
        height: unset;
        width: 100%;
        object-position: left;
    }
    #agenda ul li.nav-item h2{
        font-size: 1.25rem;
    }
    #agenda .row{
        padding-left: 1rem;

    }
}

#feedback {
    color: var(--white-color);
}
#feedback h4,#feedback h6{
    margin-bottom: 0.5rem;
}
#feedback .owl-theme .owl-nav{
    position: absolute;
    right: 0%;
    bottom: -100%;
    width: 100%;
    justify-content: end;
    display: flex;
}
#feedback .owl-carousel .owl-nav button.owl-next, 
#feedback .owl-carousel .owl-nav button.owl-prev{
    background-color: var(--main-color);
}


@media (max-width: 768px) {
    #feedback .owl-theme .owl-nav{
        bottom: calc(-30%);
        justify-content: center;}
}

#feedback .quote-box {
    display: flex;
    flex-wrap: wrap;
    min-height: 120px;
    align-items: start;
    justify-content: center;
    position: relative;
    text-align: center;
}

/* 課綱／議程[切換Tab式] */
#agenda4{
    background:url(../../images/slide-bg.png) , linear-gradient( to bottom right , #24646E , #0E3446);
    font-family: "Noto Serif TC", serif;
}
#agenda4 .unit-title{
    color: var(--white-color);
}
#agenda4 h3{
margin-top: 1rem;}
#agenda4 .sub-title-img{
    object-fit: contain;
    height: 70px;
    object-position: left;
}
#agenda4 .tips-img{
    object-fit: cover;
}

.event-cta:nth-child(1) {
    background-color: rgb(0, 44, 62);
}

.event-cta:nth-child(2) {
    background-color: rgb(204, 163, 26);
}


.nav-tabs{
    border: 0;
}
.nav-tabs .nav-link {
    background: #adadad;
    border: unset;
    border-radius: 0;
    color: #737373;
    height: 100%;
}
.nav-tabs .nav-link:hover {
    background: var(--main-color);
    color: var(--white-color);
    transition: .25s all linear;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
    color: var(--white-color);
    background-color: var(--main-color);
    border-color: unset;
    border-radius: 0;
    position: relative;
}
.nav-tabs .nav-item.show .nav-link::after, .nav-tabs .nav-link.active::after{
    position: absolute;
    content: '';
    bottom: -21px;
    left: calc( 50% - 35.5px);
    width: 71px;
    height: 21px;
    background: url(../../images/arrow-down.svg);
}


.nav-tabs #agenda4-tab-02.nav-link:hover {
    background: var(--sub-color);
    color: var(--white-color);
    transition: .25s all linear;
}
#agenda4 .nav-tabs #agenda4-tab-02.nav-link.active,
#agenda4 #agenda4-tab-02-info .tab-sub{
    background: #CEA879;
}
.nav-tabs .nav-item.show  #agenda4-tab-02.nav-link::after, .nav-tabs  #agenda4-tab-02.nav-link.active::after{
    position: absolute;
    content: '';
    bottom: -21px;
    left: calc( 50% - 35.5px);
    width: 71px;
    height: 21px;
    background: url(../../images/arrow-down2.svg);
}



#agenda4 .tab-sub{
    background: var(--sub-color);
    color: var(--white-color);
    padding: 6px 0;
}
#agenda4 .event-box:nth-child(odd){
    background: transparent;
}
#agenda4 .event-box:nth-child(even){
    background: transparent;
}

@media (max-width: 768px) {
    #agenda4 .sub-title-img{
        object-fit: contain;
        height: unset;
        width: 100%;
        object-position: left;
    }
    #agenda4 ul li.nav-item h2{
        font-size: 1.25rem;
    }
}

#feedback {
    color: var(--white-color);
}
#feedback h4,#feedback h6{
    margin-bottom: 0.5rem;
}
#feedback .owl-theme .owl-nav{
    position: absolute;
    right: 0%;
    bottom: -100%;
    width: 100%;
    justify-content: end;
    display: flex;
}
#feedback .owl-carousel .owl-nav button.owl-next, 
#feedback .owl-carousel .owl-nav button.owl-prev{
    background-color: var(--main-color);
}


@media (max-width: 768px) {
    #feedback .owl-theme .owl-nav{
        bottom: calc(-30%);
        justify-content: center;}
}

#feedback .quote-box {
    display: flex;
    flex-wrap: wrap;
    min-height: 120px;
    align-items: start;
    justify-content: center;
    position: relative;
    text-align: center;
}

.co-qa{
    color: var(--sub-color);
}

.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: #E4CAAE;
}
.pic-en {
    font-size: 6rem;
    color: #D0B368;
    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: #D0B368;
    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: #D0B368;
    color: var(--white-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: #1A3D30;
    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: #112422;
    color: var(--white-color);
}
#infomation5 h2{
margin-bottom: 2rem;
}
#infomation5 .h6{
display: inline-block;
    }
#infomation5 .btn-sold .sold01 {
    background: #1b2c04;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-radius: 3px;
    color: var(--white-color);
}
#infomation5 .btn-sold .sold02 {
    background: #745A3E;
    padding-top: 2.5rem;
    padding-bottom: 2rem;    border-radius: 3px;
    color: var(--white-color);
}
#infomation5 .btn-sold .hotsold {
    background: linear-gradient(to right bottom, #A17636, #E2D495, #A17636, #7A541A);
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-radius: 3px;
    color: var(--white-color);
}
#infomation5 .btn-sold .sold-normal {
    background: #ffffff;
    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: linear-gradient(to right bottom, #daca95, #bba459);
    transition: .5s;
    color: black;
}
#infomation5 .original-price{
    color: #e5e5e5;
}

.info-mag{
    overflow: hidden;
    width: 100%;
    height: fit-content;
    /* aspect-ratio: 1 / 1; */
    display: block;
}




/* 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: #9f8644;
}
#footer .scrolltop {
    background: var(--main-color);
    color: var(--white-color);
    opacity: .9;
}
