/* FAQ Page Enhanced Styles - Modern Accordion with Filters & Search */

/* FAQ Search & Filter Section */
.faq-controls {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.faq-search-container {
    margin-bottom: 1.5rem;
}

.faq-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 20px;
}

.faq-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.faq-filter-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.filter-tab:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-tab i {
    margin-right: 0.5rem;
}

/* FAQ Count */
.faq-count {
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Enhanced FAQ Item - Accordion Style */
.faq-item {
    background: var(--white);
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem;
    margin: 0;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::after {
    content: '';
    display: none;
}

.faq-item.active .faq-question::after {
    display: none;
}

.faq-item {
    background: var(--white);
}

.faq-question {
    background: #FFF4FF;
    color: var(--text-dark);
}

.faq-question:hover {
    background: #FFE6FF;
}

/* Category Badge */
.faq-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Answer Styling */
.faq-answer {
    max-height: none;
    overflow: visible;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.8;
    color: var(--text-dark);
}

.faq-answer p:not(:last-child) {
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    display: none;
}

.no-results.show {
    display: block;
}

.no-results i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Highlight matched text */
.highlight {
    background-color: rgba(255, 223, 0, 0.4);
    padding: 0 2px;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-controls {
        padding: 1.5rem 1rem;
    }
    
    .faq-search {
        font-size: 0.9rem;
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }
    
    .faq-filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        line-height: 1.5;
    }
    
    .faq-question::after {
        order: 3;
        margin-left: auto;
    }
    
    .faq-category-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.65rem;
        margin-left: 0;
        order: 2;
    }
    
    .faq-answer {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}

/* Extra Small Mobile (phones) */
@media (max-width: 480px) {
    .faq-controls {
        padding: 1.25rem 0.75rem;
        border-radius: 15px;
    }
    
    .faq-search {
        font-size: 0.85rem;
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        background-size: 18px;
        background-position: 10px center;
    }
    
    .filter-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .filter-tab i {
        font-size: 0.75rem;
    }
    
    .faq-item {
        border-radius: 15px;
        margin-bottom: 0.75rem;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 0.875rem;
        gap: 0.4rem;
    }
    
    .faq-category-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
    
    .faq-answer {
        padding: 0 0.875rem;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 0.875rem 0.875rem 0.875rem;
    }
    
    .faq-count {
        font-size: 0.85rem;
        margin: 1rem 0;
    }
    
    .no-results {
        padding: 2rem 1rem;
        border-radius: 15px;
    }
    
    .no-results i {
        font-size: 2rem;
    }
    
    .no-results h3 {
        font-size: 1.2rem;
    }
    
    .no-results p {
        font-size: 0.9rem;
    }
}

/* Smooth Animation for Opening */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer {
    animation: slideDown 0.3s ease;
}

/* Print Styles */
@media print {
    .faq-controls {
        display: none;
    }
    
    .faq-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 1rem 1.5rem !important;
    }
}
