/* ── FAQ Elementor Pro — Modern UI ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --faq-accent:       #0073aa;
    --faq-accent-light: #e8f4fb;
    --faq-radius:       14px;
    --faq-gap:          10px;
    --faq-font:         'Montserrat', sans-serif;
}

.faq-ep-wrap {
    width: 100%;
    font-family: var(--faq-font);
    font-size: 17px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.faq-ep-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 64px 32px 56px;
    border-radius: 20px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    isolation: isolate;
}

/* subtle animated blob */
.faq-ep-hero::before {
    content: '';
    position: absolute;
    inset: -60px;
    background: radial-gradient(ellipse at 30% 40%, rgba(120,80,255,.35) 0%, transparent 60%),
                radial-gradient(ellipse at 75% 70%, rgba(0,180,255,.25) 0%, transparent 55%);
    animation: faq-blob 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes faq-blob {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.08) rotate(4deg); }
}

.faq-ep-hero h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.2;
}

.faq-ep-hero p {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    margin: 0 0 32px;
}

.faq-ep-hero .faq-search {
    max-width: 540px;
    margin: 0 auto;
}

.faq-ep-hero .faq-search input {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.faq-ep-hero .faq-search input::placeholder { color: rgba(255,255,255,.5); }

.faq-ep-hero .faq-search input:focus {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.5);
    box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

/* ── Search ────────────────────────────────────────────────────────────────── */
.faq-search {
    position: relative;
    margin-bottom: 28px;
}

.faq-search input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    font-size: 15px;
    font-family: var(--faq-font);
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #1a202c;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    letter-spacing: -.01em;
}

.faq-search input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.faq-search input:focus {
    border-color: var(--faq-accent);
    box-shadow: 0 0 0 4px rgba(0,115,170,.1), 0 2px 8px rgba(0,0,0,.06);
}

.faq-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}

.faq-search:focus-within .faq-search-icon {
    color: var(--faq-accent);
}

.faq-search-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Category Cards ────────────────────────────────────────────────────────── */
.faq-ep-wrap[data-view="cards"] .faq-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 44px;
}

.faq-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: transform .22s cubic-bezier(.34,1.56,.64,1),
                box-shadow .22s ease,
                border-color .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,.1);
    border-color: #c7d8e8;
}

.faq-card.active {
    border-color: var(--faq-accent);
    box-shadow: 0 0 0 4px rgba(0,115,170,.1), 0 8px 24px rgba(0,0,0,.08);
}

.faq-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--faq-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: transform .2s;
}

.faq-card:hover .faq-card-icon { transform: scale(1.1); }

.faq-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.3;
}

.faq-card-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

/* ── Category Pills ────────────────────────────────────────────────────────── */
.faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.faq-cats button {
    padding: 8px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .18s ease;
    letter-spacing: .01em;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.faq-cats button:hover {
    border-color: var(--faq-accent);
    color: var(--faq-accent);
    background: var(--faq-accent-light);
}

.faq-cats button.active {
    background: var(--faq-accent);
    border-color: var(--faq-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,115,170,.25);
}

/* ── FAQ List ──────────────────────────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--faq-gap);
}

/* ── FAQ Item ──────────────────────────────────────────────────────────────── */
.faq-item {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--faq-radius);
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.faq-item:hover {
    border-color: #c7d8e8;
    box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

.faq-item.faq-open {
    border-color: var(--faq-accent);
    box-shadow: 0 4px 20px rgba(0,115,170,.1);
}

.faq-item.faq-hidden { display: none; }

/* ── Question ──────────────────────────────────────────────────────────────── */
.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
    font-family: inherit;
}

.faq-question:hover { background: #f8fafc; }

/* ── Icon ──────────────────────────────────────────────────────────────────── */
.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--faq-accent-light);
    color: var(--faq-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1),
                background .2s, color .2s;
}

.faq-icon::before { content: attr(data-open); }

.faq-item.faq-open .faq-icon {
    transform: rotate(45deg);
    background: var(--faq-accent);
    color: #fff;
}

.faq-item.faq-open .faq-icon::before { content: attr(data-close); }

/* arrow style — no rotation trick, just rotate the char */
.faq-icon[data-open="›"] { font-size: 20px; }

.faq-item.faq-open .faq-icon[data-open="›"] {
    transform: rotate(90deg);
    background: var(--faq-accent);
    color: #fff;
}

/* ── Title ─────────────────────────────────────────────────────────────────── */
.faq-title {
    font-size: 20px;
    font-weight: 600;
    font-family: var(--faq-font);
    color: #1a202c;
    line-height: 1.4;
    flex: 1;
    transition: color .2s;
    letter-spacing: -.02em;
}

.faq-item.faq-open .faq-title { color: var(--faq-accent); }

/* ── Icon right ────────────────────────────────────────────────────────────── */
.faq-question.icon-right .faq-icon  { margin-left: auto; order: 2; }
.faq-question.icon-right .faq-title { order: 1; }

/* ── Answer ────────────────────────────────────────────────────────────────── */
.faq-answer {
    display: block;
    padding: 0 22px;
    background: #f8fafc;
    border-top: 0px solid #e2e8f0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1),
                padding .3s ease,
                border-top-width .2s;
}

.faq-item.faq-open .faq-answer {
    max-height: 2000px;
    padding-top: 16px;
    padding-bottom: 22px;
    border-top-width: 1.5px;
}

.faq-answer p {
    margin: 0 0 12px;
    line-height: 1.75;
    color: #475569;
    font-size: 17px;
    font-family: var(--faq-font);
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
    margin: 0 0 12px;
    color: #475569;
    font-size: 17px;
    font-family: var(--faq-font);
}

.faq-answer a {
    color: var(--faq-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── List layout ───────────────────────────────────────────────────────────── */
.faq-ep-wrap[data-layout="list"] .faq-answer {
    max-height: none !important;
    padding-top: 16px !important;
    padding-bottom: 22px !important;
    border-top-width: 1.5px !important;
}

.faq-ep-wrap[data-layout="list"] .faq-icon     { display: none; }
.faq-ep-wrap[data-layout="list"] .faq-question { cursor: default; }

/* ── Section heading ───────────────────────────────────────────────────────── */
.faq-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #94a3b8;
    margin: 36px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e2e8f0;
}

.faq-section-title:first-child { margin-top: 0; }

/* ── Empty ─────────────────────────────────────────────────────────────────── */
.faq-empty {
    text-align: center;
    color: #94a3b8;
    padding: 48px 20px;
    font-size: 15px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .faq-ep-wrap[data-view="cards"] .faq-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .faq-ep-hero { padding: 40px 20px 36px; }

    .faq-ep-wrap[data-view="cards"] .faq-cards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .faq-question { padding: 16px 18px; gap: 12px; }
    .faq-title    { font-size: 14px; }
    .faq-answer   { padding-left: 18px; padding-right: 18px; }
    .faq-cats button { font-size: 12px; padding: 7px 14px; }
}
