/* Main Container - Deep Dark */
.faq-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #121212 !important;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

.faq-header {
    background: #1a1a1a;
    padding: 40px;
    border-bottom: 2px solid #1a73e8;
}

/* SEARCH BAR - REMOVING WHITE BORDERS */
.search-group {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: visible !important;
    height: 54px;
    box-shadow: none !important;
}

#faqSearch {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    padding-right: 140px !important;
    color: white !important;
}

.search-group .input-group-text {
    border: none !important;
    background: transparent !important;
    padding-left: 20px;
}

#faqSearch:focus,
.search-group:focus-within {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Clear Search "X" Styling */
#clearSearch {
    display: none;
    z-index: 10 !important;
    color: #777 !important;
    font-size: 20px;
    right: 115px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.2s;
}

#clearSearch:hover {
    color: #fff !important;
}

#searchBtn {
    background-color: #1a73e8;
    border: none !important;
    font-weight: 600;
    z-index: 11;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: background 0.2s;
}

#searchBtn:hover {
    background-color: #155cb0;
}

/* SECTION HEADERS */
.faq-section-wrapper {
    margin: 25px 20px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
}

.faq-category-banner {
    background: #252525;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

.faq-category-banner:hover {
    background: #2a2a2a;
}

.faq-category-label {
    color: #1a73e8;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 800;
    margin: 0;
}

/* ACCORDION */
.accordion-item {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 1px solid #2a2a2a !important;
}

.accordion-item:last-child {
    border-bottom: none !important;
}

.accordion-button {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 500;
    padding: 22px 25px;
    box-shadow: none !important;
    border: none !important;
}

.accordion-button:not(.collapsed) {
    color: #64b5f6 !important;
    background-color: #222 !important;
}

.accordion-button::after {
    filter: invert(1) brightness(2);
}

/* ANSWERS - Forces white text */
.accordion-body {
    color: #ffffff !important;
    padding: 10px 25px 10px 25px !important;
    line-height: 1.8;
    font-size: 0.98rem;
}

.accordion-body *,
.accordion-body p {
    color: #ffffff !important;
}

.accordion-body a {
    color: #64b5f6 !important;
    text-decoration: underline;
}

.accordion-collapse.show {
    border-left: 3px solid #1a73e8;
    background-color: #161616;
}

/* Tables & Images */
.accordion-body img {
    display: block !important;
    margin: 20px auto !important;
    max-width: 100%;
    height: auto;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.section-arrow {
    transition: transform 0.3s ease;
}

.faq-category-banner[aria-expanded="true"] .section-arrow {
    transform: rotate(180deg);
}

.btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default */
    z-index: 99;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.btn-scroll-top.show {
    display: flex; /* Shown via JS */
}

/* Styling for highlighted search terms */
mark {
    background-color: #007bff; /* Change this to your preferred color (e.g., Bootstrap Blue) */
    color: #fff; /* White text for contrast, change to #000 if your background is light */
    padding: 0 2px; /* Slight padding for looks */
    border-radius: 2px;
}

/* Optional: specific styling for dark text inside accordion buttons */
.accordion-button mark {
    color: #fff;
}