﻿.program-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding-top: 80px;
}
.program-all-box{
    width: 1360px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding: 160px 0;
}
.program-category-box{
    width: 410px;
    display: inline-block;
    vertical-align: top;
}
.program-category{
    width: 200px;
    height: 200px;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    vertical-align: top;
    background-color: #222;
    margin-right: 10px;
    transition: all .3s linear;
}
.program-category:nth-child(2n){
    margin-right: 0;
}
.program-category:nth-child(n + 3){
    margin-top: 10px;
}
.program-category p{
    font-family: "Noto Sans TC";
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.2em;
    box-sizing: border-box;
    padding-left: 0.2em;
    color: #888;
    transition: all .3s linear;
}
.program-category span{
    font-weight: 700;
    font-size: 20px;
}
.program-category span>a{
    position: relative;
    transition: all .3s linear;
    padding-left: 5px;
}
.program-info-box{
    width: calc(100% - 410px);
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    padding-left: 180px;
}
.program-info-title{
    font-family: "Noto Sans TC";
    font-weight: 700;
    font-size: 50px;
    letter-spacing: 0.2em;
    color: #ffd200;
    position: relative;
    line-height: 1;
    margin-bottom: 50px;
}
.program-info-title::before{
    content: '';
    width: 30px;
    height: 10px;
    background-color: #ffd200;
    position: absolute;
    top: 20px;
    left: -80px;
}
.program-info-text{
    font-family: "Noto Sans TC";
    font-size: 24px;
    line-height: 1.8;
    letter-spacing: 0.2em;
    color: #ccc;
    display: block;
    margin-bottom: 20px;
}
.program-info-text:last-child{
    margin-bottom: 0;
}
.program-info-price-box{
    margin: 50px 0;
}
.program-info-price-box span{
    font-family: "Poppins";
    font-weight: 700;
    font-size: 50px;
    letter-spacing: 0.2em;
    line-height: 1;
}
.program-info-contact{
    width: 240px;
    line-height: 50px;
    background-color: #ffd200;
    border-radius: 5px;
    font-family: "Noto Sans TC";
    color: #000;
    font-size: 18px;
    letter-spacing: 0.2em;
    box-sizing: border-box;
    padding-left: 0.02em;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    margin-right: 25px;
    transition: all .3s linear;
}
.program-info-contact-text{
    display: inline-block;
    vertical-align: middle;
}
.program-info-contact-text p{
    font-family: "Noto Sans TC";
    color: #ccc;
    font-size: 18px;
    letter-spacing: 0.2em;
    display: inline-block;
    vertical-align: bottom;
    line-height: 20px;
    margin-right: 15px;
}
.program-info-contact-text a{
    font-family: "Poppins";
    font-weight: 700;
    font-size: 18px;
    color: #ffd200;
    letter-spacing: 0.2em;
    display: inline-block;
    vertical-align: bottom;
    line-height: 16px;
    position: relative;
    transition: all .3s linear;
}


