/* Should you need to overwrite any of our SCSS or LESS or SASS code need to add any custom code, We highly recommend that you add your code into this file, so whenever theme update is available and you update the theme, You will not lose your hard work :) */

body {
    font-family: "微軟正黑體 Medium";
}

.navbar-nav li:hover > a {
    color: #f94f22;
}

header .container {
    max-width: initial;
    padding: 0 2em;
}

.banner {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    padding: 0;
}

    .banner img {
        width: 100%;
    }

    .banner .banner-text {
        position: absolute;
        top: 40%;
        left: 45%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .banner .banner-text * {
            color: white;
        }

        .banner .banner-text h1 {
            font-size: calc(3vw);
        }

        .banner .banner-text div {
            display: flex;
            align-items: baseline;
            background-color: #f94f22;
            padding: .5em 1em;
            border-radius: 2em;
            gap: .5em;
            font-size: calc(.75rem + .05vw);
        }

footer {
    background-color: #328039;
}

.project-type-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
}

.project-type {
    background-color: white;
    color: #f94f22;
    border: 1px solid #f94f22;
    padding: .5em 1em;
    border-radius: 1em;
}

    .project-type:hover {
        background-color: #f94f22;
        color: white;
        border: 1px solid white;
    }

    .project-type.active {
        background-color: #f94f22;
        color: white;
        border: 1px solid white;
    }

.section-heading .butn-read {
    font-size: 2rem;
    margin: 2em auto -1em;
}

    .horizontal-alignment-card .card-img {
        overflow: hidden;
    }

    .horizontal-alignment-card img {
        max-height: 30%;
        object-fit: cover;
        transition: all .3s linear;
    }

    .horizontal-alignment-card img:hover {
        transform:scale(1.3);
    }

    .horizontal-alignment-card img.img__large {
        max-height: initial;
        height: 80%;
        aspect-ratio: 16/9;
        object-fit: contain;
    }

.horizontal-alignment-card-body {
    display: flex;
    flex-direction: column;
}

    .horizontal-alignment-card-body > p {
        flex: 1 0 0;
    }

.hidden {
    display: none;
}

.carousel {
    margin-top: 8em;
    display: flex;
    align-items: center;
    gap: 2em;
}

.carousel-left {
    width: 2em;
    font-size: 4rem;
    text-align: center;
}

    .carousel-left:hover {
        cursor: pointer;
        background-color: hsla(0, 0%, 0%, 0.1);
    }

.carousel-right {
    width: 2em;
    font-size: 4rem;
    text-align: center;
}

    .carousel-right:hover {
        cursor: pointer;
        background-color: hsla(0, 0%, 0%, 0.1);
    }

.images {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.image {
    min-width: calc(100% - 10px);
}

    .image > a > img {
        border-radius: .5em;
        object-fit: cover;
        aspect-ratio: 16/9;
    }

    .image > a > div {
        text-align: center;
    }

.cta {
    position: fixed;
    top: 15em;
    right: 2em;
    z-index: 100;
    opacity: 0; /* 一開始隱藏 */
    visibility: hidden; /* 確保元素在隱藏時不佔位 */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; /* 淡入淡出的過渡效果 */
}

/* 當按鈕顯示時的樣式 */
.cta.visible {
    opacity: 1; /* 顯示時透明度變為 1 */
    visibility: visible;
}

.personal-info-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12399996;
    display: none;
}

    .personal-info-modal.open {
        display: block;
    }

.personal-info-modal_backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: hsla(0, 0%, 0%, 0.7);
}

.personal-info-modal_box {
    position: absolute;
    top: 10%;
    right: 10%;
    bottom: 10%;
    left: 10%;
    background-color: hsl(0, 0%, 100%);
    border-radius: 2em;
}

.personal-info-modal_close {
    position: absolute;
    right: 1em;
    font-size: 2rem;
    font-weight: 900;
    padding: 1em;
    cursor: pointer;
}

.personal-info-modal_content {
    position: absolute;
    font-size: 2rem;
    font-weight: 500;
    margin: 1em;
}

.cover-background-img {
    height: 100%;
    object-fit: contain;
    background-color: white;
}

/* ATM 匯款資訊 Modal */
.atm-info-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 12399996;
    display: none;
}

    .atm-info-modal.open {
        display: block;
    }

.atm-info-modal_backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: hsla(0, 0%, 0%, 0.7);
}

.atm-info-modal_box {
    position: absolute;
    top: 10%;
    right: 10%;
    bottom: 10%;
    left: 10%;
    background-color: hsl(0, 0%, 100%);
    border-radius: 2em;
}

.atm-info-modal_close {
    position: absolute;
    right: 1em;
    font-size: 2rem;
    font-weight: 900;
    padding: 1em;
    cursor: pointer;
}

.atm-info-modal_content {
    position: absolute;
    font-weight:bolder;
    margin: 1em;
}

atm-info-modal_content h2,
atm-info-modal_content h3 {
    text-align:center;
}

.block-with-title {
    overflow: hidden;
    position: relative;
    line-height: 1.2em;
    max-height: 3.6em;
    text-align: justify;
    margin-right: -1em;
    padding-right: 1em;
}

    .block-with-title:before {
        content: "...";
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .block-with-title:after {
        content: "";
        position: absolute;
        right: 0;
        width: 1em;
        height: 1em;
        margin-top: 0.2em;
        background: white;
    }

.block-with-text {
    overflow: hidden;
    position: relative;
    line-height: 1.2em;
    max-height: 6em;
    text-align: justify;
    margin-right: -1em;
    padding-right: 1em;
}

    .block-with-text:before {
        content: "...";
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .block-with-text:after {
        content: "";
        position: absolute;
        right: 0;
        width: 1em;
        height: 1em;
        margin-top: 0.2em;
        background: white;
    }

.ckeckboxs {
    display: flex;
    gap: 1.5em;
}

@media screen and (min-width: 62em) {
    .project-type-list {
        grid-template-columns: 1fr 1fr;
    }

    .image {
        min-width: calc(50% - 10px);
    }
}

@media screen and (min-width: 90em) {
    .project-type-list {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .image {
        min-width: calc(33% - 10px);
    }
}

@media screen and (min-width: 120em) {
    section .container {
        max-width: 80%;
    }

    .project-type-list {
        display: block;
    }

    .image {
        min-width: calc(25% - 10px);
    }
}