/* --- STYLES FOR FAQ SECTION --- */
.root{
--wcu-primary-color: #ad573a;

}

.faq-section {
    padding: 60px 5%;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    background-color: #FFFFFF;
    background-image: url("https://transparenttextures.com/patterns/arches.png");
    /* Added box-shadow and clip-path to extend the background to full width */
    box-shadow: 0 0 0 100vmax #FFFFFF;
    clip-path: inset(0 -100vmax);
}

.faq-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wcu-primary-color);
    margin: 0 0 1.5rem 0;
    margin-bottom: -10px;
}

.services-divider-icon {
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
}

.services-divider-icon img {
    height: 100px;
    width: auto;
    vertical-align: middle;
}

.services-divider-icon::before,
.services-divider-icon::after {
    content: '';
    display: block;
    width: 100px;
    height: 1px;
    background: var(--wcu-primary-color);
    position: absolute;
    top: 50%;
}

.services-divider-icon::before { left: -110px; }
.services-divider-icon::after { right: -110px; }


/* --- Accordion Styles --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Set a max-width and use auto margins to center the container */
    max-width: 800px; /* You can adjust this value as needed */
    width: 90%;       /* Makes it responsive for smaller screens */
    margin: 2rem auto 0; /* Centers the accordion horizontally and adds top margin */
}

.faq-item {
    border: 2px solid var(--wcu-primary-color);
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: #F4F1E7;
    border: none;
    padding: 1.25rem;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question.active,
.faq-question:hover {
    background-color: var(--wcu-primary-color);
    color: #FFFFFF;
}
.faq-question.active .faq-icon,
.faq-question:hover .faq-icon {
    stroke: #FFFFFF;
}


.faq-icon {
    flex-shrink: 0;
    transition: transform 0.4s ease-out, stroke 0.3s ease;
    stroke: var(--wcu-primary-color);
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: #F9F7EE;
}

.faq-answer p {
    padding: 1.25rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #6B7280;
    text-align: left;
}

/* ====== SCROLL ANIMATION STYLES ====== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 612px) {
    .faq-section .section-title {
        font-size: 1.25rem;
        line-height: 1.15;
        margin-bottom: 18px;
    }
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    .faq-answer p {
        padding: 1rem;
        font-size: 0.9rem;
    }
}
