/**
 * Product Module: FAQ Section
 *
 * Simple accordion with GSAP animations and multi-open capability.
 * Background color dynamically fetched from Module 6.
 *
 * Figma Node: 159-1255
 */

/* ==========================================================================
   SECTION CONTAINER
   ========================================================================== */

.workjam-faq-section {
    background: #FFFFFF;
    padding: 37px 122px;
    margin-top: -1px;
}

.workjam-faq-section__container {
    max-width: 1511px;
    margin: 0 auto;
}

/* ==========================================================================
   WHITE CARD CONTAINER
   ========================================================================== */

.workjam-faq-section__card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 70px 52px 52px 52px;
    max-width: 1267px;
    margin: 0 auto;
}

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */

.workjam-faq-section__title {
    font-family: 'Avenir Next', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: normal;
    color: #121C66;
    margin: 0 0 66px 0;
}

/* ==========================================================================
   FAQ ITEMS CONTAINER
   ========================================================================== */

.workjam-faq-section__items {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   INDIVIDUAL FAQ ITEM
   ========================================================================== */

.faq-item {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 68, 0.1);
}

/* FAQ Header (Button) */
.faq-item__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.2s ease;
}

.faq-item__header:hover {
    opacity: 0.9;
}

.faq-item__header:focus-visible {
    outline: 2px solid #2B388F;
    outline-offset: 4px;
    border-radius: 4px;
}

/* FAQ Question */
.faq-item__question {
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    color: #000044;
    margin: 0;
    padding-right: 20px;
    flex: 1;
}

/* Chevron Icon Container */
.faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chevron SVG */
.faq-item__icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Rotate chevron when expanded */
.faq-item.is-expanded .faq-item__icon svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   FAQ CONTENT (Answer)
   ========================================================================== */

/* Content wrapper - animated by GSAP */
.faq-item__content {
    overflow: hidden;
    height: 0;
}

/* Answer text */
.faq-item__answer {
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #000044;
    padding-bottom: 20px;
}

.faq-item__answer p {
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet - 980px */
@media (max-width: 980px) {
    .workjam-faq-section {
        padding: 32px 60px;
    }

    .workjam-faq-section__card {
        padding: 60px 40px 40px 40px;
    }

    .workjam-faq-section__title {
        font-size: 40px;
        margin-bottom: 50px;
    }
}

/* Tablet Portrait - 768px */
@media (max-width: 768px) {
    .workjam-faq-section {
        padding: 28px 40px;
    }

    .workjam-faq-section__card {
        padding: 50px 32px 36px 32px;
    }

    .workjam-faq-section__title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .faq-item__question {
        font-size: 15px;
    }

    .faq-item__answer {
        font-size: 15px;
    }
}

/* Mobile - 600px */
@media (max-width: 600px) {
    .workjam-faq-section {
        padding: 24px 28px;
    }

    .workjam-faq-section__card {
        padding: 40px 24px 32px 24px;
        border-radius: 16px;
    }

    .workjam-faq-section__title {
        font-size: 32px;
        margin-bottom: 36px;
    }

    .faq-item__question {
        font-size: 14px;
    }

    .faq-item__answer {
        font-size: 14px;
        padding-top: 8px;
    }

    .faq-item__divider {
        margin: 16px 0;
    }
}

/* Small Mobile - 400px */
@media (max-width: 400px) {
    .workjam-faq-section {
        padding: 20px 20px;
    }

    .workjam-faq-section__card {
        padding: 32px 20px 28px 20px;
        border-radius: 12px;
    }

    .workjam-faq-section__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .faq-item__icon svg {
        width: 20px;
        height: 20px;
    }
}
