/* FAQ Plugin - Frontend Styles */
.post-faqs {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    padding: 0;
}



/* Accordion Styles */
.post-faqs .faq-accordion-item {
    margin-bottom: 1em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}


.post-faqs .faq-accordion-item.active {
    border-color: #2271b1;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.2);
}

.post-faqs .faq-question {
    padding: 1.2em 1.5em;
    cursor: pointer;
    background: #f8f9fa;
    border: none;
    width: 100%;
    text-align: right;
    font-size: 1.1em;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.post-faqs .faq-question:hover {
    background: #e9ecef;
    color: #2271b1;
}

.post-faqs .faq-accordion-item.active .faq-question {
    background: #2271b1;
    color: #fff;
}

.post-faqs .faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: 300;
    color: #2271b1;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 1em;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(34, 113, 177, 0.1);
}

.post-faqs .faq-accordion-item.active .faq-question::after {
    content: '−';
    transform: rotate(0deg);
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.post-faqs .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5em;
    background: #fff;
}

.post-faqs .faq-accordion-item.active .faq-answer {
    max-height: 2000px;
    border-top: 1px solid #e0e0e0;
}

.post-faqs .faq-answer-content {
    color: #50575e;
    line-height: 1.8;
    font-size: 1em;
    padding: initial;
    margin: initial;
}

.post-faqs .faq-answer-content p {
    margin-bottom: 1em;
}

.post-faqs .faq-answer-content p:last-child {
    margin-bottom: 0;
}

.post-faqs .faq-answer-content ul,
.post-faqs .faq-answer-content ol {
    margin: 1em 0;
    padding-right: 2em;
}

.post-faqs .faq-answer-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.post-faqs .faq-answer-content a {
    color: #2271b1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-faqs .faq-answer-content a:hover {
    border-bottom-color: #2271b1;
}

/* RTL Support */
.rtl .post-faqs .faq-question {
    text-align: left;
}

.rtl .post-faqs .faq-question::after {
    margin-left: 0;
    margin-right: 1em;
}

.rtl .post-faqs .faq-answer-content ul,
.rtl .post-faqs .faq-answer-content ol {
    padding-right: 0;
    padding-left: 2em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-faqs h2 {
        font-size: 1.5em;
    }
    
    .post-faqs .faq-question {
        padding: 1em;
        font-size: 1em;
    }
    
    .post-faqs .faq-accordion-item.active .faq-answer {
        padding: 1em;
    }
}

/* Animation for smooth accordion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-faqs .faq-accordion-item.active .faq-answer {
    animation: fadeIn 0.3s ease;
}
