 /* Custom Modern FAQs styles */

.wibf-faq-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Instant Search Input Box styling */
.wibf-search-wrapper {
    margin-bottom: 30px;
}/* Custom Modern FAQs styles */

.wibf-faq-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Instant Search Input Box styling */
.wibf-search-wrapper {
    margin-bottom: 30px;
}

.wibf-faq-search {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wibf-faq-search:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* Category Headlines styling */
.wibf-faq-cat-headline {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    font-weight: 700;
}

/* ==========================================================================
   UPGRADED ACCORDION STATES (Fixed Hover Contrast & Colors)
   ========================================================================== */

/* Individual Accordion Rows */
.wibf-faq-item {dual lens setup is evident in the increased
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* 1. DEFAULT STATE: White background, Red text */
.wibf-faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #cc0000;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;  /* <--- CHANGE THIS to your exact hex code */
    transition: background 0.2s ease, color 0.2s ease;
}

/* 2. HOVER STATE: Dark background (#131313), White text */
.wibf-faq-trigger:hover {
    background: #131313 !important;
    color: #ffffff !important;
}

/* 3. OPEN/ACTIVE STATE: Dark background (#131313), White text */
.wibf-faq-trigger.is-active {
    background: #131313 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #1e293b;
}

/* CSS Indicator Icon Line adjustments for visibility across states */
.wibf-faq-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-left: 15px;
}

.wibf-faq-icon::before,
.wibf-faq-icon::after {
    content: '';
    position: absolute;
    background-color: #cc0000; /* Matches original red state */
    transition: transform 0.25s ease-out, background-color 0.2s ease;
}

.wibf-faq-icon::before { top: 5px; left: 0; right: 0; height: 2px; }
.wibf-faq-icon::after { left: 5px; top: 0; bottom: 0; width: 2px; }

/* Turn icon white when parent button is hovered or active */
.wibf-faq-trigger:hover .wibf-faq-icon::before,
.wibf-faq-trigger:hover .wibf-faq-icon::after,
.wibf-faq-trigger.is-active .wibf-faq-icon::before,
.wibf-faq-trigger.is-active .wibf-faq-icon::after {
    background-color: #ffffff !important;
}

/* Rotation transformations when active */
.wibf-faq-trigger.is-active .wibf-faq-icon::after {
    transform: rotate(90deg);
}
.wibf-faq-trigger.is-active .wibf-faq-icon::before {
    transform: rotate(180deg);
}

/* Hidden container panel */
.wibf-faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0, 1, 0, 1);
    background: #ffffff;
}

/* Pad interior padding slightly to account for the border line change */
.wibf-faq-content {
    padding: 24px 24px 20px 24px;
    color: #475569;
    font-size: 0.975rem;
    line-height: 1.6;
}

.wibf-faq-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}
