/* استایل آموزش تصویری */

.tut-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; margin: 24px 0 8px; }
.tut-layout__side { position: sticky; top: 90px; }
@media (max-width: 900px) {
  .tut-layout { grid-template-columns: 1fr; }
  .tut-layout__side { position: static; }
}

.tut-toc { position: sticky; top: 90px; border: 1px solid var(--line, #e3e1da); border-radius: 16px; padding: 16px 18px; background: var(--surface, #fff); }
.tut-toc__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.tut-toc__meta { display: flex; gap: 12px; font-size: .78rem; color: var(--muted, #7a8486); }
.tut-toc ol { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 7px; }
.tut-toc a { font-size: .9rem; color: var(--ink, #14181a); text-decoration: none; }
.tut-toc a:hover, .tut-toc a.is-active { color: var(--brand, #2f7b88); font-weight: 700; }
.tut-badge { display: inline-block; margin-inline-start: 6px; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tut-badge--pending { background: #fff3cd; color: #8a6400; }

.tut-updated { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; color: var(--muted, #5b6366); background: var(--surface-2, rgba(0,0,0,.02)); border: 1px solid var(--line, #e3e1da); border-radius: 12px; padding: 10px 14px; margin: 18px 0 28px; }
.tut-updated svg { flex: none; margin-top: 2px; color: var(--brand, #2f7b88); }
.tut-updated a { color: var(--brand, #2f7b88); font-weight: 700; }

.tut-chapter { margin: 44px 0; scroll-margin-top: 90px; }
.tut-chapter__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.tut-chapter__num { font-size: .78rem; font-weight: 800; color: #fff; background: var(--brand, #2f7b88); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.tut-chapter__intro { margin-bottom: 18px; }

.tut-step { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; margin: 26px 0; padding-bottom: 26px; border-bottom: 1px dashed var(--line, #e3e1da); }
.tut-step:last-child { border-bottom: 0; }
.tut-step__text h3 { margin-top: 0; }
.tut-step__media { position: relative; }
.tut-step__zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line, #e3e1da); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--surface-2, #f7f6f2); position: relative; }
.tut-step__zoom img { display: block; width: 100%; height: auto; }
.tut-step__zoom-ic { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(18,51,59,.72); color: #fff; display: grid; place-items: center; font-size: 1rem; }
.tut-step__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; border: 2px dashed var(--line, #d9d5ca); border-radius: 14px; background: var(--surface-2, #f7f6f2); color: var(--muted, #8c9799); text-align: center; padding: 20px; }
.tut-step__placeholder span { font-size: 2rem; }
.tut-step__placeholder b { font-size: .85rem; font-weight: 700; }

.tut-video { margin: 24px 0; }
.tut-video__frame { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; }
.tut-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-video__transcript { margin-top: 10px; font-size: .88rem; }
.tut-video__transcript summary { cursor: pointer; font-weight: 700; color: var(--brand, #2f7b88); }

.tut-lightbox { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; background: rgba(10,16,18,.92); opacity: 0; visibility: hidden; transition: opacity .2s; padding: 30px; }
.tut-lightbox.is-open { opacity: 1; visibility: visible; }
.tut-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.tut-lightbox__close { position: absolute; top: 18px; inset-inline-end: 22px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.1rem; border: 0; cursor: pointer; }

@media (max-width: 900px) {
  .tut-toc { position: static; }
  .tut-step { grid-template-columns: 1fr; }
}
