/* FAQ SECTION */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light);
}

.faq-question[aria-expanded="true"] {
    background-color: var(--light);
    border-bottom: 1px solid #e5e7eb;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--accent);
    min-width: 20px;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    background: var(--white);
}

.faq-answer.open {
    padding: 1.5rem;
    max-height: 2000px; /* Large enough to contain content */
}

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

.faq-answer ul, .faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

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

.faq-answer strong {
    color: var(--primary);
}

/* FAQ Grid inside answers */
.faq-answer .grid-2 {
    margin: 1rem 0;
    gap: 2rem;
}

.faq-answer .grid-2 h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

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

.faq-answer .grid-2 li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer.open {
        padding: 1.25rem;
    }
    
    .faq-answer .grid-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Debug styles */
.faq-debug {
    border: 2px solid red !important;
}