/* =========================================
   PROSPERA - PREMIUM FAQ PAGE
   REPLACE OLD faq.css COMPLETELY
   ========================================= */


/* =========================================
   PAGE FOUNDATION
   ========================================= */

body {
    background: #f5f7f5;
}


.faq-main {
    position: relative;
    padding: 110px 0;
    background:
        radial-gradient(
            circle at 5% 10%,
            rgba(16, 74, 61, 0.04),
            transparent 25%
        ),
        #f5f7f5;
}


/* =========================================
   FAQ HERO
   ========================================= */

.faq-hero {
    position: relative;
    overflow: hidden;

    padding: 165px 0 125px;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(217, 181, 109, 0.12),
            transparent 25%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(255, 255, 255, 0.06),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #082d26 0%,
            #104a3d 55%,
            #0b362e 100%
        );
}


.faq-hero::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    top: -320px;
    right: -150px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}


.faq-hero::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    bottom: -230px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(217, 181, 109, 0.06);
}


.faq-hero-content {
    position: relative;
    z-index: 2;

    text-align: center;
}


/* =========================================
   DECORATIVE SHAPES
   ========================================= */

.faq-hero-shape {
    position: absolute;
    z-index: 1;

    border-radius: 50%;

    pointer-events: none;
}


.shape-left {
    width: 150px;
    height: 150px;

    left: 8%;
    bottom: 15%;

    border:
        1px solid rgba(255, 255, 255, 0.1);
}


.shape-right {
    width: 85px;
    height: 85px;

    right: 9%;
    top: 28%;

    background:
        rgba(217, 181, 109, 0.08);

    border:
        1px solid rgba(217, 181, 109, 0.12);
}


/* =========================================
   BREADCRUMB
   ========================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-bottom: 28px;

    font-size: 0.82rem;
}


.breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
}


.breadcrumb a:hover {
    color: #ffffff;
}


.breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.4);
}


.breadcrumb i {
    font-size: 0.6rem;

    color:
        rgba(255, 255, 255, 0.3);
}


/* =========================================
   HERO TEXT
   ========================================= */

.faq-hero-text {
    max-width: 850px;

    margin: 0 auto;
}


.faq-hero .section-tag {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;
}


.light-tag {
    color: #f3d48d !important;

    border:
        1px solid rgba(217, 181, 109, 0.25);

    background:
        rgba(217, 181, 109, 0.08);
}


.faq-hero h1 {
    max-width: 750px;

    margin:
        0 auto 22px;

    color: #ffffff;

    font-size:
        clamp(3rem, 6vw, 5.3rem);

    line-height: 1.03;

    letter-spacing: -0.04em;
}


.faq-hero h1 span {
    display: block;

    color: #d9b56d;
}


.faq-hero-text p {
    max-width: 680px;

    margin: 0 auto;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 1rem;

    line-height: 1.8;
}


/* =========================================
   SEARCH AREA
   ========================================= */

.faq-search-wrapper {
    max-width: 800px;

    margin: 45px auto 0;
}


.faq-search-box {
    display: flex;
    align-items: center;

    min-height: 76px;

    padding: 0 14px 0 24px;

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.08);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.faq-search-box:hover,
.faq-search-box:focus-within {
    transform: translateY(-3px);

    border-color:
        rgba(217, 181, 109, 0.5);

    background:
        rgba(255, 255, 255, 0.11);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.25);
}


.faq-search-box > i {
    margin-right: 16px;

    color: #d9b56d;

    font-size: 1rem;
}


.faq-search-box input {
    flex: 1;

    height: 74px;

    border: none;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-family: inherit;
    font-size: 0.95rem;
}


.faq-search-box input::placeholder {
    color:
        rgba(255, 255, 255, 0.42);
}


/* Clear Search */

#clearSearch {
    display: none;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    color: #ffffff;

    cursor: pointer;

    transition:
        0.3s ease;
}


#clearSearch.show {
    display: flex;
}


#clearSearch:hover {
    background:
        rgba(255, 255, 255, 0.18);

    transform: rotate(90deg);
}


/* =========================================
   POPULAR SEARCHES
   ========================================= */

.popular-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-top: 20px;
}


.popular-searches > span {
    margin-right: 2px;

    color:
        rgba(255, 255, 255, 0.4);

    font-size: 0.78rem;
}


.popular-search {
    padding: 7px 14px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.04);

    color:
        rgba(255, 255, 255, 0.7);

    font-family: inherit;
    font-size: 0.75rem;

    cursor: pointer;

    transition:
        0.3s ease;
}


.popular-search:hover {
    transform: translateY(-2px);

    border-color:
        rgba(217, 181, 109, 0.4);

    background:
        rgba(217, 181, 109, 0.1);

    color: #f3d48d;
}


