:root {
    /*主色輔色 改色*/
    --main-color: #426BFF;
    --sub-color: #3E5794;
    --sub2-color: #DCE4F7;
    --sub3-color: #FAA79C;


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

*{
    scroll-padding-top: 70px;
}

.quantico {
    font-family: "Quantico", sans-serif;
}


.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; */
    letter-spacing: 1px;
}

.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: #2C2C2C;
}

.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/main-bg.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: var(--sub-color) 12px solid;
    /* aspect-ratio: 1280 / 580 ; */
}

#main .main-spk {
    height: 100%;
    object-fit: cover;
}

#main .spk-title {
    position: absolute;
    bottom: 15%;
    left: -10%;
    width: 60%;
}

#main .main-title {
    display: flex;
    object-fit: cover;
    justify-content: center;
    align-items: center;
}

#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 .spk-area {
        order: 2;
    }

    #main .main-title {
        order: 1;
    }

    #main .owl-carousel.owl-marquee4 img {
        height: 20px;
        object-fit: fill;
    }

}




/* 滿意度推薦-輪播 */
#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);
}



#info {
    background-image: url(../../images/sub-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: unset;
    background-position: center;
}

@media (max-width: 767px) {
    #info {
        border-bottom: var(--sub-color) 12px solid;
    }
}

/* time ---------- */
#time {
    color: #fff;
    background-image: url(../../images/sub-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: "Noto Sans TC";
    padding-block-end: 1rem;
    padding: 0rem 0 3rem;
    border-bottom: var(--sub-color) 12px solid;
    width: 100%;
}

@media (max-width: 767px) {
    #time {
        border-bottom: unset;
    }
}

#time h5 {
    text-align: center;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

#time .flex-l {
    flex-basis: 80%;
    background-color: #1D1E20;
    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: #1D1E20;
    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;
}

#time .nav-item {
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    #time .flex h5.word {
        padding: 0 .3rem;
        justify-content: center;
    }

    #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;
    }
}

/* video ---------- */
#video {
    color: #fff;
    background-image: url(../../images/sub-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Noto Sans TC";
    background-position: center;
}

@media (max-width: 768px) {
    #video .owl-carousel.owl-marquee4 img {
        height: 20px;
        object-fit: fill;
    }
}

/* method ---------- */
#method {
    color: #fff;
    background-image: url(../../images/sub-bg2.png);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Noto Sans TC";
    background-position: center;
    border-bottom: var(--sub-color) 12px solid;
}

#method2 {
    background-color: #f9f9f9;
    background-image: url(../../images/side-l.png), url(../../images/side-r.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left top, right top;
}

@media (max-width: 768px) {
    #method2 {
        background-color: #f9f9f9;
        background-image: unset;
        background-size: contain;
        background-repeat: no-repeat;
    }
}


#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/sub-bg3.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #1e1e1e;
}

#agenda .unit-title {
    color: var(--black-color);
    text-align: center;
    margin-bottom: 4rem;
}

#agenda h3 {
    color: #2B48B3;
    margin-bottom: 0.5rem;
}

#agenda img {
    width: 0.8rem;
    margin-right: 1rem;
    display: inline-block;
}

.ag-num {
    color: var(--black-color);
    font-size: 4rem;
}

#agenda ul li {
    font-size: 20px;
    font-weight: 300;
}

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

.ag-list div {
    height: 135px;
}

@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;
    }

    #agenda ul li {
        font-size: 18px;
        font-weight: 300;
    }

    .ag-list div {
        height: auto;
    }
}


/* 講師陣容－背景 */
#speaker2 {
    /* background: #000; */
    color: var(--white-color);
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.speaker-background {
    position: relative;
    background: url(../../images/lecturer-bg.png) no-repeat;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 100vw;
}

@media (max-width: 768px) {
    #speaker2 {
        padding-top: 1rem;
        padding-bottom: 15rem;
    }

    .speaker-background {
        position: relative;
        background: url(../../images/lecturer-bg-sm.png) no-repeat;
        background-position: right center;
        background-repeat: no-repeat;
        background-size: cover;
    }
}



#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, #175f86, #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(45 170 221);
}

.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: #DCE4F7;
}

.pic-en {
    font-size: 6rem;
    color: #DCE4F7;
    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: #c0cdea;
    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(--main-color);
    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: #1a343d;
    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-image: url(../../images/sub-bg4.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    color: var(--black-color);
}

#infomation5 .btn-sold .sold01 {
    background: linear-gradient(to right bottom, #f3d541, #ffbf00);
    padding: 1.5rem;
    border-radius: 3px;
    color: var(--black-color);
}

#infomation5 .btn-sold .hotsold {
    background: linear-gradient(to right bottom, #54aadb, #426BFF);
    padding: 1.5rem;
    margin-top: 0;
    border-radius: 3px;
    color: white;
}

#infomation5 .btn-sold .sold-normal {
    background: linear-gradient(to right bottom, #FFFFFF, rgb(222, 236, 240));
    padding: 1.5rem;
    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 {
    background: linear-gradient(to right bottom, #002858, #0C1628);
    transition: .5s;
    color: #fff;
}

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

.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(--sub3-color);
}

#qna li p {
    color: #dddddd;
}


/*footer改色 ---------- */
#footer p {
    text-align: left;
}

#footer {
    position: absolute;
    width: 100%;
    background-color: var(--sub-color);
    color: var(--white-color);
}

#footer .scrolltop {
    background: var(--main-color);
    color: var(--white-color);
    opacity: .9;
}