/* =========================
   TUTORIAL PAGE
========================= */
.tutorial-page h1{
    font-weight:900;
    margin-bottom:6px;
    color:var(--text-main);
}

.tutorial-subtitle{
    font-size:13px;
    line-height:1.6;
    color:var(--text-soft);
    margin-bottom:24px;
}



/* =========================
   VIDEO
========================= */
.video-wrapper{
    position:relative;
    padding-top:56.25%;
    border-radius:18px;
    overflow:hidden;
    background:linear-gradient(
        180deg,
        var(--bg-card),
        var(--bg-card-soft)
    );
    border:1px solid var(--border-soft);
    box-shadow:0 20px 50px rgba(0,0,0,.6);
    margin-bottom:28px;
}

.video-wrapper iframe{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
}



/* =========================
   STEPS
========================= */
.tutorial-steps{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;
    margin-bottom:26px;
}

.step-card{
    padding:18px 16px;
    border-radius:16px;
    background:linear-gradient(
        180deg,
        var(--bg-card),
        var(--bg-card-soft)
    );
    border:1px solid var(--border-soft);
    transition:.25s;
}

.step-card:hover{
    border-color:var(--accent-border);
    transform:translateY(-2px);
}

.step-card h3{
    font-size:14px;
    font-weight:900;
    margin-bottom:6px;
    color:var(--text-main);
}

.step-card p{
    font-size:12px;
    line-height:1.6;
    color:var(--text-soft);
}



/* =========================
   FAQ (Strict Uniform – Final)
========================= */

.faq {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

/* کارت */
.faq-item {
    border-radius: 18px;
    overflow: hidden;
    width: 100%;

    background: linear-gradient(
        180deg,
        var(--bg-card),
        var(--bg-card-soft)
    );

    border: 1px solid var(--border-soft);
    transition: .25s ease;
}

/* هدر سوال – کاملاً یک‌دست */
.faq-question {
    position: relative;

    width: 100%;
    height: 72px;                 /* 🔥 ارتفاع ثابت */

    display: flex;
    align-items: center;

    padding: 0 20px 0 56px;       /* جا برای + در چپ */

    cursor: pointer;

    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    text-align: right;

    background: transparent;
}

/* متن سوال */
.faq-question span:not(.icon) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* دکمه + (کاملاً جدا از متن) */
.faq-question .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    width: 26px;
    height: 26px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: 900;

    color: var(--text-muted);
    background: rgba(255,255,255,.08);

    transition: .25s ease;
}

/* hover */
.faq-question:hover {
    background: rgba(255,255,255,.035);
}

/* جواب */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;

    transition:
        max-height .35s ease,
        padding .25s ease;
}

.faq-answer p {
    margin: 0;
    padding: 14px 0 18px;

    font-size: 13px;
    line-height: 1.9;
    text-align: right;

    color: var(--text-body);
}

/* فعال */
.faq-item.active {
    border-color: var(--accent-border);
    background: linear-gradient(
        180deg,
        rgba(124,140,255,.10),
        var(--bg-card-soft)
    );
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question .icon {
    background: var(--accent-main);
    color: #fff;
    transform: translateY(-50%) rotate(45deg);
}

