* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

$desktop: 1025px;
$table: 1024px;
$moblie: 767px;
$navbgcolor: #eb144c;

@media screen and(max-width:$table) {
}
@media screen and(max-width:$moblie) {
}

.container-fluid {
    width: 80vw;
    margin: 0 auto;
    @media screen and(max-width:$moblie) {
        width: 100vw;
    }
}

// 主選單
#Navigation {
    width: 100vw;
    background-color: $navbgcolor;
    color: #fff;
    position: fixed;
    opacity: 1 !important;
    z-index: 20;

    #logo {
        padding-top: 3vw;
        @media screen and(max-width:$moblie) {
            padding: 15px;
        }

        img {
            width: 180px;
            @media screen and(max-width:$moblie) {
                width: 140px;
            }
        }
    }
    #link {
        padding: 4vw 1vw 2vw 1vw;
        @media screen and(max-width:$moblie) {
            display: none;
        }
        a {
            text-decoration: none;
            color: #fff;
            letter-spacing: 1px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            padding: 15px;
            position: relative;
            :hover {
                opacity: 0.8;
            }
            &:after {
                content: "";
                display: block;
                width: 80%;
                height: 3px;
                background-color: #fff;
                position: absolute;
                left: 12%;
                bottom: 0;
                transition: all 0.3s;
                opacity: 0;
            }
            &:hover:after {
                width: 80%;
                opacity: 1;
            }
            @media screen and(max-width:$table) {
                padding: 5px;
                padding-top: 2vw;
            }
        }
    }
    #menu-btn1 {
        position: absolute;
        right: 2vw;
        top: 5vw;
        width: 15vw;
        z-index: 6;

        @media screen and(min-width:$desktop) {
            display: none;
        }
        @media screen and(min-width:768px) {
            display: none;
        }
    }
}

// 行動版彈跳式選單
#menu-box {
    width: 40vw;
    right: 0px;
    position: fixed;
    z-index: 20;
    overflow: hidden;
    display: none;
    @media screen and(min-width:$desktop) {
        display: none;
    }

    hr {
        margin: 5px auto !important;
        width: 25vw;
        background: #fff;
        opacity: 1 !important;
    }
    #menu-box2 {
        padding-bottom: 5vw;
        position: relative;
        width: 40vw;
        background-color: $navbgcolor;

        z-index: 7;
        text-align: center;
        @media screen and(max-width:$moblie) {
        }
        @media screen and(max-width:350px) {
        }
        .close {
            padding: 30px 15px 15px 15px;
        }

        a {
            display: inline-block;
            text-decoration: none;
            color: #fff;
            font-size: 14px;
            font-weight: 900;
            text-align: center;
            padding: 0 !important;
        }
    }
}

