/*
Theme Name:     Ks_yuanyu-medical
Theme URI:      
Description:    Ks_yuanyu-medical child theme.
Author:         Knockers
Author URI:     
Template:       blocksy
Version:        0.1.0
*/


/* Banner */
#single-products-banner .inner{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-gap: 30px; */
    min-height: 520px;
}

#single-products-banner .banner-info{
    padding: 20px 40px 40px;
    background: linear-gradient(102.42deg, #F8F8F8 45.69%, #C6C6C6 96.47%);
}

#single-products-banner .banner-info .breadcrumbs span{
    font-size: 14px;
    font-family: "Noto Sans TC", sans-serif;
}

#single-products-banner .title-line {
    border-top: 1px solid #CECECE;
    margin-top: 10px;
}

#single-products-banner .title-outer{
    margin:0 0 0 70px;
    padding-top: 130px;
}

#single-products-banner .title-outer span{
    display: block;
}

#single-products-banner .title-outer .title .name{
    font-size: 20px;
    line-height: 100%;
    font-weight: 400;
}

#single-products-banner .title-outer .title .model{
    font-size: 55px;
    font-weight: 400;
    line-height: 100%;
    background: linear-gradient(180deg, #002F70 0%, #0E2994 100%);
    -webkit-background-clip: text; /* Safari / Chrome */
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin:20px 0 30px;
}

#single-products-banner .title-outer .desc{
    font-family: "Inter", "Noto Sans TC", sans-serif;
    line-height: 30px;
    margin-bottom: 0;
    max-width:400px;
}

#single-products-banner .download-outer{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin:75px 0 0;
}

#single-products-banner .download-outer .download-link{
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 30px;
    column-gap:12px;
}

#single-products-banner .banner-image{
    background: linear-gradient(102.42deg, #F8F8F8 45.69%, #C6C6C6 96.47%);
    min-height: 270px;
    border-radius: 0 0 50px 0;
}

#single-products-banner .banner-image > div{
    border-radius: 0 0 50px 0;
}

#single-products-banner .banner-image .pic{
    position: relative;
    width:100%;
    height: 100%;
    overflow: hidden;
}

#single-products-banner .banner-image .pic figure{
    position: absolute;
    top: 0;
    left: 0;
    padding-bottom: 60%;
    width:100%;
    height:100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width:1000px) {
    #single-products-banner .inner{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    #single-products-banner .banner-info{
        padding:20px 20px 30px;
    }

    #single-products-banner .title-outer{
        padding-top: 20px;
        margin:0;
    }

    #single-products-banner .title-outer .title .model{
        font-size: 32px;
        margin:12px 0 16px;
    }

    #single-products-banner .download-outer{
        margin-top:20px;
    }

    #single-products-banner .banner-image .pic figure{
        padding-bottom: 30%;
    }
}

/* 內容 */
#single-products-content {
    padding:20px 30px 0;
}

#single-products-content > .inner{
    width:1390px;
    max-width: 100%;
    margin:0 auto;
}

#single-products-content .anchor-block{
    display: flex;
    align-items: center;
    column-gap: 30px;
}

#single-products-content .anchor-block a{
    display: inline-flex;
    align-items: center;
    line-height: 30px;
    border-right: 1px solid #000000;
    padding-right:30px;
    column-gap: 30px;
    height:55px;
}

#single-products-content .anchor-block a:last-child{
    padding-right:0;
    border-right: none;
}

#single-products-content .content-block-line{
    border:solid #CDCDCD;
    border-width: 1px 0;
    padding-bottom: 70px;
    width:1600px;
    max-width: 100%;
    margin: 20px auto 0;
}

#single-products-content .content-block{
    width:1390px;
    max-width: 100%;
    margin:0 auto;
    padding:50px 0 0;
}

#single-products-content .content-block .inner{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 90px;
    align-items: center;
}

#single-products-content .content-block .info p{
    font-family: "Inter", "Noto Sans TC", sans-serif;
    line-height: 30px;
}

#single-products-content .content-block .info p:last-child{
    margin-bottom: 0;
}

#single-products-content .content-block .pic{
    position: relative; 
    width:100%; 
    height:100%; 
    overflow: hidden;
    padding-bottom: 68%;
}

#single-products-content .content-block .pic figure{
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.button-content{
    margin-top:170px;
}

.button-content .inner{
    width:670px;
    max-width: 100%;
    margin:0 auto;
}

.button-content .content{
    font-family: "Noto Sans TC", sans-serif;
    text-align: center;
    margin-bottom: 50px;
}

.button-content .button-inner{
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    display: flex;
    justify-content: center;
    grid-gap: 30px;
    align-items: center;
}

.button-content .button-inner .link{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 49px;
    background: linear-gradient(90deg, #002F70 0%, #2C4198 100%);
    color: #FFFFFF;
    border-radius: 30px;
    width:100%;
    max-width:316px;
    height:58px;
}

.button-content .button-inner .link:hover{
    opacity: 0.8;
    transition: 0.4s ease-in;
}

#signature-button-section{
    width:1600px;
    max-width: 100%;
    margin:0 auto;
    padding:0 30px 70px;
    border-bottom: 1px solid #CDCDCD;
}

