:root {
    /*主色輔色 改色*/
    --main-color: #FF6900;
    --sub-color: #2B48B3;
    --sub2-color: #DCE4F7;


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

.forpc {
    display: block;
}

.forphone {
    display: none;
}

@media (max-width: 768px) {

    .forpc {
        display: none;
    }

    .forphone {
        display: block;
    }
}

.unit-en {
    font-family: "Fira Code", serif;
}

/* nav ---------- */
.navbar {
    background-color: #414141;
}

.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(--white-color);
    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-color: #1e1e1e;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-height: 800px;
    overflow: hidden;
}

/* 背景圖片輪播 */
.background-carousel .item {
    width: 100%;
    max-height: 800px;
}

.background-carousel img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    filter: brightness(0.55) blur(4px);
    /* transform: scale(1.1); */
}

@media (max-width: 1280px) {
    .carousel-container {
        max-height: 660px;
    }

    .background-carousel .item {
        max-height: 660px;
    }

    .background-carousel img {
        height: 660px;
    }
}

@media (max-width: 976px) {
    .carousel-container {
        max-height: 600px;
    }

    .background-carousel .item {
        max-height: 600px;
    }

    .background-carousel img {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        max-height: 500px;
    }

    .background-carousel .item {
        max-height: 500px;
    }

    .background-carousel img {
        height: 500px;
    }
}

/* 人物與左下角文字 */
.foreground-carousel {
    position: absolute;
    bottom: -25%;
    left: calc(50% - 250px);
    max-width: 500px;
    z-index: 10;
}

.title-carousel {
    position: absolute;
    bottom: 5%;
    left: 8rem;
    z-index: 10;
    color: #fff;
}

.title-carousel .item h2 span {
    font-size: clamp(1.8rem, 8vw, 3.5rem);
    border-bottom: 6px solid #ff5566;
}

.title-carousel .item h3 span {
    font-size: 20px;
    font-weight: 300;
}

.title-carousel .owl-dots {
    position: absolute;
    bottom: 10%;
    right: 15vw;
}

.owl-theme .owl-dots .owl-dot span {
    background: rgba(214, 214, 214, 0.4);
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: #FFFFFF;
}

.owl-carousel .owl-nav button.owl-next,
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel button.owl-dot {
    background-color: unset;
    color: unset;
}

@media (max-width: 1280px) {
    .foreground-carousel {
        position: absolute;
        bottom: -25%;
        left: calc(50% - 250px);
        max-width: 500px;
    }
}

@media (max-width: 976px) {
    .foreground-carousel {
        position: absolute;
        bottom: -25%;
        left: calc(50% - 250px);
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .foreground-carousel {
        position: absolute;
        bottom: -25%;
        left: calc(50% - 195px);
        max-width: 390px;
    }

    .title-carousel {
        bottom: 5%;
        left: unset;
    }

    .title-carousel .owl-dots {
        display: none;
    }

    .foreground-carousel .item img {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}

/* 固定不變的中間文字 */
.center-text {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 65%;
}

@media (max-width: 1280px) {
    .center-text {
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        width: 75%;
    }
}

@media (max-width: 976px) {
    .center-text {
        top: 25%;
        width: 85%;
    }
}

@media (max-width: 768px) {
    .center-text {
        top: 20%;
        width: 100%;
    }
}

/* 自訂箭頭按鈕 */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 94%;
    display: flex;
    justify-content: space-between;
    transform: translate(3%, 0%);
    z-index: 15;
}

.carousel-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
}

.carousel-controls button:hover {
    background: var(--main-color);
}


/* ---------- */
#Learnpoint {
    background: #F1F2F1 url(../../image/s2-bg.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.unit-title {
    border-bottom: 1px solid #1e1e1e;
}

.unit-title h2 {
    font-size: 3rem;
}

.unit-title .unit-en {
    color: #FF6900;
    font-family: "Fira Code", serif;
}

@media (max-width: 768px) {
    .unit-title h2 {
        font-size: 2rem;
    }

    .unit-title {
        border-bottom: unset;
    }
}

/* Learnpoint---------- */
#Learnpoint #outLink {
    gap: 1rem;
}

#Learnpoint #outLink a {
    border: 2px solid #1e1e1e;
    padding: 0.6rem 2rem;
    border-radius: 6px;
}

#Learnpoint #outLink a h5 {
    color: #1e1e1e;
}

#Learnpoint #outLink a svg {
    height: 100%;
}

#Learnpoint #outLink a:hover {
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
}

#Learnpoint #outLink a:hover h5 {
    color: var(--white-color);
}

#Learnpoint #outLink a:hover svg path {
    fill: var(--white-color);
}

@media (max-width: 768px) {
    #Learnpoint .scroll.row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* iOS 优化 */
    }

    #Learnpoint #outLink a {
        padding: 0.6rem 0.6rem;
        border-radius: 6px;
    }

    #Learnpoint .scroll .col-md-3 {
        flex: 0 0 auto;
        width: 65%;
        margin: 10px;
    }
}

