/* common.css */
/* 此為共用style樣式, 頁面:成功案例、消息與活動、客戶服務、關於桓基 */
/* 包含: banner、nav選單、麵包屑、main-container、tab-content、item-box、news-box */

/* main */
main{
    background: rgba(205, 205, 205, 0.20);
}

/* bread */
ul.bread{
    list-style-type: none;
    display: flex;
    margin-top: 30px;
    margin-bottom: 10px;
    margin-right: 5px;
}
ul.bread.bread_2{
    margin-right: 20px;
}
ul.bread li{
    padding-left: 0px;
    font-size: 0.9em;
}
ul.bread li.active{
    color: #3FA2D4;
}
ul.bread li:not(:last-child)::after{
    content: "/";
    padding-left: 5px;
    padding-right: 5px;
}

/* banner */
.banner{
    height: 362px;
    background-image: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%), url('../images/banner/banner_successCase.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-bottom: 12px solid #3FA2D4;
}
.banner-container{
    width: 65%;
    margin: auto;
    padding-top: 150px;
    display: flex;
    align-items: center;
}
.banner-title{
    color: #5E5E5E;
    font-size: 2.5em;
    font-weight: 700;
    margin-right: 50px;
    text-wrap: nowrap;
}
.banner-content{
    color: #1F1F1F;
    font-size: 0.9em;
}


/* nav-tab選單 */
nav{
    position: absolute;
    top: 300px;
    height: 50px;
    width: 100%;
}
.nav{
    height: 50px;
    width: 65%;
    margin: auto;
    border-bottom: 0px;
}
.nav-tabs{
    background: transparent;
    display: flex;
    flex-wrap: nowrap;
    overflow-y: hidden;
    overflow-x: overlay;
}
.nav-tabs::-webkit-scrollbar {
    height: 8px;
    position: relative;
    bottom: -10px !important;
}
.nav-tabs::-webkit-scrollbar-button {
    background: transparent;
    border-radius: 4px;
    width: 0px;
}
.nav-tabs::-webkit-scrollbar-track-piece {
    background: #3FA2D4;
}
.nav-tabs::-webkit-scrollbar-thumb{
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2);
}
.nav-tabs::-webkit-scrollbar-track {
    background-color: #3fa2d4;
    border-radius: 10px;
    margin: 20px 0px;
}
.nav-tabs .nav-link{
    border-radius: 25px 25px 0px 0px;
    border: 1px solid #CDCDCD;
    border-bottom: 0px;
    background: #FFF;
    padding: 8px 20px;
    color: #5E5E5E;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    width: 150px;
    text-wrap: nowrap !important;
    min-width: fit-content !important;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
    border-radius: 25px 25px 0px 0px;
    background: #3FA2D4;
    border: 1px solid #3FA2D4;
    color: #FFF;
}

/* main-container */
.main-container{
    width: 65%;
    margin: auto;
    padding-bottom: 100px;
}
.tab-content {
    background-color: transparent;
}
.tab-pane{
    padding: 0px !important;
}

/* 文字樣式 */
.blue-title{
    color: #3FA2D4;
    font-size: 1.5em;
    font-weight: 700;
}
.black-text{
    color: #000;
    line-height: 1.5em;
}
.small-text{
    font-size: 0.8em !important;
}
.line-height-2em{
    line-height: 2em;
}



/* rwd */
@media(max-width: 1600px){
    .banner-container{
        width: 80%;
    }
    .main-container{
        width: 80%;
        margin: auto;
    }
    .nav{
        width: 80%;
    }
}
@media(max-width: 1400px){
    .main-container {
        width: 90%;
    }
}
@media(max-width: 1200px){
    .nav{
        width: 100%;
    }
    .nav-tabs{
        padding-left: 10px;
        padding-right: 10px;
    }
    .main-container {
        width: 95%;
    }
}
@media(max-width: 992px){
    .banner-container{
        width: 85%;
    }
    .main-container {
        width: 95%;
    }
    br.lg{
        display: none;
    }
}
@media(max-width: 768px){
    .banner-container{
        width: 90%;
        display: block;
        padding-top: 120px;
        padding-left: 0px;
        padding-right: 0px;
    }
    .banner-title{
        text-align: center;
        margin-right: 0px;
    }
    .banner-content{
        text-align: center;
        margin-top: 20px;
    }
    .main-container {
        width: 90%;
    }
    ul.bread{
        margin-right: 0px;
    }
}
@media(max-width: 576px){

}
@media(max-width: 400px){
    br.xs{
        display: none;
    }
}



/* item-box 白色圖片區塊樣式 */
.item-box-outer{
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-box{
    width: 380px;
    border-radius: 10px;
    background: #FFF;
    filter: drop-shadow(0px 6px 10px rgba(0, 0, 0, 0.10));
    margin: 20px 15px;
}
.item-box-img{
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-box-img img{
    /* height: 100%; */
    width: 100%;
    object-fit: contain;
}
.item-box-title{
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2B2B2B;
    font-size: 1.3em;
    font-weight: 700;
    padding: 10px 20px;
    text-align: center;
}
@media(max-width: 1600px){
    .item-box{
        width: 350px;
    }
}
@media(max-width: 1400px){
    .case-main-container {
        width: 90%;
    }
    .item-box{
        width: 330px;
    }
}
@media(max-width: 1200px){
    .case-main-container {
        width: 95%;
    }
    .item-box{
        width: 280px;
    }
}
@media(max-width: 992px){
    .item-box{
        width: 90%;
    }
}
@media(max-width: 768px){
    .item-box{
        width: 95%;
    }
    .item-box-title{
        text-align: justify;
    }
    .item-box-title br{
        display: none;
    }
}
@media(max-width: 576px){
    .item-box{
        width: 100%;
    }
}



/* news-box */
.news-box{
    display: flex;
    border-radius: 10px;
    background: #FFF;
    box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.10);
    margin-bottom: 30px;
}
.news-box-img{
    padding: 20px;
}
.news-box-img img{
    width: 350px;
    height: 250px;
    border-radius: 6px;
    border: 1px solid #CDCDCD;
    object-fit: cover;
}
.news-box-inner{
    padding: 20px 30px 20px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}
.news-box-title{
    color: #2B2B2B;
    font-size: 1.3em;
    font-weight: 700;
}
.news-box-content{
    color: #5E5E5E;
    line-height: 1.5em;
    margin-top: 10px;
}
.news-box-btn{
    display: flex;
    justify-content: end;
}
button.read-more-btn{
    border-radius: 50px;
    border: 1px solid #5E5E5E;
    background-color: transparent;
    color: #5E5E5E;
    line-height: 26px;
    padding: 5px 25px;
    margin-top: 20px;
}
button.read-more-btn:hover, .read-more-btn:active, .read-more-btn:focus{
    border: 1px solid #3FA2D4;
    background-color: #3FA2D4;
    color: #ffffff;
}
button.read-more-btn i{
    margin-left: 15px;
}

@media(max-width:1200px){
    .news-box-img img{
        width: 280px;
        height: 200px;
    }
}
@media(max-width:768px){
    .news-box-img img{
        width: 220px;
        height: 200px;
    }
}
@media(max-width:600px){
    .news-box{
        display: block;
        margin-left: 10px;
        margin-right: 10px;
    }
    .news-box-img{
        padding: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .news-box-img img{
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    .news-box-inner{
        padding: 10px 30px 30px 30px;
    }
    .news-box-btn{
        justify-content: center;
    }
}
