#faq {
    position: relative;
}

#faq::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image: url("../image/bg/bg_project.webp");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: -1;
}

.cor-faq-title {
    padding-top: 40px;
    font-family: var(--font-normal);
    font-weight: 700;
    font-size: var(--size-title);
    color: var(--color-black);
}

.cor-faq-wrapper {
    margin-top: 40px;
    display: flex;
    gap: 60px;
}

.cor-faq-left {
    flex: 1;
}

.cor-faq-left img {
    margin-top: 30px;
    width: 75%;
    height: auto;
    border-radius: 10px;
}

.cor-faq-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cor-faq-card {
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0px 0px 10px 0px rgba(11, 88, 159, 0.1804);
    padding: 20px 24px;
    overflow: hidden; /* keeps the answer's reveal animation clipped to the card's rounded edges */
}

.cor-faq-question {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: var(--size-normal);
    color: var(--color-black);
}

.cor-faq-toggle-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.cor-faq-card.is-open .cor-faq-toggle-icon {
    transform: rotate(180deg);
}

.cor-faq-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.25);
    margin-top: 16px;
    display: none;
    transition: opacity 0.3s ease;
}

.cor-faq-card.is-open .cor-faq-separator {
    display: block;
}

.cor-faq-answer-wrapper {
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.35s ease,
        opacity 0.3s ease;
}

.cor-faq-card.is-open .cor-faq-answer-wrapper {
    max-height: 500px; /* generous cap so longer answers aren't clipped */
    opacity: 1;
}

.cor-faq-answer {
    padding-top: 16px;
    font-family: var(--font-normal);
    font-size: var(--size-normal4);
    color: var(--color-black);
    line-height: 1.6;
}

@media (max-width: 855px) {
    .cor-faq-wrapper {
        flex-direction: column;
    }
}
