/*
Theme Name:     Ks_witsper
Theme URI:      
Description:    Blocksy child theme.
Author:         Knockers
Author URI:     
Template:       blocksy
Version:        0.1.0
*/

body {
	-webkit-transition: 1s all ease-out;
	-moz-transition: 1s all ease-out;
	-ms-transition: 1s all ease-out;
	-o-transition: 1s all ease-out;
	transition: 1s all ease-out;
}

body.opacity {
	-webkit-transition: 0s all ease-out;
	-moz-transition: 0s all ease-out;
	-ms-transition: 0s all ease-out;
	-o-transition: 0s all ease-out;
	transition: 0s all ease-out;
	opacity: 0;
}

.page_transition_opacity {
	opacity: 0;
}

.news_container{
    display: flex;
    justify-content: space-between;
    height:620px;
    position: relative;
}


.news_container .control_set{
    position: absolute;
    bottom:0;
    left:35%;
    transform: translate(-50%, 0%);
    display: flex;
    flex-flow: column wrap;
    cursor: pointer;
}

.control_set .prev{
    transform: rotate(180deg);
    margin-bottom: 50px;
}

.control_set .swiper-button-disabled path{
    fill:#D2D2D2;
}

.news_container .list{
    width:14.7%;
}

.news_container .list .main-title{
    border-bottom: 1px solid #E1E1E1;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.news_container .list-inner{
    display: flex;
    flex-flow: column wrap;
}

.news_container .list .category-button{
    font-weight: 500;
    cursor: pointer;
    color:#595959;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #E1E1E1;
    width: 100%;
    display: block;
}

.news_container .list .category-button:hover{
    color:#29ABE2;
    /* font-weight: 700; */
    transition: 0.4s all;
}

.news_container .list .category-button.active{
    color:#29ABE2;
    /* font-weight: 700; */
}

.news_container .list .more{
    margin-top: 60px;
    color:#fff;
    background-color: #333333;
    width:calc(100% + 1px);
    height:57px;
    display:inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
}

.news_container .list .more:hover{
    opacity: 0.8;
}

.news_container .list .more svg{
    margin-left:6px;
}

.news_container .more-m{
    display: none;
}

.news-swiper{
    /* overflow-y: scroll!important; */
    padding-right:160px!important;
    width: 60%;
    margin:0!important;
}


