:root {
    /*主色輔色 改色*/
    --main-color: #2614f4;
    --sub-color: #d9e021;
    --sub2-color: #8b45e3;

    /*勿動*/
    --white-color: #fff;
    --black-color: #1B1B1B;
}

/*--特別class，通用--*/
body {
    letter-spacing: 0.1vw;
}

.f-color {
    color: var(--main-color);
}

.date-en {
    /* font-family: 'Frank Ruhl Libre','Oswald', sans-serif; */
    font-family: 'Fox Bebas', sans-serif;
}

.video-container {
    position: relative;
    padding-bottom: 51.4%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;

}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



.mbr-parallax-background-fixed::before {
    content: '';
    position: fixed;
    z-index: -1;
    height: 100%;
    width: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url(../../images/main-bg.jpg) top center no-repeat,
        #2614f4;
    background-size: cover;

    @media screen and (max-width: 768px) {
        background-image: url(../../images/main-bg-m.jpg);
    }
}

/* @media (max-width: 768px) {
    .mbr-parallax-background-fixed::before {
        position: fixed;
        top: 0;
        left: 0;
        content: '';
        height: 100%;
        width: 100%;
        background: url(../../images/main-bg-mob.png) top center no-repeat;
        background-size: cover;
        z-index: -1;
    }
}

*/


/* nav ---------- */
.navbar {
    background-color: #ffffff;
}

.feds-header {
    width: 100%;
    background-color: #fff;
    transition: background-color .48s cubic-bezier(.42, 0, .2, 1);
}

.feds-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    border-radius: 16px;
    background-color: transparent;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: background-color .48s cubic-bezier(.42, 0, .2, 1),
        -webkit-backdrop-filter .48s cubic-bezier(.42, 0, .2, 1),
        backdrop-filter .48s cubic-bezier(.42, 0, .2, 1),
        box-shadow .48s cubic-bezier(.42, 0, .2, 1);
}

.feds-header.feds-header-scrolled {
    background-color: transparent;
    top: 8px;
    width: calc(100% - 16px);
    margin: 8px;
    border-radius: 16px;
}

.feds-header.feds-header-scrolled::after {
    background-color: #ffffff82;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 67px 19px #0000, 0 43px 17px #00000003, 0 24px 14px #0000000a, 0 11px 11px #00000012, 0 3px 6px #00000014;
}

@media (prefers-reduced-motion: reduce) {

    .feds-header,
    .feds-header::after {
        transition: none;
    }
}

.nav-item a {
    color: var(--black-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) !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(--sub-color);
    color: var(--black-color) !important;
    border: solid 2px var(--sub-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 {
    position: relative;
    color: var(--white-color);
    padding-top: 0.5rem;
    padding-bottom: 0;
}

#main .hero-top {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    padding-top: 2rem;

    @media screen and (max-width: 768px) {
        align-items: center;
        gap: 0.85rem;
        padding-top: 4rem;
    }
}

.hero-speakers {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    --hero-overlap: 5.5rem;
    --hero-frame: 18rem;
    --hero-gap: calc(var(--hero-overlap) / -5);
    --hero-pull: 3rem;
    padding-top: 2rem;

    @media screen and (max-width: 960px) {
        --hero-frame: 16rem;
        --hero-gap: calc(var(--hero-overlap) / -2);
        --hero-pull: 1.5rem;
    }

    @media screen and (max-width: 768px) {
        --hero-frame: 7.6rem;
        --hero-gap: -0.3rem;
        --hero-pull: 1rem;
    }
}

.hero-speaker {
    position: relative;
    margin: 0;
    margin-inline: var(--hero-gap);
    height: var(--hero-frame);
}

.hero-speaker:nth-child(3),
.hero-speaker:nth-child(4) {
    margin-left: calc(var(--hero-gap) - var(--hero-pull));
}

.hero-speaker-photo {
    height: 100%;
    overflow: hidden;
}

/* 依頭的比例放大後裁掉下方，讓四顆頭一樣大、頭頂齊平 */
.hero-speaker:nth-child(2) {
    --hero-scale: 1;
}

.hero-speaker:nth-child(3) {
    --hero-scale: 1.25;
}

.hero-speaker:nth-child(4) {
    --hero-scale: 1.2;
}

.hero-speaker img {
    display: block;
    width: auto;
    max-width: none;
    height: calc(var(--hero-frame) * var(--hero-scale, 1));
    object-fit: cover;
    object-position: center top;
    /* filter: grayscale(1) contrast(1.1); */
}

/* .hero-speaker:nth-child(3) img {
    filter: grayscale(1) contrast(1.31);
} */

.hero-speaker figcaption {
    position: absolute;
    z-index: 1;
    left: 0.15rem;
    right: 0.15rem;
    bottom: 1rem;
    color: #d9e021;
    text-align: left;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-speaker strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    color: #d9e021;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.hero-speaker span {
    display: block;
    margin-top: 0.1rem;
    font-size: 1rem;
    font-weight: 400;

    @media screen and (max-width: 768px) {
        display: none;
    }
}

.hero-speaker p {
    display: none;

    @media screen and (max-width: 768px) {
        display: block;
        margin: 0;
        font-size: 0.85rem;
        font-weight: 400;
        padding: 0;
        text-align: left;
        line-height: 1.25;
    }
}

@media screen and (max-width: 768px) {
    .hero-speaker figcaption {
        text-align: center;
        left: 0;
        right: 0;
    }

    .hero-speaker strong {
        font-size: 0.92rem;
    }

    .hero-speaker span {
        font-size: 0.8rem;
    }
}

.hero-title {
    width: 100%;
    max-width: 600px;
}

.main-txt {
    font-size: 1.2rem;
}

#main .hero-box {
    display: flex;
    align-items: end;

    @media screen and (max-width: 768px) {
        writing-mode: revert;
        position: relative;
        margin: 0;
        height: auto;
        text-align: left;
        width: 100%;
        line-height: 1.5;
        padding-top: 10px;
        flex-direction: column;
        align-items: start;
    }
}

