/* FAQ page specific styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navigation - reuse from home.css */
.navbar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.logo a {
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* FAQ container */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,123,255,0.3);
}

.page-header h1 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.page-header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Search section */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    text-align: center;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-hint {
    color: #666;
    font-size: 0.9rem;
}

/* Category tabs */
.categories {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    color: #666;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #007bff;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #f8f9ff;
}

/* FAQ content */
.faq-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* FAQ items */
.faq-item {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:hover {
    background: #f8f9fa;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    transition: transform 0.3s;
    margin-left: 1rem;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9ff;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

.faq-answer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

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

/* Help section */
.help-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 3rem 2rem;
    text-align: center;
}

.help-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.help-section > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: #f8f9ff;
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #007bff;
    font-weight: 600;
    font-size: 1.3rem;
}

.contact-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #007bff;
    display: inline-block;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-secondary {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Animation for FAQ items */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: slideIn 0.5s ease forwards;
}

/* Responsive design */
@media (max-width: 768px) {
    .faq-container {
        padding: 1rem;
    }
    
    .page-header {
        padding: 3rem 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 1.5rem;
    }
    
    .search-input {
        font-size: 1rem;
        padding: 12px 16px;
    }
    
    .category-tabs {
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .help-section {
        padding: 2rem 1.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .faq-question {
        padding: 1rem;
        flex-direction: column;
        text-align: left;
    }
    
    .faq-question h3 {
        margin-bottom: 0.5rem;
    }
    
    .toggle-icon {
        align-self: flex-end;
        margin: 0;
    }
    
    .search-input {
        padding: 10px 12px;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Accessibility improvements */
.faq-question:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.search-input:focus {
    outline: none;
}

.tab-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

/* Print styles */
@media print {
    .navbar, .search-section, .categories {
        display: none;
    }
    
    .faq-item .faq-answer {
        max-height: none !important;
        padding: 0 0 1rem !important;
    }
    
    .faq-item {
        page-break-inside: avoid;
    }
}