.news-swiper .swiper-scrollbar {
    background: #BABABA;    
    width: 1px!important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.news-swiper  .swiper-scrollbar  .swiper-scrollbar-drag{
    left: -3px;
    width:6px;
    border-radius: 1px;
    background: #29ABE2;
}

/* 整個滾動條 */
/* .news-swiper::-webkit-scrollbar {
    width: 6px; 
} */

/* 滾動條軌道（背景） */
/* .news-swiper::-webkit-scrollbar-track {
    background: linear-gradient(to right, transparent 2px, #BABABA 2px, #BABABA 3px, transparent 3px);
} */

/* 滾動條滑塊（可以拖動的部分） */
/* .news-swiper::-webkit-scrollbar-thumb {
    background-color: #29ABE2;
} */

.news-swiper a{
    display: flex;
    /* justify-content: flex-end; */
    height: 100%;
}

.news-swiper .content{
    max-width: 416px;
}

.news-swiper .pic{ 
    position: relative;
    overflow: hidden;
    max-width:240px;
    min-height: 160px;
    width:100%;
    margin-right:20px;
}

.news-swiper .pic:hover figure{
    transform: scale(1.08);
    transition: all 0.4s;  
}

.news-swiper .pic figure{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    padding-bottom:67%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    transition: all 0.4s;  
}

.news-swiper .terms{
    border:1px solid #29ABE2;
    border-radius: 2px;
    font-size: 14px;
    line-height: 100%;
    width:76px;
    height:29px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.news-swiper .title{
    font-size: 24px;
    line-height: 36px;
    margin:10px 0;
}

.news-swiper .date{
    font-size: 16px;
    font-weight: 300;
    line-height: 100%;
    color:#595959;
}


@media (max-width:1540px) {
    .news-swiper{
        padding-right:40px!important;
    }

    /* .news_container .control_set{
        left:17%;
    } */
}

@media (max-width:1100px) {
    .news_container .list{
        width:19.9%;
    }

    .news-swiper{
        padding-right:20px!important;
    }
}

@media (max-width:991px) {
    .news_container{
        flex-direction: column;
        height:650px;
        /* overflow-x: hidden; */
    }

    .news_container .control_set{
        display: none;
    }

    .news_container .list{
        width: 100%;
        margin-bottom: 20px;
    }

    .news_container .list .main-title{
        border-bottom: none;
        text-align: center;
    }

    .news_container .list-inner{
        display: flex;
        flex-flow: row wrap;
        justify-content: space-between;
        border-bottom: 1px solid #E1E1E1;
        margin:0 20px;
    }

    .news_container .list-inner .list-items{
        display: flex;
        width: 100%;
        overflow-x: scroll;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .news_container .list .category-button{
        border-bottom: none;
        padding:0 20px;
    }

    .news_container .list .more{
        display: none;
    }

    .news_container .more-m{
        margin-top: 60px;
        color:#fff;
        background-color: #333333;
        width:100%;
        max-width: 200px;
        margin:40px auto 0;
        height:57px;
        display:inline-flex;
        justify-content: center;
        align-items: center;
        border-radius: 2px;
    }

    .news_container .more-m svg{
        margin-left: 6px;
    }

    .news-swiper .swiper-scrollbar {
    background: #BABABA;    
    width: 100%!important;
}

.news-swiper  .swiper-scrollbar  .swiper-scrollbar-drag{
    left: 0;
    width:100%;
    border-radius: 1px;
    background: #29ABE2;
}

    /* 整個滾動條（橫向） */
    /* .news-swiper::-webkit-scrollbar {
        height: 6px; 
    } */

    /* 滾動條軌道（背景） */
    /* .news-swiper::-webkit-scrollbar-track {
        background: linear-gradient(to bottom, transparent 2px, #BABABA 2px, #BABABA 3px, transparent 3px);
    } */

    /* 滾動條滑塊（可以拖動的部分） */
    /* .news-swiper::-webkit-scrollbar-thumb {
        background: #29ABE2!important; 
    } */

    .news-swiper{
        width: 100%;
        overflow-y: hidden !important;
        /* overflow-x: scroll !important; */
        padding-right:0!important;
        padding-bottom: 40px!important;
        margin-left: 20px!important;
    }

    .news-swiper .content{
        margin-top:10px;
    }

    .news-swiper a{
        flex-direction: column;
        justify-content: flex-start;
    }

    .news-swiper .pic{
        max-width: 100%;
        margin-right: 0;
    }

    .news-swiper .pic figure{
        padding-bottom: 0%;
    }

    .news-swiper .title{
        font-size: 18px;
        line-height: 30px;
    }
}


/* Logo carousel */
#logo_carousel{
    height: 100%;
}

.global-swiper .item .pic{
    position: relative;
    overflow: hidden;
    width: 100%;
    transition: all 0.4s;  
}

.global-swiper .item .pic figure{
    /* padding-bottom:24.5%; */
    min-height: 45px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.global-swiper .item .pic:hover{
    transform: scale(1.05);
    transition: all 0.4s;  
}

#logo_carousel_m{
    display: none;
}

/* #gspb_col-id-gsbp-b449fff{
    position: relative;
} */

.control{
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 60px;
}

.control .prev{
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
}

.control .next{
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE10+/Edge */
}

@media(max-width:1024px){
    .control{
        padding: 0 20px;
    }
}

@media (max-width:992px) {
    .global-swiper .item .pic{
        width:134px;
    }
    .global-swiper .item .pic figure{
        min-height: 33px;
    }

    #logo_carousel{
        display: none;
    }

    #logo_carousel_m{
        display: block;
    }

    .logo-swiper-bottom{
        margin-top: 40px;
    }
}


/* 代理品牌 */
#single-brand .inner{
    width:1360px;
    max-width:90%;
    margin:0 auto;
}