/* =========================================
   CATEGORY FILTER BAR
   ========================================= */

.faq-categories-section {
    position: relative;
    z-index: 5;

    margin-top: -42px;
}


.faq-category-tabs {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px;

    border:
        1px solid rgba(15, 50, 42, 0.08);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.96);

    box-shadow:
        0 20px 55px rgba(12, 40, 33, 0.1);

    backdrop-filter: blur(12px);

    overflow-x: auto;

    scrollbar-width: none;
}


.faq-category-tabs::-webkit-scrollbar {
    display: none;
}


.faq-category {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 52px;

    padding: 10px 17px;

    flex: 1;
    white-space: nowrap;

    border: none;
    border-radius: 12px;

    background: transparent;

    color: #52625c;

    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.faq-category:hover {
    background:
        rgba(16, 74, 61, 0.06);

    color:
        var(--primary-color);
}


.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    flex-shrink: 0;

    border-radius: 9px;

    background:
        rgba(16, 74, 61, 0.08);

    color:
        var(--primary-color);

    font-size: 0.75rem;

    transition:
        0.3s ease;
}


.faq-category.active {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #104a3d,
            #0b382f
        );

    box-shadow:
        0 8px 20px rgba(16, 74, 61, 0.2);
}


.faq-category.active .category-icon {
    color: #d9b56d;

    background:
        rgba(255, 255, 255, 0.1);
}


/* =========================================
   FAQ GROUP
   ========================================= */

.faq-group {
    margin-bottom: 100px;
}


.faq-group:last-of-type {
    margin-bottom: 0;
}


.faq-group.hidden {
    display: none;
}


/* =========================================
   GROUP HEADER
   ========================================= */

.faq-group-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(250px, 0.8fr);

    align-items: end;

    gap: 70px;

    margin-bottom: 36px;

    padding-bottom: 28px;

    border-bottom:
        1px solid rgba(16, 74, 61, 0.1);
}


.faq-group-heading .section-tag {
    margin-bottom: 14px;
}


.faq-group-heading h2 {
    margin: 0;

    color: #18231f;

    font-size:
        clamp(2rem, 4vw, 3.3rem);

    line-height: 1.1;

    letter-spacing: -0.03em;
}


.faq-group-heading h2 span {
    color:
        var(--primary-color);
}


.faq-group-heading p {
    max-width: 380px;

    margin: 0;

    color: #748078;

    font-size: 0.92rem;

    line-height: 1.8;
}


/* =========================================
   FAQ ACCORDION
   ========================================= */

.faq-accordion {
    display: flex;
    flex-direction: column;

    gap: 12px;

    max-width: 1000px;
}


/* FAQ CARD */

.faq-item {
    position: relative;

    border:
        1px solid rgba(16, 74, 61, 0.08);

    border-radius: 16px;

    background: #ffffff;

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


.faq-item::before {
    content: "";

    position: absolute;

    width: 4px;
    height: 0;

    top: 0;
    left: 0;

    background:
        #d9b56d;

    transition:
        height 0.35s ease;
}


.faq-item:hover {
    transform: translateX(4px);

    border-color:
        rgba(16, 74, 61, 0.18);

    box-shadow:
        0 15px 35px rgba(16, 74, 61, 0.05);
}


.faq-item.open {
    border-color:
        rgba(16, 74, 61, 0.2);

    box-shadow:
        0 20px 45px rgba(16, 74, 61, 0.08);
}


.faq-item.open::before {
    height: 100%;
}


/* =========================================
   QUESTION
   ========================================= */

.faq-question {
    display: grid;

    grid-template-columns:
        48px
        1fr
        42px;

    align-items: center;

    gap: 18px;

    width: 100%;

    min-height: 82px;

    padding: 18px 24px;

    border: none;

    background: transparent;

    text-align: left;

    font-family: inherit;

    cursor: pointer;
}


.question-number {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 10px;

    background:
        rgba(16, 74, 61, 0.06);

    color:
        var(--primary-color);

    font-size: 0.7rem;
    font-weight: 700;
}


.question-text {
    color: #1b2924;

    font-size: 0.97rem;
    font-weight: 600;

    line-height: 1.5;

    transition:
        color 0.3s ease;
}


.faq-item.open .question-text {
    color:
        var(--primary-color);
}


/* =========================================
   ACCORDION ICON
   ========================================= */

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        #f1f5f2;

    color:
        var(--primary-color);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.faq-item.open .faq-toggle {
    background:
        var(--primary-color);

    color: #ffffff;

    transform: rotate(45deg);
}


/* =========================================
   ANSWER
   ========================================= */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.4s ease;
}


.faq-answer > div {
    overflow: hidden;
}


.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}


.faq-answer-content {
    padding:
        0
        45px
        28px
        90px;
}


