/* =======================================================
   SECTION 16 : FAQ
======================================================= */
.faq-section {
    position: relative;
    padding: 110px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 14%, rgba(46, 196, 255, 0.075), transparent 27%),
        radial-gradient(circle at 12% 84%, rgba(180, 130, 255, 0.065), transparent 30%),
        linear-gradient(180deg, #07111d 0%, #091a2a 100%);
}
.faq-section::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(98, 204, 249, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 204, 249, 0.04) 1px, transparent 1px);
    background-size: 58px 58px;
    pointer-events: none;
}
.faq-section .section-header,
.faq-container,
.faq-cta {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    margin-right: auto;
    margin-left: auto;
}
/* ---------- FAQ accordion ---------- */
.faq-container {
    display: grid;
    gap: 11px;
}
.faq-item {
    overflow: hidden;
    border: 1px solid rgba(132, 211, 244, 0.16);
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(17, 44, 65, 0.74), rgba(6, 23, 38, 0.82));
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}
.faq-item:hover {
    border-color: rgba(46, 196, 255, 0.34);
    background:
        linear-gradient(145deg, rgba(20, 57, 81, 0.82), rgba(6, 29, 45, 0.9));
}
.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 21px;
    color: #e4f7ff;
    border: 0;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
}
.faq-question span {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    color: #79dfff;
    border: 1px solid rgba(46, 196, 255, 0.23);
    border-radius: 50%;
    background: rgba(46, 196, 255, 0.08);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    place-items: center;
    transition:
        transform 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}
/*
  Add the "active" class with JavaScript when an item is open:
  .faq-item.active .faq-answer { ... }
*/
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.faq-answer > p {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: #a8c4d0;
    font-size: 0.77rem;
    line-height: 1.75;
    transition:
        padding 0.3s ease,
        opacity 0.2s ease;
}
.faq-item.active {
    border-color: rgba(46, 196, 255, 0.4);
    box-shadow:
        0 17px 40px rgba(0, 0, 0, 0.18),
        0 0 22px rgba(46, 196, 255, 0.06);
}
.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}
.faq-item.active .faq-answer > p {
    padding: 0 21px 20px;
}
.faq-item.active .faq-question span {
    color: #06131f;
    border-color: var(--cyan);
    background: var(--cyan);
    transform: rotate(45deg);
}
/* Optional: keep the first question expanded by default */
.faq-item:first-child .faq-answer {
    grid-template-rows: 1fr;
}
.faq-item:first-child .faq-answer > p {
    padding: 0 21px 20px;
}
.faq-item:first-child .faq-question span {
    color: #06131f;
    border-color: var(--cyan);
    background: var(--cyan);
    transform: rotate(45deg);
}
/* ---------- FAQ call to action ---------- */
.faq-cta {
    margin-top: 27px;
    padding: 40px 25px;
    overflow: hidden;
    border: 1px solid rgba(46, 196, 255, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle at 78% 45%, rgba(46, 196, 255, 0.18), transparent 31%),
        linear-gradient(120deg, rgba(11, 49, 72, 0.92), rgba(8, 27, 44, 0.95));
    text-align: center;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.faq-cta h3 {
    margin: 0;
    color: #edfcff;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.04em;
}
.faq-cta p {
    max-width: 560px;
    margin: 11px auto 22px;
    color: #a8c9d7;
    font-size: 0.8rem;
    line-height: 1.65;
}
/* ---------- Responsive FAQ ---------- */
@media (max-width: 760px) {
    .faq-section {
        padding: 72px 22px;
    }
    .faq-question {
        padding: 16px;
        font-size: 0.78rem;
    }
    .faq-item.active .faq-answer > p,
    .faq-item:first-child .faq-answer > p {
        padding: 0 16px 17px;
        font-size: 0.73rem;
        line-height: 1.7;
    }
    .faq-cta {
        padding: 31px 19px;
    }
    .faq-cta .primary-btn {
        width: 100%;
    }
}
