/* FAQ page. Plain elements styled to match the MudBlazor look, so the page renders as light
   HTML rather than a component per question. Colours follow the earlier inline styles. */

.faq-container {
    padding-bottom: 60px;
}

.faq-content-paper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Search box: a native input owned by faq.js. Looks like an outlined MudTextField. */
.faq-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 14px;
    height: 56px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-search-box:focus-within {
    border-color: #3d6b7f;
    box-shadow: 0 0 0 1px #3d6b7f;
}

.faq-search-box .faq-search-icon {
    color: rgba(0, 0, 0, 0.54);
    flex: 0 0 auto;
}

.faq-search-box input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1rem;
    color: inherit;
}

.faq-search-box input::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.faq-search-summary {
    color: #64748b;
    font-size: 0.8125rem;
    margin: 6px 2px 0;
}

/* Category sections */
.faq-category-section {
    scroll-margin-top: 120px;
}

.faq-category-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.faq-category-title {
    font-weight: 600;
    color: #3d6b7f;
}

.faq-category-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-action-btn {
    text-transform: none;
    font-weight: 500;
}

/* Accordion */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #3d6b7f;
    box-shadow: 0 2px 8px rgba(61, 107, 127, 0.1);
}

.faq-item.open {
    border-color: #3d6b7f;
}

.faq-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #2c5364;
    font-weight: 500;
}

.faq-item-header:focus-visible {
    outline: 2px solid #3d6b7f;
    outline-offset: -2px;
}

.faq-item-question {
    flex: 1 1 auto;
    line-height: 1.5;
}

.faq-item-question mark {
    background: #fff3b0;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.faq-item-chevron {
    flex: 0 0 auto;
    color: rgba(0, 0, 0, 0.54);
    transition: transform 0.2s ease;
}

.faq-item.open .faq-item-chevron {
    transform: rotate(180deg);
}

.faq-item-body {
    padding: 4px 20px 18px 52px;
    background: #fff;
    color: #555;
    line-height: 1.7;
    font-size: 0.875rem;
}

.faq-item-body ul,
.faq-item-body ol {
    padding-left: 20px;
    margin: 8px 0;
}

/* Sidebar: dark panel, as before */
.faq-sidebar.mud-paper,
.faq-sidebar {
    background: linear-gradient(135deg, #3d6b7f 0%, #2c5364 100%) !important;
    color: #fff !important;
    border-radius: 12px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.faq-sidebar-title {
    font-weight: 600;
    color: #fff !important;
}

.faq-sidebar .mud-divider {
    border-color: rgba(255, 255, 255, 0.28) !important;
}

.faq-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.faq-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.faq-nav-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.faq-nav-item.active {
    background: rgba(255, 255, 255, 0.26);
    font-weight: 600;
}

.faq-nav-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.faq-nav-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.75;
}

.faq-nav-item.active .faq-nav-dot {
    opacity: 1;
}

.faq-count-chip {
    flex: 0 0 auto;
    min-width: 22px;
    padding: 0 7px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.7rem;
    text-align: center;
}

.faq-sidebar::-webkit-scrollbar {
    width: 6px;
}

.faq-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.faq-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
}

@media (max-width: 960px) {
    .faq-sidebar {
        position: relative !important;
        top: 0 !important;
        max-height: none;
    }
}
