/**
 * FAQ Accordion Stylesheet.
 * Namespaced under .nbqp-faq to prevent styling leakages.
 */

.nbqp-faq-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.nbqp-faq-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #0096c7;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.nbqp-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.nbqp-faq-item {
    border: 2px solid #0096c7;
    border-radius: 12px;
    background-color: #ffffff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Question Button Base Styling */
.nbqp-faq-question-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 24px;
    background: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nbqp-faq-question-text {
    font-size: 16px;
    font-weight: 700;
    color: #606060;
    line-height: 1.5;
    font-family: "Poppins", sans-serif !important;
    transition: color 0.3s ease;
    user-select: none;
}

.nbqp-faq-icon {
    font-size: 14px;
    color: #0096c7;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

/* Prevent global theme button hover styles from overriding accordion button */
.nbqp-faq-question-btn,
.nbqp-faq-question-btn:hover,
.nbqp-faq-question-btn:focus,
.nbqp-faq-question-btn:active {
    background-color: transparent !important;
    background: none !important;
}

/* Hover Effect when Collapsed - subtle transition only, no color change */
.nbqp-faq-item:not(.active):hover {
    transform: translateY(-2px);
}

/* Active State (Expanded) Styling */
.nbqp-faq-item.active {
    background-color: #0079af;
    border-color: #0079af;
}

.nbqp-faq-item.active .nbqp-faq-question-btn {
    background-color: #0096c7;
}

.nbqp-faq-item.active .nbqp-faq-question-text {
    color: #ffffff;
	font-family: "Poppins", sans-serif !important;
	font-size:18px !important;
}

.nbqp-faq-item.active .nbqp-faq-icon {
    color: #ffffff;
    transform: rotate(180deg);
}

/* Answer Panel - Dynamic Smooth Height transition */
.nbqp-faq-answer-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #ffffff;
}

.nbqp-faq-item.active .nbqp-faq-answer-panel {
    max-height: 1000px; /* Large default to allow transition when fallback, or handled dynamically via JS */
}

.nbqp-faq-answer-content {
    padding: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: #4a4b4a;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(0, 150, 199, 0.1);
}

.nbqp-faq-answer-content p {
    margin-top: 0;
    margin-bottom: 16px;
	color: #000;
	font-family: "Poppins", sans-serif !important;
	font-size:14px !important;
}

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

.nbqp-faq-answer-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.nbqp-faq-answer-content ul, 
.nbqp-faq-answer-content ol {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 24px;
}

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

.nbqp-faq-answer-content a {
    color: #0096c7;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nbqp-faq-answer-content a:hover {
    color: #0077b6;
}

/* Accessibility Focus States */
.nbqp-faq-question-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.4);
    border-radius: 8px;
}
.nbqp-faq-icon i{
    transition:transform .3s ease;
}

.nbqp-faq-question-btn[aria-expanded="true"] .nbqp-faq-icon i{
    transform:rotate(360deg);
}
/* Responsive Rules */
@media (max-width: 768px) {
    .nbqp-faq-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    .nbqp-faq-main-title {
        font-size: 26px;
        margin-bottom: 18px;
    }
    .nbqp-faq-question-btn {
        padding: 16px 20px;
    }
    .nbqp-faq-question-text {
        font-size: 15px;
    }
    .nbqp-faq-answer-content {
        padding: 20px;
        font-size: 14px;
    }
}
