﻿.insights-box{
    width: 100%;
    display: block;
    position: relative;
    min-height: calc(100vh - 90px);
    margin-top: 90px;
    background-color: #fafafa;
}

.insights-all-box{
    width: 1600px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 100px 0;
}
.insights-category-box{
    width: 100%;
    display: block;
    text-align: center;
    position: relative;
}

.insights-category{
    width: 260px;
    display: inline-block;
    vertical-align: middle;
    box-sizing: border-box;
    position: relative;
    margin-right: 35px;
    background-color: #eeeeee;
    text-align: center;
    transition: all .3s linear;
}
.insights-category:nth-child(5n){
    margin-right: 0;
}
.insights-category:nth-child(n + 6){
    margin-top: 20px;
}
.insights-category p{
    font-size: 18px;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    color: #000;
    letter-spacing: 0.1em;
    line-height: 60px;
    position: relative;
}

.insights-info-box{
    width: 100%;
    display: block;
    margin-top: 80px;
}
.insights-info{
    width: 770px;
    display: inline-block;
    vertical-align: top;
    margin-right: 60px;
    background-color: #fff;
    transition: all .3s linear;
}
.insights-info:nth-child(2n){
    margin-right: 0;
}
.insights-info:nth-child(n + 3){
    margin-top: 80px;
}
.insights-info-img{
    width: 370px;
    height: 370px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    overflow: hidden;
}
.insights-info-text-box{
    width: calc(100% - 370px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 20px 25px;
    padding-bottom: 10px;
}
.insights-info-class-box span{
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    background-color: #104a7b;
    font-size: 16px;
    color: #fff;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    text-align: center;
}
.insights-info-class-box p{
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    background-color: #f5f5f5;
    font-size: 16px;
    color: #000;
    font-family: 'Roboto';
    letter-spacing: 0.1em;
    text-align: center;
    margin-left: 10px;
}
.insights-info-name{
    line-height: 40px;
    font-size: 24px;
    color: #000;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    margin-top: 25px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.insights-info-text{
    width: 100%;
    height: 180px;
    font-size: 16px;
    color: #666;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 30px;
    overflow : hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}
.insights-info-more-box{
    width: 100%;
    display: block;
    margin-top: 15px;
}
.insights-info-more-box span{
    display: inline-block;
    vertical-align: middle;
    width: 127px;
    height: 1px;
    background-color: #104a7b;
    position: relative;
}
.insights-info-more-box span::after{
    content: '';
    width: 7px;
    height: 7px;
    background-color: #104a7b;
    position: absolute;
    right: 0;
    top: -3px;
    transition: all .3s linear;
}
.insights-info-more-box p{
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    color: #104a7b;
    font-family: 'Roboto';
    letter-spacing: 0.1em;
    line-height: 30px;
    margin-left: 15px;
}



/* insights-pages */
#insights-pages .insights-box{
    background-color: #fff;
}
.insights-pages-all-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 95px 0;
}
.insights-pages-info-class-box span{
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    background-color: #104a7b;
    font-size: 16px;
    color: #fff;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    text-align: center;
}
.insights-pages-info-class-box p{
    width: 150px;
    display: inline-block;
    vertical-align: middle;
    line-height: 50px;
    background-color: #eeeeee;
    font-size: 16px;
    color: #000;
    font-family: 'Roboto';
    letter-spacing: 0.1em;
    text-align: center;
    margin-left: 25px;
}
.insights-pages-info-name{
    line-height: 50px;
    font-size: 36px;
    color: #000;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
    display: block;
    margin-top: 25px;
    margin-bottom: 50px;
}
.insights-pages-info-video{
    width: 100%;
    height: 600px;
    display: block;
}
.insights-pages-info-edit-box {
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 50px 0;
    border-bottom: 1px solid #d1d1d1;
    line-height: 50px;
    font-size: 18px;
    color: #333;
    font-family: 'Noto Sans TC';
    letter-spacing: 0.1em;
}
.insights-pages-info-btn-box{
    width: 100%;
    display: block;
    margin-top: 20px;
}
.insights-pages-info-btn{
    display: inline-block;
    vertical-align: middle;
    position: relative;
}
.insights-pages-info-btn::after{
    content: '';
    width: 0%;
    height: 1px;
    background-color: #104a7b;
    position: absolute;
    bottom: 6px;
    right: 0;
    transition: all .3s ease;
}
.insights-pages-info-btn i{
    font-size: 18px;
    color: #104a7b;
    display: inline-block;
    vertical-align: middle;
    line-height: 2;
}
.insights-pages-info-btn p{
    display: inline-block;
    vertical-align: middle;
    font-family: 'Roboto';
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 2;
    margin: 0 10px;
    color: #000;
}



