.nq-faq {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0;
    isolation: isolate;
}

body.nq-homepage-2 .neuroquest-home-2 .nq-faq__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 50% at 18% 30%, rgba(73, 222, 255, 0.20), transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 75%, rgba(15, 134, 248, 0.18), transparent 55%),
        radial-gradient(ellipse 50% 35% at 50% 0%, rgba(24, 169, 255, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(228, 248, 255, 0.96) 0%, rgba(212, 240, 255, 0.85) 100%);
    pointer-events: none;
    z-index: -2;
}

.nq-faq > .nq-section-glow {
    z-index: 0;
}

.nq-faq > .nq-shell {
    position: relative;
    z-index: 2;
}

.nq-faq__deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: nq-deco-drift ease-in-out infinite;
    animation-fill-mode: both;
}

.nq-faq__deco--1 {
    top: 12%;
    right: 7%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.nq-faq__deco--2 {
    bottom: 14%;
    left: 6%;
    animation-duration: 12s;
    animation-delay: 2.6s;
}

.nq-faq__header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.nq-faq__heading {
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--nq-text, #0f172a);
    margin: 0.75rem 0 0;
}

.nq-faq__subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--nq-muted, #64748b);
    line-height: 1.65;
    margin: 0.75rem 0 0;
}

.nq-faq__list {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.nq-faq__item {
    position: relative;
    background:
        radial-gradient(ellipse 110% 60% at 50% 0%, rgba(73, 222, 255, 0.14), transparent 65%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(240, 252, 255, 0.72));
    border: 1px solid rgba(15, 134, 248, 0.14);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 12px 30px rgba(15, 134, 248, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.nq-faq__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 2px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #0f86f8, #49deff, #0f86f8, transparent);
    background-size: 200% 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    animation: nq-section-edge-shimmer 4s ease-in-out infinite;
}

.nq-faq__item[open] {
    border-color: rgba(15, 134, 248, 0.30);
    box-shadow:
        0 14px 40px rgba(15, 134, 248, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nq-faq__item[open]::before,
.nq-faq__item:hover::before {
    opacity: 0.85;
}

.nq-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.nq-faq__q-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.nq-faq__q-icon {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--nq-primary, #0f86f8);
    opacity: 0.95;
}

.nq-faq__q-icon i,
.nq-faq__chevron i {
    --fa-primary-color: #0f86f8;
    --fa-secondary-color: #49deff;
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.4;
}

.nq-faq__question::-webkit-details-marker {
    display: none;
}

.nq-faq__question::marker {
    display: none;
    content: "";
}

.nq-faq__q-text {
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    font-weight: 600;
    color: var(--nq-text, #0f172a);
    line-height: 1.45;
}

.nq-faq__chevron {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nq-primary, #0f86f8);
    transition: transform 0.3s ease;
}

.nq-faq__item[open] .nq-faq__chevron {
    transform: rotate(180deg);
}

.nq-faq__answer {
    padding: 0 1.5rem 1.5rem;
    animation: nq-faq-reveal 0.35s ease;
}

.nq-faq__answer p {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.75;
    color: var(--nq-muted, #64748b);
    margin: 0;
}

.nq-faq__answer strong {
    color: var(--nq-text, #0f172a);
    font-weight: 600;
}

@keyframes nq-faq-reveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .nq-faq {
        padding: 4.25rem 0;
    }

    .nq-faq__header {
        margin-bottom: 2.25rem;
    }

    .nq-faq__question {
        padding: 1rem 1.1rem;
    }

    .nq-faq__answer {
        padding: 0 1.1rem 1.1rem;
    }

    .nq-faq__item {
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nq-faq__item::before,
    .nq-faq__deco {
        animation: none !important;
    }
}