// banner
#banner {
    width: 100vw;
    display: inline-block;
    background: #fff;
    #banner-container {
        width: 80vw;
        margin: 50px auto;
        padding-bottom: 5vw;
        @media screen and(max-width:$moblie) {
            width: 100vw;
            margin: 0;
            padding-bottom: 15vw;
        }
        img {
            padding-top: 10vw;
            width: 80vw;
            object-fit: cover;

            @media screen and(max-width:$moblie) {
                padding-top: 15vw;
                width: 100vw;
            }
        }
    }
}
// 最新課程-電腦版
#sec01 {
    padding-bottom: 10vw;
    background: #fff;
    // @media screen and(max-width:$moblie) {
    //     display: none;
    // }
    #sec01-title {
        margin-bottom: 50px;
        h1 {
            text-align: center;
            color: #e02d4b;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;
           
            @media screen and(max-width:$moblie) {
                font-weight: 900;
                font-size: 32px;
            }
        }
        hr {
            width: 5vw;
            height: 5px;
            color: #e02d4b;
            margin: 10px auto;
            opacity: 1 !important;
            @media screen and(max-width:$moblie) {
                width: 30vw;
            }
        }
    }
    .learn-more {
        width: 45%;
    }
    #sec01-container {
        .sec01-1 {
            .card {
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
                border-radius: 10px;
                img {
                    padding: 5px;
                    object-fit: cover;
                }

                .card-title1{
                    font-weight: 900;
                    height: 100px;
                }

                .card-content1{
                    height: 100px;
                }
            }
        }
    }
}
// 最新課程-手機板
#sec01-moblie {
    padding-top: 5vw;
    padding-bottom: 5vw;
    background: #fff;
    position: relative;
    overflow: hidden;
    .arrow-table {
        position: fixed;
        width: 25px;
        right: 15px;
        bottom: 240px;
        z-index: 6;
        @media screen and(max-width:350px) {
            right: 10px;
        }
    }
    @media screen and(min-width:$desktop) {
        display: none;
    }
    #sec01-moblie-header {
        h1 {
            text-align: center;
            color: #e02d4b;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;

            @media screen and(max-width:$moblie) {
                font-weight: 900;
                font-size: 32px;
            }
        }
        hr {
            margin: 10px auto !important ;
            width: 25vw;
            height: 5px;
            color: #e02d4b;
            margin: 10px;
            opacity: 1 !important;
        }
    }
    #sec01-moblie-container {
        padding-top: 10vw;
        .col {
            margin: 10px;
            .card {
                img {
                    height: 150px;
                    object-fit: cover;
                }
                box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
                border-radius: 10px;
                .card-title {
                    font-weight: 900;
                }

                .learn-more {
                    width: 120px;
                }
            }
        }
    }
}
// sec02 TOP排名 電腦版
#sec02 {
    background: $navbgcolor;
    padding: 5vw 0px;
    padding-bottom: 8vw;
    @media screen and(max-width:$moblie) {
        display: none;
    }
    #sec02-container {
        width: 90vw;
        padding: 15px;
        font-weight: 900;
        color: #fff;
        position: relative;

        // 電腦版top圖片排行
        #sec02-top-box {
            #sec02-top-title {
                text-align: center;
                hr {
                    width: 5vw;
                    height: 5px;
                    color: #fff;
                    margin: 10px auto;
                    opacity: 1 !important;
                    @media screen and(max-width:$moblie) {
                        width: 30vw;
                    }
                }
            }
            position: relative;
            #sec02-content {
                position: absolute;
                top: -180px;
                left: 300px;
            }

            .sec02-box1 {
                color: #fff;

                img {
                    display: inline;
                    width: 200px;
                    height: 200px;
                    object-fit: cover;
                }
                .sec02-top-text {
                    font-size: 20px;
                    span {
                        font-size: 30px;
                    }
                }
            }
        }
    }
}
// sec02 TOP排名 手機板
#sec02-moblie {
    padding-top: 3vw;

    @media screen and(min-width:$desktop) {
        display: none;
    }
    #sec02-moblie-header {
        h1 {
            text-align: center;
            color: $navbgcolor;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;

            @media screen and(max-width:$moblie) {
                font-weight: 900;
                font-size: 32px;
            }
        }
        hr {
            margin: 10px auto !important;
            width: 25vw;
            height: 5px;
            color: $navbgcolor;
            margin: 10px;
            opacity: 1 !important;
        }
    }
    #sec02-container {
        background: linear-gradient(180deg, #fff 20%, transparent 35%, #eb144c 20%);
        font-weight: 900;
        color: #fff;
        text-align: right;
        padding: 20vw 0;
        #sec02-content {
            position: relative;
            padding: 5px;
        }
        #sec02-top-box {
            @media screen and(max-width:350px) {
                left: 10px;
            }
            .sec02-box1 {
                color: #fff;

                #top1 {
                    width:120px;
                    @media screen and(max-width:350px) {
                        width: 100px;
                        height: auto;
                    }
                }
                img {
                    object-fit: cover;
                    @media screen and(max-width:350px) {
                        width: 70px;
                        height:auto;
                    }
                }
                .sec02-top-text {
                    font-size: 12px;
                    text-align: left;
                    
                    @media screen and(max-width:350px) {
                        text-align: left;
                     
                    }

                    span {
                        font-size: 30px;
                        @media screen and(max-width:350px) {
                            font-size: 25px;
                        }
                    }
                }
            }
        }
    }
}
// sec03 排名table-電腦版
#sec03 {
    padding-bottom: 5vw;
    @media screen and(max-width:$moblie) {
        display: none;
    }
    #sec03-table {
        .sec03-table-title {
            font-family: 微軟正黑體;
            font-weight: 900;
            padding: 15px;
            font-size: 35px;
        }
        .table {
            th {
                font-size: 40px;
                display: table-cell;
                vertical-align: middle;
            }
            td {
                padding: 15px;
                a {
                    text-decoration: none;
                    color: #000;
                    transition: 0.3s;
                    cursor: pointer;
                    &:hover {
                        color: #2828ff;
                    }
                }
            }

            img {
                width: 80px;
            }
            .sec03-table-text {
                padding: 10px;
                display: table-cell;
                vertical-align: middle;
                h1 {
                    font-size: 20px;
                    margin: 0;
                }
                p {
                    margin: 0;
                }
            }
        }
    }
}
// sec03排名table-手機板
#sec03-moblie {
    position: relative;
    .arrow-table {
        position: fixed;
        width: 25px;
        right: 15px;
        bottom: 250px;
        z-index: 6;
        @media screen and(max-width:350px) {
            right: 10px;
            bottom: 200px;
        }
    }
    .sec03-table-title,
    .sec03-table-title2 {
        font-family: 微軟正黑體;
        font-weight: 900;
        font-size: 14px;
        display: inline-block;

        color: #9b9b9b;
    }
    .contant-toggle {
        display: inline-block;
        color: #000;
        padding-bottom: 10px;
        border-bottom: 2px solid #000;
    }

    #sec03-slider {
        padding-top: 5vw;
        .slick-slide img {
            display: inline;
        }
        #sec03-slider1,
        #sec03-slider2 {
            margin: 0 5px;
            @media screen and(max-width:350px) {
                margin: 0 5px;
            }
        }

        .table {
            th {
                font-size: 40px;
                display: table-cell;
                vertical-align: middle;
                padding: 15px;
                @media screen and(max-width:350px) {
                    font-size: 30px;
                }
            }
            td {
                display: table-cell;
                vertical-align: middle;
                padding: 15px;
                padding: 10px;
                @media screen and(max-width:350px) {
                    padding: 0px;
                }
                a {
                    text-decoration: none;
                    color: #000;
                    transition: 0.3s;
                    cursor: pointer;
                    &:hover {
                        color: #2828ff;
                    }
                }
            }

            img {
                width: 70px;
            }
            .sec03-table-text {
                padding: 0px 0px 0px 3px;
                display: table-cell;
                vertical-align: middle;
                @media screen and(max-width:350px) {
                    padding: 0px;
                }

                h1 {
                    font-size: 14px;
                    margin: 0;
                }
                p {
                    margin: 0;
                    font-size: 12px;
                }
            }
        }
    }
    @media screen and(min-width:$desktop) {
        display: none;
    }
}
// sec04 專欄報導-電腦版
#sec04 {
    background: linear-gradient(180deg, #fff 50%, #ededf9 50%);

    padding-bottom: 10vw;

    @media screen and(max-width:$moblie) {
        display: none;
    }
    #sec04-title {
        margin-bottom: 50px;
        h1 {
            text-align: center;
            color: $navbgcolor;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;

            @media screen and(max-width:$moblie) {
                font-weight: 900;
                font-size: 32px;
            }
        }
        hr {
            width: 5vw;
            height: 5px;
            color: $navbgcolor;
            margin: 10px auto;
            opacity: 1 !important;
            @media screen and(max-width:$moblie) {
                width: 30vw;
            }
        }
    }
    .learn-more {
        width: 45%;
    }
    #sec04-container {
        a {
            text-decoration: none;
            color: #000;
            transition: 0.3s;
            cursor: pointer;
            &:hover {
                color:$navbgcolor;
            }
        }
        .card {
            box-shadow: 0 10px 1px $navbgcolor;
            border-radius: 10px;
            img {
                padding: 5px;
                height: 150px;
                object-fit: cover;
            }

            .card-title {
                font-weight: 900;
            }
        }
    }
}
// sec04專欄報導 手機板
#sec04-moblie {
    padding-top: 5vw;
    padding-bottom: 5vw;
    background: #fff;
    position: relative;
    overflow: hidden;
    .arrow-table {
        position: fixed;
        width: 25px;
        right: 15px;
        bottom: 240px;
        z-index: 6;
        @media screen and(max-width:350px) {
            right: 10px;
        }
    }
    @media screen and(min-width:$desktop) {
        display: none;
    }
    #sec04-moblie-header {
        h1 {
            text-align: center;
            color: $navbgcolor;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;

            @media screen and(max-width:$moblie) {
                font-weight: 900;
                font-size: 32px;
            }
        }
        hr {
            margin: 10px auto !important ;
            width: 25vw;
            height: 5px;
            color: $navbgcolor;
            margin: 10px;
            opacity: 1 !important;
        }
    }
    #sec04-moblie-container {
        padding-top: 10vw;
        .col {
            margin: 10px;
            a {
                text-decoration: none;
                color: #000;
                transition: 0.3s;
                cursor: pointer;
                &:hover {
                    color:$navbgcolor;
                }
            }
            .card {
                img {
                    height: 150px;
                    object-fit: cover;
                }
                box-shadow: 0 10px 1px $navbgcolor;
                border-radius: 10px;
                .card-body{
                    height: 260px;
                    @media screen and(max-width:350px) {
                       padding: .5rem .5rem;
                     }
                }
                .card-title {
                    font-weight: 900;
                }
                .card-text{
                    @media screen and(max-width:350px) {
                       font-size: 14px;
                    }
                }
            }
        }
    }
}