#main .hero-vertical {
    writing-mode: vertical-rl;
    text-orientation: upright;
    flex: 0 0 auto;
    margin: 0 1.5rem 0 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1.8;
    height: 368px;
    color: #111;
    position: absolute;

    @media screen and (max-width: 768px) {
        writing-mode: horizontal-tb;
        position: relative;
        margin: 0;
        height: auto;
        width: 100%;
        line-height: 1.5;
    }
}

#main .hero-vertical2 {
    color: #111;
    background-color: #d9e021;
    padding: 4px 12px 8px;
    font-size: 2rem;

    @media screen and (max-width: 768px) {
        font-size: 1rem;
    }
}

.main-speakers {
    position: absolute;
    bottom: 0;
    right: 5%;
}

@media (max-width: 768px) {
    #main {
        position: relative;
        padding-bottom: 0;
        padding-top: 0;
    }

    .main-speakers {
        right: 0%;

    }
}



/* slogan ---------- */
#slogan {
    background: var(--main-color);
    color: var(--white-color);
}

#slogan h3 {
    @media screen and (max-width: 768px) {
        font-size: 1.25rem;
    }
}

/* main-info ---------- */
#main-info {
    background: radial-gradient(circle, #2614f3 0%, #ac7bfd 100%);
    color: var(--white-color);
    box-shadow:
        inset 0 0 100px rgba(255, 255, 255, 0.35),
        inset 0 0 200px rgba(0, 0, 0, 0.1);
}

/* suitable2 ---------- */
#suitable2 {
    background-color: #EFEFEF;
}

#suitable2 h5 {
    color: var(--main-color);
    font-weight: bold;
}

/* hlight ---------- */
#hlight {
    background: url(../../images/pattern01.png) left top / cover no-repeat,
        rgba(97, 83, 255, 0.802);
    background-position: left top;
    background-size: 60%;

    @media screen and (max-width: 768px) {
        background-size: 90%;
        padding-bottom: 2rem;
    }

}


/* 課綱／議程[華麗式] */
#agenda7 {
    background: linear-gradient(45deg, #5097ffd9, #d1cdff, #bfc5f5a6);
}

#agenda7 .date-en {
    font-family: 'Oswald', sans-serif;
}

#agenda7 h4 {
    font-size: 22px;
}

#agenda7 h4 .time {
    font-size: 16px;
}


#agenda7 .speaker_info img {
    width: 150px;
    margin-right: 1rem;
}

#agenda7 .speaker_info a {
    overflow: hidden;
}

#agenda7 .speaker_info a:hover img,
#agenda7 .speaker_info a:focus img {
    transform: scale(1.15, 1.15);
    transition: all .5s ease;
}

#agenda7 .speaker_info .btn-info {
    margin: 0;
    background-color: #000;
    display: inline-block;
    color: var(--white-color);
    font-size: .75rem;
    padding: 0 4px;
}

#agenda7 .speaker_info .info-w {
    font-size: .85rem;
    font-weight: 300;
    background: #e4e4e4;
}

#agenda7 h6 span.hashtag {
    padding: 3px 10px;
    background-color: #f2f2f2;
    border: 1px solid #1e1e1e;
    color: #1e1e1e;
    /* border-radius: 100px; */
}

#agenda7 .time {
    font-weight: 300;
    font-size: 1.5rem;
}

#agenda7 .sub-title {
    background-color: var(--sub-color);
    color: #fff;
    padding: 0.2rem 0.8rem 0.2rem 0.8rem;
    border-radius: 0px;
    display: inline-block;
    font-weight: 500;
}

