/**
 * FAQ Accordion Styles
 * Clean and minimal accordion design with plus/minus toggle icons
 */

/* Main Container */
.fce-faq-accordion {
    padding:0px;
    background-color: #ffffff;
}

/* FAQ Wrapper */
.fce-faq-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Individual FAQ Item */
.fce-faq-item {
    margin-bottom: 0;
}

/* FAQ Question (Header/Toggle) */
.fce-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    border-bottom: 1px solid #0e0d0d;
    user-select: none;
}
/* Smooth border animation */
.fce-faq-question {
    border-bottom: 1px solid #0e0d0d;
    transition: border-color 0.5s ease-in-out;
}

.fce-faq-item.active .fce-faq-question {
    border-bottom-color: transparent;
}

/* Remove question border when item is active (answer is open) */
.fce-faq-item.active .fce-faq-question {
    /* border-bottom: none; */
}

.fce-faq-question:hover {
    opacity: 0.8;
}

/* Question Text */
.fce-faq-q-text {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.5;
    padding-right: 20px;
    font-family: "Poppins", sans-serif;
}

/* Toggle Icon */
.fce-faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

.fce-faq-icon i {
    font-size: 18px;
    color: #000000;
    transition: all 0.35s ease-in-out;
}

/* Smooth rotation and scale when active */
.fce-faq-item.active .fce-faq-icon {
    transform: rotate(180deg);
}

/* Additional icon effect on hover */
.fce-faq-question:hover .fce-faq-icon {
    transform: scale(1.1);
}

.fce-faq-item.active .fce-faq-question:hover .fce-faq-icon {
    transform: rotate(180deg) scale(1.1);
}

/* FAQ Answer (Content) */
.fce-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease-in-out, padding 0.45s ease-in-out, opacity 0.35s ease-in-out;
    border-bottom: 1px solid #0e0d0d;
    opacity: 0;
}

.fce-faq-answer.active {
    max-height: 2000px; /* Large enough for most content */
    padding: 0px 0 30px;
    opacity: 1;
}

/* Answer Content */
.fce-faq-answer-content {
    font-size: 15px;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    font-family: "Poppins", sans-serif;
}

.fce-faq-answer-content p {
    margin: 0 0 15px 0;
}

.fce-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.fce-faq-answer-content ul,
.fce-faq-answer-content ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.fce-faq-answer-content li {
    margin-bottom: 8px;
}

/* Remove border from last item's answer when closed */
.fce-faq-item:last-child .fce-faq-answer:not(.active) {
    border-bottom: none;   
}

/* Responsive Styles */

/* Tablet */
@media (max-width: 991px) {
    .fce-faq-accordion {
        padding: 0px 0;
    }

    .fce-faq-question {
        padding: 18px 0;
    }

    .fce-faq-q-text {
        font-size: 17px;
    }

    .fce-faq-answer.active {
        padding: 18px 0;
    }

    .fce-faq-answer-content {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .fce-faq-accordion {
        padding: 40px 0;
    }

    .fce-faq-question {
        padding: 16px 0;
    }

    .fce-faq-q-text {
        font-size: 16px;
        padding-right: 15px;
    }

    .fce-faq-icon i {
        font-size: 16px;
    }

    .fce-faq-answer.active {
        padding: 16px 0;
    }

    .fce-faq-answer-content {
        font-size: 14px;
        line-height: 1.6;
    }
}

/* Extra Small Mobile */
@media (max-width: 575px) {
    .fce-faq-accordion {
        padding: 1px 0;
    }

    .fce-faq-question {
        padding: 14px 0;
    }

    .fce-faq-q-text {
        font-size: 15px;
    }

    .fce-faq-answer.active {
        padding:0 0 15px;
    }

    .fce-faq-answer-content {
        font-size: 14px;
    }
}
