/* ==========================================
   FAQ Section Styles
   ========================================== */

.faq-section {
    background-color: var(--navy-primary); /* Use variable */
    padding: 100px 0;
    position: relative;
    /* Optional texture/pattern */
    background-image: linear-gradient(var(--navy-secondary) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-secondary) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

.faq-section .section-title {
    color: var(--text-primary); /* Use variable */
    margin-bottom: 20px;
}

.faq-section .section-line {
    width: 60px;
    height: 4px;
    background-color: var(--gold-primary);
    margin: 0 auto 60px;
    border-radius: 2px;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--navy-secondary); /* Use variable */
    border: 1px solid rgba(212, 175, 55, 0.15); /* Gold Border */
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-item.active {
    border-color: var(--gold-primary);
    background-color: rgba(17, 34, 64, 0.8); /* This is tricky for light mode. Maybe define --navy-transparent? For now stick to secondary */
    background-color: var(--navy-primary); /* Use primary for active? or secondary. Let's use var(--navy-secondary) but maybe add a class to body for overrides if needed. Or just keep it separate. Actually, light mode secondary is light gray. So this works. */
    backdrop-filter: blur(5px);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary); /* Use variable */
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--gold-primary);
}

.faq-question i {
    color: var(--gold-primary);
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    color: var(--text-secondary); /* Use variable */
    line-height: 1.8;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    padding-bottom: 25px;
    max-height: 200px; /* Adjust based on content length or use JS for auto */
    /* Note: Ideally max-height should be sufficiently large or handled via JS height calc. 
       For pure CSS transition, a fixed max-height is needed. */
}

/* FAQ Footer Button */
.faq-footer {
    margin-top: 50px;
    text-align: center;
}

.faq-footer .btn-outline-gold {
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 12px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.faq-footer .btn-outline-gold:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-wrapper {
        padding: 0 15px;
    }

    .faq-item {
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }
    
    .faq-icon i {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