@media only screen and (max-width: 1600px){
    .insights-all-box{
        width: 1400px;
    }
    .insights-info{
        width: 670px;
    }
    .insights-info-img {
        width: 320px;
        height: 320px;
    }
    .insights-info-text-box{
        width: calc(100% - 320px);
        padding: 15px 20px;
        padding-bottom: 10px;
    }
    .insights-info-class-box p,
    .insights-info-class-box span{
        width: 125px;
    }
    .insights-info-name{
        margin-top: 10px;
    }
    .insights-info-text{
        -webkit-line-clamp: 5;
        height: 150px;
    }
    .insights-category{
        width: 245px;
    }
}
@media only screen and (max-width: 1400px){
    .insights-all-box{
        width: 1200px;
    }
    .insights-info{
        width: 570px;
    }
    .insights-info-img{
        width: 270px;
        height: 270px;
    }
    .insights-info-text-box{
        width: calc(100% - 270px);
        padding: 10px;
    }
    .insights-info-class-box p,
    .insights-info-class-box span{
        width: 120px;
    }
    .insights-info-name{
        margin-top: 0px;
    }
    .insights-info-text{
        -webkit-line-clamp: 4;
        height: 115px;
    }
    .insights-category{
        width: 220px;
        margin-right: 25px;
    }
}
@media only screen and (max-width: 1200px){
    .insights-all-box{
        width: 1000px;
    }
    .insights-info{
        width: 480px;
        margin-right: 40px;
    }
    .insights-info:nth-child(n + 3){
        margin-top: 60px;
    }
    .insights-info-img{
        width: 230px;
        height: 230px;
    }
    .insights-info-text-box{
        width: calc(100% - 230px);
        padding: 10px;
    }
    .insights-info-class-box p,
    .insights-info-class-box span{
        width: 100px;
        font-size: 14px;
        line-height: 40px;
    }
    .insights-info-name{
        font-size: 20px;
        line-height: 34px;
        margin-top: 5px;
    }
    .insights-info-text{
        height: 100px;
        font-size: 14px;
        line-height: 1.8;
    }
    .insights-info-more-box{
        margin-top: 0;
    }
    .insights-category{
        width: 180px;
        margin-right: 25px;
    }

    
    .insights-pages-all-box{
        width: 1000px;
        padding: 80px 0;
    }
    .insights-pages-info-video{
        height: 500px;
    }
}
@media only screen and (max-width: 1000px){
    .insights-box{
        min-height: calc(100vh - 63px);
        margin-top: 63px;
    }
    .insights-all-box{
        width: 750px;
        padding: 60px 0;
    }
    .insights-info{
        width: 100%;
        margin-right: 0;
    }
    .insights-info:nth-child(n + 2){
        margin-top: 40px;
    }
    .rwd-insights-category{
        width: 100%;
        height: 46px;
        border: 1px solid #d1d1d1;
        background-color: #fff;
        font-size: 18px;
        color: #000;
        letter-spacing: 1px;
        text-align: center;
        display: block;
        line-height: 46px;
        position: relative;
        box-sizing: border-box;
        font-family: 'Noto Sans TC';
    }
    .rwd-insights-category:after {
        content: '';
        width: 0px;
        height: 0px;
        margin: 0 auto;
        border-right: 8px solid transparent;
        border-top: 10px solid #104a7b;
        border-left: 8px solid transparent;
        display: block;
        position: absolute;
        bottom: calc(50% - 5px);
        right: 5%;
        box-sizing: border-box;
    }
    .insights-category-all-box{
        width: 100%;
        display: none;
        position: absolute;
        box-sizing: border-box;
        border: 1px solid #d1d1d1;
        border-top: none;
        background-color: #fff;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.35);
        z-index: 4;
        max-height: 50vh;
        overflow-y: auto;
    }
    .insights-category:nth-child(n){
        width: 100%;
        display: block;
        margin: 0;
        background-color: #fff;
    }
    .insights-category p{
        line-height: 50px;
    }
    .insights-info-box{
        margin-top: 60px;
    }

    
    .insights-pages-all-box{
        width: 750px;
        padding: 60px 0;
    }
    .insights-category:hover,
    .insights-category.active{
        background-color: #104a7b;
    }
    .insights-category:hover p,
    .insights-category.active p{
        color: #fff;
    }
    .insights-pages-info-video{
        height: 375px;
    }
}
@media only screen and (max-width: 768px){
    .insights-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .insights-info-box{
        margin-top: 40px;
    }
    
    .insights-pages-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .insights-pages-info-name{
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 40px;
        margin-top: 20px;
    }
    .insights-pages-info-edit-box{
        padding: 40px 0;
        line-height: 40px;
        font-size: 16px;
    }
    .insights-info-class-box p, 
    .insights-info-class-box span{
        width: 120px;
    }
    .insights-pages-info-video{
        height: 275px;
    }
}
@media only screen and (max-width: 550px){
    .insights-box{
        min-height: calc(100vh - 47px);
        margin-top: 47px;
    }
    .insights-all-box{
        width: 400px;
        padding: 20px 0;
    }
    .insights-info-box{
        margin-top: 20px;
    }
    .rwd-insights-category{
        height: 36px;
        line-height: 36px;
        font-size: 16px;
    }
    .rwd-insights-category:after{
        border-right-width: 6px;
        border-top-width: 8px;
        border-left-width: 6px;
    }
    .insights-info-img{
        width: 100%;
        height: 400px;
        display: block;
    }
    .insights-info-text-box{
        width: 100%;
        display: block;
    }
    .insights-category p{
        line-height: 40px;
        font-size: 16px;
    }
    .insights-info-name {
        font-size: 16px;
    }
    .insights-info-text{
        font-size: 12px;
        height: 85px;
    }
    .insights-info:nth-child(n + 2){
        margin-top: 20px;
    }


    .insights-pages-all-box{
        width: 95%;
        padding: 20px 0;
    }
    .insights-pages-info-class-box span,
    .insights-pages-info-class-box p{
        width: 120px;
        line-height: 40px;
        font-size: 14px;
    }
    .insights-pages-info-class-box p{
        margin-left: 15px;
    }
    .insights-pages-info-name{
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 20px;
        margin-top: 10px;
    }
    .insights-pages-info-edit-box{
        padding: 20px 0;
        line-height: 26px;
        font-size: 14px;
    }
    .insights-pages-info-btn-box{
        margin-top: 10px;
    }
    .insights-pages-info-video{
        height: calc(95vw / 2);
    }
}
@media only screen and (max-width: 400px){
    .insights-all-box{
        width: 300px;
    }
    .insights-info-img{
        height: 300px;
    }
}




