:root {
    --fzSecTitle: 28px;
    --fz3: 24px;
}
@media screen and (min-width: 992px) {
  :root {
    /* Font size - width 991px up (desktop) */
    --fzSecTitle: 32px;
    --fztSecContenTitle: 30px;
    --fz2: 28px;
    --fz3: 24px;
    --fz4: 20px;
  }
}

/* banner區 start */
.content-bn-testimonial {
    margin-top: 60px;
    padding: 0;
    background-image: url('../images/bg-recommend.png?01');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 24%;
    background-attachment: fixed;
    position: relative;
}

.content-bn-textgroup {
    text-align: justify;
    margin: auto;
}

.content-bn-title {
    font-size: var(--fztSecContenTitle);
    text-align: center;
}

.swiper-testimonial {
}

.swiper-testimonial .swiper-wrapper {}

.swiper-testimonial .slide {}
.swiper-testimonial .slide .row {
    width: 100%;
    max-height: 430px;
    overflow: hidden;
    margin-left: 0;
}

.swiper-testimonial .slide-link {
    color: #333333;
}
.swiper-testimonial .slide-link:hover,
.swiper-testimonial .slide-link:focus {
    filter: brightness(1.1);
}

.swiper-testimonial .slide .col-text {
        padding-right: 0;
    padding-left: 0px;
}
.swiper-testimonial .slide .col-imgbox {
    padding-right: 0px;
    padding-left: 5px;
}
.text-wrapper {
    position: relative;
    margin-top: 12%;
    text-shadow: -2px -2px 5px #ffffff,
    2px -2px 5px #ffffff,
    -2px 2px 5px #ffffff,
    2px 2px 5px #ffffff;
    min-height: 175px;
    /* margin-left: 95px;
    margin-top: 50%;
    transform: translateY(-50%); */
}

.company {
    font-size: 20px;
    color: #5d5d5d;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 5px;    
    height: 26px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

.headline {
    font-size: 20px;
    color: #445575;
    line-height: 1.4;
    font-weight: bolder;
    margin-top: 0px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 3;
    /* height: 56px; */
}

.description {
    text-align: justify;
    font-size: 18px;
    line-height: 1.4;    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
    height: 50px;
    display: none;
}

.slide-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1;
    min-height: 46.5px;
}
.slide-name .name {
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    margin-right: 10px;    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    height: 26px;
    /* flex: 1 1 70%; */
}

.name-title {
    font-size: 14.5px;
    line-height: 1;
    margin-top: 5px;  
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
    height: 15.5px;
}

.swiper-button-next,
.swiper-button-prev {
    height: 40px;
    background-color: #33333380;
    color: #ffffff;
    opacity: 0.8;
    padding: 5px;
    border-radius: 5px;
    transform: translate(0, -50%);
    top: 50%;
}

.swiper-button-next {
    right: 5px;
}