#agenda7 .title {
    color: var(--black-color);
    padding: 6px 0px;
    margin-top: 1rem;
    line-height: 40px;
    font-weight: 700;
    font-size: 24px;
}



#agenda7 .sub-title.color2 {
    background-color: var(--main-color);
    color: #fff;
}

#agenda7 .title.color2 {
    color: var(--white-color);
    padding: 6px 8px;
    margin-top: 1rem;
    background: linear-gradient(to right, #4bcaf4, #2B48B3, transparent);
}

#agenda7 .speaker_info h4 {
    display: table;
    margin-bottom: 5px;
    background-color: var(--main-color);
    color: var(--white-color);
    padding: 0 10px 0 10px;
}

#agenda7 .speaker_info h4.color2 {
    background-color: var(--main-color);
}

#agenda7 .speaker_info p {
    margin-bottom: 5px;
    border-top: 1.5px solid black;
    padding-top: 5px;
}

#agenda7 .speaker_info .btn-info {
    margin: 0;
    background-color: #000;
    display: inline-block;
    color: var(--white-color);
    font-size: .75rem;
    padding: 0 4px;
}

#agenda7 .title-sm {
    display: inline-flex;
    color: var(--sub2-color);
    font-size: .85rem;
    font-weight: 300;
}

#agenda7 .title-sm+ul {
    font-weight: 500;
}

#agenda7 .hlight-carousel img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

#agenda7 .hlight-carousel {
    position: relative;
}

#agenda7 .owl-theme .owl-nav {
    position: absolute;
    bottom: 90px;
    right: 0;
}

#agenda7 .owl-theme.owl2 .owl-nav {
    bottom: 90px;
}

#agenda7 .hlight-carousel .item {
    background: #e4e4e4;
}

#agenda7 .hlight-carousel .item p {
    font-size: .85rem;
    width: 100%;
    padding: 3px;
    min-height: 90px;
}

@media (max-width: 992px) {
    #agenda7 h4 {
        font-size: 1.2rem;
    }

    #agenda7 .d-flex .box {
        margin-top: 8px;
    }

    #agenda7 .d-flex .box2 {
        flex-basis: 100%;
        margin-top: 8px;
        order: 2;
    }

    #agenda7 .hlight-carousel .item p {
        font-size: .85rem;
        width: 100%;
        padding: 3px 3px;
        min-height: 129px;
    }

    #agenda7 .owl-theme .owl-nav,
    #agenda7 .owl-theme.owl2 .owl-nav {
        bottom: 129px;
    }

    #agenda7 .owl-theme.owl3 .owl-nav {
        bottom: 129px;
    }
}


/* 課程資訊－一般B */
#infomation3 {
    background: #EFEDE5;
    position: relative;
    color: var(--black-color);
}

#infomation3 .pattern01 {
    position: absolute;
    top: -10%;
    right: -9%;
    width: 30%;
    transform: rotate(-150deg);
}

#infomation3 .pattern02 {
    position: absolute;
    bottom: -14%;
    left: -22%;
    width: 40%;
    transform: rotate(-251deg);
}

#infomation3 .co-qa {
    color: var(--main-color);
}

#infomation3 .btn-sold .sold01 {
    background: linear-gradient(to right bottom, #81ef8a, #5fc068);
    padding: 1.5rem;
    border-radius: 3px;
    color: var(--black-color);
}

.shine-button::before {
    content: '';
    width: 80px;
    height: 300%;
    border: none;
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translateY(-50%) rotate(35deg);
    background: #97ffa0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #97ffa0 50%, rgba(255, 255, 255, 0) 100%);
    animation: shine 3s infinite;
    mix-blend-mode: soft-light;
}

#infomation3 .btn-sold .hotsold {
    background: linear-gradient(to right bottom, #4d4d4d, #2C2C2C);
    padding: 1.5rem;
    margin-top: 0;
    border-radius: 3px;
    color: white;
}

#infomation3 .btn-sold .sold-normal {
    background: linear-gradient(to right bottom, #2614f4, #94e3f0);
    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(--black-color);
    color: var(--white-color);
    border: solid 2px var(--black-color);
    border-radius: 2rem;
    padding: .8rem 3.5rem !important;
    font-size: 1.35rem;
    font-weight: 700;
}

#infomation3 .btn-ticket:hover,
#infomation2 .btn-ticket:focus {
    background-color: var(--main-color);
    color: var(--white-color) !important;
    border: solid 2px var(--main-color);

}

#infomation3 h4,
#qna h4 {
    font-size: 1.2rem;
}

