/* ===========================
   FAQ Page Styles
   =========================== */

/* Hero Section - Smaller version */
.hero.hero-small {
    min-height: auto;
    padding: calc(72px + 4rem) var(--space-lg) 4rem; /* Override main hero padding */
    margin-top: 0;
}

.hero-small .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: var(--space-2xl) 0;
    background: var(--bg-primary);
    min-height: 60vh;
}

.faq-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Category Buttons */
.faq-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.625rem 1.5rem;
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: var(--surface-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.category-btn.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
}

/* FAQ Groups */
.faq-group {
    margin-bottom: 3rem;
}

.faq-group-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 1rem;
    background: var(--surface-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-primary);
}

.faq-item.active {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

/* FAQ Question */
.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question span {
    flex: 1;
    line-height: 1.5;
}

/* FAQ Arrow */
.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 2.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer ul,
.faq-answer ol {
    padding: 0 2rem 2.5rem 3.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* Contact Section */
.faq-contact {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--surface-secondary);
    border-radius: 16px;
    text-align: center;
}

.faq-contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-contact p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles (reused from about.css) */
.btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-small .hero-title {
        font-size: 2.5rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .faq-group-title {
        font-size: 1.75rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 2.5rem;
    }
    
    .faq-contact {
        padding: 2rem 1.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Dark mode specific adjustments */
[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .faq-item:hover,
[data-theme="dark"] .faq-item.active {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .category-btn {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .category-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .faq-contact {
    background: rgba(255, 255, 255, 0.03);
}

/* Light mode specific adjustments */
[data-theme="light"] .faq-item {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .faq-item:hover,
[data-theme="light"] .faq-item.active {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .category-btn {
    background: #f8f9fa;
}

[data-theme="light"] .category-btn:hover {
    background: white;
}

[data-theme="light"] .faq-contact {
    background: #f8f9fa;
}