@media only screen and (max-width: 1360px){
    .program-all-box{
        width: 1000px;
    }
    .program-category-box{
        width: 310px;
    }
    .program-category{
        width: 150px;
        height: 150px;
    }
    .program-category p{
        font-size: 24px;
    }
    .program-info-box{
        width: calc(100% - 310px);
        padding-left: 120px;
    }
    .program-info-title::before{
        left: -50px;
    }
    .program-info-title{
        font-size: 44px;
        margin-bottom: 30px;
    }
    .program-info-text{
        font-size: 20px;
        margin-bottom: 15px;
    }
    .program-info-price-box span{
        font-size: 44px;
    }
}
@media only screen and (max-width: 1000px){
    .program-all-box{
        width: 750px;
        padding: 100px 0;
    }
    .program-category-box{
        width: 210px;
    }
    .program-category{
        width: 100px;
        height: 100px;
    }
    .program-category p{
        font-size: 20px;
        letter-spacing: 0.06em;
        padding-left: 0.06em;
    }
    .program-category span{
        font-size: 16px;
    }
    .program-info-box{
        width: calc(100% - 210px);
        padding-left: 60px;
    }
    .program-info-title::before{
        left: -40px;
    }
    .program-info-title{
        font-size: 30px;
        margin-bottom: 20px;
    }
    .program-info-text{
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    .program-info-title::before{
        width: 15px;
        height: 6px;
        top: 15px;
        left: -30px;
    }
    .program-info-price-box{
        margin: 30px 0;
    }
    .program-info-price-box span{
        font-size: 30px;
        letter-spacing: 0.1em;
    }
    .program-info-contact{
        width: 160px;
        letter-spacing: 0.1em;
        margin-right: 15px;
    }
}
@media only screen and (max-width: 768px){
    .program-all-box{
        width: 550px;
        padding: 60px 0;
    }
    .program-category-box{
        width: 100%;
        display: block;
    }
    .program-category:nth-child(n){
        margin-top: 0;
        margin-right: 10px;
    }
    .program-category:last-child{
        margin-right: 0;
    }
    .program-info-box{
        width: 100%;
        display: block;
        padding-left: 0;
        margin-top: 40px;
    }
    .program-info-title::before{
        display: none;
    }
}
@media only screen and (max-width: 550px){
    .program-box{
        padding-top: 63px;
    }
    .program-all-box{
        width: 320px;
        padding: 40px 0;
    }
    .program-info-title{
        font-size: 20px;
        letter-spacing: 0.06em;
    }
    .program-info-text{
        font-size: 16px;
        letter-spacing: 0.06em;
        margin-bottom: 5px;
        line-height: 1.4;
    }
    .program-info-price-box{
        margin: 20px 0;
    }
    .program-info-price-box span{
        font-size: 20px;
        letter-spacing: 0.06em;
    }
    .program-info-contact{
        font-size: 16px;
        line-height: 40px;
    }
    .program-info-contact-text{
        display: block;
        margin-top: 10px;
    }
    .program-info-contact-text p{
        font-size: 16px;
        letter-spacing: 0.06em;
        margin-right: 5px;
    }
    .program-info-contact-text a{
        font-size: 16px;
        letter-spacing: 0.06em;
        line-height: 14px;
    }
    .program-category-box{
        width: 310px;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    .program-category:nth-child(n){
        width: 150px;
        height: 50px;
        text-align: center;
        line-height: 20px;
    }
    .program-category:nth-child(2n){
        margin-right: 0;
    }
    .program-category:nth-child(n + 3){
        margin-top: 10px;
    }
    .program-category:nth-child(3) p{
        font-size: 16px;
    }
    .program-category p{
        font-size: 18px;
    }
    .program-category span{
        font-size: 16px;
        margin-top: 5px;
    }
}
@media only screen and (max-width: 400px){
    .program-all-box{
        width: 240px;
    }
    .program-category-box{
        width: 240px;
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    .program-category:nth-child(n){
        width: 115px;
        height: 50px;
        text-align: center;
        line-height: 20px;
    }
}

.program-category.active{
    background-color: #ffd200;
    border-radius: 10px;
}
.program-category.active p{
    color: #000;
}
.program-category:hover{
    background-color: #ffd200;
}
.program-category:hover p{
    color: #000;
}
.program-category span>a::after{
    content: '';
    width: 0%;
    height: 1px;
    background-color: #000;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all .3s linear;
}
.program-category span>a.active::after,
.program-category span>a:hover::after{
    width: 100%;
}

@media only screen and (min-width: 769px){
    .program-info-contact:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: #fff;
        box-shadow: 0 0 10px rgb(255 255 255 / 15%);
    }
    .program-info-contact-text a::after{
        content: '';
        width: 0%;
        height: 1px;
        background-color: #ffd200;
        position: absolute;
        bottom: -2px;
        left: 0;
        transition: all .3s linear;
    }
    .program-info-contact-text a:hover::after{
        width: 100%;
    }


    .program-category-box,
    .program-info-box{
        opacity: 0;
    }
    .program-category-box.anima{
        animation: fade 1.4s ease 0s 1 both;
    }
    .program-info-box.anima{
        animation: fadeInRight 1.4s ease 0s 1 both;
    }
}