/* FAQ SECTION STYLES */

.faq-wrapper {
    padding: 6rem 1rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.faq-header {
    margin-bottom: 3.5rem;
    max-width: 800px;
}

.faq-main-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h2);
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.faq-main-desc {
    font-size: var(--fs-body);
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-layout {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* DESKTOP SIDEBAR */
.faq-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 2rem;
}

.faq-category-list {
    display: flex;
    flex-direction: column;
}

.faq-category-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.faq-category-btn:hover {
    color: var(--text-main);
    background-color: var(--bg-offwhite);
}

.faq-category-btn.active {
    color: var(--text-main);
    border-left-color: var(--primary-green);
    background-color: var(--bg-offwhite);
}

/* MOBILE SELECTOR */
.faq-mobile-selector {
    display: none;
    margin-bottom: 2rem;
}

.faq-select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text-main);
    background-color: var(--bg-offwhite);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    appearance: none;
    cursor: pointer;
    font-weight: 500;
    font-family: var(--font-sans);
    background-image: url('data:image/svg+xml;utf8,<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%234b5563" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
}

.faq-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(55, 126, 68, 0.1);
}

/* RIGHT CONTENT */
.faq-content-area {
    flex: 1;
    min-width: 0;
}

.faq-category-title {
    font-family: var(--font-sans);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    background: transparent;
    color: var(--text-main);
    border: none;
    cursor: pointer;
}

.faq-question-btn:hover .faq-question-text {
    color: var(--primary-green);
}

.faq-question-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
    word-break: break-word;
    hyphens: auto;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-top: 3px;
}

.faq-question-btn[aria-expanded="true"] .faq-chevron {
    transform: rotate(90deg);
    color: var(--primary-green);
}

.faq-answer-panel {
    padding-left: 2rem; /* Align with text, accommodating chevron */
}

.faq-answer-inner {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

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

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .faq-layout {
        gap: 2.5rem;
    }
    
    .faq-sidebar {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .faq-wrapper {
        padding: 4rem 1rem;
    }

    .faq-sidebar {
        display: none; /* Hide sidebar on mobile */
    }

    .faq-mobile-selector {
        display: block; /* Show select dropdown */
    }

    .faq-category-title {
        display: none; /* Redundant since it's in the select */
    }

    .faq-question-btn {
        padding: 1.25rem 0;
    }

    .faq-answer-inner {
        padding-bottom: 1.25rem;
    }
}
