@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --white: hsl(0, 100%, 100%);
    --purple-100: hsl(275, 100%, 97%);
    --purple-600: hsl(292, 16%, 49%);
    --purple-950: hsl(292, 42%, 14%);
}


* {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--purple-100);
    position: relative;
    font-family: 'Work Sans', sans-serif;
}


/* Background Banner */

.hero-banner {
    background-image: url('assets/images/background-pattern-desktop.svg');
    background-size: cover;
    background-position: center;
    height: 45vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: -150px;
    /* Overlap upward */
    z-index: 2;
}

/* FAQ section */

.faq {
    background-color: var(--white);
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    padding: 40px 35px 20px 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Elements */

.faq-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.faq-header img {
    height: 35px;
    width: 35px;
}

.faq h1 {
    margin: 0;
    font-weight: 700;
    font-size: 3em;
    color: var(--purple-950);
    line-height: 1;
}

.faq h3 {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--purple-950);
    line-height: 1;
}

.faq h3:hover {
    color: var(--purple-600);
    cursor: pointer;
}

.faq p {
    font-size: 1em;
    line-height: 1.5;
    color: var(--purple-600);
    margin-bottom: 30px;
}

.questions {
    border-bottom: 1px solid var(--purple-100);
    margin-bottom: 30px;
}

/* So the last one does not have border */
.questions:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
}


.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px 0;
}


.icons {
    display: flex;
    cursor: pointer;
}

.icons img {
    height: 30px;
    width: 30px;
}

/* Accordion */

.hidden {
    display: none;
}


.attribution {
    margin-top: 50px;
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}


@media (max-width: 600px) {
    .faq {
        width: 80%;
        padding: 25px 20px;
    }

    .faq h1 {
        font-size: 2em;
    }

    .faq h3 {
        font-size: 1em;
    }

    .faq-header img {
        width: 25px;
        height: 25px;
    }

    .icons img {
        width: 24px;
        height: 24px;
    }

    .hero-banner {
        background-image: url('/assets/images/background-pattern-mobile.svg');
        height: 35vh;
    }

    .center-content {
        margin-top: -100px;
    }
}
