/************ MOBILE - 360PX *************/
/*****************************************/
@media only screen and (min-width: 0em) {
    /************** FAQ **********************/
    /*****************************************/
    #faq {
        margin-top: 3rem;
        padding: var(--sectionPadding);
        position: relative;
    }
    #faq .container {
        width: 100%;
        max-width: 80rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
        position: relative;
        z-index: 1;
    }
    #faq .content {
        /* set text align to left if content needs to be left aligned */
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: center;
    }
    #faq .title {
        margin: 1rem;
    }
    #faq .flex-group {
        width: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        /* 16px - 20px */
        gap: clamp(1rem, 2.3vw, 1.25rem);
        position: relative;
    }
    #faq .wrapper {
        position: relative;
        min-height: 40rem;
    }
    #faq .button-group {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        /* prevents flexbox from squishing it */
        flex: none;
    }
    #faq .option {
        font-size: clamp(1rem, 2vw, 1.1rem);
        font-weight: 600;
        line-height: 1.4;
        padding: 1rem 1.5rem;
        background: #f5f8f5;
        color: var(--textBlack);
        border: 1px solid #ecece8;
        border-radius: .75rem;
        box-shadow: 0 2px 10px rgba(0,0,0,.03);
        transition:
            background .25s ease,
            border-color .25s ease,
            transform .25s ease,
            box-shadow .25s ease;
    }
    #faq .option:before {
        /* background color */
        content: "";
        width: 100%;
        height: 100%;
        background: #FFF;
        opacity: 0;
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        z-index: -1;
        /* transition: opacity 0.3s; */
    }
    #faq .option:hover {
        border-color: #d6dfd8;
        background: #f4f4f4;
    }
    #faq .option:hover:hover:before {
        opacity: 0.1;
    }
    #faq .option.active {
        background: #eef6f1;
        border-color: var(--accentColor);
        color: var(--accentColor);
        box-shadow:
            0 8px 20px rgba(0,0,0,.05);
    }
    #faq .option.active:before {
        opacity: 0.1;
    }
    #faq .faq-group {
        width: 100%;
        max-width: 52.9375rem;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 0.5rem;
        transition: transform 0.7s,
                    opacity 0.3s,
                    visibility 0.5s,
                    top 0.3s,
                    left 0.3s;
        /* makes the transfrom scaling orgin the top left corner, dictates the direction by which the scale transforms animate towards */
        transform-origin: top;
        transform-style: preserve-3d;
        perspective: 900px;
    }
    #faq .faq-group.hidden {
        /* by using visibility:hidden instead of display:none, we can see the animations from the opacity and transforms, display:none won't render animations. */
        visibility: hidden;
        /* prevents the mouse from interacting with it */
        pointer-events: none;
        /* hidden galleries have a 0 opacity, and we animate the opacity to 1 when they become active */
        opacity: 0;
        /* this top and left value help control the animation, by setting it to position absolute and left 0, the FAQ won't fly off screen to the left, it will stop its position to be at the left edge of the .flex-group (left: 0). Same for the bottom:0 value, the FAQ won't go past that position when it animates */
        top: 0;
        left: 0;
        position: absolute;
        /* prevents the hidden galleries from overflowing the section, and makes a nice animations to transition to and from */
        transform: scaleY(0);
    }
    #faq .faq-group.hidden .faq-item {
        transform: rotateX(270deg);
        opacity: 0;
    }
    #faq .faq-item {
        background: #f5f8f5;
        border: 1px solid #ced4ce;
        border-radius: 1rem;
        background-clip: padding-box;
        list-style: none;
        box-shadow: 0 6px 18px rgba(0,0,0,.06);
        transition:
            transform .25s ease,
            box-shadow .25s ease,
            border-color .25s ease,
            opacity .3s,
            transform .6s;
    }
    #faq .faq-item:hover {
        border-color: #c8d6cb;
        box-shadow:
            0 14px 32px rgba(0,0,0,.10);
    }
    #faq .faq-item:nth-of-type(2) {
        transition-delay: 0.1s;
    }
    #faq .faq-item:nth-of-type(3) {
        transition-delay: 0.2s;
    }
    #faq .faq-item:nth-of-type(4) {
        transition-delay: 0.3s;
    }
    #faq .faq-item:nth-of-type(5) {
        transition-delay: 0.4s;
    }
    #faq .faq-item:nth-of-type(6) {
        transition-delay: 0.5s;
    }
    #faq .faq-item:nth-of-type(7) {
        transition-delay: 0.6s;
    }
    #faq .faq-item:nth-of-type(8) {
        transition-delay: 0.7s;
    }
    #faq .faq-item:nth-of-type(9) {
        transition-delay: 0.8s;
    }
    #faq .faq-item:nth-of-type(10) {
        transition-delay: 0.9s;
    }
    #faq .faq-item.active .button {
        color: var(--primary);
    }
    #faq .faq-item.active .button:before {
        background-color: var(--primary);
        transform: rotate(315deg);
    }
    #faq .faq-item.active .button:after {
        background-color: var(--primary);
        transform: rotate(-315deg);
    }
    #faq .faq-item.active .item-p {
        height: auto;
        /* 20px - 24px bottom */
        /* 16px - 24px left & right */
        padding: 0 clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 1.3vw, 1.5rem);
        opacity: 1;
    }
    #faq .button {
        /* 16px - 20px */
        font-size: clamp(1rem, 2vw, 1.25rem);
        line-height: 1.2em;
        text-align: left;
        font-weight: bold;
        /* 16px - 24px top & bottom */
        /* 16px - 20px left & right */
        padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.25rem);
        background: transparent;
        color: var(--textBlack);
        border: none;
        display: block;
        width: 100%;
        position: relative;
        transition: background-color 0.3s, color 0.3s;
    }
    #faq .button:hover {
        cursor: pointer;
    }
    /* lines making arrow in question items */
    #faq .button:before {
        content: "";
        width: 0.5rem;
        height: 0.125rem;
        background-color: var(--headerColor);
        opacity: 1;
        border-radius: 50%;
        position: absolute;
        display: none;
        top: 50%;
        right: 1.5rem;
        transform: rotate(45deg);
        /* animate the transform from the left side of the x axis, and the center of the y */
        transform-origin: left center;
        transition: transform 0.5s;
    }
    #faq .button:after {
        /* right line */
        content: "";
        width: 0.5rem;
        height: 0.125rem;
        background-color: var(--primaryDark);
        opacity: 1;
        border-radius: 50%;
        position: absolute;
        display: none;
        top: 50%;
        right: 1.3125rem;
        transform: rotate(-45deg);
        /* animate the transform from the right side of the x axis, and the center of the y */
        transform-origin: right center;
        transition: transform 0.5s;
    }
    #faq .button-text {
        width: 80%;
        display: block;
        color: var(--textBlack);
    }
    #faq .item-p {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1.06rem);
        line-height: 1.5em;
        width: 90%;
        height: 0;
        margin: 0;
        /* 16px - 24px */
        padding: 0 clamp(1rem, 2vw, 1.5rem);
        opacity: 0;
        color: var(--textBlack);
        /* clips the text so it doesn't show up */
        overflow: hidden;
        transition: opacity 0.3s, padding-bottom 0.3s;
    }
}

