﻿.t-items-content {
    width: 32%;
    margin-right: 2%;
}

    .t-items-content:nth-child(3) {
        margin-right: 0;
    }

@media all and (min-width: 769px) and (max-width: 992px) {
    .t-items-content {
        width: 47%;
        margin-right: 2%;
    }
}

@media all and (max-width: 768px) {
    .t-items-content {
        width: 98%;
        margin: auto;
    }
        .t-items-content:nth-child(3) {
            margin: auto;
        }
}

/*barnch*/
.section .branch-about .t-items-content {
    margin: 0;
    padding: 0;
}

.branch-name {
    margin-bottom: 15px;
    margin-left: 80px;
}

.branch-info {
    text-align: left;
    width: 100% !important;
}

.section .branch-about .content-row .branch-info-left {
    width: 39% !important;
    margin: auto;
    margin-left: 5px;
    justify-content: right;
}

.section .branch-about .content-row .branch-info-right {
    width: 60% !important;
    justify-content: left;    
}

.section .branch-about .t-items-content .branch-img {
    width: 100% !important;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

.parking-box {
    padding-left: 60px !important;
    position: relative;
    min-height: 250px;
    max-height: 250px;
    height: 250px;
    top: -75px;
}

    .parking-box span {
        margin: 0 40px;
        object-position: top;
        font-size: clamp(0.9375rem, 0.8929rem + 0.1429vw, 1rem);
        opacity: 0.85;
    }

    .parking-box img {        
        background-color: #fff;
        position: absolute;
        top: -100px;
        left: 60px;
        z-index: 1;
        border-radius: 5px;
        transition: .4s;
        width: calc(100% - 60px) !important;
    }

@media all and (max-width: 768px) {
    .section .branch-about .t-items-content {
        justify-content: center;
    }

    .branch-name {
        margin-left: 40px;
        margin-top: -10px;
    }

    .branch-info {
        margin-left: 25px;
    }

    .section .branch-about .content-row .branch-info-left {
        width: 98% !important;
        justify-content: center;
        margin-bottom: -15px;        
    }

    .section .branch-about .content-row .branch-info-right {
        width: 98% !important;
        justify-content: center;
        height: 100%;
        min-height: 100%;
        margin: 0;
        padding: 0;
    }

    .section .branch-about .t-items-content .branch-img {
        width: 98%;
        justify-content: center;
        margin-top: -15px;
        margin-left: 5px;
        margin-bottom: 20px;
    }

    .parking-box {
        padding-left: 5px !important;
    }

        .parking-box img {
            left: 5px;
            width: 98% !important;
        }

        .parking-box span {
            margin: 0px 30px;
        }
}

/* Default Section Title */
.all-section-title {
    width: 100%;
    margin-top: 0px;
    margin-bottom: 25px;
}

.section .branch-about .all-section-title {
    width: 100%;
    margin-top: -50px;
    margin-bottom: 25px;
}

@media all and (max-width: 992px) {
    .all-section-title {
        margin-top: 20px;
    }

    .section .branch-about .all-section-title {
        margin-top: -20px;
    }
}

    .all-section-title p {
       color: #767676;
       text-align: justify;
    }

        .all-section-title .subtitle {
            color: #115DA1;
            text-align: center;
        }

.t-items-content-text {
    width: calc(100% - 60px) !important;
    background-color: #fff;
    padding: 50px 40px 0px;    
    box-shadow: 2.5px 4.33px 30px 0 rgb(64 87 191 / 10%);
    position: relative;
    border-radius: 5px;
    transition: .4s;    
    margin-bottom: 35px;
}

    .t-items-content-text.content-height {
        height: 375px;
        margin-bottom: 0px !important;
    }

@media all and (max-width: 768px) {
    .t-items-content-text {
        width: 98% !important;
        padding-bottom: 25px;
        margin-top: 15px;
    }

        .t-items-content-text.content-height {
            height: 100%;
            margin-bottom: 0px !important;
        }
}

    .t-items-content-text:hover {
        box-shadow: 2.5px 4.33px 30px 0 rgb(64 87 191 / 20%);
    }

    .t-items-content-text::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -20px;
        right: 0;
        width: 0;
        height: 0;
        margin: auto;
        border-style: solid;
        border-width: 20px 20px 0 20px;
        border-color: #ffffff transparent transparent transparent;
    }

    .t-items-content-text p {
        color: #767676;
        font-size: clamp(0.9375rem, 0.8929rem + 0.1429vw, 1rem);
        line-height: 1.6em;
        font-weight: 300;
        text-align: center;
    }

        .t-items-content-text p::before {
            content: "\f10d";
            font-family: "Font Awesome 5 Free";
            font-weight: 600;
            position: absolute;
            left: 40px;
            top: 35px;
            font-size: clamp(2.1875rem, 1.0714rem + 3.5714vw, 3.75rem);
            opacity: 0.15;
        }

