@import "../../../../assets/scss/abstracts/variables";
@import "../../../../assets/scss/abstracts/mixins";

.rdg-blocks .rdg-faq {
    width: 100%;
    box-sizing: border-box;

    @include title;

    .content {
        width: 100%;

        p {
            margin: 0;
        }

        .faq-container {
            max-width: 100%;

            .faq-item {
                margin-bottom: 0.7rem;
            }
    
            .question {
                cursor: pointer;
                background-color: #f1f1f1;
                border-bottom: 3px solid #0160ac;
                padding: 15px;
                font-size: 18px;
                font-weight: 600;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .toggle {
                    transition: transform 0.3s ease;
                    color: #0160ac;
                    filter: drop-shadow(0px 2px 1px rgba(49, 0, 0, 0.45));
                }
        
                .toggle.expanded {
                    transform: rotate(45deg);
                }
            }
    
            .answer {
                height: 0;
                overflow: hidden;
                border: 1px solid #f1f1f1;
                opacity: 0;
                transition: height 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
            }
    
            .answer.show {
                height: auto;
                opacity: 1;
                padding: 15px;
                margin: 10px 0;
            }
        }
    }
}
