/* FAQ Page Styles - Financial Theme with Navy Blue */

:root {
    --faq-primary: #1e3a8a;        /* Navy Blue */
    --faq-primary-light: #3b82f6;   /* Light Blue */
    --faq-primary-dark: #1e40af;    /* Dark Blue */
    --faq-secondary: #f8fafc;       /* Light Gray */
    --faq-accent: #d4af37;          /* Gold */
    --faq-text: #1f2937;            /* Dark Gray */
    --faq-text-light: #6b7280;      /* Medium Gray */
    --faq-border: #e5e7eb;          /* Light Border */
    --faq-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --faq-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Container */
.faq-container {
    padding: 0;
    background: linear-gradient(135deg, var(--faq-secondary) 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, var(--faq-primary) 0%, var(--faq-primary-dark) 100%);
    color: white;
    padding: 6rem 0 4rem;
    margin-top: -2rem;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.faq-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.faq-title i {
    color: var(--faq-accent);
    margin-right: 1rem;
}

.faq-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Search Bar */
.faq-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-search .input-group {
    box-shadow: var(--faq-shadow-hover);
    border-radius: 50px;
    overflow: hidden;
}

.faq-search .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.faq-search .form-control:focus {
    box-shadow: none;
    background: white;
}

.btn-search {
    background: var(--faq-accent);
    border: none;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #b8941f;
    transform: translateY(-1px);
}

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

.category-btn {
    background: white;
    border: 2px solid var(--faq-border);
    color: var(--faq-text);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover {
    border-color: var(--faq-primary);
    color: var(--faq-primary);
    transform: translateY(-2px);
    box-shadow: var(--faq-shadow);
}

.category-btn.active {
    background: var(--faq-primary);
    border-color: var(--faq-primary);
    color: white;
    box-shadow: var(--faq-shadow);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: var(--faq-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--faq-border);
}

.faq-item:hover {
    box-shadow: var(--faq-shadow-hover);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--faq-border);
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--faq-primary) 0%, var(--faq-primary-light) 100%);
    color: white;
}

.faq-question h5 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question h5 i:first-child {
    color: var(--faq-primary);
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.faq-question:hover h5 i:first-child {
    color: var(--faq-accent);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--faq-text-light);
}

.faq-question:hover .faq-icon {
    color: white;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 2rem;
    background: white;
    border-top: 3px solid var(--faq-primary);
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--faq-text);
}

.faq-answer ol, .faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--faq-text);
}

.faq-answer strong {
    color: var(--faq-primary);
    font-weight: 600;
}

.text-muted {
    color: var(--faq-text-light) !important;
    font-style: italic;
    font-size: 0.95rem;
}

/* Contact Section */
.faq-contact-section {
    background: linear-gradient(135deg, var(--faq-primary) 0%, var(--faq-primary-dark) 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.faq-contact-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.faq-contact-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.btn-contact {
    background: var(--faq-accent);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-contact:hover {
    background: #b8941f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    color: white;
}

.btn-contact i {
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 4rem 0 3rem;
    }
    
    .faq-title {
        font-size: 2.5rem;
    }
    
    .faq-subtitle {
        font-size: 1.1rem;
    }
    
    .faq-categories {
        margin: 2rem 0;
    }
    
    .category-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h5 {
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1.5rem;
    }
    
    .faq-contact-section {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }
    
    .faq-contact-section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-search .form-control {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .btn-search {
        padding: 0.875rem 1.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .faq-answer {
        padding: 1.25rem;
    }
}

/* Animation for FAQ items */
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search highlight */
.highlight {
    background-color: var(--faq-accent);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Loading animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.faq-question:focus,
.category-btn:focus,
.btn-search:focus,
.btn-contact:focus {
    outline: 2px solid var(--faq-accent);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .faq-hero,
    .faq-categories,
    .faq-contact-section {
        display: none;
    }
    
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .faq-answer {
        display: block !important;
    }
}