/* FAQ 區域樣式 */
.faq {
    border-radius: 0 0 2.5rem 2.5rem;
    padding: 3.75rem 0;
    background-image: url('../images/bg/mobile/faq.png');
    background-size: 100%;
    background-position: bottom;
    background-repeat: no-repeat;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1;
    box-shadow: 0px 5px 5px 0px #0000001A;
    border-radius: 0 0 2.5rem 2.5rem;
    pointer-events: none;
}

.faq::after {
    content: '';
    background-color: #FFFFFF;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FDFD 100%);
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: 0px;
    z-index: -1;

}

.faq__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 大標題 */
.faq__title {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    /* 28px */
    line-height: 1.4;
    /* 140% */
    letter-spacing: 0;
    text-align: center;
    color: #454545;
    margin: 0;
}

/* 卡片容器區 */
.faq__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.375rem 1rem;
    /* 36px 16px */
    justify-items: center;
    max-width: 21rem;
    /* 336px (160*2 + 16) */
    margin: 0 auto;
}

/* 卡片 */
.faq__card {
    width: 10rem;
    height: 8.75rem;
    display: flex;
    position: relative;
    cursor: pointer;
}

/* 圖片區域 */
.faq__card-image {
    width: 4.625rem;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.faq__card:nth-child(even) .faq__card-image>img {
    transform: scaleX(-1);
}

.faq__card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 文字區域 */
.faq__card-text {
    width: 10rem;
    height: 7.75rem;
    border-radius: 0.5rem;
    background: #FFFFFF;
    background-image: url('../images/bg/grid.png');
    border: 1px solid #F0F0F0;
    background-size: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 0;
    color: #454545;
    text-align: center;
    padding: 0 0.5rem;
    border: 2px solid #F0F0F0;
}

/* 按鈕 */
.faq__more-btn {
    border-width: 1px;
    border-radius: 1.375rem;
    padding: 0.75rem 2rem;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.3;
    letter-spacing: 0;
    background: #fff;
    color: #019F93;
    border: 1px solid #019F93;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    outline: none !important;
}

/* 按鈕基本狀態 */
.faq__more-btn:hover,
.faq__more-btn:focus {
    text-decoration: none;
}

/* PC模式 */
@media (min-width: 576px) {
    .faq {
        padding: 5rem 0;
        background-image: url('../images/bg/faq.png');
    }

    .faq::after {
        box-shadow: 0px 10px 20px 0px #0000001A;
    }

    .faq__container {
        gap: 4rem;
    }

    /* 大標題 PC */
    .faq__title {
        font-size: 3.125rem;
        /* 50px */
        line-height: 1;
        /* 100% */
    }

    /* 卡片容器區 PC */
    .faq__cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 0 1.5rem;
        /* 0 24px */
        max-width: none;
        justify-items: center;
    }

    /* 卡片 PC */
    .faq__card {
        width: 19.5rem;
        /* 312px */
        height: 16.75rem;
        /* 268px */
    }

    /* 圖片區域 PC */
    .faq__card-image {
        width: 8.75rem;
        /* 140px */
    }

    /* 文字區域 PC */
    .faq__card-text {
        width: 19.5rem;
        height: 15rem;
        border-radius: 1rem;
        box-shadow: 0 0 1.25rem 0 #00000026;
        border: 2px solid #F0F0F0;
        font-size: 2rem;
        transition: all 0.3s ease;
    }

    /* 卡片 hover 效果 PC */
    .faq__card:hover .faq__card-text {
        border: 2px solid #8ADAD4;
        color: #019F93;
    }

    /* 按鈕 PC */
    .faq__more-btn {
        padding: 1rem 2rem;
        border-radius: 1.875rem;
        font-size: 1.25rem;
    }

    .faq__more-btn:hover,
    .faq__more-btn:focus {
        background: #019F93;
        color: white;
    }
}