/* ================================================================
   FAQ Page  (templates/faq.php)
   ================================================================ */


/* ---- Section ---------------------------------------------------- */
.faq-section {
    padding: 80px 0 80px;
    background: var(--color-bg);
}

.faq-content {
    
    margin: 0 auto;
}

/* ---- Category --------------------------------------------------- */
.faq-category {
    margin-bottom: 48px;
}

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

.faq-category__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    padding-top: 18px;
    margin-bottom: 24px;
    position: relative;
}

.faq-category__title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 4px;
    background: var(--color-accent-primary);
    border-radius: 2px;
}

/* ---- FAQ list --------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- FAQ item --------------------------------------------------- */
.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
    max-width: 794px;
    width: 100%;
    margin: 0 auto;
}

.faq-item.is-open {
    border-color: #c7c3e8;
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.45;
    transition: color 0.2s;
}

.faq-item__question:hover {
    color: var(--color-accent-primary);
}

.faq-item.is-open .faq-item__question {
    color: var(--color-accent-primary);
}

/* Chevron icon circle */
.faq-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-secondary);
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s;
}

.faq-item.is-open .faq-item__icon {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: #fff;
    transform: rotate(180deg);
}

/* Answer panel */
.faq-item__answer {
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.faq-item__answer[hidden] {
    display: none;
}

.faq-item__answer-inner {
    padding: 0 20px 20px;
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.faq-item__answer-inner p {
    margin: 0 0 12px;
}

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

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .faq-hero {
        padding: 40px 0;
        text-align: left;
    }

    .faq-hero .hero-breadcrumbs {
        justify-content: flex-start;
    }

    .faq-hero__title {
        font-size: 30px;
        margin-bottom: 12px;
    }

    .faq-hero__subtitle {
        font-size: 14px;
        margin: 0;
    }

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

    .faq-category__title {
        font-size: 22px;
    }

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

    .faq-item__answer-inner {
        padding: 0 16px 16px;
        padding-top: 14px;
        font-size: 14px;
    }
}
