/* ===========================
   RESET
=========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: Arial, Helvetica, sans-serif;

    background: #f5f6fb;

    color: #222;

    line-height: 1.7;

}


/* ===========================
   HERO
=========================== */

.hero {

    background: linear-gradient(135deg, #3b2c5f, #5b438f);

    color: #fff;

    padding: 90px 20px 120px;

    text-align: center;

}

.hero-content {

    max-width: 850px;

    margin: auto;

}

.hero h1 {

    font-size: 48px;

    margin-bottom: 18px;

}

.hero p {

    font-size: 18px;

    opacity: .95;

}


/* ===========================
   SEARCH
=========================== */

.faq-search-section {

    margin-top: -45px;

}

.faq-search {

    max-width: 900px;

    margin: auto;

    padding: 0 20px;

}

.faq-search input {

    width: 100%;

    padding: 18px 24px;

    border: none;

    border-radius: 14px;

    font-size: 17px;

    outline: none;

    background: #fff;

    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

    transition: .25s;

}

.faq-search input:focus {

    transform: translateY(-2px);

    box-shadow: 0 18px 35px rgba(0, 0, 0, .18);

}


/* ===========================
   CATEGORY FILTER
=========================== */

.filter-section {

    max-width: 900px;

    margin: 35px auto;

    padding: 0 20px;

}

.faq-filters {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;

}

.faq-filters button {

    border: none;

    padding: 10px 20px;

    border-radius: 30px;

    cursor: pointer;

    background: #ece9f7;

    color: #3b2c5f;

    font-weight: 600;

    transition: .25s;

}

.faq-filters button:hover {

    background: #3b2c5f;

    color: #fff;

}

.faq-filters button.active {

    background: #3b2c5f;

    color: #fff;

}


/* ===========================
   FAQ
=========================== */

.faq-section {

    max-width: 900px;

    margin: auto;

    padding: 0 20px 70px;

}

.loading {

    text-align: center;

    color: #777;

    padding: 50px;

}

.faq-item {

    background: #fff;

    border-radius: 18px;

    margin-bottom: 18px;

    overflow: hidden;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);

    transition: .25s;

}

.faq-item:hover {

    transform: translateY(-3px);

    box-shadow: 0 16px 34px rgba(0, 0, 0, .14);

}

.faq-question {

    padding: 22px 25px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    cursor: pointer;

    font-size: 18px;

    font-weight: bold;

}

.faq-icon {

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background: #ede9fa;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #3b2c5f;

    font-size: 24px;

    transition: .3s;

}

.faq-answer {

    max-height: 0;

    overflow: hidden;

    padding: 0 25px;

    transition:
        max-height .35s ease,
        padding .35s ease;

    color: #555;

}

.faq-item.active .faq-answer {

    max-height: 450px;

    padding: 22px 25px;

    border-top: 1px solid #eee;

}

.faq-item.active .faq-icon {

    transform: rotate(180deg);

}


/* ===========================
   CTA
=========================== */

.cta {

    background: #3b2c5f;

    color: #fff;

    text-align: center;

    padding: 80px 20px;

}

.cta h2 {

    font-size: 34px;

    margin-bottom: 12px;

}

.cta p {

    opacity: .9;

    margin-bottom: 30px;

}

.cta a {

    display: inline-block;

    text-decoration: none;

    background: #fff;

    color: #3b2c5f;

    padding: 15px 35px;

    border-radius: 10px;

    font-weight: bold;

    transition: .25s;

}

.cta a:hover {

    transform: translateY(-2px);

    background: #f4f4f4;

}


/* ===========================
   MOBILE
=========================== */

@media(max-width:768px) {

    .hero {

        padding: 70px 20px 100px;

    }

    .hero h1 {

        font-size: 34px;

    }

    .hero p {

        font-size: 16px;

    }

    .faq-question {

        font-size: 16px;

        padding: 18px;

    }

    .faq-answer {

        font-size: 15px;

    }

    .cta h2 {

        font-size: 28px;

    }

}