:root {
    /*主色輔色 改色*/
    --main-color: #D2FE0B;
    --sub-color: #5193E4;
    --sub2-color: #DCE4F7;


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

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


/* nav ---------- */
.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: var(--black-color) !important;
    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.jpg);
    /* aspect-ratio: 1280 / 580 ; */
    color: #fff;
    position: relative;
    overflow: hidden;
}

#main .container {
    position: relative;
    z-index: 2;
}

#main::after {
    content: '';
    width: 100%;
    height: 150px;
    background: linear-gradient(#00002800, #000028);
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 9;
    pointer-events: none;
}

#main .spk {
    z-index: 8;
    position: relative;
}

#main .hero-green-gradient {
    width: min(75vw, 750px);
    height: 100%;
    position: absolute;
    top: 0;
    left: 20%;
    z-index: 5;
    background: linear-gradient(180deg, #D2FE0B 0%, #000028 100%);
    clip-path: polygon(0% 0, 60% 0, 100% 100%, 40% 100%);
    /* mix-blend-mode: screen; */
    opacity: .9;
    pointer-events: none;
}

#main .hero-marquee {
    width: 100%;
    position: absolute;
    top: 45%;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-50%);
}

#main .hero-marquee-track {
    display: flex;
    width: max-content;
    animation: heroMarquee 18s linear infinite;
    will-change: transform;
}

#main .hero-marquee span {
    padding-right: 7vw;
    color: rgba(15, 60, 170, .4);
    font-family: "SF Pro Compressed", "SF Pro", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(110px, 19.5vw, 250px);
    font-weight: 760;
    font-stretch: condensed;
    font-variation-settings: "wdth" 47;
    line-height: .85;
    white-space: nowrap;
}

#main .sm-txt {
    top: 10%;
    left: 10%;
}

#main .main-title {
    top: 50%;
    left: 50%;
    transform: translate(-54%, -20%);
}

#main .sub-title {
    bottom: 10%;
    left: 50%;
    transform: translate(-5%, -30%);
    z-index: 15;
}

#main .main-entrance-sm {
    opacity: 0;
    animation: smTxtEntrance 0.8s ease-out 0.25s forwards;
}

#main .main-entrance-title {
    opacity: 0;
    animation: mainTitleEntrance 1s cubic-bezier(.2, .75, .25, 1) 0.55s forwards;
}

#main .main-entrance-sub {
    opacity: 0;
    animation: subTitleEntrance 0.8s ease-out 1.05s forwards;
}

@keyframes smTxtEntrance {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes mainTitleEntrance {
    from {
        opacity: 0;
        transform: translate(-54%, 8%) scale(.96);
    }

    to {
        opacity: 1;
        transform: translate(-54%, -20%) scale(1);
    }
}

@keyframes subTitleEntrance {
    from {
        opacity: 0;
        transform: translate(-5%, 10%) scale(.98);
    }

    to {
        opacity: 1;
        transform: translate(-5%, -30%) scale(1);
    }
}

@keyframes heroMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    #main .hero-green-gradient {
        width: 100vw;
        left: 0%;
    }

    #main .hero-marquee {
        top: 48%;
    }

    #main .hero-marquee span {
        font-size: clamp(76px, 55vw, 130px);
    }

    #main .main-title {
        font-size: 58px;
    }

    #main .main-sub-title {
        font-size: 48px;
    }

    #main .sm-txt {
        top: -6%;
        left: 10%;
    }

    #main .main-title {
        top: 60%;
        left: 53%;
        z-index: 10;
    }

    #main .sub-title {
        bottom: 7%;
        left: 10%;
        z-index: 15;
    }

    #main .spk2 {
        z-index: 8;
        position: relative;
    }

    #main::after {
        z-index: 9;
    }
}

/* slogan ---------- */
#slogan {
    background: var(--sub-color);
    color: var(--white-color);
}


/* time ---------- */
#time {
    color: #fff;
    background: url(../../images/time-bg.jpg);
    background-position: center;
    background-size: cover;
}

#time #info {
    letter-spacing: 1px;
}

#time .flex-l {
    flex-basis: 80%;
    background-color: #1E1E1E;
    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: #1E1E1E;
    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 .row {
        position: fixed;
        bottom: 0;
        z-index: 99;
        padding: 0;
        width: 100%;
    }

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