.faq-answer-content p {
    max-width: 760px;

    margin: 0;

    color: #68756f;

    font-size: 0.91rem;

    line-height: 1.85;
}


/* Answer Link */

.answer-link {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    margin-top: 17px;

    color:
        var(--primary-color);

    font-size: 0.84rem;
    font-weight: 700;
}


.answer-link i {
    font-size: 0.72rem;

    transition:
        transform 0.3s ease;
}


.answer-link:hover i {
    transform:
        translateX(5px);
}


/* =========================================
   SEARCH STATES
   ========================================= */

.faq-item.search-hidden {
    display: none;
}


.faq-item.search-match {
    border-color:
        rgba(217, 181, 109, 0.5);
}


/* =========================================
   NO RESULTS
   ========================================= */

.no-results {
    display: none;

    max-width: 600px;

    margin: 20px auto 0;

    padding: 70px 35px;

    border:
        1px solid rgba(16, 74, 61, 0.08);

    border-radius: 20px;

    background: #ffffff;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.04);
}


.no-results.show {
    display: block;
}


.no-results-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background:
        rgba(16, 74, 61, 0.08);

    color:
        var(--primary-color);

    font-size: 1.5rem;
}


.no-results h3 {
    margin-bottom: 10px;

    color:
        #18231f;
}


.no-results p {
    max-width: 400px;

    margin:
        0 auto 25px;

    color:
        #748078;

    line-height: 1.7;
}


/* =========================================
   HELP SECTION
   ========================================= */

.faq-help-section {
    padding: 40px 0;

    background:
        #f5f7f5;
}


.faq-help-wrapper {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(280px, 0.8fr);

    align-items: center;

    gap: 70px;

    padding: 70px 75px;

    overflow: hidden;

    border-radius: 28px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(217, 181, 109, 0.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #082d26,
            #104a3d
        );

    box-shadow:
        0 25px 70px rgba(8, 45, 38, 0.18);
}


.faq-help-wrapper::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -150px;
    bottom: -150px;

    border-radius: 50%;

    border:
        1px solid rgba(255, 255, 255, 0.08);
}


.help-content,
.help-actions {
    position: relative;
    z-index: 2;
}


.help-content .section-tag {
    margin-bottom: 18px;
}


.help-content h2 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size:
        clamp(2.2rem, 4vw, 3.8rem);

    line-height: 1.1;
}


.help-content h2 span {
    color:
        #d9b56d;
}


.help-content p {
    max-width: 620px;

    margin: 0;

    color:
        rgba(255, 255, 255, 0.65);

    line-height: 1.8;
}


.help-actions {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 22px;
}


.btn-light {
    background: #ffffff !important;

    color:
        var(--primary-color) !important;

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.1);
}


.btn-light:hover {
    background:
        #d9b56d !important;

    color:
        #082d26 !important;

    transform:
        translateY(-3px);
}


/* Email */

.help-email {
    display: flex;
    align-items: center;

    gap: 12px;

    color: #ffffff;
}


.email-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.1);

    color:
        #d9b56d;
}


.help-email small {
    display: block;

    margin-bottom: 3px;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 0.72rem;
}


.help-email span:last-child {
    font-size: 0.88rem;
    font-weight: 600;
}


/* =========================================
   QUICK LINKS
   ========================================= */

.faq-quick-links {
    padding: 100px 0;

    background: #ffffff;
}


.centered-heading {
    max-width: 650px;

    margin:
        0 auto 50px;

    text-align: center;
}


.centered-heading .section-tag {
    margin-bottom: 15px;
}


.centered-heading h2 {
    margin-bottom: 14px;

    color:
        #18231f;

    font-size:
        clamp(2.2rem, 4vw, 3.5rem);
}


.centered-heading h2 span {
    color:
        var(--primary-color);
}


.centered-heading p {
    color:
        #748078;
}


/* =========================================
   QUICK LINK CARDS
   ========================================= */

.quick-links-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}


.quick-link-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 270px;

    padding: 32px;

    overflow: hidden;

    border:
        1px solid rgba(16, 74, 61, 0.08);

    border-radius: 20px;

    background:
        #f7f9f7;

    transition:
        transform 0.35s ease,
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


.quick-link-card::after {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -50px;
    bottom: -50px;

    border-radius: 50%;

    background:
        rgba(16, 74, 61, 0.04);
}


.quick-link-card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(16, 74, 61, 0.2);

    background: #ffffff;

    box-shadow:
        0 25px 45px rgba(16, 74, 61, 0.08);
}


.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin-bottom: 24px;

    border-radius: 16px;

    background:
        var(--primary-color);

    color:
        #d9b56d;

    font-size: 1.2rem;

    transition:
        transform 0.35s ease;
}


.quick-link-card:hover .quick-link-icon {
    transform:
        rotate(-6deg) scale(1.05);
}


