/* FAQ Page Styles */

/* Hero Section for FAQ */
.faq-page .hero {
    padding: 5.5rem 1.5rem 3rem;
    min-height: auto;
    background: linear-gradient(135deg, #e8edf0 0%, #d8dfe3 100%);
    margin: 0;
}

.faq-page .hero h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    padding-bottom: 1rem;
}

.faq-page .hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.faq-page .hero .hero-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-section {
    padding: 3rem 0 4rem;
    background: #f9f9f9;
    min-height: auto;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 1.75rem 2rem;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 24px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
}

.faq-answer-inner {
    padding: 0 2rem 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(128, 189, 158, 0.2);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #f0f9f4 0%, #e6f4ed 100%);
    color: var(--primary-color);
}

.faq-item.active .faq-question::before {
    transform: scaleY(1);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* FAQ Search */
.faq-search {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    padding-right: 3rem;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.faq-search i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-category {
    padding: 0.5rem 1.5rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.faq-category:hover,
.faq-category.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .faq-page .hero {
        padding: 4.5rem 1rem 2.5rem;
    }

    .faq-page .hero h1 {
        font-size: 2rem;
    }

    .faq-page .hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .faq-section {
        padding: 3rem 0 3rem;
    }
    
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer-inner {
        padding: 0 1.25rem 1.25rem;
    }
}

.faq-answer-inner p + p {
    margin-top: 0.75rem;
}