/* suitable ---------- */
#suitable {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../../images/main-bg.jpg);
    overflow: hidden;
    padding: 3rem 0rem;
    color: var(--white-color);
}

#suitable .unit-title span {
    color: var(--main-color);
}

#suitable .flip .card {
    transform-style: preserve-3d;
    transition: 0.5s;
    background-color: transparent;
}

#suitable .flip .card.flipped {
    -webkit-transform: rotatey(-180deg);
    transform: rotatey(-180deg);
}

#suitable .flip .front {
    z-index: 2;
    backface-visibility: hidden;
}

#suitable .flip .back {
    height: 100%;
    border-radius: 1rem;
    background: linear-gradient(180deg, #E2EFFF 0%, #AFCAEB 23.56%, #AFCAEB 100%);
    color: #1e1e1e;
    padding: 1rem .8rem;
    -webkit-transform: rotatey(-180deg);
    transform: rotatey(-180deg);
    position: absolute;
}

#suitable .flip .back .inner {
    height: 100%;
    align-content: center;
}

#suitable .flip .back h3 {
    line-height: 120%;
    padding-bottom: .5rem;
    font-weight: 800;
    color: var(--black-color);
}

#suitable .flip .back ul {
    list-style: decimal-leading-zero;
    margin: 0;
}

#suitable .flip .back ul li {
    font-size: 1.125rem;
}

#suitable .quote {
    background: #E3E3E3;
    color: #1e1e1e;
}

@media (max-width: 768px) {

    #suitable .flip .back h3 {
        font-size: 2rem;
    }

    #suitable .flip .back ul li {
        font-size: 1.25rem;
    }
}

/* hlight ---------- */
#hlight {
    background-color: #10120F;
    color: var(--white-color);
}

#hlight .unit-title h2 {
    color: var(--main-color);
}

/* hlight2 ---------- */
#hlight2,#hlight3 {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../../images/main-bg.jpg);
    color: var(--white-color);
}
#hlight3 .unit-title h5{
    color: #E3E3E3;
    font-weight: normal;
}
#hlight3 .unit-title span{
    color: var(--main-color);
}


/*agenda ---------- */

/* 課綱／議程[單表頭] */
#agenda {
    background-image: url(../../images/time-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white-color);
}

#agenda .unit-title h2:first-child {
    color: var(--main-color);
}

#agenda .agenda-table>div {
    align-items: center;
    background: #0c0027;
    border: 3px solid #294999;
    border-left-width: 12px;
    margin-bottom: .75rem;
    padding: 1.25rem 1rem;
}

#agenda .agenda-table h3,
#agenda .agenda-table h4,
#agenda .agenda-table h5 {
    margin-bottom: 0;
}

#agenda .agenda-table h3 {
    color: var(--white-color);
    font-size: 1.75rem;
    letter-spacing: .035em;
}

#agenda .agenda-table .col-md-9 h3 {
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: .5rem;
}

#agenda .agenda-table h5 {
    color: var(--white-color);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}

#agenda .agenda-table-head {
    background: #294999 !important;
    border: 0 !important;
    color: var(--white-color);
    justify-content: center;
    padding: .8rem 1rem !important;
}

#agenda .agenda-table-head h4 {
    font-size: 1.5rem;
    line-height: 1.4;
}

#agenda .btn-a {
    width: 150px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    height: 40px;
    text-align: start;
    border: none;
    border-radius: 0;
    background-size: 300% 100%;
    transition: all .4s ease-in-out;
}

#agenda .btn-a:hover {
    background-position: 100% 0;
    background-color: var(--main-color);
    transition: all .4s ease-in-out;
}

#agenda .btn-a:focus {
    outline: none;
}

@media (max-width: 768px) {
    #agenda {
        background-size: cover;
    }

    #agenda .agenda-table>div {
        padding: 1rem;
    }

    #agenda .agenda-table h3 {
        font-size: 1.35rem;
    }

    #agenda .agenda-table .col-md-9 h3 {
        margin-top: .5rem;
    }

    #agenda .agenda-table h5 {
        font-size: 1rem;
    }

    #agenda .agenda-table-head h4 {
        font-size: 1.05rem;
    }
}


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

.speaker-background {
    position: relative;
    background: url(../../images/spk2.png) no-repeat, #000;
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 30vw;
}

