/* ========================================================
   FAQ Accordion
   ======================================================== */

.faq-section {
    padding: 40px 0;
}

.faq-section__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

/* Accordion container */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* Single item */
.faq-accordion__item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.25s ease;
}

.faq-accordion__item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Header / button */
.faq-accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-align: left;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.faq-accordion__header:hover {
    background-color: #f8f8f8;
}

.faq-accordion__header:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.faq-accordion__header-text {
    flex: 1;
    margin-right: 12px;
}

/* Arrow icon */
.faq-accordion__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.35s ease;
    color: #666;
}

.faq-accordion__item.is-open .faq-accordion__icon {
    transform: rotate(180deg);
}

/* Collapsible body */
.faq-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-accordion__content {
    padding: 0 20px 20px;
}

/* Image */
.faq-accordion__image {
    margin-bottom: 14px;
}

.faq-accordion__image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Text (WYSIWYG content) */
.faq-accordion__text {
    font-size: 15px;
    line-height: 1.65;
    color: #444;
}

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

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .faq-section {
        padding: 24px 0;
    }

    .faq-section__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

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

    .faq-accordion__content {
        padding: 0 16px 16px;
    }
}
