
/* FAQs section starts */

#faq {
    flex-direction: column;
    padding: 2rem;
    /* padding-top: 10rem; */
    overflow-x: hidden;
}



#faqbigcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}



.container {
    margin: 0 auto;
    padding: 1rem;
    width: 100rem;
}



.accordion {
    button {
        position: relative;
        display: block;
        text-align: left;
        width: 100%;
        padding: 1em 2em;
        padding-right: 3.2em;
        margin-bottom: .8rem;
        color: #ffffff;
        font-size: 2.2rem;
        font-weight: 550;
        font-family: "Montserrat", sans-serif;
        border: none;
        border-radius: 5rem;
        background: #be3946;
        outline: none;

        &:hover,
        &:focus {
            cursor: pointer;
            color: #fffffffa;

            &::after {
                cursor: pointer;
                color: #fffffffa;
                border: 1px solid #000000;
            }
        }

        .accordion-title {
            padding: 1em 1.5em 1em 0;
        }

        .icon {
            display: inline-block;
            position: absolute;
            top: 50%;
            right: 2em;
            width: 22px;
            height: 22px;
            border: 1px solid;
            background-color: transparent;
            border-radius: 22px;
            transform: translateY(-50%);
            text-align: center;
            font-size: 1.2rem;
            line-height: 22px;
            /* Center the text inside */

            &::before {
                content: '\25BC';
                /* ▼ Downward arrow */
                color: currentColor;
                display: block;
                text-align: center;
                font-size: 1.2rem;
            }
        }

    }

    button[aria-expanded='true'] {
        color: #ffffff;

        .icon {
            &::before {
                content: '\25B2';
                /* ▲ Upward arrow */
            }
        }

        +.accordion-content {
            opacity: 1;
            max-height: fit-content;
            transition: all 200ms linear;
            will-change: opacity, max-height;
        }
    }

    .accordion-content {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 200ms linear, max-height 200ms linear;
        will-change: opacity, max-height;

        p {
            font-size: 2rem;
            font-weight: 550;
            margin: 1em 0;
            padding-left: 3em;
            padding-right: 2em;
        }
    }
}

/* FAQs section ends */





@media (min-width: 769px) and (max-width: 1200px) {

    .container {
        width: 75%;
        margin: 0;
    }

    .accordion {
        button {
            font-size: 2rem;
        }


        & .accordion-content {
            p {
                font-size: 1.8rem;
            }
        }

    }


}

@media (min-width: 481px) and (max-width: 768px) {

    .container {
        width: 100%;
        margin: 0;
    }

    .accordion {
        button {
            font-size: 1.8rem;
            -webkit-tap-highlight-color: transparent;

        }


        & .accordion-content {
            p {
                font-size: 1.5rem;
                padding-left: 2em;
                padding-right: 0;
            }
        }

    }


}

@media (max-width: 480px) {

    #faq {
        min-height: 60vh;
        height: auto;
        justify-content: flex-end;
    }


    .container {
        width: 100%;
        margin: 0;
    }
   
      

    .accordion {
        button {
            font-size: 1.5rem;
            -webkit-tap-highlight-color: transparent;
            margin-bottom: .5rem;

        }


        & .accordion-content {
            p {
                font-size: 1.4rem;
                padding-left: 2em;
                padding-right: 0;
            }
        }

    }

    
    
    
}

