/* Modern FAQ Section Styles */

/* Enhanced FAQ Section Design */
.faq-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e1e7ef 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.faq-container {
    position: relative;
    z-index: 1;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.06));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 24px;
    z-index: 1;
}

.faq-card:hover {
    transform: translateY(-8px) rotateX(3deg) rotateY(-3deg);
    box-shadow: 
        0 25px 50px -15px rgba(102, 126, 234, 0.25),
        0 0 0 1px rgba(102, 126, 234, 0.1) inset;
}

.faq-card:hover::before {
    opacity: 1;
}

.faq-header {
    position: relative;
    z-index: 2;
    padding: 2rem 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-icon-container {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.faq-card:hover .faq-icon-container {
    transform: scale(1.1) rotate(5deg);
}

.faq-icon-container i {
    color: white;
    font-size: 1.2rem;
}

.faq-question-content {
    flex: 1;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-card:hover .faq-question {
    color: #667eea;
}

.faq-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.faq-category {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-expand-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 32px;
    height: 32px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-expand-icon i {
    color: #667eea;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-card.expanded .faq-expand-icon i {
    transform: rotate(180deg);
}

.faq-card:hover .faq-expand-icon {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.faq-body {
    position: relative;
    z-index: 2;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.faq-card.expanded .faq-body {
    max-height: 300px;
}

.faq-answer {
    padding: 0 2rem 2rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
}

.faq-answer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
}

.faq-stats {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.faq-helpful {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-helpful i {
    color: #10b981;
}

.faq-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.faq-search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.faq-search {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.faq-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
}

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.faq-category-filter {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-category-filter:hover,
.faq-category-filter.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-grid {
        gap: 1rem;
        max-width: 100%;
        margin-top: 2rem;
    }

    .faq-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }

    .faq-expand-icon {
        top: 1.5rem;
        left: 1.5rem;
    }

    .faq-stats {
        right: 1.5rem;
    }

    .faq-search {
        padding: 1rem 1.2rem 1rem 3rem;
    }

    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .faq-category-filter {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .faq-card {
        border-radius: 20px;
        margin: 0 1rem;
    }

    .faq-question-wrapper {
        flex-direction: column;
        gap: 0.75rem;
    }

    .faq-icon-container {
        align-self: flex-start;
    }

    .faq-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .faq-grid {
        margin-left: 0;
        margin-right: 0;
    }
}