* {
    color: black;
    --soft-violet: hsl(273, 75%, 66%);
    --soft-blue: hsl(240, 73%, 65%);
    --very-dark-blue: hsl(238, 29%, 16%);
    --light-grayish-blue: hsl(240, 5%, 91%);
    --dark-grayish-blue: hsl(240, 6%, 50%);
    --very-dark-grayish-blue: hsl(237, 12%, 33%);
}

.faq-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    margin-block: 6rem;
}

.faq-container h2 {
    color: var(--very-dark-blue);
    font-size: 22px;
    text-align: left;
    margin: 0;
}

.faq-container article {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
}

.faq-container .img-container {
    z-index: 1;
    height: 100%;
    width: 30%;
    max-height: 320px;
    object-fit: contain;
    position: relative;
}

.faq {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 3rem;
}

.faq-item {
    width: 100%;
    display: inline-block;
    font-size: 0.95rem;
    border-bottom: 1.5px solid var(--light-grayish-blue);
    padding-bottom: 1.05em;
    margin-top: 1.05em;
}

.faq__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq__wrapper h3 {
    color: var(--very-dark-grayish-blue);
    cursor: pointer;
    text-align: left;
}

.faq__wrapper h3:hover {
    opacity: .85;
}

.faq__wrapper svg {
    justify-self: end;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.faq__wrapper svg.flipped {
    transform: scaleY(-1);
}

.faq__answer {
    overflow: hidden;
    color: var(--dark-grayish-blue);
    text-align: left;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.faq__answer.faq__answer--open {
    padding-top: 1rem;
    opacity: 1;
}

@media screen and (max-width: 800px) {
    .faq-container {
        padding: 2rem 1rem 1rem;
        gap: 1rem;
        margin-block: 3rem;
    }
    
    .faq-container h2 {
        font-size: 1.2rem;
    }

    .faq__wrapper h3 {
        font-size: 16px;
    }
}

@media screen and (max-width: 630px) {
    .faq {
        padding: 1.5rem 0.5rem 0.5rem;
    }
    
    .faq-container .img-container {
        position: absolute;
        width: 25%;
        height: auto;
        top: -10%;
        left: -10%;
        transform: rotate(20deg);
    }
}

@media screen and (max-width: 400px) {
    .faq-container h2 {
        font-size: 1rem;
    }

    .faq-container .img-container {
        top: 0;
    }
}