.swiper-button-prev {
    left: 5px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.image-wrapper {
    position: relative;
    bottom: 0;
    height: 100%;
    width: 100%;
}

.image-wrapper .person {
    text-align: center;
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
}

.image-wrapper .person img {
    max-height: 430px;
    /* max-width: 430px; */
    aspect-ratio: 1.15 / 1;
    object-fit: cover;
    /* min-height: 430px; */
    object-position: top;
    width: 100%;
    height: 100%;
    /* position: absolute;
    bottom: 0;
    left: 0;
    right: 0; */
}

@media (min-width: 992px) and (max-width: 1215px) {
    .swiper-testimonial .slide .row {
        margin-left: 8px;
    }
    /* .swiper-testimonial .slide .col-text {
        margin-left: 8px;
    } */
}

@media (min-width: 992px) {
    .content-bn-testimonial {}

    .content-bn-textgroup {}

    .content-bn-title {}

    .swiper-testimonial {}

    .swiper-testimonial .swiper-wrapper {}

    .swiper-testimonial .slide {}
    .swiper-testimonial .slide-link {}
    .swiper-testimonial .slide .col-text {
        padding-left: 0;
    }
    .swiper-testimonial .slide .col-imgbox {
        padding-right: 5px
    }

    .text-wrapper {
        padding-top: 0%;
        height: 251px;
    }

    .headline {
        font-size: 24px;
        margin-top: 15px;        
        -webkit-line-clamp: 2;
        /* height: 82px; */
    }

    .company {
        font-size: 24px;        
        height: 30px;
        /* overflow: unset; */
    }

    .description {
        -webkit-line-clamp: 2;   
        display: -webkit-box;
        -webkit-box-orient: vertical;
        height: 50px;
    }

    .slide-name {        
        align-items: end;
    }

    .slide-name .name {
        line-height: 1;
        height: 34px;
        font-size: var(--fzSecTitle); /* 32px */
        display: inline-block;
    }

    .name-title {
        font-size: 20px;
        line-height: 1;
        margin-top: 5px;
        height: 21px;
    }

    .swiper-button-next,
    .swiper-button-prev {}

    .swiper-button-next {
        right: 15px;
    }

    .swiper-button-prev {
        left: 15px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {}

    .image-wrapper {
        bottom: 0;
        height: unset;
    }

    .image-wrapper .person {
        height: unset;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .image-wrapper .person img {
        position: relative;
        width: unset;
        height: unset;
    }
}

@media (max-width: 1200px) {
    .text-wrapper {
        margin-top: 11%;
    }
    .description {
        -webkit-line-clamp: 2;
    }
    .headline {
        -webkit-line-clamp: 2;
        /* height: 82px; */
        font-size: 24px;
        padding-top: 0px;
    }
}
@media (max-width: 800px) {
    .description {
        -webkit-line-clamp: 2;
    }
}
@media (max-width: 667px) {
    .text-wrapper {
        margin-top: 9%;
        min-height: 135px;
        margin-bottom: 3%;
    }
    .company {
        font-size: 16.5px;
        height: 21px;
    }
    .headline {
        font-size: 16.5px;
        -webkit-line-clamp: 2;
        height: 56px;
        padding-top: 5px;
    }
    .description {
        display: none;
    }
}
@media (max-width: 576px) {
    .swiper-testimonial .slide .row {
        margin-left: 12px;
        /* margin-right: 12px; */
    }
}
@media (max-width: 380px) {
    .text-wrapper {
        margin-bottom: 5%;
    }
    .company {}
    .headline {
        padding-top: 5px;
        -webkit-line-clamp: 2;
        height: 51px;
    }
    .swiper-testimonial .slide .row {
        margin-left: 15px;
    }
    .swiper-testimonial .slide .col-text {
        /* padding-left: 30px; */
    }
    .swiper-testimonial .slide .col-imgbox {
        padding-left: 0;
    }
}
/* @media (max-width: 667px) {
    .image-wrapper .person {}
    .image-wrapper .person img {
        position: absolute;
        right: 0;
        bottom: 0;
    }
} */
/* banner區 end */



/* 內容 start */
.section-testimonial {}

.section-title2 {}

.scroll-tabs  {
    overflow-x: auto;
    margin-bottom: 20px;
    scrollbar-color: #bbbbbb #ffffff;
    scrollbar-width: inherit;
    padding: 5px 0;
}

.testimonial-tabs {
    border-width: 0;
    margin-left: auto;
    display: flex;
    /* flex-direction: column; */
    justify-content: end;
    align-items: center;
    gap: 5px;
    min-width: 400px;
}

.testimonial-tabs .tab {
    border-width: 0;
    border-radius: 30px;
    font-weight: 500;
    color: var( --text-bk);
    padding: 8px 15px;
    cursor: pointer;
    border: 1px solid #efefef;
}
.testimonial-tabs .tab.active {
    background-color: #d9444b;
    color: #ffffff;
}
.tab-content-testimonial {}
.tab-pane-testimonial {}
.tab-pane-testimonial .cards {
    gap: 1rem 0;
}
.testimonial-card {
    padding-bottom: 10px;
}
.testimonial-card .testimonial-card-btn {}
.testimonial-card .testimonial-card-btn:hover,
.testimonial-card .testimonial-card-btn:focus {
    color: var(--text-bk);
}
.testimonial-card figure {
    overflow: hidden;
    margin: 15px 15px 0;
    border-radius: 10px;
}
.testimonial-card figure img {
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    object-position: center;
}
.testimonial-card .card-body {
    padding-top: 10px;
    padding-bottom: 0px;
}
.testimonial-card .card-body .card-body-header {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    justify-content: flex-start;
    /* gap: 8px; */
    margin-bottom: 8px;
}
.testimonial-card .card-body-company {
    background-color: transparent;
    padding-left: 0;
    color: #555555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    position: relative;
    word-wrap: break-word;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    font-size: 18px;
    font-weight: bolder;
}
.testimonial-card .card-body-title {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-top: 4px;
    height: 56px;
    display: flex;
    align-items: center;
}
.testimonial-card .card-body-title .name {    
    overflow: hidden;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    font-size: 24px;
    font-weight: normal;
    line-height: 1;
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 5px;
}
.testimonial-card .card-body-title .title {
    overflow: hidden;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    font-size: 18px;
}

.testimonial-card .card-body-head {
    overflow: hidden;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: 18px;
    line-height: 1.4;
    font-weight: bolder;
    margin-bottom: 4px;
    color: #445575;
}
.testimonial-card .card-body-text {
    font-size: 15px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    color: #555555;
}

.tab-content-btnbox {}
.tab-content-btnbox .btn-more {
    background-color: #858585;
    color: #ffffff;
    padding: 8px 20px;
    min-width: 146px;
}
.tab-content-btnbox .btn-more:hover,
.tab-content-btnbox .btn-more:focus,
.tab-content-btnbox .btn-more:active {
    background-color: #5f5f5f;
    color: #ffffff;
}

@media (min-width: 480px) {
    .scroll-tabs .{}
    .testimonial-tabs {
        flex-direction: row;
    }
    .testimonial-tabs .tab {padding: 3px 15px;}
}
@media (min-width: 992px) {
    .section-testimonial {
        padding-bottom: 4%;
    }
    .section-title2 {}

    .scroll-tabs .{}
    .testimonial-tabs {
        /* justify-content: end; */
    }
    .testimonial-tabs .tab {
        border-width: 0;
    }
    .tab-content-testimonial {}
    .tab-pane-testimonial {}
    .tab-pane-testimonial .cards {}
    .testimonial-card {}
    .testimonial-card .testimonial-card-btn {}
    .testimonial-card figure img {}
    .testimonial-card .card-body {}
    .testimonial-card .card-body .card-body-header {}
    .testimonial-card .card-body-company {}
    .testimonial-card .card-body-title {}
    .testimonial-card .card-body-title .name {}
    .testimonial-card .card-body-title .title {}
    .testimonial-card .card-body-head {
        -webkit-line-clamp: 2;
    }
    .testimonial-card .card-body-text {
        -webkit-line-clamp: 1;
    }
    .tab-content-btnbox {}
    .tab-content-btnbox .btn-more {
        margin: 2.5% auto 0%;
    }
    .tab-content-btnbox .btn-more:hover,
    .tab-content-btnbox .btn-more:focus,
    .tab-content-btnbox .btn-more:active {}
}
@media (max-width: 576px) {
    .scroll-tabs .{}
    .testimonial-tabs {
        justify-content: start;
    }
}





/* form */
/* Notes: 名人推薦集合頁、內頁一樣複製貼上 */
.section-testimonial-form {
    padding: 20px 0 20px;
    background-image: url('../images/testimonial/bg-testimonial-form.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 50%;
    /* background-attachment: fixed; */
    position: relative;
}
.section-testimonial-form
.form-container {
}

.form-header {
    text-align: left;
}
.form-header .section-title,
.form-header .section-title2 {
    margin-bottom: 0;
    text-shadow: 1px 1px 5px #ffffff;
    font-size: var(--fzSecTitle);
}

.form-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.form-contact-inside {
    padding: 10px;
    background-color: #ffffff91;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 5px #bbbbbb;
}

.form-contact-deco {
    padding: 0 15px 0%;
    text-align: center;
    position: relative;
}
.form-contact-deco .img {  
    width: 100%;
    max-width: 450px;
}

@media (min-width: 992px) {
    .section-testimonial-form {
        padding: 4% 0 0;
    }
    .form-container {
        padding-bottom: 0%;
    }
    .form-header {}
    .section-title2 {}

    .form-contact {}
    .form-contact-inside {
        width: 100%;
    }

    .form-contact-deco {
        order: 1;
    }
    .form-contact-deco .img {
        max-width: 100%;
        position: absolute;
        bottom: 0;
        width: 100%;
        left: 0;
    }
}
/* 內容 end */