@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');

/*
GENERAL STYLES
*/

.next-button {
    text-align: center;
    margin-top: 30px;
  }
  
  .next-button button {
    padding: 10px 20px;
    background-color: #00bfff;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
  }
  
  .next-button button:hover {
    background-color: #0080ff;
  }
  

:root {
    --Very-dark-grayish-blue: hsl(237, 12%, 33%);
    --Dark-grayish-blue: hsl(240, 6%, 50%);
    --Light-grayish-blue: hsl(240, 5%, 91%);
    --Soft-violet: hsl(273, 75%, 66%);
    --Soft-blue: hsl(240, 73%, 65%);
    --Very-dark-desaturated-blue: hsl(238, 29%, 16%);
    --Soft-red: hsl(14, 88%, 65%);
}

/*
RESET STYLES
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kumbh Sans', sans-serif;
}

/*
HANDLE PROJECT BACKGROUND STYLES
*/
main {
    background-image: linear-gradient(
            to bottom right,
            hsl(273, 75%, 66%),
            hsl(240, 73%, 65%)
    );
    background-repeat: no-repeat;
    width: 100%;
    display: grid;
    place-items: center;
    min-height: 100vh;
    align-content: center;
    padding: 2rem;
}

.main {
    background-color: white;
    border-radius: 30px;
    height: 100%;
    width: min(100%, 50rem);
}

/*
FAQs SECTION OF CARD
*/
.faqs {
    padding: 2rem;
    width: 50%;
    float: right;
    height: 100%;
}

/*
IMAGE SECTION OF CARD
*/
.image {
    width: 50%;
    position: relative;
    height: inherit;
    float: left;
    background: url('images/illustration-woman-online-desktop.svg') bottom 68px left -74px no-repeat,
    url('images/bg-pattern-desktop.svg') bottom -159px left -570px no-repeat;
}

.image::before {
    content: "";
    position: absolute;
    bottom: 134px;
    left: -90px;
    background: url('images/illustration-box-desktop.svg') no-repeat;
    width: 191px;
    height: 156px;
}

button {
    width: 100%;
    background-color: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

button:hover {
    transition: all 0.3s ease-in-out;
    color: hsl(14, 88%, 65%);
}

.answer {
    padding-top: 1rem;
    color: hsl(240, 6%, 50%);
    font-size: 12px;
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.arrow {
    transition: transform 0.3s ease-in-out;
    align-self: center;
    object-fit: contain;
    width: 0.75rem;
    margin-left: 0.75rem;
    user-select: none;
    pointer-events: none;
}


.faqs h1 {
    margin-bottom: 1rem;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid gray;
    margin-bottom: 10px;
}

.faq-item.active .answer {
    display: block !important;
    opacity: 1 !important;
}

.faq-item.active .question {
    color: black;
}

.faq-item.active .arrow {
    transform: rotate(180deg);
}

.faq-item button {
    outline: none;
}

.question {
    font-size: 13px;
    font-weight: bold;
    color: var(--Dark-grayish-blue);
}

/*
MEDIA QUERY
MOBILE VIEW STYLES
*/
@media (max-width: 50rem) {
    .image {
        display: none;
    }

    .faqs {
        width: 100%;
    }
}