/* ================================================================= */
/* PAGE-SPECIFIC STYLES: FAQ (faq.css) */
/* ================================================================= */

/* --- 1. Page Header --- */
/* ------------------------------------------------------------- */
.faq-header-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.faq-header-section .page-headline {
    margin-bottom: var(--spacing-sm);
}

.faq-header-section .sub-headline {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
}

/* --- 2. FAQ Accordion --- */
/* ------------------------------------------------------------- */
.faq-list-section {
    padding-bottom: var(--spacing-lg);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* --- NEW: Category Title --- */
.faq-category-title {
    font-family: var(--font-family-header);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: var(--spacing-xl); /* 96px */
    margin-bottom: var(--spacing-md); /* 32px */
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}
.faq-category-title:first-of-type {
    margin-top: 0;
}

/* --- NEW: Item Group Wrapper --- */
.faq-item-group {
    border: 1px solid var(--color-bg-secondary);
    border-radius: var(--border-radius-img);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--color-bg-secondary);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    /* Reset button styles */
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
    
    /* Layout */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    
    /* Style */
    padding: var(--spacing-md);
    font-family: var(--font-family-header);
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-bg-secondary);
}

.faq-question-text {
    flex-basis: 90%;
    line-height: 1.4;
}

/* The +/- icon */
.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}
/* Create the + icon */
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text-secondary);
    transition: all 0.3s ease;
}
/* Horizontal line */
.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    margin-top: -1.5px;
}
/* Vertical line */
.faq-icon::after {
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    margin-left: -1.5px;
}

/* Change icon to - on open */
.faq-question.is-open .faq-icon::after {
    transform: rotate(90deg); /* Hides vertical line */
}
.faq-question.is-open .faq-icon {
    transform: rotate(180deg); /* Rotates the whole icon */
}
.faq-question.is-open {
    background-color: var(--color-bg-secondary);
    color: var(--color-accent-primary); /* Highlight color */
}


/* The Answer Panel */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background-color: var(--color-bg-secondary);
}
.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md) var(--spacing-md);
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Open state for answer */
.faq-answer.is-open {
    max-height: 500px; /* Animate to a large height */
    transition: max-height 0.5s ease-in;
}

/* --- 3. Closing Note --- */
/* ------------------------------------------------------------- */
.faq-closing-section {
    padding-bottom: var(--spacing-lg);
    text-align: center;
}
.closing-note {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    font-style: italic;
    line-height: 1.6;
}