/* --- FAQ SECTION CONTAINER --- */
.faq-section {
    background-color: var(--white); /* Pure white to contrast the blue banner above */
    padding: 100px 0;
}

/* --- THE ACCORDION WRAPPER --- */
.faq-accordion {
    max-width: 800px; /* Keeps the text from stretching too wide so it's easy to read */
    margin: 0 auto;
}

/* --- INDIVIDUAL FAQ ITEMS --- */
.faq-item {
    border-bottom: 1px solid #eaeaea; /* Clean separator line */
    margin-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none; /* Removes the line from the very bottom one */
}

/* The Clickable Question */
.faq-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-text);
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.faq-header:hover {
    color: var(--primary-blue);
}

.faq-header.active {
    color: var(--primary-blue);
}

/* The Chevron Arrow Icon */
.faq-icon {
    color: var(--secondary-grey);
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Flips the arrow upside down when active */
.faq-header.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

/* The Hidden Answer Panel */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-body p {
    margin: 0;
    padding-bottom: 25px; /* Spacing below the text */
    padding-right: 40px; /* Keeps text from hitting the arrow icon */
    color: var(--secondary-grey);
    font-size: 16px;
    line-height: 1.7;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .faq-header {
        font-size: 16px; /* Slightly smaller text for phones */
        padding-right: 15px;
    }
    
    .faq-body p {
        font-size: 15px;
        padding-right: 15px;
    }
}