*,
*::after,
*::before {
    box-sizing: border-box;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
ol,
figure {
    margin: 0;
}

img,
picture,
svg,
canvas,
video {
    display: block;
    max-width: 100%;
}

:root {
    --h3-color: hsl(295, 16%, 16%);
    --h3-color-hover: hsl(282, 67%, 65%);
    --text: hsl(295, 8%, 74%);
    --border-line: hsl(250, 30%, 96%);
    --background: hsl(289, 100%, 96%);

    --font-size: 16px;
    --fs-rg: 1rem;
    --fs-md: 2rem;
    --fs-lg: 3rem;
    --fs-xl: 4rem;
}

body {
    font-size: var(--font-size);
    font-family: "Work Sans", sans-serif;
    color: var(--text);
    min-height: 100dvh;


    background-image: url(/assets/images/background-pattern-mobile.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-color: var(--background);

    @media (width>=850px) {
        background-image: url(/assets/images/background-pattern-desktop.svg);
    }

    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;

}

.faqs {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    width: 90%;

    h1,
    h2 {
        color: var(--h3-color);
        line-height: 1.1;
    }

    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    @media (width>=850px) {
        width: 600px;
    }


}

.faqs__header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;

    img {
        width: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }
}

.faqs-content {
    margin-block: 1rem;
    border-bottom: 1px var(--border-line) solid;


    &:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    &:first-child {
        margin-top: 0;
    }
}

.content__header {
    .minus {
        display: none;
    }

    h2 {
        font-size: 18px;
        cursor: pointer;
    }

    h2:hover {
        color: var(--h3-color-hover);
    }

    img {
        cursor: pointer;
    }

    div {
        flex-shrink: 0;
    }

}

.plus,
.minus {
    width: 1.7rem;
    height: 1.7rem;
}

.content__header.open .plus {
    display: none;
}

.content__header.open .minus {
    display: block;
}

.content__wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
    overflow: hidden;
}

.content__wrapper.open {
    grid-template-rows: 1fr;
}

.content__text {
    min-height: 0;
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
}

.content__wrapper.open .content__text {
    opacity: 1;
    margin-top: 1rem;
}

.content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}