/* main.css — FAQ Page */

/* =========================================
   PAGE LAYOUT
   ========================================= */
.faq-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

/* Background Decoration (Subtle dot grid) */
.faq-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background-image:
        radial-gradient(var(--brand-primary) 0.5px, transparent 0.5px),
        radial-gradient(var(--brand-primary) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    opacity: 0.03;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* =========================================
   PAGE INTRO
   ========================================= */
.page-intro {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.innovative-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 40, 66, 0.04);
    color: var(--brand-primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(33, 40, 66, 0.08);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.innovative-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-primary);
}

.innovative-title {
    font-size: 4rem;
    color: var(--brand-primary);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--brand-primary) 0%, rgba(33, 40, 66, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 16px;
}

.intro-subtitle {
    font-size: 1.15rem;
    color: rgba(33, 40, 66, 0.6);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =========================================
   CATEGORY FILTER TABS
   ========================================= */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.cat-btn {
    border: 1.5px solid rgba(33, 40, 66, 0.1);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(33, 40, 66, 0.6);
    font-family: inherit;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-btn i {
    font-size: 0.85rem;
}

.cat-btn:hover {
    color: var(--brand-primary);
    border-color: rgba(33, 40, 66, 0.25);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cat-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 6px 20px rgba(33, 40, 66, 0.25);
    transform: translateY(-2px);
}

/* =========================================
   FAQ CONTENT LAYOUT
   ========================================= */
.faq-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}



/* =========================================
   FAQ ACCORDION AREA
   ========================================= */
.faq-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-group[data-cat]:not(.visible) {
    display: none;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(33, 40, 66, 0.07);
}

.group-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(33, 40, 66, 0.2);
}

.group-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.group-count {
    margin-left: auto;
    background: rgba(33, 40, 66, 0.05);
    color: rgba(33, 40, 66, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(33, 40, 66, 0.08);
}

/* =========================================
   ACCORDION ITEM
   ========================================= */
.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1.5px solid rgba(33, 40, 66, 0.07);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Gradient border on hover/open */
.faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--brand-primary), #667eea, var(--brand-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.faq-item:hover::before,
.faq-item.open::before {
    opacity: 1;
}

.faq-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.open {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(33, 40, 66, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all var(--transition-base);
}

.q-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(33, 40, 66, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.faq-item.open .q-icon {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 40, 66, 0.2);
}

.faq-question span {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-primary);
    line-height: 1.4;
}

.toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(33, 40, 66, 0.05);
    border: 1px solid rgba(33, 40, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(33, 40, 66, 0.5);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.faq-item.open .toggle-icon {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(33, 40, 66, 0.2);
}

.faq-item:hover .toggle-icon {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 28px 26px 80px;
    font-size: 0.97rem;
    color: rgba(33, 40, 66, 0.7);
    line-height: 1.8;
    border-top: 1px solid rgba(33, 40, 66, 0.06);
    padding-top: 20px;
}

.faq-answer-inner a {
    color: var(--brand-primary);
    font-weight: 600;
    text-underline-offset: 3px;
}

.faq-answer-inner ul {
    margin-top: 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-answer-inner ul li {
    position: relative;
}

/* =========================================
   NO RESULTS
   ========================================= */
.no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.no-results i {
    font-size: 3rem;
    color: rgba(33, 40, 66, 0.15);
    margin-bottom: 20px;
    display: block;
}

.no-results p {
    font-size: 1.1rem;
    color: rgba(33, 40, 66, 0.4);
}

/* =========================================
   REVEAL ANIMATION
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .faq-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .faq-wrapper {
        padding: 130px 16px 60px;
    }

    .innovative-title {
        font-size: 2.8rem;
    }


    .faq-categories {
        gap: 8px;
    }

    .cat-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .faq-answer-inner {
        padding-left: 28px;
    }

    .group-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .innovative-title {
        font-size: 2.2rem;
    }

    .faq-question span {
        font-size: 0.95rem;
    }
}