.faq-section {
    --faq-accent: #1fcdff;
    --faq-accent-strong: #0aa2d4;
    --faq-text: #1e293b;
    --faq-muted: #64748b;
    --faq-border: #d8e1eb;
    --faq-surface: #ffffff;
    --faq-category-bg: #f1f6fa;
    --faq-category-open-bg: #e6f3fa;
    padding: 28px 0 40px;
    font-size: 16px;
    line-height: 1.5;
}

.faq-inner {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.faq-sr-only {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.faq-header {
    position: relative;
    min-height: 44px;
    padding: 4px;
    margin: -4px -4px 12px;
    overflow: hidden;
    overflow: clip;
}

.faq-header-bar {
    display: grid;
    grid-template-columns: minmax(42px, 1fr) minmax(0, auto) minmax(42px, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.faq-header.is-search-open .faq-header-bar {
    pointer-events: none;
}

.faq-page-title {
    grid-column: 2;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--faq-title-color, var(--faq-text));
    text-align: center;
}

.faq-page-title--empty {
    margin-bottom: 18px;
}

.faq-header-end {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
}

.faq-search-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    font-size: 15px;
    color: #ffffff;
    background: var(--faq-accent);
    border: 1px solid #16b5e5;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-search-trigger:hover {
    background: var(--faq-accent-strong);
    border-color: #0891be;
}

.faq-search-trigger.is-active {
    background: var(--faq-accent-strong);
    border-color: #075985;
    box-shadow: 0 0 0 3px rgba(31, 205, 255, 0.25);
}

.faq-search-active-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background: #0f172a;
    border: 2px solid #ffffff;
    border-radius: 999px;
}

.faq-search-overlay {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 4px;
    z-index: 5;
    display: flex;
    align-items: center;
    margin: 0;
    opacity: 1;
    translate: 0 0;
    transition:
        display 0.28s,
        translate 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease-out;
    transition-behavior: allow-discrete;
}

@starting-style {
    .faq-search-overlay {
        translate: calc(100% + 12px) 0;
    }
}

.faq-search-overlay:where([hidden], [data-closing]) {
    translate: calc(100% + 12px) 0;
    pointer-events: none;
    transition:
        display 0.24s,
        translate 0.24s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease-in;
    transition-behavior: allow-discrete;
}

.faq-search-overlay[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .faq-search-overlay {
        translate: none;
        transition-duration: 0.12s;
    }

    @starting-style {
        .faq-search-overlay {
            opacity: 0;
            translate: none;
        }
    }

    .faq-search-overlay:where([hidden], [data-closing]) {
        opacity: 0;
        translate: none;
        transition-duration: 0.12s;
    }
}

.faq-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--faq-surface);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.faq-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--faq-accent-strong);
    pointer-events: none;
}

.faq-section input.faq-search-input {
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 8px 44px 8px 40px;
    font-size: 16px;
    line-height: 1.35;
    color: var(--faq-text);
    background: var(--faq-surface);
    border: 1.5px solid var(--faq-accent-strong);
    border-radius: 8px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-section input.faq-search-input::placeholder {
    color: #94a3b8;
    font-size: 15px;
}

.faq-section input.faq-search-input::-webkit-search-cancel-button,
.faq-section input.faq-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.faq-section input.faq-search-input:focus {
    border-color: #0779a1;
    box-shadow: 0 0 0 3px rgba(31, 205, 255, 0.2);
}

.faq-search-clear {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 14px;
    color: var(--faq-muted);
    background: #f1f5f9;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-search-clear:hover,
.faq-search-clear.has-value:hover {
    color: #0f172a;
    background: #e2e8f0;
}

.faq-search-clear.has-value {
    color: var(--faq-text);
}

.faq-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
}

.faq-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.faq-status {
    margin: 0 0 0 auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--faq-muted);
}

.faq-no-results {
    padding: 36px 20px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--faq-muted);
    background: #f8fafc;
    border: 1px dashed var(--faq-border);
    border-radius: 8px;
}

.faq-no-results .fa {
    margin-bottom: 8px;
    font-size: 26px;
    color: #94a3b8;
}