#single-brand .content{
    display: grid;
    grid-template-columns: minmax(0, 800px) minmax(0, 500px);
    /* grid-template-columns: repeat(2, 1fr); */
    grid-gap: 60px;

}

#single-brand .brand-video{
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* 16:9 */
}

#single-brand .brand-video iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#single-brand .brand-video video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#single-brand .brand-video .cover{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

#single-brand .brand-video .cover:before{
    content: '';
    position: absolute;
    background: url('./assets/images/play.png') no-repeat center center;
    background-size: 76px 76px;
    display: block;
    top:0;
    left:0;
    right:0;
    bottom: 0;
    margin:auto;
    transform: scale(1);
    transition: 0.4s all;
}


#single-brand .brand-logo .pic{
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width:282px;
}

#single-brand .brand-logo .pic figure{
    padding-bottom: 24.9%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#single-brand .brand-short-desc{
    margin: 40px 0 20px;
    background-color: #F9F9FB;
    padding: 20px;
}

#single-brand .brand-short-desc p{
    margin:0;
    font-size: 16px;
    line-height: 28px;
}

#single-brand .brand-social-link .official-link{
    font-size: 16px;
    line-height: 28px;
    color:#fff;
    width: 100%;
    background-color: #333333;
    border:1px solid #333333;
    border-radius: 2px;
    padding:16px;
    height:60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#single-brand .brand-social-link .official-link:hover{
    opacity: 0.8;
}

#single-brand .brand-social-link .official-link .earth{
    display: inline-flex;
    margin-right:8px;
}

#single-brand .brand-social-link .social-link-inner{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
}

#single-brand .brand-social-link .social-link{
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.go-fb{
    background-color: #3274DE;
}

.go-ig{
    background-color: #E33D78;
}

.go-yt{
    background-color: #FA0019;
}


#single-brand .three-columns{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin:60px 0; 
}

#single-brand .three-columns .item{
    display: flex;
    flex-direction: column;
    background-color: #F9F9FB;
    gap:20px;
    padding:40px;
}

#single-brand .three-columns .item .icon svg{
    width: 40px;
    height:40px;
}

#single-brand .three-columns .item .title{
    font-size: 24px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1px;
}

#single-brand .three-columns .item .excerpt{
    font-size: 16px;
    line-height: 30px;
}

#brand-news{
    position: relative;
}

#brand-news .inner{
    width:1200px;
    max-width:100%;
    margin:0 auto;
}

#brand-news .inner .main-title{
    text-align: center;
    margin-bottom: 60px;
}

#brand-news .inner .main-title h2{
    line-height: 100%;
    letter-spacing: 1px;
    color:#141414;
}

#brand-news .brand-control{
    position: absolute;
    top: 50%;
    left:0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#brand-news .brand-control .prev{
    cursor: pointer;
}

#brand-news .brand-control .next{
    cursor: pointer;
}

#brand-news .pic{
    position: relative;
    overflow: hidden;
    width: 100%;
}

#brand-news .pic figure{
    padding-bottom: 67%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#brand-news .news-content{
    border: solid #F1F1F1;
    border-width: 0 1px 1px;
    padding:20px;
}

#brand-news .news-content .tl{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

#brand-news .news-content .title{
    font-size: 22px;
    font-weight: 500;
    line-height: 32px;
    margin-bottom: 20px;
}

#brand-news .news-content .date{
    font-size: 16px;
    font-weight: 300;
    line-height: 100%;
    color:#595959;
    margin-bottom: 20px;
}

#brand-news .news-content .excerpt {
    border-top: 1px solid #F1F1F1;
    padding-top: 20px;
}

#brand-news .news-content .excerpt p{
    margin-bottom: 20px;
}

#brand-news .news-content .more{
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 1px;
    color:#fff;
    background-color: #333333;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height:40px;
    padding:0 23.5px;
    border:1px solid #333333;
    border-radius: 2px;
}

#brand-news .news-content .more:hover{
    background-color: #fff;
    color:#333333;
    transition: 0.4s all;
}

#single-brand .brand-post-content{
    background-color: #F9F9FB;
    padding:100px 20px;
}