/* Learnpoint2 ---------- */
#Learnpoint2 {
    flex-wrap: nowrap;
}
#Learnpoint2 #learn-l {
    width: 55%;
}

#Learnpoint2 #learn-r {
    width: 40%;
    min-width: 500px;
    background: linear-gradient(to top, #ec6100, var(--main-color));
}
#Learnpoint2 #learn-r .container{
    padding: 12px;
}
#Learnpoint2 #learn-r .grid {
    display: grid;
    grid-template-rows: repeat(12, 1fr);
    grid-template-columns: repeat(12, 1fr);
    width: 100%;
    margin: auto;
    height: 500px;
}

#Learnpoint2 #learn-r .grid .item{
    background-color: var(--white-color);
    border-radius: 1rem;
    padding: 0;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}

#Learnpoint2 #learn-r .grid .item.img01{
    grid-row: auto / span 8;
    grid-column: auto / span 4;
}
#Learnpoint2 #learn-r .grid .item.img02{
    grid-row: auto / span 3;
    grid-column: auto / span 4;
    grid-column-start: 5;
}
#Learnpoint2 #learn-r .grid .item.img03{
    grid-row: auto / span 6;
    grid-column: auto / span 4;
    grid-column-start: 9;
}
#Learnpoint2 #learn-r .grid .item.img04{
    grid-row: auto / span 4;
    grid-column: auto / span 4;
    grid-row-start: 9;
}
#Learnpoint2 #learn-r .grid .item.img05{
    grid-row: auto / span 6;
    grid-column: auto / span 4;
    grid-row-start: 4;
    grid-column-start: 5;
}
#Learnpoint2 #learn-r .grid .item.img06{
    grid-row: auto / span 3;
    grid-column: auto / span 4;
    grid-row-start: 7;
    grid-column-start: 9;
}
#Learnpoint2 #learn-r .grid .item.img07{
    grid-row: auto / span 3;
    grid-column: auto / span 8;
    grid-row-start: 10;
    grid-column-start: 5;
}



#Learnpoint2 #outLink a {
    background: #1e1e1e;
    border: 2px solid #1e1e1e;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    color: #fff;
}

#Learnpoint2 #outLink a.btn-line {
    background: unset;
    border: 2px solid #1e1e1e;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    color: #1e1e1e;
}

#Learnpoint2 #outLink a:hover {
    border: 2px solid var(--main-color);
    background-color: var(--main-color);
    color: #fff;
}
@media (max-width: 1200px) {
    #Learnpoint2 #learn-r .grid {
        height: 550px;
    }
}
@media (max-width: 1100px) {
    #Learnpoint2 #learn-r .grid {
        height: 630px;
    }
}
@media (max-width: 960px) {
    #Learnpoint2{
        flex-wrap: wrap;
    }
    #Learnpoint2 #learn-l {
        width: 100%;
    }
    #Learnpoint2 #learn-r {
        width: 100%;
        min-width: unset;
    }
    #Learnpoint2 #learn-r .grid {
        height: 300px;
    }
}
@media (max-width: 768px) {
    #Learnpoint2 #learn-r .grid {
        display: grid;
        grid-template-rows: repeat(5, 1fr);
        grid-template-columns: repeat(12, 1fr);
        width: 100%;
        margin: auto;
        height: 270px;
    }
    #Learnpoint2 #learn-r .grid .item.img01{
        grid-row: auto / span 3;
        grid-column: auto / span 5;
    }
    #Learnpoint2 #learn-r .grid .item.img02{
        grid-row: auto / span 2;
        grid-column: auto / span 4;
        grid-column-start: 9;
    }
    #Learnpoint2 #learn-r .grid .item.img03{
        grid-row: auto / span 3;
        grid-column: auto / span 3;
        grid-column-start: 6;
        grid-row-start: 1;
    }
    #Learnpoint2 #learn-r .grid .item.img04{
        grid-row: auto / span 2;
        grid-column: auto / span 4;
        grid-column-start: 1;
        grid-row-start: 4;
    }
    #Learnpoint2 #learn-r .grid .item.img05{
        grid-row: auto / span 2;
        grid-column: auto / span 4;
        grid-column-start: 5;
        grid-row-start: 4;
    }
    #Learnpoint2 #learn-r .grid .item.img07{
        grid-row: auto / span 3;
        grid-column: auto / span 4;
        grid-column-start: 9;
        grid-row-start: 3;
    }
    #Learnpoint2 #learn-r .grid .item.img06{
        display: none;
    }
}

/* hlight---------- */
#hlight {
    background: var(--main-color);
}

#hlight .unit-title {
    border-bottom: unset;
}

#hlight .slogan {
    gap: 1rem;
}

#hlight h2 {
    color: var(--white-color);
}

@media (max-width: 768px) {
    #hlight .slogan {
        gap: 0.25rem;
    }
}