.faq-no-results p {
    margin: 0;
    font-size: 16px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.faq-list--nested .faq-col {
    gap: 16px;
}

@media screen and (min-width: 992px) {
    .faq-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .faq-list.faq-list--single {
        grid-template-columns: minmax(0, 1fr);
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-inner:has(.faq-list--single) .faq-bulk-bar {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }
}

.faq-category-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.faq-category-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.faq-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    margin: 0;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.faq-cat-btn:hover {
    color: #075985;
    background: var(--faq-category-open-bg);
    border-color: var(--faq-accent-strong);
}

.faq-details {
    display: block;
    margin: 0;
    background: var(--faq-surface);
    border: 1px solid var(--faq-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-search-active-dot[hidden],
.faq-bulk-bar[hidden],
.faq-bulk-actions[hidden],
.faq-list[hidden],
.faq-col[hidden],
.faq-category-group[hidden],
.faq-details[hidden],
.faq-status[hidden],
.faq-no-results[hidden] {
    display: none !important;
}

.faq-category {
    border-left: 4px solid var(--faq-accent);
}

.faq-item:hover,
.faq-category:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.faq-item[open] {
    border-color: #7dd3fc;
    box-shadow: 0 3px 10px rgba(14, 116, 144, 0.08);
}

.faq-category:hover {
    border-left-color: var(--faq-accent-strong);
}

.faq-section summary.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 15px 18px;
    list-style: none;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.faq-section summary.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-section summary.faq-summary::marker {
    content: "";
}

.faq-summary--category {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    background: var(--faq-category-bg);
}

.faq-category[open] > summary.faq-summary--category {
    background: var(--faq-category-open-bg);
    border-bottom: 1px solid var(--faq-border);
}

.faq-summary--item {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--faq-text);
    background: var(--faq-surface);
}

.faq-summary--item:hover {
    background: #f8fafc;
}

.faq-item[open] > summary.faq-summary--item {
    color: #075985;
    background: #f4faff;
    border-bottom: 1px solid #e2eef7;
}

.faq-summary-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}

.faq-summary-title {
    line-height: 1.45;
    word-break: break-word;
}

.faq-folder-icon {
    flex: 0 0 auto;
    color: var(--faq-accent-strong);
    font-size: 17px;
}

.faq-folder-icon--open {
    display: none;
}

.faq-category[open] > summary.faq-summary--category .faq-folder-icon--closed {
    display: none;
}

.faq-category[open] > summary.faq-summary--category .faq-folder-icon--open {
    display: inline-block;
}

.faq-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.faq-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #075985;
    background: #dff3fb;
    border-radius: 999px;
}

.faq-chevron {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.faq-chevron::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    transform: rotate(45deg);
    margin-top: -3px;
    transition: transform 0.2s ease, border-color 0.15s ease;
}

.faq-details[open] > summary.faq-summary .faq-chevron::before {
    transform: rotate(-135deg);
    margin-top: 3px;
    border-color: var(--faq-accent-strong);
}

.faq-body--category {
    padding: 14px 16px 16px;
    background: #fafcfe;
    box-sizing: border-box;
}

.faq-category-intro {
    margin-bottom: 14px;
    padding-bottom: 12px;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    border-bottom: 1px solid #e8eef4;
}

.faq-children {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 4px;
    padding-left: 14px;
    border-left: 2px solid #e2e8f0;
}

.faq-body--item {
    padding: 16px 18px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
    background: var(--faq-surface);
    box-sizing: border-box;
}

.faq-body--item > :first-child,
.faq-item-content > :first-child,
.faq-item-subname > :first-child {
    margin-top: 0;
}

.faq-body--item > :last-child,
.faq-item-content > :last-child,
.faq-item-subname > :last-child {
    margin-bottom: 0;
}

.faq-item-content p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
}

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

.faq-item-content ul,
.faq-item-content ol {
    margin: 0 0 12px;
    padding-left: 22px;
}

.faq-item-content li + li {
    margin-top: 4px;
}

.faq-item-content a,
.faq-item-link a,
.faq-item-files a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-item-content a:hover,
.faq-item-link a:hover,
.faq-item-files a:hover {
    color: #0369a1;
}

.faq-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px;
}

.faq-item-subname {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
}

.faq-item-media,
.faq-item-gallery {
    margin-top: 14px;
}

.faq-item-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.faq-item-files {
    margin: 14px 0 0;
    padding-left: 0;
    list-style: none;
}

.faq-item-files li + li {
    margin-top: 6px;
}

.faq-item-link {
    margin-top: 12px;
}

.faq-empty-state {
    padding: 48px 16px;
    text-align: center;
}

.faq-search-trigger:focus-visible,
.faq-section input.faq-search-input:focus-visible,
.faq-search-clear:focus-visible,
.faq-cat-btn:focus-visible,
.faq-section summary.faq-summary:focus-visible {
    outline: 2px solid #0aa2d4 !important;
    outline-offset: 2px;
}

@media screen and (max-width: 767px) {
    .faq-section {
        padding: 20px 0 30px;
    }

    .faq-page-title {
        font-size: 24px;
    }

    .faq-children {
        margin-left: 2px;
        padding-left: 10px;
    }

    .faq-section summary.faq-summary {
        padding: 13px 15px;
    }

    .faq-summary--category {
        font-size: 16px;
    }

    .faq-summary--item {
        font-size: 15px;
    }

    .faq-body--item {
        padding: 14px 15px 16px;
        font-size: 14.5px;
    }
}