.image-container {
    width: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%; /* 容器變成圓形 */
    overflow: hidden; /* 隱藏超出容器的部分 */
}
    .image-container img {
        display: block; /* 確保圖片沒有多餘的間隙 */
        width: 100%; /* 圖片寬度為容器的100% */
        height: 100%; /* 圖片高度為容器的100% */
        object-fit: cover; /* 讓圖片保持比例並填滿整個容器 */
    }

.image-bio {
    width: 50%;
    padding-left: 5%;
    color: #767676;
}

.container_margin {
    margin-top: -20px;
    margin-bottom: 20px;
}

.info-box {
    display: grid;
    grid-template-columns: 30px 17% 78%;
    color: #767676;
    font-size: clamp(0.9375rem, 0.8929rem + 0.1429vw, 1rem);
    font-weight: 300;
    text-align: left !important;
}

    .info-box > div{
        line-height: 1.5em;
    }

@media all and (max-width: 768px) {
    .info-box {
        margin-left: 20px;
        grid-template-columns: 23px 17% 78%;
    }
}

.info-box > div > i {
    text-align: center !important;
}

    .info-box > div > a {
        background-color: #a5d4ff;
        color: tomato;
        font-size: clamp(0.9375rem, 0.8929rem + 0.1429vw, 1rem);
        font-weight: 300;
    }

.info-box-note {
    width: 100% !important;
    background: #ccc;
    border-radius: 5px;
    margin: 0;
    padding: 35px 50px;
    text-align: justify;
    font-size: clamp(0.9375rem, 0.8929rem + 0.1429vw, 1rem);
    box-shadow: 0 0 8px 10px #eee;
    margin-bottom: 60px;
    line-height: 1.6em;
    position: relative;
    min-height: 545px;
}

@media all and (max-width: 768px) {
    .info-box-note {
        padding: 20px 30px;
        margin-left: 10px;
        margin-top: 5px;
        margin-bottom: 0px;
        width: 98% !important;
    }
}

figure.br-img {
    position: relative;
    overflow: hidden;
    margin-top: -10px;
    margin-left: 10px;
    margin-right: 10px;
    min-height: 100%;
    width: 32%;
    max-width: 32%;
    background: #000000;
    color: #ffffff;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
    float: right
}

    figure.br-img * {
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-transition: all 0.4s ease-in-out;
        transition: all 0.4s ease-in-out;
    }

    figure.br-img img {
        max-width: 100%;
        min-height: 100%;
        position: relative;
        opacity: 0.85;
        object-fit: fill;
    }

    figure.br-img:before {
        height: 110%;
        width: 110%;
        top: 0;
        left: 0;
        content: '';
        background: #ffffff;
        position: absolute;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        -webkit-transform: rotate(110deg) translateY(-15%);
        transform: rotate(110deg) translateY(-15%);
        object-fit: fill !important;
    }

    figure.br-img.blue {
        background: #123851;
        object-position: center;
    }

    figure.br-img.red {
        background: #581a14;
        object-position: center;
    }

    figure.br-img.yellow {
        background: #7f5006;
        object-position: center;
    }

    figure.br-img:hover img,
    figure.br-img.hover img {
        opacity: 1;
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }

    figure.br-img:hover:before,
    figure.br-img.hover:before {
        -webkit-transform: rotate(110deg) translateY(-185%);
        transform: rotate(110deg) translateY(-185%);
    }

.branch-title {
    position: relative;
    background-image: none;
    background-color: transparent;
    color: #a80606;
    margin-top: 0px;
    padding-top: 0px;
}

    .branch-title::after {
        content: '';
        position: absolute;
        bottom: -10%;
        left: 0;
        height: 30%;
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='247' height='22' fill='none'%3E%3Cmask id='a' width='246' height='23' x='0' y='1' maskUnits='userSpaceOnUse' style='mask-type:alpha'%3E%3Cpath fill='%23D9D9D9' d='M0 1h246v23H0z'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath fill='%2300a661' d='M.225 13.987c40.77-3.247 81.218-6.304 122.486-5.61 40.217.68 80.07 3.493 119.823 8.284 4.828.577 4.966-4.727.193-5.301-40.597-4.886-82.029-7.082-123.059-6.436-39.896.627-80.713 2.548-119.53 8.822-.233.04-.132.263.087.25v-.009z'/%3E%3C/g%3E%3C/svg%3E");
        mask-repeat: no-repeat;
        mask-size: 95%;
        width: 100%;
        background-image: linear-gradient(to right, currentcolor 40%, transparent 50%);
        background-repeat: no-repeat;
        animation: background-size-300 0.4s 1.5s ease-in both;
        background-size: 300%;
    }