/* theme---------- */
#theme {
    /* background: #F3F3F3; */
    background: url(../../image/bg-top.svg) #F3F3F3;
    background-position: top center;
    background-repeat: no-repeat no-repeat;
    background-size: contain;

}

#theme .unit-title h3 {
    font-size: 2rem;
    color: #626262;
    font-family: "Fira Code", "Noto-sans";
}

#theme .accordion .accordion-item {
    border: 2px solid #1e1e1e;
}

#theme .accordion .accordion-item:hover {
    border: 2px solid var(--main-color);
    background: var(--main-color);
    transition: all .25s;
    transform: scale(1.02);
}

/* #theme .accordion .accordion-item:hover h6,
#theme .accordion .accordion-item:hover h4{
    color: var(--main-color);
} */
#theme .accordion .accordion-item:active,
#theme .accordion .accordion-item:focus {
    background: var(--main-color);
    border: 2px solid var(--main-color);
    transition: all .25s;
    transform: scale(1.02);
}

.accordion-button:not(.collapsed),
.accordion-body {
    color: var(--white-color);
    background-color: var(--main-color);
    box-shadow: unset;
}

#theme .accordion-body {
    display: flex;
    justify-content: space-between;
}

#theme .accordion-body p {
    line-height: 2rem;
}

#theme .accordion-body a {
    background: var(--white-color);
    padding: 0.3rem 1.5rem;
    border-radius: 2rem;
}

#theme .accordion-body a h6 {
    color: #1e1e1e;
}

#theme .accordion-body a svg {
    height: 100%;
}

#theme .accordion-body a:hover {
    background: var(--black-color);
}

#theme .accordion-body a:hover h6 {
    color: var(--white-color);
}

#theme .accordion-body a:hover svg path {
    fill: var(--white-color);
}

@media (max-width: 768px) {
    #theme .unit-title h3 {
        font-size: 1.5rem;
    }

    #theme .accordion-body {
        flex-direction: column;
    }

    #theme .accordion-body a {
        width: fit-content;
    }
}

/* Leadership/Competency/Summit---------- */
#Leadership,
#Competency,
#Summit {
    background: #F3F3F3;
}

/* #Summit{
    background: url(../../image/bg-bot.svg) #F3F3F3;
    background-position: bottom center;
    background-repeat: no-repeat no-repeat;
    background-size: contain;
} */

#Leadership .unit-title,
#Competency .unit-title,
#Summit .unit-title {
    border-bottom: unset;
}

#Leadership .unit-title .unit-en,
#Competency .unit-title .unit-en,
#Summit .unit-title .unit-en {
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: -2px;
}

#Leadership .unit-info,
#Competency .unit-info,
#Summit .unit-info {
    color: #555555;
    line-height: 1.75rem;
    letter-spacing: 1px;
}

#Leadership .class-img,
#Competency .class-img,
#Summit .class-img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#Leadership .class-info .unit-en,
#Competency .class-info .unit-en,
#Summit .class-info .unit-en {
    color: var(--main-color);
    font-weight: 300;
    letter-spacing: -1px;
}

#Leadership .class-info h6,
#Competency .class-info h6,
#Summit .class-info h6 {
    color: #555555;
    font-weight: 300;
    letter-spacing: 1px;
}

#Leadership .class-link,
#Competency .class-link,
#Summit .class-link {
    border: 1px solid #1e1e1e;
    padding: 3px 12px;
    color: #1e1e1e;
}

#Leadership .class-link:hover,
#Competency .class-link:hover,
#Summit .class-link:hover {
    border: 1px solid var(--main-color);
    transition: all .25s;
    color: var(--white-color);
    background-color: var(--main-color);
}

@media (max-width: 768px) {

    #Leadership .unit-title h2,
    #Competency .unit-title h2,
    #Summit .unit-title h2 {
        line-height: 2rem;
    }

    #Leadership .unit-title .unit-en,
    #Competency .unit-title .unit-en,
    #Summit .unit-title .unit-en {
        font-size: 0.9rem;
        letter-spacing: unset;
    }
}


#footer .scrolltop {
    position: fixed;
    bottom: 7.5%;
    right: 2%;
    width: 55px;
    height: 55px;
    display:block;
    background-color: var(--black-color);
    color: var(--white-color);
    font-size: 30px;
    z-index: 20;
    border-radius: 50%;
}
#footer .scrolltop:hover {
    cursor:pointer;
    background-color: var(--main-color);
    color: var(--white-color);
}

/* client---------- */
#client {
    background: linear-gradient(#FF6900, #FFF0B2 75%, #FFFFFF);
}

#client .unit-title {
    border-bottom: unset;
}

#client a p{
    background-color: #1e1e1e;
    padding: 10px 40px;
    font-weight: 500;
    border-radius: 30px;
    color: var(--white-color);
}

#client a:hover p{
    background-color: #424242;
}