body.homepage:has(.faq-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.homepage:has(.faq-page) main {
    flex: 1;
    min-height: unset !important;
}

.faq-page {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    min-height: auto;
}

/* ── Top bar ─────────────────────────────────────── */
.faq-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 54px;
    margin-bottom: 48px;
    padding-inline: 32px;
}

.faq-title {
    margin: 0;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 38px;
    line-height: 1.05;
    color: #fff;
    font-weight: 400;
}

.faq-search-wrap {
    width: min(360px, 100%);
    display: flex;
    align-items: center;
    height: 34px;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.faq-search-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 14px;
    color: #2c5660;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.faq-search-wrap button {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: none;
    background: #00FFB5;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.faq-search-wrap svg {
    width: 14px;
    height: 14px;
}

/* ── Board ───────────────────────────────────────── */
.faq-board {
    background: rgba(10, 90, 95, 0.55);
    border: none;
    border-radius: 4px;
    padding: 48px 52px 56px;
}

/* ── Grid ────────────────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.faq-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: #a1d1cb ;
    border: none;
    border-radius: 8px;
    padding: 56px 24px;
    color: #0a2e2e;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 18px;
    font-weight: 702;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
    cursor: pointer;
    min-height: 130px;
}

.faq-card:hover {
    background: rgba(0, 255, 181, 0.5);
    color: #002d2f;
}

/* ── Empty state ─────────────────────────────────── */
.faq-no-results {
    display: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 2rem 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* ── Bottom CTA ──────────────────────────────────── */
.faq-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 0 12px;
    flex-wrap: wrap;
}

.faq-cta-text {
    color: #fff;
    font-size: 21px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    margin: 0;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c8ff00;
    color: #002d2f;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 10px 28px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.faq-cta-btn:hover {
    opacity: 0.88;
}

/* ── Topic page ──────────────────────────────────── */
.faq-topic-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem 1rem;
}

.faq-topic-board {
    background: rgba(18, 112, 118, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px 56px 52px;
    position: relative;
}

.faq-category-label {
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 32px;
}

.faq-category-label span {
    color: #fff;
}

/* ── Accordion ───────────────────────────────────── */
#faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 2px solid #c8e000;
}

.faq-item:first-child {
    border-top: 2px solid #c8e000;
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    color: #fff;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 12px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.faq-question:hover { color: #c8e000; }

.faq-icon {
    color: #c8e000;
    font-size: 40px;
    font-weight: 400;
    line-height: 27px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-right: 1rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    display: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    padding-bottom: 1.25rem;
    padding-right: 2rem;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .faq-topbar { flex-direction: column; padding-inline: 16px; }
    .faq-grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .faq-board  { padding: 32px 16px 40px; }
    .faq-answer {
        width: 100%;
        max-width: none;
        padding-right: 0;
        box-sizing: border-box;
    }
}
