﻿body {
}

:root {
    --primary-color: #2563EB;
    --secondary-color: #7C3AED;
    --accent-color: #06B6D4;
    --primary-gradient: linear-gradient(135deg, #069191 0%, #3aa3ed 100%);
    --secondary-gradient: linear-gradient(135deg, #069191 0%, #3aa3ed 100%);
    --accent-gradient: linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-text: #e2e8f0;
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --font-family: 'Poppins', sans-serif;
}

[data-theme="dark"] {
    --bg-color: var(--dark-bg);
    --card-bg: var(--dark-card);
    --text-color: var(--dark-text);
    --text-muted: #94a3b8;
    --border-color: #334155;
}

[data-theme="light"] {
    --bg-color: var(--light-bg);
    --card-bg: var(--light-card);
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.faq-page-wrapper {
    font-family: var(--font-family);
    background: var(--bg-color, var(--light-bg));
    color: var(--text-color, #1e293b);
}

/* ── HERO ── */
.faq-hero {
    /*background: var(--dark-bg);*/
    padding: 88px 20px 76px;
    position: relative;
    overflow: hidden;
}

    .faq-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--primary-gradient);
        opacity: 0.18;
    }

/* animated mesh blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
    width: 420px;
    height: 420px;
    background: var(--primary-color);
    top: -120px;
    left: -80px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 320px;
    height: 320px;
    background: var(--secondary-color);
    bottom: -80px;
    right: 10%;
    animation-delay: 3s;
}

.hero-blob-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 20%;
    right: 25%;
    animation-delay: 5s;
}

@@keyframes blobFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-24px) scale(1.06);
    }
}

/* dot grid */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: heroIn 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

@@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(37,99,235,0.18);
    border: 1px solid rgba(37,99,235,0.35);
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

    .hero-badge span {
        font-size: 0.85rem;
    }

.faq-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

    .faq-hero h1 .gradient-text {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.faq-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    font-weight: 300;
    max-width: 460px;
    margin: 0 auto;
}

/* ── SECTION ── */
.faq-section {
    padding: 60px 20px 80px;
    background: var(--bg-color, var(--light-bg));
}

.faq-container {
    max-width: 90%;
    margin: 0 auto;
}

/* ── SEARCH ── */
.faq-search-wrap {
    position: relative;
    margin-bottom: 40px;
    animation: fadeUp 0.5s 0.15s cubic-bezier(0.22,1,0.36,1) both;
}

    .faq-search-wrap input {
        width: 100%;
        padding: 15px 52px 15px 22px;
        border: 2px solid var(--border-color);
        border-radius: 50px;
        background: var(--card-bg, #fff);
        font-family: var(--font-family);
        font-size: 0.93rem;
        color: var(--text-color, #1e293b);
        outline: none;
        transition: var(--transition);
        box-shadow: var(--shadow-sm);
    }

        .faq-search-wrap input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
        }

        .faq-search-wrap input::placeholder {
            color: var(--text-muted);
        }

.search-ico {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
}

/* ── FAQ CARDS ── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--card-bg, #fff);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
    animation: fadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

    .faq-item:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .faq-item.open {
        border-color: rgba(37,99,235,0.3);
        box-shadow: 0 4px 20px rgba(37,99,235,0.10);
    }

    .faq-item.hidden {
        display: none;
    }

    .faq-item:nth-child(1) {
        animation-delay: 0.04s;
    }

    .faq-item:nth-child(2) {
        animation-delay: 0.08s;
    }

    .faq-item:nth-child(3) {
        animation-delay: 0.12s;
    }

    .faq-item:nth-child(4) {
        animation-delay: 0.16s;
    }

    .faq-item:nth-child(5) {
        animation-delay: 0.20s;
    }

    .faq-item:nth-child(6) {
        animation-delay: 0.24s;
    }

    .faq-item:nth-child(7) {
        animation-delay: 0.28s;
    }

    .faq-item:nth-child(8) {
        animation-delay: 0.32s;
    }

    .faq-item:nth-child(9) {
        animation-delay: 0.36s;
    }

    .faq-item:nth-child(10) {
        animation-delay: 0.40s;
    }

    .faq-item:nth-child(11) {
        animation-delay: 0.44s;
    }

    .faq-item:nth-child(12) {
        animation-delay: 0.48s;
    }

    .faq-item:nth-child(13) {
        animation-delay: 0.52s;
    }

    .faq-item:nth-child(14) {
        animation-delay: 0.56s;
    }

    .faq-item:nth-child(15) {
        animation-delay: 0.60s;
    }

    .faq-item:nth-child(16) {
        animation-delay: 0.64s;
    }

@@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-family);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text-color, #1e293b);
    transition: background 0.2s;
}

    .faq-question:hover {
        background: rgba(37,99,235,0.04);
    }

.faq-item.open .faq-question {
    background: rgba(37,99,235,0.05);
}

.q-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.open .q-num {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.q-text {
    flex: 1;
    line-height: 1.5;
}

.q-toggle {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.3s, border-color 0.3s, color 0.3s;
}

.faq-item.open .q-toggle {
    transform: rotate(45deg);
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.open .faq-answer {
    max-height: 400px;
}

.faq-answer-inner {
    padding: 14px 20px 20px 68px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* ── CTA CARD ── */
.faq-cta {
    margin-top: 52px;
    border-radius: 18px;
    padding: 48px 32px;
    text-align: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s 0.7s cubic-bezier(0.22,1,0.36,1) both;
}

    .faq-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--primary-gradient);
        opacity: 0.15;
    }

.cta-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--secondary-color);
    filter: blur(90px);
    opacity: 0.15;
    top: -80px;
    right: -60px;
    pointer-events: none;
}

.faq-cta h4 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
}

.faq-cta p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 28px;
    position: relative;
}

.btn-primary-grad {
    display: inline-block;
    padding: 13px 34px;
    background: var(--primary-gradient);
    color: #fff;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 18px rgba(37,99,235,0.35);
}

    .btn-primary-grad:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 28px rgba(37,99,235,0.5);
        color: #fff;
        text-decoration: none;
    }

/* ── ACCENT LINE top of open card ── */
.faq-item.open::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 14px 14px 0 0;
}

/* ── NO RESULTS ── */
.no-results {
    display: none;
    text-align: center;
    padding: 52px 0;
    color: var(--text-muted);
    font-size: 0.93rem;
}

    .no-results .ico {
        font-size: 2.4rem;
        display: block;
        margin-bottom: 10px;
    }
