@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset default styles remove unnecessary margin and spaces around */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Work Sans', sans-serif;
    background-color: hsl(275, 100%, 97%);
}

/* Header styles */
.header {
    width: 100%;
}

.header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Container styles */
.container {
    width: 90%;
    max-width: 620px;
    margin: -140px auto 2rem;
    padding: 2rem;
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Heading styles the logo FAQS */
.heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.heading h1 {
    font-size: 3rem;
    color: hsl(292, 42%, 14%);
}

.heading img {
    width: 40px;
    height: 40px;
    margin-top: 8px;
}

/* FAQ section styles */
.faqs {
    display: flex;
    flex-direction: column;
}

.faq {
    border-bottom: 2px solid hsl(275, 100%, 97%);
    padding: 1rem 0;
}

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

.faq-question h2 {
    font-size: 16px;
    color: hsl(292, 42%, 14%);
    flex: 1;
    margin-right: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.faq-question:hover h2 {
    color: hsl(292, 16%, 49%);
}

/* Toggle button styles */
.toggle {
    cursor: pointer;
}

.toggle img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

/* Hide minus icon by default */
.minus-icon {
    display: none;
}

/* FAQ content styles */
.faq-content {
    display: none;
    padding: 1rem 0;
    font-weight: 500;
    color: hsl(292, 16%, 49%);
    line-height: 1.6;
}

/* Active state styles */
.faq.active .faq-content {
    display: block;
}

.faq.active .plus-icon {
    display: none;
}

.faq.active .minus-icon {
    display: block;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .header img {
        content: url('./assets/images/background-pattern-mobile.svg');
    }
    
    .container {
        width: 85%;
        margin-top: -50px;
        padding: 1.5rem;
    }

    .heading h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 92%;
        margin: -30px auto 1rem;
        padding: 1.25rem;
    }

    .heading h1 {
        font-size: 2rem;
    }

    .faq-question h2 {
        font-size: 15px;
    }
}