@media (max-width: 768px) {

    #infomation3 {
        overflow: hidden;
    }

    #infomation3 .pattern01 {
        width: 30%;
        top: -4%;
        right: -8%;
    }

    #infomation3 .pattern02 {
        bottom: -5%;
        width: 11%;
    }

    #infomation3 h4,
    #qna h4 {
        font-size: 1rem;
    }
}




#qna {
    background: #c6d1cfbf;
}


/* -----#photoss----- */
#photoss {
    background-color: #EFEDE5;
    padding-bottom: 4rem;
    padding-top: 0rem;
}

#photoss .owl-carousel .owl-item img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

#photoss .d-flex {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#photoss h4 {
    margin: 0;
    position: relative;
    display: inline-block;
    z-index: 2;
}

#photoss .h6 {
    font-weight: 300;
    line-height: 30px;
    margin-bottom: 0;
}

#photoss h4:after {
    content: "";
    width: 100%;
    height: 25px;
    display: block;
    position: absolute;
    top: -2px;
    left: 8px;
    background-color: var(--sub-color);
    z-index: -1;
}

#photoss .sd {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    font-size: 10px;
    border-radius: 50px;
    background: var(--black-color);
    color: var(--white-color);
    margin-left: 1rem;
}

#photoss .sd:hover,
#photoss .sd:focus {
    transform: scale(1.2, 1.2);
    transition: all .5s ease;
}

/* aabar ---------- */
#aabar {
    position: fixed;
    bottom: 1rem;
    width: 100%;
    z-index: 100;
    /* background: var(--main-color); */
    /* padding: .15rem; */
}

#aabar a {
    font-size: 1.3rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/*footer改色 ---------- */

#footer {
    position: absolute;
    width: 100%;
    background-color: #2C2C2C;
    color: var(--white-color);
}

#footer .scrolltop {
    background: var(--sub-color);
    color: var(--white-color);
    opacity: .9;
}

/* 2026 課程頁 ---------- */
.hlight-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 280px;
    padding: 1.35rem 1.15rem 1.2rem;
    text-align: left;
    color: #fff;
    width: calc(100cqi / 0.818);
    border-radius: 16px;
    background: linear-gradient(180deg, #07060e 0%, #141033 58%, #2a1d78 100%);
    transform-origin: left center;
    transform: perspective(calc(100cqi / 0.818 * 1.9)) rotateY(18deg);

    @media screen and (max-width: 768px) {
        min-height: 220px;
        padding: 1rem 0.85rem 0.9rem;
    }
}

#hlight .row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 20px;
    --bs-gutter-x: 0px;
    --bs-gutter-y: 0px;
    margin: 0;

    @media (max-width: 991.98px) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

#hlight .row>[class*="col"] {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    container-type: inline-size;
}

.hlight-card .hlight-title {
    color: var(--sub-color);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.28;
    letter-spacing: 0;
    margin: 0;

    @media screen and (max-width: 768px) {
        font-size: 1.5rem;
    }
}

.hlight-card .hlight-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.4rem;
    margin-top: 1.35rem;

    @media screen and (max-width: 768px) {
        margin-top: 0.85rem;
    }
}

.hlight-card .hlight-foot p {
    color: var(--sub2-color);
    font-weight: 500;
    font-size: 1.8rem;
    line-height: 1.35;
    margin: 0;

    @media screen and (max-width: 768px) {
        font-size: 1.25rem;
    }
}

.hlight-card .hlight-foot .name {
    color: #ffffff;
}

.hlight-card .hlight-hash {
    flex: 0 0 auto;
    align-self: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 3rem;
    line-height: 0.8;
    margin-bottom: 0.15rem;

    @media screen and (max-width: 768px) {
        font-size: 3rem;
    }
}

.page-2026 #agenda7 .speaker_info img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    object-position: top center;
}

#agenda7 .row>.col-md-5 {
    display: flex;
    flex-direction: column;
}

#agenda7 .row>.col-md-5>.speaker_info {
    margin-top: auto;
    align-items: flex-end;
}

@media (min-width: 768px) {
    #agenda7 .row>.col-md-7 {
        display: flex;
        flex-direction: column;
    }

    #agenda7 .row>.col-md-7>.hlight-carousel {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        background: #e4e4e4;
    }

    #agenda7 .hlight-carousel .owl-stage-outer {
        flex: 1 1 auto;
    }

    #agenda7 .align-end-copy {
        text-align: right;
    }

    #agenda7 .align-end-copy .title-sm {
        align-self: flex-end;
        width: max-content;
    }

    #agenda7 .align-end-copy ul {
        list-style-position: inside;
        padding-left: 0;
    }

    #agenda7 .align-end-copy .speaker_info {
        justify-content: flex-end;
    }

    #agenda7 .align-end-copy .speaker_info h4 {
        margin-left: auto;
    }
}