/* from: product_comparision_faq.css
   purpose: FAQ 模組（accordion）
*/

.faq {
    display: flex;
    flex-direction: column;
    font-family: "Noto Sans TC", sans-serif;
    width: 80vw;
    margin: 0 auto 5vh;
    padding: 4% 8%;
    background: rgba(248, 248, 248, .72);
    border: 1px solid rgba(40, 40, 40, .08);
    border-radius: 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .55);
    padding: 6vh 4.5vh;
    border-radius: 32px;
    gap: 1rem
}

.faq h2 {
    font-size: 2.4rem;
    font-weight: 700
}

.faq span {
    font-size: 24px
}

.faq-item {
    border-bottom: 1px solid #ddd;
    border: #933b18 1px solid;
    padding: 2rem 4rem;
    border-radius: 8px
}

.faq-item:hover {
    background-color:var(--product-accent-button)
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: #333
}

.faq-question .arrow {
    transition: transform .3s ease
}

.faq-item.is-open .arrow {
    transform: rotate(180deg)
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    line-height: 1.8;
    color: #555
}

.faq-answer p {
    font-size: 1.4rem
}

.faq-answer .imgs {
    display: flex;
    width: 50%
}

.faq-answer img {
    padding: 2% 1%
}

.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease
}

.faq-item.is-open .faq-answer {
    max-height: 700px
}

/* RWD */
@media(max-width: 768px) {
    .faq {
        width: 92%;
        padding: 22px 16px;
        border-radius: 20px
    }

    .faq h2 {
        font-size: 1.8rem
    }

    .faq-item {
        padding: 18px 16px
    }

    .faq span {
        font-size: 16px
    }

    .faq-answer p {
        font-size: 1rem
    }

    .faq-answer .imgs {
        width: 100%
    }
}