#single-brand .brand-post-content .post-inner{
    width: 1360px;
    max-width: 90%;
    margin: 0 auto;
}

#single-brand .brand-post-content p a{
    color:#333333;
    text-decoration: underline;
}

#brand-news .brand-post{
    display: none;
}

@media(max-width:1370px){
    #brand-news .brand-swiper{
        max-width: 95%;
    }
}

@media (max-width:992px){
    #single-brand .content{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 20px;
    }

    #single-brand .brand-video .cover:before{
        background-size: 40px 40px;
    }

    #single-brand .brand-logo .pic{
        max-width: 182px;
    }

    #single-brand .brand-short-desc{
        margin:20px 0;
    }

    #single-brand .three-columns{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 20px;
        margin: 20px 0 40px;
    }

    #single-brand .three-columns .item{
        gap: 12px;
        padding:20px;
    }

    #single-brand .three-columns .item .icon svg{
        width:30px;
        height:30px;
    }

    #single-brand .three-columns .item .title{
        font-size: 22px;
    }

    #brand-news{
        padding:0 0 40px;
    }

    #brand-news .brand-swiper{
        display: none;
    }

    #brand-news .brand-post{
        display: block;
    }

    #brand-news .brand-post .item{
        margin-bottom: 20px;
    }

    #brand-news .brand-post .item:last-child{
        margin-bottom: 0;
    }

    #brand-news .inner .main-title{
        margin-bottom: 30px;
    }

    #brand-news .inner .main-title h2{
        font-size: 22px;
    }
    
    /* #brand-news .brand-swiper .swiper-slide{
        height: auto!important;
    } */
    
    /* .brand-swiper .swiper-slide:nth-child(n+4) {
        display: none;
    } */

    #brand-news .news-content .title{
        font-size: 18px;
        line-height: 30px;
        margin-bottom: 10px;
    }

    #brand-news .news-content .date{
        font-size: 14px;
        margin-bottom: 10px;
    }

    #brand-news .news-content .excerpt{
        padding-top: 10px;
    }

    #brand-news .news-content .excerpt p{
        line-height: 30px;
        margin-bottom: 10px;
    }

    #brand-news .news-content .more{
        font-size: 14px;
        height:37px;
        padding: 0 22.5px;
    }

    #brand-news .brand-control{
        display: none;
    }
    
    #brand-news .pic figure{
        min-height: 252px;
        padding-bottom: 0;
    }

    #single-brand .brand-post-content{
        padding:40px 0px;
    }
}

/* 職缺列表 */
.job-list{
    border-top: 1px solid #F1F1F1;
    margin-top: 80px;
}

.job-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F1F1F1;
    padding: 30px 40px;
    flex-flow: row wrap;
}

.job-item:last-child{
    border-bottom: none;
}

.job-item .job-title{
    font-size: 22px;
    font-weight: 500;
    line-height: 32px;
    margin:0;
}

.job-item .job-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: row wrap;
    column-gap: 160px;
}

.job-item .job-details .departments{
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    column-gap: 20px;
}

.job-item .job-details .apply-button{
    font-size: 16px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 1px;
    color:#fff;
    background-color: #333333;
    border-radius: 2px;
    padding: 5px 21.5px;
    min-width: 135px;
    height:47px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.job-item .job-details .apply-button svg{
    margin-left: 6px;
}

.job-item .job-details .apply-button:hover{
    opacity: 0.8;
}

@media (max-width:1040px) {
    .job-item .job-details{
        column-gap: 20px;
    }
}

@media(max-width:1024px){
    .job-item{
        padding: 20px 0;
        flex-flow: column wrap;
        align-items: flex-start;
        row-gap: 10px;
    }

    .job-item .job-title{
        font-size: 18px;
        line-height: 30px;
    }

    .job-item .job-details{
        width: 100%;
    }

    .job-item .job-details .departments{
        font-size: 16px;
        line-height: 28px;
    }

    .job-item .job-details .apply-button{
        font-size: 14px;
        line-height: 100%;
        min-width: 119px;
        height:41px;
        padding: 5px 20.5px;
    }
}