/**
 * FAQ Repeater - Frontend Styles
 */

/* FAQ Section Container */
.faq-section {
    max-width: 100%;
    margin: 40px 0;
    padding: 0;
}

/* FAQ Heading */
.faq-heading {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    color: #1d2327;
    border-bottom: 3px solid #000000;
    text-align: center;
}

/* FAQ Items Wrapper */
.faq-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual FAQ Item */
.faq-item-wrapper {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2271b1;
}

/* Accordion hover effect */
/* .faq-accordion-style .faq-item-wrapper:hover {
    background: #f8f9fa;
} */

/* Active accordion item styling */
/* .faq-accordion-style .faq-item-wrapper.active {
    border-left: 4px solid #2271b1;
    background: #f0f6fc;
} */

/* FAQ Question */
.faq-question {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #000000;
    line-height: 1.4;
    position: relative;
    padding-left: 30px;
    transition: color 0.3s ease;
}

.faq-accordion-style .faq-question:hover {
    color: #000000;
}

.faq-question::before {
    /* content: "Q"; */
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #000000;
    background: #f0f6fc;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    top: 0;
}

/* FAQ Answer */
.faq-answer {
    color: #3c434a;
    line-height: 1.7;
    font-size: 16px;
    position: relative;
    padding-left: 30px;
}

.faq-answer::before {
    /* content: "A"; */
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #50575e;
    background: #f6f7f7;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    top: 0;
}

.faq-answer p {
    margin: 0 0 12px 0;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Accordion Style */
.faq-accordion-style .faq-item-wrapper {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-accordion-style .faq-question {
    cursor: pointer;
    user-select: none;
    padding-right: 60px !important;
    margin-bottom: 0;
    position: relative;
}

.faq-accordion-style .faq-question::after {
    content: "+" !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    color: #000000 !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    font-family: Arial, sans-serif !important;
    display: block !important;
}

.faq-accordion-style .faq-item-wrapper.active .faq-question::after {
    content: "−" !important;
}

.faq-accordion-style .faq-item-wrapper:hover .faq-question::after {
    /* color: #135e96 !important; */
    transform: translateY(-50%) scale(1.1) !important;
}

.faq-accordion-style .faq-answer {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
    animation: fadeIn 0.3s ease;
}

.faq-accordion-style .faq-item-wrapper.active .faq-answer {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative Clean Style (No Q/A labels) */
.faq-section.clean-style .faq-question::before,
.faq-section.clean-style .faq-answer::before {
    display: none;
}

.faq-section.clean-style .faq-question,
.faq-section.clean-style .faq-answer {
    padding-left: 0;
}

/* Numbered FAQ Style */
.faq-section.numbered-style .faq-item-wrapper {
    counter-increment: faq-counter;
}

.faq-section.numbered-style .faq-question::before {
    content: counter(faq-counter);
    background: #2271b1;
    color: #fff;
}

.faq-section.numbered-style .faq-items-wrapper {
    counter-reset: faq-counter;
}

/* Compact Style */
.faq-section.compact-style .faq-item-wrapper {
    padding: 16px;
}

.faq-section.compact-style .faq-question {
    font-size: 18px;
    margin-bottom: 10px;
}

.faq-section.compact-style .faq-answer {
    font-size: 15px;
}

/* Bordered Style */
.faq-section.bordered-style .faq-item-wrapper {
    border-left: 4px solid #2271b1;
}

/* Card Style */
.faq-section.card-style .faq-item-wrapper {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-section.card-style .faq-item-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Dark Theme */
.faq-section.dark-theme {
    background: #1d2327;
    padding: 40px;
    border-radius: 8px;
}

.faq-section.dark-theme .faq-heading {
    color: #fff;
    border-bottom-color: #000000;
}

.faq-section.dark-theme .faq-item-wrapper {
    background: #2c3338;
    border-color: #3c434a;
}

.faq-section.dark-theme .faq-question {
    color: #72aee6;
}

.faq-section.dark-theme .faq-answer {
    color: #dcdcde;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        margin: 30px 0;
    }
    
    .faq-heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .faq-item-wrapper {
        padding: 18px;
    }
    
    .faq-question {
        font-size: 18px;
        padding-left: 28px;
    }
    
    .faq-answer {
        font-size: 15px;
        padding-left: 28px;
    }
    
    .faq-question::before,
    .faq-answer::before {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faq-heading {
        font-size: 20px;
    }
    
    .faq-item-wrapper {
        padding: 16px;
    }
    
    .faq-question {
        font-size: 17px;
    }
    
    .faq-answer {
        font-size: 14px;
    }
    
    .faq-items-wrapper {
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    .faq-item-wrapper {
        page-break-inside: avoid;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .faq-accordion-style .faq-answer {
        display: block !important;
    }
    
    .faq-accordion-style .faq-question::after {
        display: none;
    }
}

/* Accessibility */
.faq-accordion-style .faq-item-wrapper:focus-within {
    /* outline: 2px solid #2271b1; */
    outline-offset: 2px;
}

/* .faq-question:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
} */

/* RTL Support */
[dir="rtl"] .faq-question {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .faq-question::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .faq-answer {
    padding-left: 0;
    padding-right: 30px;
}

[dir="rtl"] .faq-answer::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .faq-accordion-style .faq-question {
    padding-right: 70px;
}

[dir="rtl"] .faq-accordion-style .faq-question::after {
    right: auto;
    left: 0;
}
