/* ═══════════════════════════════════════════════════════════════
   WKC FAQ Page
   ═══════════════════════════════════════════════════════════════ */

.wkc-faq {
    font-family: var(--wkc-font);
    background: var(--wkc-bg);
    color: var(--wkc-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.wkc-faq *,
.wkc-faq *::before,
.wkc-faq *::after {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.faq-main {
    padding-bottom: 64px;
}

/* Hero */
.faq-hero {
    position: relative;
    background: linear-gradient(135deg, var(--wkc-navy) 0%, var(--wkc-blue) 55%, #2563A8 100%);
    color: #fff;
    padding: 56px 0 72px;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(45, 184, 78, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.faq-hero__inner {
    position: relative;
    max-width: 760px;
}

.faq-hero__eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wkc-green-bright);
    margin-bottom: 12px;
}

.faq-hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.faq-hero__sub {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    max-width: 620px;
    margin-bottom: 24px;
}

.faq-search-wrap {
    position: relative;
    max-width: 480px;
}

.faq-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wkc-text-muted);
    pointer-events: none;
}

.faq-search {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--wkc-navy);
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.faq-search:focus {
    outline: 3px solid rgba(45, 184, 78, 0.45);
    outline-offset: 2px;
}

.faq-search::placeholder {
    color: #94a3b8;
}

/* Layout */
.faq-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

.faq-nav {
    position: sticky;
    top: calc(var(--wkc-header-h, 72px) + 16px);
    background: var(--wkc-white);
    border: 1px solid rgba(12, 50, 96, 0.08);
    border-radius: 14px;
    padding: 16px 12px;
    box-shadow: 0 8px 24px rgba(12, 50, 96, 0.06);
}

.faq-nav__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wkc-text-muted);
    padding: 0 10px 10px;
}

.faq-nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--wkc-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.faq-nav a:hover,
.faq-nav a.is-active {
    background: var(--wkc-bg);
    color: var(--wkc-blue);
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Sections */
.faq-section {
    background: var(--wkc-white);
    border: 1px solid rgba(12, 50, 96, 0.08);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 28px);
    box-shadow: 0 6px 24px rgba(12, 50, 96, 0.05);
}

.faq-section__title {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 800;
    color: var(--wkc-navy);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.faq-section--help .faq-help-card,
.faq-section--commitment .faq-commitment {
    padding: 18px 20px;
    background: var(--wkc-bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--wkc-green);
}

.faq-help-card p,
.faq-commitment p {
    color: var(--wkc-text-muted);
    margin: 0 0 12px;
}

.faq-help-card p:last-child,
.faq-commitment p:last-child {
    margin-bottom: 0;
}

.faq-help-card a,
.faq-empty a {
    color: var(--wkc-blue);
    font-weight: 700;
    text-decoration: none;
}

.faq-help-card a:hover,
.faq-empty a:hover {
    text-decoration: underline;
}

/* Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid rgba(12, 50, 96, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.faq-item.is-open {
    box-shadow: 0 4px 16px rgba(12, 50, 96, 0.08);
}

.faq-item.is-hidden {
    display: none;
}

.faq-item__head {
    margin: 0;
}

.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.faq-item__trigger:hover {
    background: rgba(232, 244, 252, 0.5);
}

.faq-item__num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--wkc-bg);
    color: var(--wkc-blue);
    font-size: 12px;
    font-weight: 800;
}

.faq-item__q {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--wkc-navy);
    line-height: 1.45;
    padding-top: 3px;
}

.faq-item__chev {
    flex-shrink: 0;
    margin-top: 4px;
    color: var(--wkc-text-muted);
    transition: transform 0.2s;
}

.faq-item.is-open .faq-item__chev {
    transform: rotate(180deg);
    color: var(--wkc-blue);
}

.faq-item__panel {
    border-top: 1px solid rgba(12, 50, 96, 0.06);
}

.faq-item__body {
    padding: 16px 18px 18px 58px;
}

.faq-item__body p {
    color: var(--wkc-text-muted);
    margin: 0 0 12px;
    font-size: 15px;
}

.faq-item__body p:last-child {
    margin-bottom: 0;
}

.faq-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.faq-list li {
    position: relative;
    padding-left: 18px;
    color: var(--wkc-text-muted);
    font-size: 15px;
}

.faq-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wkc-green);
}

/* Classifications table */
.faq-table-wrap {
    overflow-x: auto;
    margin: 12px 0;
    border-radius: 10px;
    border: 1px solid rgba(12, 50, 96, 0.08);
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.faq-table th,
.faq-table td {
    padding: 12px 16px;
    text-align: left;
}

.faq-table thead {
    background: var(--wkc-bg);
}

.faq-table th {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wkc-text-muted);
}

.faq-table tbody tr:nth-child(even) {
    background: rgba(232, 244, 252, 0.35);
}

.faq-table td {
    color: var(--wkc-text-muted);
}

.faq-table td strong {
    color: var(--wkc-navy);
    font-weight: 800;
}

.faq-table tbody tr:last-child td {
    background: rgba(45, 184, 78, 0.08);
}

.faq-empty {
    text-align: center;
    padding: 32px 20px;
    background: var(--wkc-white);
    border: 1px dashed rgba(12, 50, 96, 0.15);
    border-radius: 14px;
    color: var(--wkc-text-muted);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
    .faq-wrap {
        grid-template-columns: 1fr;
        margin-top: -24px;
    }

    .faq-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 14px;
    }

    .faq-nav__label {
        width: 100%;
        padding-bottom: 4px;
    }

    .faq-nav a {
        padding: 6px 12px;
        background: var(--wkc-bg);
    }

    .faq-item__body {
        padding-left: 18px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 44px 0 56px;
    }

    .faq-item__trigger {
        padding: 14px;
        gap: 10px;
    }

    .faq-item__body {
        padding: 14px;
    }
}
