/* ===================================
   FAQ PAGE - MAIN SITE STYLES
   =================================== */

/* Dark background applied to body */
body {
    background: radial-gradient(circle at 50% 50%, #1a1224 0%, #0d0a15 100%);
}

/* Page container */
.faq-page {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 0 40px;
    position: relative;
    z-index: 5;
}

/* Grid background pattern overlay */
.faq-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255, 140, 0, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 140, 0, 0.03) 41px),
        repeating-linear-gradient(90deg, rgba(255, 140, 0, 0.03) 0px, transparent 1px, transparent 40px, rgba(255, 140, 0, 0.03) 41px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Static brand header */
.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Page headers */
.page-header {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    text-align: center;
}

.page-header h1 {
    margin: 0 0 12px;
    font-weight: 700;
    font-size: 56px;
    color: #ffffff;
    line-height: 1.2;
}

.page-header .page-sub {
    margin: 0;
    color: #9ca3af;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
}

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ Container */
.faq-container {
    margin-bottom: 60px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ Item */
.faq-item {
    background: linear-gradient(145deg, #1a1224 0%, #0d0a15 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.faq-item:nth-child(1) { animation-delay: 0s; }
.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; }
.faq-item:nth-child(n+6) { animation-delay: 0.5s; }

.faq-item:hover {
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.15);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #FDB915, #FF8C00, #FF4D1F);
    transition: width 0.4s ease;
}

.faq-question:hover::before {
    width: 100%;
}

.question-text {
    flex: 1;
    color: #ffffff;
}

/* FAQ Toggle Icon */
.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.1);
    color: #FF8C00;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question:hover .faq-toggle {
    background: rgba(255, 140, 0, 0.2);
    transform: scale(1.1);
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(180deg);
    background: rgba(255, 140, 0, 0.3);
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* FAQ Answer */
.faq-answer {
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(255, 140, 0, 0.15);
}

.faq-answer[hidden] {
    max-height: 0;
    border-top: none;
    overflow: hidden;
}

.answer-content {
    padding: 24px;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.7;
}

/* Contact Section */
.faq-contact {
    background: linear-gradient(145deg, #1a1224 0%, #0d0a15 100%);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.faq-contact h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.faq-contact p {
    font-size: 16px;
    color: #9ca3af;
    margin: 0 0 30px 0;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    background: linear-gradient(135deg, #FDB915 0%, #FF4D1F 100%);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 185, 21, 0.3);
    display: inline-block;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(253, 185, 21, 0.5);
}

/* Footer */
#footer {
    background: linear-gradient(180deg, #0d0a15 0%, #000000 100%);
    color: #fff;
    padding: 60px 0 0 0;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
    margin-top: 80px;
    width: 100%;
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .faq-page {
        margin-top: 80px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .faq-page {
        margin-top: 40px;
        padding: 0 20px;
        max-width: 100%;
    }

    .brand-header {
        justify-content: center;
        margin-bottom: 30px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header .page-sub {
        font-size: 14px;
    }

    .faq-question {
        padding: 18px;
        font-size: 16px;
    }

    .answer-content {
        padding: 18px;
        font-size: 14px;
    }

    .faq-contact {
        padding: 40px 20px;
    }

    .faq-contact h2 {
        font-size: 24px;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-button {
        width: 100%;
    }

    #footer {
        margin-top: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 40px 20px;
    }
}
