/* --- FAQ Section --- */

.faq-section {
    padding: 80px 5%;
    background-color: var(--white-color);
    text-align: center;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--light-grey);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    background: var(--white-color);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--light-grey);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-grey);
    flex: 1;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--maroon-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    padding: 0 30px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    padding-bottom: 20px;
}

/* State when item is active */
.faq-item.active .faq-question {
    background: var(--maroon-color);
    color: var(--white-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-item.active .faq-question h3 {
    color: var(--white-color);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--white-color);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust this value if content is longer */
    padding: 20px 30px;
}