/* Shared FAQ foundations. Opt in before page-specific accordion styles. */
.faq-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    scroll-margin-top: 100px;
    padding: 112px 24px 104px;
    background:
        radial-gradient(circle at 8% 15%, rgba(124, 58, 237, 0.18), transparent 38%),
        radial-gradient(circle at 92% 88%, rgba(20, 184, 166, 0.14), transparent 38%),
        linear-gradient(180deg, rgba(9, 14, 28, 0.92), rgba(12, 18, 32, 0.98));
    border-block: 1px solid rgba(148, 163, 184, 0.14);
}

.faq-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.faq-section .faq-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #93c5fd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.faq-section .section-title {
    margin-bottom: 12px;
    color: #f8fafc;
    background: linear-gradient(110deg, #ffffff 20%, #bfdbfe 55%, #c4b5fd 88%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-section .section-subtitle {
    margin: 0 auto;
    color: #aebbd0;
    line-height: 1.7;
}

.faq-all-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.faq-all-link:hover {
    gap: 10px;
    color: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.faq-category {
    align-self: start;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.2);
}

.faq-category-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
}

.faq-category-title i {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    font-size: 18px;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.46);
    transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.faq-item:hover {
    border-color: rgba(96, 165, 250, 0.44);
    background: rgba(30, 41, 59, 0.72);
}

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

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 17px 16px;
    color: #e5edf9;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: color 0.22s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
    color: #93c5fd;
}

.faq-question:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: -3px;
    border-radius: 12px;
}

.faq-question i {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active {
    border-color: rgba(96, 165, 250, 0.52);
    background: rgba(30, 58, 94, 0.42);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.faq-item.active .faq-question {
    color: #ffffff;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    color: #bac7da;
    transition: max-height 0.34s ease, opacity 0.22s ease;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-answer p {
    margin: 0;
    padding: 0 16px 18px;
    font-size: 13.5px;
    line-height: 1.72;
}
@media (max-width: 1100px) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .faq-section {
        scroll-margin-top: 80px;
        padding: 88px 16px 72px;
    }

    .faq-header {
        margin-bottom: 34px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq-category {
        padding: 16px;
        border-radius: 16px;
    }

    .faq-question {
        padding: 15px 14px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 14px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faq-category-title {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-answer,
    .faq-item,
    .faq-question,
    .faq-question i,
    .faq-all-link {
        transition: none;
    }
}
