/* FAQ Page Specific Styles */
/* Note: Navbar, Footer, and Global Styles are inherited from style.css */

/* FAQ Hero */
.faq-hero {
    background: var(--gradient-hero);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.faq-hero-content p {
    font-size: 1.25rem;
    color: var(--text-sec);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Search */
.faq-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.faq-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

.faq-search input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.faq-search input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* FAQ Stats */
.faq-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat {
    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-sec);
    border: 1px solid var(--border-color);
}

.stat i {
    color: var(--primary);
    font-size: 1.2rem;
}

.stat strong {
    color: var(--text-main);
    font-weight: 700;
}

/* FAQ Main Section */
.faq-section {
    padding: 80px 0;
    background: var(--bg-surface);
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.category-btn:hover,
.category-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

/* FAQ Container */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item[data-category="hidden"] {
    display: none;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.4;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.active .faq-question {
    background: rgba(0, 206, 209, 0.05);
    /* Very light primary tint */
}

.faq-item.active .faq-question h3 {
    color: var(--primary-dark);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-card);
}

.faq-answer p {
    margin-bottom: 16px;
    padding: 0 24px;
}

.faq-answer p:first-child {
    padding-top: 10px;
}

.faq-answer ul,
.faq-answer ol {
    margin-bottom: 20px;
    padding-left: 45px;
    padding-right: 24px;
}

.faq-answer li {
    margin-bottom: 8px;
    color: var(--text-sec);
}

.faq-answer strong {
    color: var(--text-main);
}

/* Show answer when active */
.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Fallback if JS fails, JS uses scrollHeight for precise animation */
    padding-bottom: 24px;
    /* Ensure padding is visible */
}

/* CTA Section */
.faq-cta {
    margin-top: 60px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.cta-content i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.cta-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.cta-content p {
    color: var(--text-sec);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-body);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-surface);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-hero-content h1 {
        font-size: 2.5rem;
    }

    .category-btn {
        width: 100%;
        justify-content: center;
    }

    .stat {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}