/************ TABLET - 768PX *************/
/*****************************************/
@media only screen and (min-width: 48rem) {
    /*************** BANNER ******************/
    /*****************************************/
    #banner .wave {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/************ DESKTOP - 1024PX ***********/
/*****************************************/
@media only screen and (min-width: 64rem) {
    /************** BANNER *******************/
    /*****************************************/
    #banner .int-title{
        padding: clamp(2.75rem, 25vw ,3rem);
    }
    /**************** FAQ ********************/
    /*****************************************/
    #faq .container {
        max-width: 80rem;
    }
    #faq .flex-group {
        flex-direction: row;
    }
    #faq .button-group {
        width: 31%;
        max-width: 25.8125rem;
    }
}

/************** DARK MODE ****************/
/*****************************************/
@media only screen and (min-width: 0em) {
    body.dark-mode #faq .flex-group {
        background-color: var(--dark);
    }
    body.dark-mode #faq .option {
        background-color: #181818;
    }
    body.dark-mode #faq .button,
    body.dark-mode #faq .faq-item {
        background: #1d1f1d;
        border: 1px solid var(--textLight);
    }
    body.dark-mode #faq .button {
        border: none;
        background: transparent;
    }
    body.dark-mode #faq .option {
        color: var(--textLight);
    }
    body.dark-mode #faq .option.active {
        border-color: var(--accentColor);
    }
    body.dark-mode #faq .button-text,
    body.dark-mode #faq .item-p {
        color: var(--textLight);
    }

}