@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

.isf-wrap *,
.isf-wrap *::before,
.isf-wrap *::after { box-sizing: border-box; }

.isf-wrap {
    --c-bg:      #0d1117;
    --c-surface: #161b22;
    --c-border:  #21262d;
    --c-accent:  #2f80ed;
    --c-accent2: #56ccf2;
    --c-text:    #e6edf3;
    --c-muted:   #8b949e;
    --c-success: #3fb950;

    font-family: 'DM Sans', sans-serif;
    max-width: 820px;
    margin: 48px auto;
    color: var(--c-text);
}

/* ── Header ── */
.isf-header {
    text-align: center;
    margin-bottom: 40px;
}
.isf-badge {
    display: inline-block;
    background: rgba(47,128,237,.15);
    border: 1px solid rgba(47,128,237,.4);
    color: var(--c-accent2);
    font-family: 'Syne', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.isf-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--c-text);
    line-height: 1.2;
}
.isf-header p {
    color: var(--c-muted);
    font-size: .95rem;
    margin: 0;
}
.isf-header a {
    color: var(--c-accent2);
    text-decoration: none;
}
.isf-header a:hover { text-decoration: underline; }

/* ── List ── */
.isf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

/* ── Item ── */
.isf-item {
    background: var(--c-surface);
    border: 1.5px solid var(--c-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .25s;
}
.isf-item:hover {
    border-color: rgba(47,128,237,.35);
}
.isf-item.isf-open {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 1px rgba(47,128,237,.2), 0 8px 32px rgba(0,0,0,.3);
}

/* ── Question button ── */
.isf-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--c-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background .2s;
}
.isf-question:hover { background: rgba(255,255,255,.03); }

.isf-q-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(47,128,237,.15);
    color: var(--c-accent2);
    font-family: 'Syne', sans-serif;
    font-size: .8rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    letter-spacing: 0;
}
.isf-item.isf-open .isf-q-icon {
    background: var(--c-accent);
    color: #fff;
}

.isf-q-text { flex: 1; }

.isf-chevron {
    flex-shrink: 0;
    color: var(--c-muted);
    transition: transform .3s cubic-bezier(.4,0,.2,1), color .2s;
    display: flex;
}
.isf-item.isf-open .isf-chevron {
    transform: rotate(180deg);
    color: var(--c-accent);
}

/* ── Answer ── */
.isf-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.isf-answer:not([hidden]) {
    max-height: 600px;
}
/* Override hidden attr for animation */
.isf-answer[hidden] {
    display: block !important;
    max-height: 0;
    visibility: hidden;
}
.isf-answer:not([hidden]) {
    visibility: visible;
}

.isf-answer-inner {
    display: flex;
    gap: 16px;
    padding: 0 24px 22px;
    border-top: 1px solid var(--c-border);
    padding-top: 18px;
}
.isf-a-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(63,185,80,.12);
    color: var(--c-success);
    font-family: 'Syne', sans-serif;
    font-size: .8rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.isf-answer-inner p {
    margin: 0;
    color: var(--c-muted);
    font-size: .93rem;
    line-height: 1.75;
}

/* ── CTA ── */
.isf-cta {
    text-align: center;
    padding: 28px;
    background: linear-gradient(135deg, rgba(47,128,237,.08), rgba(86,204,242,.04));
    border: 1.5px solid rgba(47,128,237,.2);
    border-radius: 14px;
}
.isf-cta p {
    margin: 0 0 14px;
    color: var(--c-muted);
    font-size: .95rem;
}
.isf-cta strong { color: var(--c-text); }
.isf-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--c-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: .93rem;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(47,128,237,.35);
}
.isf-cta-btn:hover {
    background: #1a6fd4;
    transform: translateY(-1px);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .isf-header h2  { font-size: 1.5rem; }
    .isf-question   { padding: 16px 18px; font-size: .93rem; }
    .isf-answer-inner { padding: 14px 18px 18px; gap: 12px; }
}
