body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.questions .inner,
.learn-more .inner {
    max-width: var(--max-width-layout);
}

.questions, .learn-more {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.questions {
    margin-bottom: 4em;
}

p {
    font-size: 17px;
}

p, h2, h3, h4 {
    color: var(--text-default-color);
}

/* HEADER */
.header {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;

    &::before {
        content: none;
    }
}

.header .inner {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 10px;

    > h2 {
        position: relative;
        font-size: 40px;
        padding-bottom: .8em;
        color: var(--text-default-color);

        &::after {
            content: '';
            position: absolute;
            width: 55px;
            height: 6px;
            background-color: #169FF2;
            border-radius: 2px;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }
    }

    > p {
        max-width: 500px;
        text-align: center;
    }
}

.questions .inner {
    display: flex;
    flex-direction: column;
    gap: 80px;

    > p {
        text-align: center;
        font-weight: 600;
        margin-top: 1em;

        > a {
            color: #169FF2;
        }
    }
}

.questions .inner .category-faq-section {
    display: flex;
    flex-direction: column;

    h3 {
        font-size: 30px;
        font-weight: bold;
    }
}

.category-faq-section {
    display: flex;
    flex-direction: column;
}

.questions-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100px;
}

.faq-grid {
    cursor: pointer;
    background-color: #e5e5e5;
    border-radius: 7px;
    padding: 1.5em 4em;
    display: grid;
    overflow: hidden;
    height: auto;

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

        > p {
            padding: 0;
            margin: 0;
            font-size: 25px;
            font-weight: 500;
        }

        > svg {
            transition: transform 500ms ease-in-out;
            transform: rotate(-90deg);
        }
    }

    .answer-content { 
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.5s ease-out, padding 0.5s ease-in-out 0.2s;

        p {
            padding: 0;
            margin: 0;
            overflow: hidden;
            font-weight: 400;
        }
    }

    &.open {
        padding-right: 50px;

        > .question {
            svg {
                transform: rotate(0deg);
            }
        }

        > .answer-content {
            grid-template-rows: 1fr;
            padding-top: 20px;
            padding-right: 50px;
        }
    }
}

.learn-more {
    .inner {
        border-top: .5px solid rgba(62, 62, 62, 0.34);
        max-width: 900px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2em 0;
        gap: 15px;

        p {
            text-align: center;
        }
    }

    .learn-more-links {
        display: flex;
        gap: 8px;

        .button {
            background-color: transparent;
            border: #169FF2 1px solid;
            color: #169FF2;
            transition: all 200ms ease-in-out;

            &:hover {
                background-color: #169FF2;
                color: white;
                fill: white;

                > svg path {
                    fill: white;
                }
            }

            &.documentation {
                display: flex;
                gap: 8px;
            }
        }
    }
}

/* COLOR ASSIGNING */
.category-faq-section.blue .faq-grid {
    background-color: rgba(22, 158, 242, 0.09);
}

.category-faq-section.purple .faq-grid {
    background-color: rgba(147, 22, 242, 0.09);
}

.category-faq-section.green .faq-grid {
    background-color: rgba(23, 184, 5, 0.09) ;
}

@media only screen and (max-width: 732px) {
    .header .inner,
    .questions .inner,
    .learn-more .inner {
        padding: 0 40px;
    }

    .header {
        height: 300px;
    }

    .header .inner h2{
        font-size: 25px;
        text-align: center;
    }

    .header .inner p{
        font-size: 17px;
        margin: 1em;
    }

    .questions {
        margin-bottom: 2em;
    }

    .questions .inner {
        gap: 40px;

        > p {
            display: flex;
            flex-direction: column;
        }
    }

    .learn-more .inner {
        padding: 40px;
        border: none;
        position: relative;
         
        &::after {
            content: '';
            position: absolute;
            width: 80%;
            background-color: #C8C2C2;
            height: 0.5px;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
        }
    }

    .questions .inner .category-faq-section {
        h3 {
            font-size: 24px;
        }
    }

    .faq-grid {
        padding: 22px;

        .question {
            > p {
                font-weight: 500;
                font-size: 17px;
                max-width: 90%;
            }

            > svg {
                width: 12px;
            }
        }

        &.open {
            > .answer-content {
                padding-right: 0;

                p {
                    font-size: 16px;
                    font-weight: 300;
                }
            }
        }
    }

    .learn-more {
        & .learn-more-links {
            /* display: flex; */
            justify-content: center;
            flex-wrap: wrap;

            & .button {
                margin: 0;
                min-width: 160px;
                height: 60px;

                &.documentation {
                    display: flex;
                    gap: 8px;
                }
            }
        }
    }
}