/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .insights-category-box,
    .insights-info{
        opacity: 0;
    }
    .insights-category-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .insights-info.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .insights-category:hover,
    .insights-category.active{
        background-color: #104a7b;
    }
    .insights-category:hover p,
    .insights-category.active p{
        color: #fff;
    }
    .insights-info:hover{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }
    .insights-info:hover .main-bg{
        transform: scale(1.1);
    }
    .insights-info:hover .insights-info-more-box span::after{
        opacity: 0;
    }
    .insights-info-more-box span::before{
        content: '\e800';
        font-family: "fontello";
        font-size: 21px;
        line-height: 21px;
        color: #104a7b;
        position: absolute;
        top: -10px;
        right: 50%;
        opacity: 0;
    }
    .insights-info:hover .insights-info-more-box span::before{
        right: -2px;
        opacity: 1;
        transition: all .3s linear;
    }

    .insights-pages-info-class-box,
    .insights-pages-info-name,
    .insights-pages-info-img,
    .insights-pages-info-edit-box,
    .insights-pages-info-btn{
        opacity: 0;
    }
    .insights-pages-info-class-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .insights-pages-info-name.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .insights-pages-info-img.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .insights-pages-info-edit-box.anima{
        animation: fade 1s ease 0s 1 both;
    }
    .insights-pages-info-btn.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .insights-pages-info-btn:hover p{
        color: #104a7b;
    }
    .insights-pages-info-btn:hover::after{
        width: 100%;
    }

}