@media (max-width:768px) {
    #single-products-content{
        padding:20px 20px 0;
    }
    #single-products-content .content-block .inner{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
    }

    #single-products-content .content-block-line{
        padding-bottom: 30px;
    }

    #single-products-content .content-block{
        padding: 20px 0 0;
    }

    #single-products-content .anchor-block{
        column-gap: 10px;
    }

    #single-products-content .anchor-block a{
        column-gap: 10px;
        padding-right: 10px;
    }

    #single-products-content .anchor-block a svg{
        width:32px;
        height:32px;
    }

    #signature-button-section{
        padding:0 20px 30px;
    }

    .button-content .content{
        margin-bottom: 30px;
    }

    .button-content .button-inner{
        grid-gap:10px;
    }

    .button-content .button-inner .link{
        height:45px;
    }
}

/* 關聯機型 */
#related-products {
    padding:60px 30px 80px;
}

#related-products .inner{
    width: 1400px;
    max-width: 100%;
    margin:0 auto;
}

#related-products .inner .products-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-top: 50px;
}

#related-products .inner .title{
    margin-bottom: 0;
}

#related-products .inner .title .name{
    font-size: 32px;
    line-height: 100%;
    font-weight: 400;
    background: linear-gradient(180deg, #002F70 0%, #0E2994 100%);
    -webkit-background-clip: text; /* Safari / Chrome */
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Firefox (需要額外實驗設定) */
    color: transparent;
    display: block;
    margin-top: 20px;
}

#related-products .inner .title .eng{
    font-size: 14px;
    font-weight: 400;
    color:#000000;
    display: block;
}

#related-products .products-grid .item{
    box-shadow: 0px 4px 4px 0px #0000000D;
    border-radius: 5px;
    overflow: hidden;
    width:100%;
    height:100%;

}

#related-products .products-grid .item a{
    width: 100%;
    height: 100%;
    display: block; 
}

#related-products .products-grid .item a:hover figure{
    transform: scale(1.1);
    transition: 0.5s ease;   
}

#related-products .products-grid .item .pic{
    position: relative;
    width: 100%;
    overflow: hidden;
    display: block;
    padding-bottom: 51%;
}

#related-products .products-grid .item figure{
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.5s ease; 
}

#related-products .products-grid .item-info{
    padding:20px;
}

#related-products .products-grid .item-info .title{
    font-size: 16px;
    font-family: "Inter", "Noto Sans TC", sans-serif;
    line-height: 36px;
    font-weight:300;
}

#related-products .products-grid .item-info .model{
    font-size: 24px;
    font-family: "Inter", "Noto Sans TC", sans-serif;
    line-height: 36px;
    font-weight: 500;
    margin-bottom: 0;
}

@media (max-width:768px) {
    #related-products{
        padding:30px 20px 40px;
    }
    #related-products .inner .products-grid{
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        margin-top: 50px;
    }
}


/* Tag page */
.tag .hero-section{
    min-height: 245px;
    padding:25px 30px 60px;
    background: linear-gradient(102.42deg, #F8F8F8 45.69%, #C6C6C6 96.47%);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
}

.tag .hero-section .breadcrumbs span{
    font-size: 14px;
    font-family: "Noto Sans TC", sans-serif;
    line-height: 30px;
}

.tag .hero-section header h1{
    font-size: 48px;
    font-weight: 400;
    line-height: 30px;
    color:#2C4198;
    margin-top: 56px;
    padding-left: 35px;
}

.tag .container{
    padding:50px 0;
    max-width: 85% ;
    margin:0 auto;
}

.tag .tags-list{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 25px;
}

.tag .entry-header{
    background-color: #F8F8F8;
    box-shadow: 5px 5px 10px 0px #00000017;
    border-radius: 5px;

}

.tag .post-thumbnail{
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    position: relative;
    width: 100%;
    padding-bottom: 75%;
}

.tag .post-thumbnail img{
    position: absolute;
    top: 0;
    left: 0;
    width:100%;
    height: 100%;
    border-radius: 5px 5px 0 0;
    object-fit: cover;
    transition: opacity .5s ease, transform .5s ease;
}

.tag .post-thumbnail:hover img{
    transform: scale(1.1);
    transition: opacity .5s ease, transform .5s ease;
}

.tag .tags-list .entry-content{
    padding:20px;
    margin-top: 0!important;;
}

.tag .entry-title{
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    margin-bottom: 20px;
}

.entry-title a{
    color:#002F70;
}

.tag .entry-meta span{
    font-size: 14px;
    font-weight: 400;
    line-height: 30px;
}

.tag .entry-meta .post-tags .separator{
    margin:0 6px 0 8px;
}

.tag .pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 75px;
}

.tag .pagination .page-numbers{
    font-size: 16px;
    font-weight: 400;
    line-height: 42px;
    color:#2c4198;
    width: 20px ;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag .pagination .page-numbers.current{
    font-weight: 700;
}

.tag .pagination .page-numbers:hover{
    font-weight: 700;
}

.tag .pagination .prev,.tag .pagination .next{
    display: none;
}

@media (max-width:1000px) {
    .tag .hero-section{
        padding:10px 20px 20px;
    }

    .tag .hero-section header h1{
        font-size: 30px;
        margin-top: 20px;
        padding-left: 0;
    }

    .tag .container{
        padding:30px 0;
        max-width: 90%;
    }

    .tag .tags-list{
        grid-template-columns: repeat(2, 1fr);
    }

    .tag .pagination{
        margin-top: 35px;
    }
}

@media (max-width:690px) {
    .tag .tags-list{
        grid-template-columns: repeat(1, 1fr);
    }
}