/* Container and overall styling */
.faq-accordion-container {
    margin: 20px 0;
}

/* Individual FAQ item */
.faq-item {
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 5px;
    overflow: hidden;
}

/* Button-like header styling */
.faq-toggle {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background-color: #f8f8f8; 
    color: #333;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s;
}

.faq-toggle:hover {
    background-color: #eee;
}

/* Ensure the question text fills most of the space */
.faq-question-text {
    flex-grow: 1;
    margin-right: 10px; 
}

/* Chevron Styling */
.faq-chevron {
    font-size: 0.8em;
    transition: transform 0.3s ease;
    line-height: 1; 
}

/* Rotate chevron when open */
.faq-toggle[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

/* Content area styling */
.faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Open state for content area */
.faq-content.open {
    max-height: 1000px; 
    padding: 15px 20px;
    border-top: 1px solid #ddd;
}