/**
 * AIWIZ FAQ Widget
 * Version: 1.0.1
 *
 * BEM block: .aiwiz-faq
 *
 * Standalone reusable FAQ accordion. Uses the same visual
 * language as the internships page FAQ but with its own
 * independent class namespace.
 *
 * Breakpoints (Elementor defaults):
 *   Desktop: > 1024px
 *   Tablet:  768 - 1024px
 *   Mobile:  < 768px
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
.aiwiz-faq {
    --aiwiz-faq-navy: #002847;
    --aiwiz-faq-accent: #2e75b6;
    --aiwiz-faq-text: #555555;
    --aiwiz-faq-bg: #FFFFFF;
    --aiwiz-faq-bg-alt: #f7f9fc;
    --aiwiz-faq-border: #e2e8f0;
    --aiwiz-faq-radius: 8px;
}


/* ==========================================================================
   Layout
   ========================================================================== */
.aiwiz-faq {
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    padding: 4.5rem 0;
}

.aiwiz-faq__container {
    width: 100%;
    max-width: var(--e-global-content-width, 1140px);
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}


/* ==========================================================================
   Heading
   ========================================================================== */
.aiwiz-faq__title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--aiwiz-faq-navy);
    line-height: 1.3;
    margin: 0 0 1.75rem;
}


/* ==========================================================================
   FAQ List
   ========================================================================== */
.aiwiz-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.aiwiz-faq__item {
    border: 1px solid var(--aiwiz-faq-border);
    border-radius: var(--aiwiz-faq-radius);
    background: var(--aiwiz-faq-bg);
    padding: 1.15rem 1.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aiwiz-faq__item:hover {
    border-color: var(--aiwiz-faq-accent);
}

.aiwiz-faq__item[open] {
    border-color: var(--aiwiz-faq-accent);
    box-shadow: 0 2px 12px rgba(46, 117, 182, 0.08);
}


/* ==========================================================================
   Question (summary)
   ========================================================================== */
.aiwiz-faq__question {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--aiwiz-faq-navy);
    line-height: 1.5;
    gap: 1rem;
}

.aiwiz-faq__question::-webkit-details-marker { display: none; }
.aiwiz-faq__question::marker { content: ''; }

.aiwiz-faq__question::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--aiwiz-faq-bg-alt);
    color: var(--aiwiz-faq-navy);
    font-size: 1.15rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.aiwiz-faq__item[open] .aiwiz-faq__question::after {
    content: '\2212';
    background: var(--aiwiz-faq-navy);
    color: #FFFFFF;
    transform: rotate(180deg);
}

.aiwiz-faq__question:hover::after {
    background: var(--aiwiz-faq-navy);
    color: #FFFFFF;
}


/* ==========================================================================
   Answer
   ========================================================================== */
.aiwiz-faq__answer {
    overflow: hidden;
    margin-top: 0.65rem;
    font-size: 0.95rem;
    color: var(--aiwiz-faq-text);
    line-height: 1.75;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out;
}

.aiwiz-faq__answer p {
    margin: 0 0 0.65rem;
}

.aiwiz-faq__answer p:last-child {
    margin-bottom: 0;
}

.aiwiz-faq__answer a {
    color: var(--aiwiz-faq-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.aiwiz-faq__answer a:hover {
    color: var(--aiwiz-faq-navy);
}


/* ==========================================================================
   Responsive: Tablet (768 - 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .aiwiz-faq {
        padding: 3.5rem 0;
    }

    .aiwiz-faq__container {
        padding: 0 20px;
    }

    .aiwiz-faq__title {
        font-size: 1.5rem;
    }
}


/* ==========================================================================
   Responsive: Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
    .aiwiz-faq {
        padding: 2.75rem 0;
    }

    .aiwiz-faq__container {
        padding: 0 15px;
    }

    .aiwiz-faq__title {
        font-size: 1.35rem;
    }

    .aiwiz-faq__question {
        font-size: 0.95rem;
    }

    .aiwiz-faq__item {
        padding: 1rem 1.15rem;
    }
}
