/* Main container for the entire FAQ section */
.faq-container {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 3rem;
    margin: 3rem auto;
    max-width: 1400px; 
    align-items: flex-start;
    text-align: left;
}

/* Left Column: List of Questions */
.faq-questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 120px;
}

/* Individual Question Item Styling */
.faq-question-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.faq-question-item i {
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 2px;
}

.faq-question-item span {
    font-family: var(--heading-font);
    font-weight: 300;
    line-height: 1.4;
}

.faq-question-item:hover {
    background-color: var(--card-bg-color);
    border-color: var(--primary-color);
}

.faq-question-item.active {
    background-color: #2c2c2c; 
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

/* NEW: This wrapper now holds the place in the grid */
.faq-answer-wrapper {
    /* This element is the placeholder in the grid */
}

/* UPDATED: The answer box is now positioned relative to the wrapper */
.faq-answer-content {
    background-color: #2c2c2c; 
    border: 1px solid #444;
    border-radius: 10px;
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow);
    min-height: 500px;
    text-align: left;
    position: relative; /* Allows the box to be moved */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth slide effect */
}

.faq-answer-content .default-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    text-align: center;
    color: var(--muted-text-color);
}

.faq-answer-content .default-message i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Typography for the answer box content */
.faq-answer-content h3,
.faq-answer-content p,
.faq-answer-content li,
.faq-answer-content strong {
    text-align: left;
    color: #ffffff;
}

.faq-answer-content h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.faq-answer-content p,
.faq-answer-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #e0e0e0;
}

.faq-answer-content ul {
    list-style-position: outside;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.faq-answer-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.faq-answer-content .subheading {
    display: block;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .faq-questions-list {
        position: static; /* Remove sticky positioning */
        margin-bottom: 2rem;
    }
}
