/* FAQ Page Specific Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #4f46e5;
    --accent-color: #06b6d4;
    --dark-bg: #ffffff;
    --medium-bg: #f8fafc;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-dark: #111827;
    --text-light: #ffffff;
    --text-muted: #374151;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0L100,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><path d="M100,0L0,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 10;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* FAQ Categories */
.faq-categories {
    padding: 60px 0 40px;
    background-color: var(--medium-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    font-size: 28px;
    color: var(--text-light);
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 600;
}

/* FAQ Search */
.faq-content {
    padding: 40px 0 80px;
    background-color: var(--light-bg);
}

.faq-search {
    display: flex;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
}

#faq-search-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: none;
    background: var(--card-bg);
    color: var(--text-dark);
}

#faq-search-input:focus {
    outline: none;
}

#faq-search-button {
    background: var(--primary-color);
    border: none;
    color: var(--text-light);
    padding: 0 25px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#faq-search-button:hover {
    background: var(--secondary-color);
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 60px;
}

.faq-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.faq-section h2:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-toggle i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    margin-top: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-answer ul,
.faq-answer ol {
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 10px;
}

.faq-item.active .faq-toggle {
    background-color: var(--primary-color);
}

.faq-item.active .faq-toggle i {
    color: var(--text-light);
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 25px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 0;
    display: none;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Highlight */
.highlight {
    background-color: rgba(37, 99, 235, 0.15);
    padding: 2px 0;
    border-radius: 3px;
}

/* Additional Help Section */
.additional-help {
    background-color: var(--medium-bg);
    padding: 60px 0;
    text-align: center;
}

.additional-help h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.additional-help p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

.help-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.help-option {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    width: 300px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.help-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.help-option i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.help-option h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.help-option p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.help-option .button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.help-option .button:hover {
    background-color: var(--secondary-color);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .faq-section h2 {
        font-size: 1.8rem;
    }
    
    .additional-help h2 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .help-options {
        flex-direction: column;
        align-items: center;
    }
    
    .help-option {
        width: 100%;
        max-width: 350px;
    }
}

@media screen and (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .faq-search {
        flex-direction: column;
    }
    
    #faq-search-button {
        padding: 12px 0;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
}
