.faq-page {
    padding-top: 88px;
    padding-bottom: 56px;
    background: var(--color-bg-secondary);
    min-height: 100vh;
}
.faq-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}
.faq-header {
    text-align: center;
    margin-bottom: 36px;
}
.faq-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.faq-header p {
    font-size: 1rem;
    color: var(--color-text-secondary);
}
.faq-category {
    margin-bottom: 0;
}
.faq-category h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
    margin-bottom: 18px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    display: block;
    background-color: var(--color-accent-glow);
    border-radius: 4px;
    line-height: 1.25;
}
.faq-item {
    background: var(--color-bg);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 12px;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
}
.faq-item:hover {
    box-shadow: var(--shadow-lg);
}
.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}
.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}
.faq-item ul {
    margin: 10px 0 0 18px;
    color: var(--color-text-secondary);
}
.faq-item li {
    margin-bottom: 4px;
    line-height: 1.5;
}
.faq-item code {
    font-family: var(--font-mono);
    background: var(--color-bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

.faq-item a {
    color: var(--color-primary);
    font-weight: 500;
}

/* Remove default disclosure marker and style summary */
.faq-item summary {
    cursor: pointer;
    list-style: none; /* Remove default arrow */
    padding: 18px 22px; /* Move original padding here */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px; /* Match original border-radius */
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Remove default arrow (Safari/Chrome) */
}

/* Remove bottom margin from h3 when used as toggle title */
.faq-item summary h3 {
    margin-bottom: 0;
    flex: 1;
}

/* Add spacing between title and content when open */
.faq-item[open] summary {
    margin-bottom: 8px;
}

/* Custom toggle indicator (+/−) */
.faq-item summary::after {
    content: '+';
    font-size: 1.35rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-left: 12px;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    content: '−';
}

/* Optional: Fade-in animation for content */
.faq-item[open] p {
    animation: faqFadeIn 0.3s ease-out;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-content {
    padding: 0 22px 18px; /* Left, right, bottom padding only */
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.faq-content ol {
    list-style-position: inside;
}

.faq-content ul {
    list-style-type: disc;
    padding-left: 0px;
    list-style-position: inside;
}

/* If your FAQ items contain lists */
.faq-item[open] ul {
    animation: faqFadeIn 0.3s ease-out;
    margin-top: 10px;
}


.faq-cta {
    text-align: center;
    margin-top: 40px;
    padding: 32px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 16px;
}
.faq-cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}
.faq-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
}
.faq-cta .btn-primary {
    background: white;
    color: var(--color-primary-dark);
}
.faq-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
}
@media (max-width: 768px) {
    .faq-page {
        padding-top: 84px;
        padding-bottom: 48px;
    }
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .faq-header h1 {
        font-size: 2rem;
    }
    .faq-item summary {
        padding: 18px 20px;
    }
    .faq-content {
        padding: 0 20px 18px;
    }
}
