/* ==================== آموزش قدم‌به‌قدم (Stepper) ==================== */
.guide-wrap { max-width: 820px; margin-inline: auto; padding: 10px 0 30px; }
.guide-head { text-align: center; margin-bottom: 36px; }
.guide-head h1 { font-size: 1.5rem; margin-bottom: 8px; }
.guide-head p { color: var(--text-muted); margin: 0; }

.guide-steps { position: relative; padding-inline-start: 8px; }
/* خطِ عمودیِ متصل */
.guide-steps::before {
    content: ''; position: absolute; inset-block: 12px; inset-inline-start: 30px;
    width: 3px; border-radius: 3px;
    background: linear-gradient(var(--accent), #7c3aed, #f7ce55);
    opacity: 0.35;
}

.guide-step {
    position: relative; display: flex; gap: 20px; padding-bottom: 34px;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.guide-step.visible { opacity: 1; transform: translateY(0); }
.guide-step:last-child { padding-bottom: 0; }

/* دایره‌ی شماره/آیکون */
.step-marker {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent);
}
.step-marker svg { width: 28px; height: 28px; }
.step-num {
    position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #f7ce55; color: #3a2600; font-size: 0.8rem; font-weight: 800;
    display: grid; place-items: center; border: 2px solid var(--surface);
}

.step-body {
    flex: 1; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.step-body h3 { font-size: 1.15rem; margin: 0 0 10px; }
.step-body p { line-height: 2; margin: 0; color: var(--text); text-align: justify; text-align-last: right; }

/* مرحله‌ی پایانی: دکمه‌ها */
.step-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

@media (max-width: 560px) {
    .guide-steps::before { inset-inline-start: 24px; }
    .step-marker { width: 48px; height: 48px; }
    .step-marker svg { width: 22px; height: 22px; }
    .guide-step { gap: 14px; }
}








/* ==================== آکاردئونِ آموزشِ منبع ==================== */
.src-guide { max-width: 860px; margin-inline: auto; padding: 10px 0 30px; }

.acc-item {
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--surface); margin-bottom: 14px; overflow: hidden;
}
.acc-head {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 18px 20px; cursor: pointer; background: none; border: none;
    font-family: inherit; font-size: 1.12rem; font-weight: 700; color: var(--text); text-align: start;
}
.acc-head .acc-ico {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
}
.acc-head .acc-ico svg { width: 20px; height: 20px; }
.acc-head .acc-arrow { margin-inline-start: auto; transition: transform 0.3s ease; color: var(--text-muted); }
.acc-item.open .acc-arrow { transform: rotate(180deg); }

.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-item.open .acc-body { max-height: 100000px; }
.acc-inner { padding: 4px 22px 22px; }

.acc-inner h4 {
    font-size: 1rem; margin: 18px 0 8px; color: var(--accent);
    display: flex; align-items: center; gap: 8px;
}
.acc-inner h4::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.acc-inner p { line-height: 2; margin: 0 0 10px; color: var(--text); text-align: justify; text-align-last: right; }

/* تصاویر آموزش */
.guide-figure { margin: 14px 0 18px; text-align: center; }
.guide-figure img {
    display: block;
    margin-inline: auto;          /* وسط‌چینِ قطعی */
    max-width: 100%; max-height: 420px; width: auto; height: auto;
    border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.guide-figure figcaption { text-align: center; margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); }

/* جای‌گاهِ خالیِ عکس (تا وقتی عکس نذاشتی) */
.img-placeholder {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 40px 20px; color: var(--text-muted); font-size: 0.88rem;
    background: var(--surface-2);
}

/* یادداشت مهم داخل آموزش */
.guide-tip {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
    border-radius: var(--radius); padding: 12px 16px; margin: 12px 0; line-height: 2;
}
.guide-tip.warn {
    background: color-mix(in srgb, #f59e0b 10%, transparent);
    border-color: color-mix(in srgb, #f59e0b 30%, var(--border)); color: #b45309;
}
.guide-tg { color: var(--accent); font-weight: 700; }