@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Quicksand:wght@300..700&family=Teachers:ital,wght@0,400..800;1,400..800&display=swap");

.faq-page {
    background-color: #F8F8FC;
}

.faq-hero {
    position: relative;
    background-color: #3D348B;
    background-image: url("../../../images/marketing-background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 510px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 20px;
}

.faq-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 52, 139, 0.95);
    z-index: 1;
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-top: 80px; 
}

.faq-hero h1 {
    font-family: "Teachers", sans-serif;
    font-size: 82px;
    font-weight: 500;
    line-height: 90px;
    color: #ffffff;
    margin-bottom: 24px;
}

.faq-hero h1 span {
    font-weight: 700 !important;
    /* color: #FFAA3E; */
}

.faq-hero p {
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 26px;
}

/* FAQ Container */
.faq-container {
    max-width: 1200px;
    width: 100%;
    margin: 60px auto 100px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.faq-section-title {
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3D348B;
    margin-top: 40px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-accordion-group {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #EAE9F7;
    overflow: hidden; /* Ensures active item background respects rounded corners */
    box-shadow: 0px 4px 12px rgba(61, 52, 139, 0.05);
}

.faq-accordion-item {
    border-bottom: 1px solid #EAE9F7;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.faq-accordion-item:last-child {
    border-bottom: none;
}

.faq-accordion-item.active {
    background-color: #3D348B;
}

.faq-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px 20px 32px;
    cursor: pointer;
    user-select: none;
}

.faq-accordion-header h3 {
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1E1E1E;
    margin: 0;
    padding-right: 20px;
    transition: color 0.3s ease;
}

.faq-accordion-item.active .faq-accordion-header h3 {
    color: #FFFFFF;
}

.faq-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E1E1E;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-accordion-icon svg {
    width: 20px;
    height: 20px;
}

/* In the HTML, the SVG is a chevron pointing down/right. Let's assume it points down by default, and flips up on active. */
.faq-accordion-item.active .faq-accordion-icon {
    transform: rotate(180deg);
    color: #FFFFFF;
}

.faq-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out, opacity 0.4s ease-in-out;
    opacity: 0;
    
}

.faq-accordion-item.active .faq-accordion-body {
    max-height: 500px;
    opacity: 1;
    
    padding: 20px 40px /* Padding bottom ensures spacing inside the purple box */
}
.faq-accordion-item.active .faq-accordion-header{
    border: 2px solid #FFFFFF1A;
}

.faq-accordion-body p {
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #EAE9F7; /* Lighter text for the dark background */
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .faq-hero {
        min-height: 350px;
    }

    .faq-hero h1 {
        font-size: 38px;
        line-height: 46px;
    }

    .faq-hero p {
        font-size: 16px;
        line-height: 24px;

    }

    .faq-container {
        margin-top: 20px;
    }

    .faq-accordion-group {
        border-radius: 24px;
    }

    .faq-section-title {
        margin-top: 20px;
        font-size: 20px;
        line-height: 20px;
        text-transform: uppercase;
    }

    .faq-accordion-header h3 {
        font-size: 16px;
    }
}


