/* FAQ Page Specific Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s forwards;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-background);
    line-height: 1.1;
}

.page-header h1 .highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.page-description {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(245, 241, 233, 0.9);
}

/* FAQ Layout */
.faq-main {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    position: relative;
}

/* Category Sidebar */
.faq-categories {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.category-box {
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.category-box:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.category-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-list li:last-child {
    margin-bottom: 0;
}

.category-list li i {
    color: var(--color-primary);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-list li span {
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.category-list li:hover {
    background-color: rgba(26, 43, 76, 0.05);
    transform: translateX(5px);
}

.category-list li:hover i,
.category-list li:hover span {
    color: var(--color-secondary);
}

.category-list li.active {
    background-color: var(--color-primary);
}

.category-list li.active i,
.category-list li.active span {
    color: var(--color-background);
}

/* Help Box */
.help-box {
    background: var(--color-primary);
    color: var(--color-background);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    padding-top: 3.5rem;
    transition: all 0.3s ease;
}

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

.help-icon {
    position: absolute;
    top: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.help-box:hover .help-icon {
    transform: translateX(-50%) scale(1.1) rotate(10deg);
}

.help-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.help-box p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

/* FAQ Content Area */
.faq-content {
    position: relative;
}

/* Search Box */
.search-container {
    margin-bottom: 2.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 0 1.25rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--color-secondary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.search-box i {
    color: var(--color-text-light);
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    background: transparent;
    color: var(--color-text);
    outline: none;
}

.search-box input::placeholder {
    color: var(--color-text-light);
    opacity: 0.7;
}

.search-clear {
    background: none;
    border: none;
    padding: 0.25rem;
    color: var(--color-text-light);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.search-clear.visible {
    display: block;
}

.search-clear:hover {
    opacity: 1;
    color: var(--color-secondary);
}

/* FAQ Sections */
.faq-section {
    display: none;
    margin-bottom: 3rem;
}

.faq-section.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-header i {
    color: var(--color-secondary);
    width: 2rem;
    height: 2rem;
    padding: 0.5rem;
    background: rgba(255, 111, 97, 0.1);
    border-radius: 0.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

/* FAQ Accordion */
.faq-accordion {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background: var(--color-background);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(245, 241, 233, 0.7);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
    transition: all 0.3s ease;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding: 0;
    margin: 0 0 1rem 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, 
.faq-answer ol {
    margin: 0 0 1rem 1.5rem;
    color: var(--color-text-light);
}

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

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-secondary);
    transition: all 0.3s ease;
}

.faq-answer a:hover {
    color: var(--color-secondary);
    border-bottom-color: transparent;
}

.faq-item.active .faq-question {
    background: var(--color-primary);
}

.faq-item.active .faq-question h3 {
    color: var(--color-background);
}

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

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
}

/* Not Found Section */
.not-found-section {
    margin-top: 3rem;
    text-align: center;
    padding: 3rem;
    background: rgba(245, 241, 233, 0.5);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
}

.not-found-content {
    max-width: 600px;
    margin: 0 auto;
}

.not-found-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(26, 43, 76, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.not-found-icon i {
    color: var(--color-secondary);
    width: 2.5rem;
    height: 2.5rem;
}

.not-found-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.not-found-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Highlight for search results */
.search-highlight {
    background-color: rgba(255, 111, 97, 0.2);
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-background);
    border: 1px solid var(--color-background);
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlightPulse {
    0% { background-color: rgba(255, 111, 97, 0.2); }
    50% { background-color: rgba(255, 111, 97, 0.3); }
    100% { background-color: rgba(255, 111, 97, 0.2); }
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 2rem auto;
    border: 3px solid rgba(26, 43, 76, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--color-secondary);
    animation: spin 1s linear infinite;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 991px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .faq-categories {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .category-box, .help-box {
        margin-bottom: 0;
    }

    .page-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .faq-categories {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .help-box {
        margin-top: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .faq-main {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-question, .faq-item.active .faq-answer {
        padding: 1rem;
    }
    
    .not-found-section {
        padding: 2rem 1rem;
    }
    
    .not-found-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}