.quick-link-card h3 {
    margin-bottom: 10px;

    color:
        #18231f;

    font-size: 1.1rem;
}


.quick-link-card p {
    max-width: 260px;

    margin: 0;

    color:
        #748078;

    font-size: 0.86rem;

    line-height: 1.7;
}


.link-arrow {
    position: absolute;

    z-index: 2;

    right: 28px;
    bottom: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #ffffff;

    color:
        var(--primary-color);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.quick-link-card:hover .link-arrow {
    transform:
        translateX(5px);

    background:
        var(--primary-color);

    color: #ffffff;
}


/* =========================================
   RESPONSIVE - LARGE TABLETS
   ========================================= */

@media (max-width: 1100px) {

    .faq-category {
        flex: none;
    }


    .faq-help-wrapper {
        padding: 60px;
    }


    .quick-links-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .quick-link-card:last-child {
        grid-column:
            span 2;
    }

}


/* =========================================
   RESPONSIVE - TABLETS
   ========================================= */

@media (max-width: 900px) {

    .faq-hero {
        padding:
            145px 0 110px;
    }


    .faq-main {
        padding:
            85px 0;
    }


    .faq-group-heading {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .faq-group-heading p {
        max-width: 600px;
    }


    .faq-help-wrapper {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .help-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */

@media (max-width: 768px) {

    .faq-hero {
        padding:
            125px 0 90px;
    }


    .faq-hero h1 {
        font-size: 3rem;
    }


    .faq-hero-text p {
        font-size: 0.92rem;
    }


    .faq-search-wrapper {
        margin-top: 35px;
    }


    .faq-search-box {
        min-height: 64px;

        padding-left: 18px;

        border-radius: 14px;
    }


    .faq-search-box input {
        height: 62px;

        font-size: 0.88rem;
    }


    .popular-searches {
        justify-content: flex-start;
    }


    .faq-categories-section {
        margin-top: -30px;
    }


    .faq-category-tabs {
        padding: 8px;

        border-radius: 14px;
    }


    .faq-category {
        min-height: 46px;

        padding: 8px 13px;

        font-size: 0.74rem;
    }


    .category-icon {
        width: 28px;
        height: 28px;
    }


    .faq-main {
        padding:
            70px 0;
    }


    .faq-group {
        margin-bottom: 70px;
    }


    .faq-group-heading {
        margin-bottom: 25px;

        padding-bottom: 20px;
    }


    .faq-question {
        grid-template-columns:
            42px
            1fr
            36px;

        gap: 12px;

        min-height: 76px;

        padding: 16px 17px;
    }


    .question-number {
        width: 34px;
        height: 34px;

        font-size: 0.65rem;
    }


    .question-text {
        font-size: 0.88rem;
    }


    .faq-toggle {
        width: 34px;
        height: 34px;

        font-size: 0.78rem;
    }


    .faq-answer-content {
        padding:
            0
            22px
            24px
            71px;
    }


    .faq-answer-content p {
        font-size: 0.86rem;
    }


    .faq-help-wrapper {
        padding: 50px 30px;

        border-radius: 22px;
    }


    .help-actions {
        flex-direction: column;
        align-items: flex-start;
    }


    .quick-links-grid {
        grid-template-columns: 1fr;
    }


    .quick-link-card:last-child {
        grid-column: auto;
    }


    .quick-link-card {
        min-height: 230px;
    }

}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 520px) {

    .faq-hero {
        padding:
            115px 0 80px;
    }


    .breadcrumb {
        margin-bottom: 22px;

        font-size: 0.74rem;
    }


    .breadcrumb span:last-child {
        max-width: 160px;

        overflow: hidden;

        text-overflow: ellipsis;

        white-space: nowrap;
    }


    .faq-hero h1 {
        font-size: 2.55rem;
    }


    .faq-hero-text p {
        font-size: 0.88rem;
    }


    .faq-search-box > i {
        margin-right: 10px;
    }


    .faq-search-box input {
        font-size: 0.8rem;
    }


    .faq-group-heading h2 {
        font-size: 2rem;
    }


    .faq-question {
        grid-template-columns:
            1fr
            34px;

        padding: 16px;
    }


    .question-number {
        display: none;
    }


    .faq-answer-content {
        padding:
            0
            18px
            22px
            18px;
    }


    .faq-item:hover {
        transform: none;
    }


    .faq-help-section {
        padding: 25px 0;
    }


    .faq-help-wrapper {
        padding: 42px 23px;
    }


    .help-content h2 {
        font-size: 2.15rem;
    }


    .help-content p {
        font-size: 0.9rem;
    }


    .quick-link-card {
        min-height: 210px;

        padding: 27px;
    }


    .faq-quick-links {
        padding:
            75px 0;
    }

}


/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}