/* FAQ Accordion Widget Styles */

.nexus-faq-widget {
    width: 100%;
    max-width: 100%;
}

.nexus-faq-title {
    margin: 0 0 20px 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #000000;
}

.nexus-faq-accordion {
    width: 100%;
}

.nexus-faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nexus-faq-item:last-child {
    margin-bottom: 0;
}

.nexus-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nexus-faq-header {
    background-color: #f8f9fa;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}

.nexus-faq-header:hover {
    background-color: #e9ecef;
}

.nexus-faq-item.active .nexus-faq-header {
    background-color: #e9ecef;
}

.nexus-faq-question {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    color: #333333;
    flex: 1;
    margin-right: 15px;
}

.nexus-faq-icon {
    font-size: 16px;
    font-weight: bold;
    color: #666666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexus-faq-item.active .nexus-faq-icon {
    transform: rotate(0deg);
}

.nexus-faq-icon .nexus-icon-open,
.nexus-faq-icon .nexus-icon-closed {
    line-height: 1;
    display: inline-flex;
}

.nexus-faq-content {
    background-color: #ffffff;
    padding: 20px;
    display: none;
    /* border-top: 1px solid #e0e0e0; */
}

.nexus-faq-answer {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

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

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

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

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

.nexus-faq-answer strong {
    font-weight: 600;
    color: #333333;
}

.nexus-faq-answer a {
    color: #007cba;
    text-decoration: none;
}

.nexus-faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nexus-faq-title {
        font-size: 20px;
    }
    
    .nexus-faq-header {
        padding: 15px;
    }
    
    .nexus-faq-question {
        font-size: 14px;
    }
    
    .nexus-faq-content {
        padding: 15px;
    }
    
    .nexus-faq-answer {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nexus-faq-header {
        padding: 12px;
    }
    
    .nexus-faq-question {
        font-size: 13px;
        margin-right: 10px;
    }
    
    .nexus-faq-icon {
        font-size: 14px;
        width: 18px;
        height: 18px;
    }
    
    .nexus-faq-content {
        padding: 12px;
    }
    
    .nexus-faq-answer {
        font-size: 12px;
    }
}

/* Accessibility Improvements */
.nexus-faq-header:focus {
    /* outline: 2px solid #007cba;
    outline-offset: 2px; */
}

.nexus-faq-header[aria-expanded="true"] {
    background-color: #e9ecef;
}

.nexus-faq-header[aria-expanded="false"] {
    background-color: #f8f9fa;
}

/* Animation for smooth accordion transitions */
.nexus-faq-content {
    transition: all 0.3s ease;
}

/* Print styles */
@media print {
    .nexus-faq-widget {
        break-inside: avoid;
    }
    
    .nexus-faq-item {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 10px;
    }
    
    .nexus-faq-header {
        background-color: #f0f0f0 !important;
        cursor: default;
    }
    
    .nexus-faq-content {
        display: block !important;
    }
    
    .nexus-faq-icon {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nexus-faq-item {
        border: 2px solid #000;
    }
    
    .nexus-faq-header {
        background-color: #fff;
        border-bottom: 1px solid #000;
    }
    
    .nexus-faq-header:hover,
    .nexus-faq-item.active .nexus-faq-header {
        background-color: #000;
        color: #fff;
    }
    
    .nexus-faq-question {
        color: inherit;
    }
    
    .nexus-faq-answer {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nexus-faq-item,
    .nexus-faq-header,
    .nexus-faq-icon,
    .nexus-faq-content {
        transition: none;
    }
}
