/* UFM FAQs Block Styles */

.ufm-faqs {
    position: relative;
    padding: 40px 0;
}

/* Header Section */
.ufm-faqs-header {
    text-align: center;
    margin-bottom: 40px;
}

.ufm-faqs-title {
    color: var(--tertiary);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.chevron-down {
    text-align: center;
    color: var(--primary);
    font-size: 24px;
}

.chevron-down i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* FAQ Container */
.ufm-faqs-container {
    margin-bottom: 40px;
}

.ufm-faqs-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
}

/* FAQ Accordion */
.ufm-faqs-accordion {
    width: 100%;
}

/* FAQ Item */
.ufm-faq-item {
    position: relative;
    margin-bottom: 0;
    border: 2px solid #707070;
    margin-bottom: 15px;
}

/* Question */
.ufm-faq-question-wrapper {
    position: relative;
    padding-left: 40px;
    /* Space for the +/- icon */
}

.ufm-faq-question {
    position: relative;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    padding: 20px 0;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.ufm-faq-question .toggle-icon {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000;
    color: white;
    font-size: 16px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ufm-faq-question .question-text {
    display: block;
    padding-right: 30px;
    padding-left: 20px;
}

/* Answer */
.ufm-faq-answer {
    padding-left: 60px;
    padding-right: 30px;
}

.ufm-faq-answer-inner {
    padding-bottom: 20px;
}

/* Make all text in the answer black */
.ufm-faq-answer p,
.ufm-faq-answer h1,
.ufm-faq-answer h2,
.ufm-faq-answer h3,
.ufm-faq-answer h4,
.ufm-faq-answer h5,
.ufm-faq-answer h6,
.ufm-faq-answer ul,
.ufm-faq-answer ol,
.ufm-faq-answer li {
    color: #000;
}

/* Divider */
.ufm-faq-divider {
    border-bottom: 1px solid;
    margin: 0;
    width: 100%;
}

/* Animation for collapse */
.ufm-faq-answer.collapse {
    display: none;
}

.ufm-faq-answer.collapse.show {
    display: block;
}

.ufm-faq-answer.collapsing {
    position: relative;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .ufm-faqs-inner {
        padding: 30px;
    }

    .ufm-faq-question {
        padding: 15px 0;
    }
}

@media (max-width: 767px) {
    .ufm-faqs {
        padding: 30px 0;
    }

    .ufm-faqs-inner {
        padding: 20px;
    }

    .ufm-faq-question {
        font-size: 16px;
    }

    .ufm-faq-question-wrapper {
        padding-left: 30px;
    }

    .ufm-faq-answer {
        padding-left: 30px;
    }

    .ufm-faq-question .toggle-icon {
        left: -25px;
        width: 25px;
        height: 25px;
        font-size: 14px;
        top: 30px;
        left: -15px;
    }
}