// sec05 課程分類-電腦版
#sec05 {
    padding-top: 5vw;
    padding-bottom: 5vw;

    #sec05-title {
        margin-bottom: 50px;

        h1 {
            text-align: center;
            color: $navbgcolor;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;

            @media screen and(max-width:$moblie) {
                font-weight: 900;
                font-size: 32px;
            }
        }
        hr {
            width: 5vw;
            height: 5px;
            color: $navbgcolor;
            margin: 10px auto;
            opacity: 1 !important;
            @media screen and(max-width:$moblie) {
                width: 30vw;
            }
        }
    }
    #tag-group {
        border: 3px solid #ea504d;
        @media screen and(max-width:$moblie) {
            font-size: 16px;
            padding: 0 10px;
            margin: 0 10px;
            border: 0;
        }
        .tag {
            button {
                padding: 0 30px;
                margin: 0 30px;
                color: #ffafae;
                background: none;
                font-size: 32px;

                @media screen and(max-width:$moblie) {
                    font-size: 16px;
                    padding: 0 15px;
                    margin: 0 10px;
                    color: #fff;
                    background: #ffafae;
                }
                &:hover,
                &:focus {
                    color: #fff;
                    background: #eb144c;
                }
            }
        }
    }

    #sec05-container {
        .course-content{
            animation-name:Cardload;
            animation-duration: 1.5s;
        }
        #sec05-course {
           
            a {
                text-decoration: none;
                color: #000;
                transition: 0.3s;
                cursor: pointer;
                &:hover {
                    color:$navbgcolor;
                }
            }
            img {
                
                object-fit: cover;
                @media screen and(max-width:$moblie) {
                    width: 95vw;
                }
            }
            .card-title {
                font-weight: 900;
                height: 55px;
            }
            .banner{
                img{
                    height: 22vw;
                    @media screen and(max-width:$moblie) {
                        height: auto;
                    }
                }
            }
            .card-content{
              height: 100px;
              @media screen and(max-width:$moblie) {
                height: auto;
               
            }
            }
            .price{
                font-size:20px;
                @media screen and(max-width:350px) {
                    font-size:18px;

                   
                }
            }
        }
    }
}
// sec06 合作對象 - 電腦版
#sec06 {
    padding-top: 5vw;
    padding-bottom: 5vw;
    #sec06-container-box {
        padding-top: 8vw;
        background: url(./img/sec06/sec06-1.png), linear-gradient(180deg, transparent 50%, #fff 30%);
        background-size: contain;
        background-repeat: no-repeat;
        background-blend-mode: overlay;
    }
    #sec06-title {
        width: 75vw;
        margin: 0 auto;
        text-align: right !important;
        @media screen and(max-width:$moblie) {
            width: 100vw;
        }
        h1 {
            color: $navbgcolor;
            font-size: 45px;
            font-weight: 900;
            padding: 5px 10px;
            margin-top: 50px;
            margin-right: 50px;
            @media screen and(max-width:$moblie) {
                font-size: 28px;
                margin-top: 10px;
                margin-right: 10px;
            }
        }
        hr {
            display: inline-block;
            margin-right: 110px;
            width: 5vw;
            height: 5px;
            color: $navbgcolor;
            opacity: 1 !important;
            @media screen and(max-width:$moblie) {
                margin-top: 0;
                width: 15vw;
                height: 3px;
                margin-right: 50px;
            }
        }
    }
    #sec06-container {
        text-align: center;

        .card {
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
            background: #fff;
            padding-top: 5vw;
            padding-bottom: 5vw;
            border: none;
            @media screen and(max-width:$moblie) {
                padding: 5px;
            }
            .sec09-7 {
                width: 200px;
            }
            .adv4 {
                display: flex;
                align-items: center;
                img {
                    align-items: center;
                }
            }
        }

        .col-3 {
            margin: 10px 0;
            @media screen and(max-width:$desktop) {
                padding: 15px;
            }

            @media screen and(max-width:$moblie) {
                padding: 5px;
            }
            img {
                object-fit: cover;

                @media screen and(max-width:$moblie) {
                    padding: 5px;
                }
            }
        }

        .sec09-1 {
            padding: 50px;
            @media screen and(max-width:$moblie) {
                padding: 0;
            }
        }
    }
}
// 頁尾
#footer {
    width: 100vw;
    text-align: center;
    line-height: 2;
    background: $navbgcolor;
    color: #fff;
    .footer-link {
        padding-top: 3vw;

        a {
            text-decoration: none;
            font-size: 20px;
            padding: 10px;
            color: #fff;

            @media screen and(max-width:$moblie) {
                font-size: 14px;
                padding: 0 !important;
            }

            @media screen and(max-width:400px) {
                font-size: 12px;
            }

            span {
                font-size: 28px;
                @media screen and(max-width:$moblie) {
                    font-size: 16px;
                }
                @media screen and(max-width:350px) {
                    font-size: 14px;
                }
            }
        }
    }
    .text {
        padding-top: 3vw;
        a {
            text-decoration: none;
            color: #fff;
           
        }
        h2 {
            font-size: 20px;
            margin: 10px;
            letter-spacing: 1px;

            @media screen and(max-width:$moblie) {
                display: block;
                font-size: 16px;
                margin: 8px;
            }
        }
        p {
            margin: 0 !important;
        }
        img {
            width: 30px;
            margin: 10px;
            filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(138deg) brightness(103%) contrast(102%);
            transition: 0.3s;
            &:hover {
                opacity: 0.6;
            }
        }
    }
}
// 第二層
#sec10 {
    width: 90vw;
    margin: 0 auto;
    .sec10-title {
        font-size: 43px;
        @media screen and(max-width:$moblie) {
            width: 95vw;
            font-size: 26px;
        }
    }
    hr {
        height: 1px;
        background:#eee;
        opacity: 1;
    }
    .content {
        word-wrap:break-word;
        p {
            line-height: 2;
            font-size: 18px;
        }

        .video-work{

            #video2 {
                video {
                    width: 100%;
                }
            }
        }
    }
    .side-bar {
        h1{
            color: #e02d4b;
            font-size: 36px;
            font-weight: 900;
        }
        a {
            text-decoration: none;
            color: #000;
            transition: 0.3s;
            cursor: pointer;
            &:hover {
                color: $navbgcolor;
            }
        }
        h5 {
            font-size: 20px;
            font-weight: 900;
        }
        p {
            font-size: 16px;
        }
    }
}
#sec11 {
    #sec11-container {
        a {
            text-decoration: none;
            color: #000;
            transition: 0.3s;
            cursor: pointer;
            &:hover {
                color:$navbgcolor;
            }
        }
        h1 {
            color: #e02d4b;
            font-weight: 900;
            font-size: 36px;
        }
        width: 85vw;
        .sec11-01 {
            @media screen and(max-width:$moblie) {
                display: block;
            }
        }
        .col {
            overflow: hidden;
        }
        .sec11-img {
            width: 550px;
            height: 350px;
            object-fit: cover;
            transition: 0.3s;
            cursor: pointer;
            &:hover {
                transform: scale(1.02);
            }
            @media screen and(max-width:$moblie) {
                height: 250px;
            }
        }
        h2 {
            font-weight: 900;
            font-size: 24px;
        }
    }
}

@keyframes Cardload {
    0% {
       opacity: 0;
    }
    100% {
        opacity: 1;
    }
}