/* ==========================================
   FAQ Page Styles
   ========================================== */

.page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 80px; /* Account for fixed header */
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
}

.page-header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Fallback for unsupported browsers */
    color: #D4AF37;
}

.page-header p {
    font-size: 1.2rem;
    color: #666666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Search Container */
.faq-search-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 0 1rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #999;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e5e5;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-box input::placeholder {
    color: #999;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item:hover {
    border-color: #D4AF37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.faq-item.active {
    border-color: #D4AF37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.2);
}

/* FAQ Question */
.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: white;
    border-bottom: 1px solid transparent;
}

.faq-item:hover .faq-question {
    background: #fefefe;
}

.faq-item.active .faq-question {
    background: #fafafa;
    border-bottom-color: #f0f0f0;
    color: #D4AF37;
}

.faq-question .question-text {
    flex: 1;
    margin-right: 1rem;
    line-height: 1.4;
}

.expand-icon {
    width: 24px;
    height: 24px;
    color: #D4AF37;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .expand-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    background: white;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}

.answer-text {
    padding: 0 2rem 2rem 2rem;
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

/* Page Navigation */
.page-navigation {
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 3rem;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.back-to-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, #B8941F, #D4AF37);
}

.back-to-home:active {
    transform: translateY(0);
}

.back-to-home i {
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-container {
        padding-top: 60px;
    }

    .page-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

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

    .page-header p {
        font-size: 1rem;
    }

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

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-question .question-text {
        margin-right: 0.75rem;
    }

    .answer-text {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .page-navigation {
        padding: 2rem 1rem 1.5rem 1rem;
    }

    .back-to-home {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .answer-text {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }

    .search-box input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
        font-size: 0.95rem;
    }

    .search-box i {
        left: 0.875rem;
        font-size: 0.9rem;
    }
}

/* Animation for FAQ items loading */
.faq-item {
    animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }
.faq-item:nth-child(4) { animation-delay: 0.3s; }
.faq-item:nth-child(5) { animation-delay: 0.4s; }

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

/* Template (Hidden) */
template {
    display: none;
}