#speaker2 .g-sentence {
    background-color: var(--main-color);
    color: var(--black-color);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    border-radius: 1rem;
}

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

    .speaker-background {
        background: url(../../images/spk2-sm.jpg) no-repeat, #000;
        position: relative;
        background-position: center top;
        background-repeat: no-repeat;
        background-size: 120vw;
    }

    #speaker2 .g-sentence h4 {
        font-size: 1rem;
    }
}

/* suitable2 ---------- */
#suitable2 {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../../images/time-bg2.jpg);
    overflow: hidden;
    padding: 3rem 0rem;
    color: var(--white-color);
}

#suitable2 .card {
    background-color: #F7F7F7;
    padding: 1rem;
    align-items: center;
    color: #1E1E1E;
    border-radius: 1rem;
}


/* 課程資訊－一般B */
#infomation3 {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(../../images/main-bg.jpg);
    overflow: hidden;
    color: var(--white-color);
    position: relative;
}

#infomation3 .container {
    position: relative;
    z-index: 2;
}

#infomation3 .co-qa {
    color: var(--main-color);
}

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

#infomation3 .btn-sold .hotsold {
    background: linear-gradient(to right bottom, #ED66F7, #cc66f7);
    padding: 1.5rem;
    margin-top: 0;
    border-radius: 3px;
    color: white;
}

#infomation3 .btn-sold .sold-normal {
    background: linear-gradient(to right bottom, #FFFFFF, rgb(222, 240, 239));
    padding: 1.5rem;
    border-radius: 3px;
    color: var(--black-color);
}

#infomation3 .btn-sold .sold-normal:hover,
#infomation3 .btn-sold .sold-normal:focus,
#infomation3 .btn-sold .hotsold:hover,
#infomation3 .btn-sold .hotsold:focus,
#infomation3 .btn-sold .sold01:hover,
#infomation3 .btn-sold .sold01:focus {
    background: linear-gradient(to right bottom, #002858, #0C1628);
    transition: .5s;
    color: #fff;
}

#infomation3 .btn-sold .sold-out {
    background: var(--white-color);
    padding: 1.5rem;
    border-radius: 3px;
    color: var(--black-color);
    position: relative;
    filter: opacity(0.5);
}

#infomation3 .btn-sold .sold-out::before {
    content: 'SOLD OUT';
    position: absolute;
    top: calc(50% - 18px);
    left: calc(50% - 50px);
    padding: 6px 12px;
    background-color: #EC5650;
    color: var(--white-color);
    transform: rotate(-20deg);
}

#infomation3 .btn-ticket {
    background-color: var(--main-color);
    color: var(--white-color);
    border: solid 2px var(--main-color);
    border-radius: 2rem;
    padding: .8rem 3.5rem !important;
}

#infomation3 .btn-ticket:hover,
#infomation2 .btn-ticket:focus {
    background-color: var(--sub-color);
    color: var(--white-color);
    border: solid 2px var(--sub-color);
}

.shine-button::before {
    background: #D2FE0B;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #D2FE0B 50%, rgba(255, 255, 255, 0) 100%);
}

#infomation3 .hero-marquee {
    width: 100%;
    position: absolute;
    bottom: -10%;
    left: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-50%);
}

#infomation3 .hero-marquee-track {
    display: flex;
    width: max-content;
    animation: heroMarquee 18s linear infinite;
    will-change: transform;
}

#infomation3 .hero-marquee span {
    padding-right: 7vw;
    color: rgba(15, 60, 170, .4);
    font-family: "SF Pro Compressed", "SF Pro", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(110px, 19.5vw, 250px);
    font-weight: 760;
    font-stretch: condensed;
    font-variation-settings: "wdth" 47;
    line-height: .85;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #infomation3 .hero-marquee {
        bottom: -3%;
    }
}



/* Marquee ---------- */
#Marquee {
    position: relative;
    background-image: url(../../images/bg2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    overflow: hidden;
    min-height: 500px;
    color: #A5CDFF;
}

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


@media (max-width: 768px) {
    #Marquee h3{
        font-size: 21px;
        line-height: 2rem;
    }
    #Marquee h5{
        font-size: 17px;
        font-weight: 400;
        line-height: 2rem;
    }
}







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


/*footer改色 ---------- */

#footer {
    position: absolute;
    width: 100%;
    background-color: var(--main-color);
}
#footer .scrolltop {
    background: var(--sub-color);
    color: var(--white-color);
    opacity: .9;
}