/* Rasta Academy — صفحه‌ی دوره */

.rasta-sc { direction: rtl; color: var(--t-ink); font-family: var(--rasta-font, inherit); }
.rasta-sc *, .rasta-sc *::before, .rasta-sc *::after { box-sizing: border-box; }
.rasta-sc a { text-decoration: none; }

/* ================= هیرو ================= */
.rasta-sc__hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(26px, 4vw, 56px); margin-top: 14px; padding: clamp(24px, 3.6vw, 48px); overflow: hidden; border: 1px solid rgba(220, 230, 255, .9); border-radius: 36px; background: radial-gradient(55% 75% at 15% 40%, rgba(47, 107, 255, .12), transparent 62%), linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%); box-shadow: 0 40px 80px -60px rgba(47, 107, 255, .5); isolation: isolate; }
.rasta-sc__hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(47, 107, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 107, 255, .07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(50% 70% at 15% 50%, #000 0%, transparent 100%); mask-image: radial-gradient(50% 70% at 15% 50%, #000 0%, transparent 100%); }
.rasta-sc__hero-text { min-width: 0; }

.rasta-sc__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--t-muted); font-size: 12.5px; line-height: 1.8; }
.rasta-sc__crumbs a, .rasta-sc__crumbs a:visited { display: inline-flex; align-items: center; gap: 5px; color: var(--t-muted); transition: color .2s ease; }
.rasta-sc__crumbs a:hover { color: var(--t-blue); }
.rasta-sc__crumbs svg { width: 14px; height: 14px; }
.rasta-sc__crumbs > span[aria-hidden] { color: #C0C7D6; }
.rasta-sc__crumbs .is-current { max-width: 260px; overflow: hidden; color: var(--t-ink-2); text-overflow: ellipsis; white-space: nowrap; }

.rasta-sc__title { margin: 14px 0 12px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: clamp(24px, 2.8vw, 38px); font-weight: 700; line-height: 1.55; letter-spacing: -.2px; text-transform: none; }
.rasta-sc__lead { color: var(--t-muted); font-size: 15px; line-height: 2.1; }
.rasta-sc__lead p { margin: 0 0 8px; }
.rasta-sc__lead p:last-child { margin-bottom: 0; }

.rasta-sc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.rasta-sc__chip, .rasta-sc__chip:visited { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 12px; border: 1px solid var(--t-line); border-radius: 14px; background: #fff; color: var(--t-ink-2); font-size: 13px; line-height: 1.6; box-shadow: 0 10px 24px -20px rgba(16, 24, 40, .4); }
.rasta-sc__chip svg { width: 16px; height: 16px; color: var(--t-blue); }
.rasta-sc__chip small { color: var(--t-muted); font-size: 11.5px; }
.rasta-sc__chip--teacher { padding-inline-start: 4px; transition: border-color .2s ease; }
.rasta-sc__chip--teacher:hover { border-color: var(--t-blue-100); }
.rasta-sc__chip--teacher img { width: 30px; height: 30px; max-width: none; margin: 0; border-radius: 10px; object-fit: cover; }
.rasta-sc__chip--teacher span { display: block; color: var(--t-ink); font-weight: 600; line-height: 1.35; }
.rasta-sc__chip--teacher small { display: block; font-weight: 400; }
.rasta-sc__chip--star svg { color: #F5B301; }

.rasta-sc__production { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 16px; background: #fff; }
.rasta-sc__production-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--t-ink-2); font-size: 13px; }
.rasta-sc__production-top span { display: inline-flex; align-items: center; gap: 7px; }
.rasta-sc__production-top svg { width: 17px; height: 17px; color: var(--t-blue); }
.rasta-sc__production-top b { color: var(--t-blue); font-weight: 600; }
.rasta-sc__production-bar { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: var(--t-blue-50); }
.rasta-sc__production-bar i { display: block; height: 100%; border-radius: 999px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px), linear-gradient(to left, var(--t-blue), #8DB2FF); background-size: 17px 17px, 100% 100%; animation: rastaStripe 1s linear infinite; }
@keyframes rastaStripe { to { background-position: 17px 0, 0 0; } }

/* ویدیوی معرفی */
.rasta-sc__media { min-width: 0; }
.rasta-sc__video, .rasta-sc__video:hover, .rasta-sc__video:focus { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; margin: 0; padding: 0; overflow: hidden; border: 8px solid #fff; border-radius: 28px; background: #0B1220; box-shadow: 0 40px 70px -40px rgba(16, 24, 40, .6), 0 0 0 1px rgba(16, 24, 40, .04); color: #fff; font: inherit; cursor: pointer; }
.rasta-sc__video.is-image { cursor: default; }
.rasta-sc__video img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: cover; transition: transform .9s var(--t-ease); }
.rasta-sc__video:not(.is-image)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 18, 32, .65), rgba(11, 18, 32, 0) 55%); pointer-events: none; }
.rasta-sc__video:not(.is-image):hover img { transform: scale(1.04); }
.rasta-sc__play { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--t-blue); box-shadow: 0 18px 34px -14px rgba(11, 18, 32, .6); transform: translate(-50%, -50%); transition: transform .4s var(--t-ease); }
.rasta-sc__play::before { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; animation: rastaScRing 2.6s ease-out infinite; }
.rasta-sc__play svg { width: 26px; height: 26px; transform: translateX(2px); }
.rasta-sc__video:hover .rasta-sc__play { transform: translate(-50%, -50%) scale(1.08); }
.rasta-sc__video-label { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(11, 18, 32, .5); color: #fff; font-size: 12.5px; line-height: 1.8; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rasta-sc__video-label svg { width: 16px; height: 16px; }
@keyframes rastaScRing { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }

/* ================= چیدمان ================= */
.rasta-sc__layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; margin-top: 28px; }
.rasta-sc__main { grid-row: 1; grid-column: 1; min-width: 0; }
.rasta-sc__aside { position: sticky; top: 20px; grid-row: 1; grid-column: 2; min-width: 0; }
.admin-bar .rasta-sc__aside { top: 52px; }

/* ================= باکس خرید ================= */
.rasta-buy { position: relative; padding: 22px; overflow: hidden; border: 1px solid var(--t-line); border-radius: 28px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 30px 60px -40px rgba(16, 24, 40, .35); }
.rasta-buy::before { content: ""; position: absolute; top: 0; right: 28px; left: 28px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(to left, var(--t-blue), #8DB2FF); }
.rasta-buy__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rasta-buy__label { color: var(--t-muted); font-size: 13px; line-height: 2; }
.rasta-buy__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.rasta-buy__price b { color: var(--t-ink); font-size: 26px; font-weight: 700; white-space: nowrap; }
.rasta-buy__price small { margin-inline-start: 4px; color: var(--t-muted); font-size: 12px; font-weight: 400; }
.rasta-buy__price.is-free b { color: #9C6B22; }
.rasta-buy__old { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rasta-buy__old del { color: #98A2B3; font-size: 13.5px; }
.rasta-buy__old em { padding: 0 8px; border-radius: 999px; background: #FEE4E2; color: #B42318; font-size: 11.5px; font-style: normal; font-weight: 600; line-height: 1.9; }

.rasta-buy__status { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 18px; }
.rasta-buy__status > svg { flex: 0 0 26px; width: 26px; height: 26px; }
.rasta-buy__status b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.6; }
.rasta-buy__status small { display: block; font-size: 12px; line-height: 1.6; opacity: .8; }
.rasta-buy__status.is-student { background: #ECFDF3; color: #067647; }
.rasta-buy__status.is-free { background: linear-gradient(135deg, #FFF6E2, #FBE9C4); color: #5A3B00; }

.rasta-buy__progress.rasta-ui { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 12px; border-radius: 18px; background: var(--t-soft); }
.rasta-buy__progress b { display: block; color: var(--t-ink); font-size: 14px; font-weight: 600; }
.rasta-buy__progress small { display: block; color: var(--t-muted); font-size: 12px; }

.rasta-sc .rasta-buy__btn, .rasta-sc .rasta-buy__btn:visited, .rasta-sc .rasta-buy__btn:hover, .rasta-sc .rasta-buy__btn:focus { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 54px; margin: 0; padding: 0 18px; border: 0; border-radius: 16px; background: var(--t-blue); color: #fff; box-shadow: 0 18px 32px -18px rgba(47, 107, 255, .9); font: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-transform: none; cursor: pointer; transition: background .3s ease, transform .3s var(--t-ease), box-shadow .3s ease; }
.rasta-sc .rasta-buy__btn:hover { background: var(--t-blue-600); transform: translateY(-2px); }
.rasta-sc .rasta-buy__btn .rasta-ccard__cta-icon { display: grid; place-items: center; width: 20px; height: 20px; }
.rasta-sc .rasta-buy__btn svg { width: 20px; height: 20px; }
.rasta-sc .rasta-buy__btn.is-incart { background: var(--t-ink); box-shadow: 0 18px 32px -18px rgba(11, 18, 32, .8); }
.rasta-sc .rasta-buy__btn.is-incart:hover { background: var(--t-blue); }
.rasta-sc .rasta-buy__btn.is-soon { background: var(--t-soft); color: var(--t-muted); box-shadow: none; cursor: default; transform: none; }
.rasta-sc .rasta-buy__btn.is-free, .rasta-sc .rasta-buy__btn.is-free:hover { background: linear-gradient(135deg, #F3D48C, #D9A84E); color: #3D2800; box-shadow: 0 18px 32px -18px rgba(176, 125, 44, .9); }
.rasta-sc .rasta-buy__btn.is-loading { pointer-events: none; }
.rasta-sc .rasta-buy__btn.is-loading .rasta-ccard__cta-icon svg { display: none; }
.rasta-sc .rasta-buy__btn.is-loading .rasta-ccard__cta-icon::before { content: ""; width: 18px; height: 18px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: rastaScSpin .7s linear infinite; }
@keyframes rastaScSpin { to { transform: rotate(360deg); } }

.rasta-buy__includes { display: grid; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; }
.rasta-buy__includes li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px dashed var(--t-line); color: var(--t-ink-2); font-size: 13.5px; line-height: 1.7; }
.rasta-buy__includes li:last-child { border-bottom: 0; }
.rasta-buy__includes li::before, .rasta-buy__includes li::marker { content: none; }
.rasta-buy__includes svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--t-blue); }

.rasta-buy__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--t-line); }
.rasta-buy__foot > span { display: inline-flex; gap: 12px; }
.rasta-buy__foot i { display: inline-flex; align-items: center; gap: 4px; color: var(--t-muted); font-size: 12.5px; font-style: normal; }
.rasta-buy__foot i svg { width: 15px; height: 15px; }
.rasta-sc .rasta-buy__share, .rasta-sc .rasta-buy__share:hover, .rasta-sc .rasta-buy__share:focus { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border: 1px solid var(--t-line); border-radius: 12px; background: #fff; color: var(--t-ink-2); box-shadow: none; font: inherit; font-size: 12.5px; line-height: 1.5; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.rasta-sc .rasta-buy__share:hover { border-color: var(--t-blue); color: var(--t-blue); }
.rasta-sc .rasta-buy__share.is-done { border-color: #12B76A; color: #067647; }
.rasta-sc .rasta-buy__share svg { width: 15px; height: 15px; }

/* ================= تب‌ها ================= */
.rasta-sc__tabs { position: sticky; top: 12px; z-index: 5; display: flex; gap: 6px; padding: 6px; overflow-x: auto; border: 1px solid var(--t-line); border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 16px 34px -26px rgba(16, 24, 40, .45); scrollbar-width: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.admin-bar .rasta-sc__tabs { top: 44px; }
.rasta-sc__tabs::-webkit-scrollbar { display: none; }
.rasta-sc__tabs a, .rasta-sc__tabs a:visited { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border-radius: 14px; color: var(--t-ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.rasta-sc__tabs a:hover { color: var(--t-blue); }
.rasta-sc__tabs a.is-active { background: var(--t-blue-50); color: var(--t-blue); }

/* ================= بخش‌ها ================= */
.rasta-sc__block { margin-top: 20px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--t-line); border-radius: 28px; background: #fff; scroll-margin-top: 90px; }
.rasta-sc__block--lessons { padding: 0; border: 0; background: none; }
.rasta-sc__block--lessons .rasta-ui.rasta-course { margin: 0; }
.rasta-sc__h { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1.6; letter-spacing: 0; text-transform: none; }
.rasta-sc__h i { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--t-blue-50); color: var(--t-blue); font-style: normal; }
.rasta-sc__h svg { width: 19px; height: 19px; }
.rasta-sc__empty { margin: 0; padding: 20px; border: 1px solid var(--t-line); border-radius: 20px; background: #fff; color: var(--t-muted); text-align: center; }

/* ویژگی‌ها */
.rasta-sc__features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.rasta-sc__features li { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-soft); }
.rasta-sc__features li::before, .rasta-sc__features li::marker { content: none; }
.rasta-sc__features i { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--t-blue); font-style: normal; box-shadow: 0 8px 18px -12px rgba(47, 107, 255, .6); }
.rasta-sc__features svg { width: 19px; height: 19px; }
.rasta-sc__features span { min-width: 0; }
.rasta-sc__features small { display: block; color: var(--t-muted); font-size: 12px; line-height: 1.6; }
.rasta-sc__features b { display: block; color: var(--t-ink); font-size: 14px; font-weight: 600; line-height: 1.7; }

/* توضیحات */
.rasta-sc__desc { position: relative; margin-top: 24px; }
.rasta-sc__features + .rasta-sc__desc { padding-top: 24px; border-top: 1px solid var(--t-line); }
.rasta-sc__desc-inner { color: var(--t-ink-2); font-size: 15px; line-height: 2.2; }
.rasta-sc__desc-inner > *:first-child { margin-top: 0; }
.rasta-sc__desc-inner p { margin: 0 0 14px; }
.rasta-sc__desc-inner h2, .rasta-sc__desc-inner h3, .rasta-sc__desc-inner h4 { margin: 26px 0 10px; color: var(--t-ink); font-family: inherit; font-weight: 700; line-height: 1.6; }
.rasta-sc__desc-inner h2 { font-size: 20px; }
.rasta-sc__desc-inner h3 { font-size: 17px; }
.rasta-sc__desc-inner h4 { font-size: 15.5px; }
.rasta-sc__desc-inner ul, .rasta-sc__desc-inner ol { margin: 0 0 14px; padding-inline-start: 22px; }
.rasta-sc__desc-inner li { margin-bottom: 6px; }
.rasta-sc__desc-inner a { color: var(--t-blue); text-decoration: underline; text-underline-offset: 3px; }
.rasta-sc__desc-inner img { max-width: 100%; height: auto; border-radius: 18px; }
.rasta-sc__desc-inner iframe, .rasta-sc__desc-inner video { max-width: 100%; border-radius: 18px; }
.rasta-sc__desc-inner blockquote { margin: 18px 0; padding: 14px 18px; border-inline-start: 3px solid var(--t-blue); border-radius: 14px; background: var(--t-soft); color: var(--t-ink); }
.rasta-sc__desc.is-collapsible:not(.is-open) .rasta-sc__desc-inner { max-height: 460px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.rasta-sc .rasta-sc__more, .rasta-sc .rasta-sc__more:hover, .rasta-sc .rasta-sc__more:focus { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 10px auto 0; padding: 0 20px; border: 1px solid var(--t-line); border-radius: 999px; background: #fff; color: var(--t-ink-2); box-shadow: none; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.rasta-sc .rasta-sc__more:hover { border-color: var(--t-blue); color: var(--t-blue); }
.rasta-sc .rasta-sc__more[hidden] { display: none; }
.rasta-sc .rasta-sc__more svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .3s ease; }
.rasta-sc__desc.is-open .rasta-sc__more svg { transform: rotate(90deg); }

/* مدرس */
.rasta-sc__teacher { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 22px; }
.rasta-sc__teacher + .rasta-sc__teacher { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--t-line); }
.rasta-sc__teacher-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 24px; background: linear-gradient(135deg, var(--t-blue-100), var(--t-blue-50)); }
.rasta-sc__teacher-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: cover; object-position: center 20%; }
.rasta-sc__teacher-body h3 { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: 20px; font-weight: 700; line-height: 1.6; }
.rasta-sc__verified { display: inline-grid; width: 22px; height: 22px; color: var(--t-blue); }
.rasta-sc__verified svg { width: 22px; height: 22px; }
.rasta-sc__teacher-role { display: inline-block; color: var(--t-blue); font-size: 13px; font-weight: 600; }
.rasta-sc__teacher-body p { margin: 10px 0 0; color: var(--t-muted); font-size: 14px; line-height: 2.1; }
.rasta-sc__teacher-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.rasta-sc__teacher-social { display: flex; flex-wrap: wrap; gap: 8px; }
.rasta-sc__teacher-social a, .rasta-sc__teacher-social a:visited { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--t-line); border-radius: 12px; background: var(--t-soft); color: var(--t-ink-2); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.rasta-sc__teacher-social a:hover { border-color: var(--t-blue); background: var(--t-blue); color: #fff; }
.rasta-sc__teacher-social svg { width: 18px; height: 18px; }
.rasta-sc__teacher-link, .rasta-sc__teacher-link:visited { display: inline-flex; align-items: center; gap: 6px; color: var(--t-blue); font-size: 13.5px; font-weight: 600; }
.rasta-sc__teacher-link svg { width: 16px; height: 16px; transition: transform .3s var(--t-ease); }
.rasta-sc__teacher-link:hover svg { transform: translateX(-3px); }

/* ================= نظرات ================= */
.rasta-sc__reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rasta-sc__reviews-head .rasta-sc__h { margin-bottom: 0; }
.rasta-sc__score { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 16px; background: #FFF8E6; }
.rasta-sc__score > b { color: var(--t-ink); font-size: 26px; font-weight: 700; line-height: 1; }
.rasta-sc__score > span { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; max-width: 110px; color: #F5B301; }
.rasta-sc__score svg { width: 15px; height: 15px; }
.rasta-sc__score small { flex-basis: 100%; color: var(--t-muted); font-size: 11.5px; }

.rasta-sc #reviews { margin: 0; }
.rasta-sc #reviews #comments > h2, .rasta-sc .woocommerce-Reviews-title { display: none; }
.rasta-sc #reviews #comments ol.commentlist { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.rasta-sc #reviews #comments ol.commentlist li { position: static; margin: 0; padding: 0; border: 0; background: none; }
.rasta-sc #reviews #comments ol.commentlist li::before { content: none; }
.rasta-sc #reviews #comments ol.commentlist li .comment_container { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--t-line); border-radius: 20px; background: var(--t-soft); }
.rasta-sc #reviews #comments ol.commentlist li img.avatar { position: static; float: none; flex: 0 0 46px; width: 46px; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #fff; }
.rasta-sc #reviews #comments ol.commentlist li .comment-text { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; }
.rasta-sc #reviews #comments ol.commentlist li .comment-text p.meta { margin: 0 0 6px; color: var(--t-muted); font-size: 12.5px; }
.rasta-sc #reviews #comments ol.commentlist li .comment-text p.meta strong { color: var(--t-ink); font-size: 14px; font-weight: 600; }
.rasta-sc #reviews #comments ol.commentlist li .comment-text .description p { margin: 0; color: var(--t-ink-2); font-size: 14px; line-height: 2; }
.rasta-sc #reviews #comments ol.commentlist li .comment-text .star-rating { float: left; margin: 2px 0 0; }
.rasta-sc #reviews #comments ol.commentlist ul.children { margin: 10px 30px 0 0; padding: 0; list-style: none; }
.rasta-sc #reviews #comments ol.commentlist ul.children .comment_container { background: #fff; }
.rasta-sc .woocommerce-noreviews { margin: 14px 0 0; padding: 16px; border-radius: 18px; background: var(--t-soft); color: var(--t-muted); text-align: center; }
.rasta-sc #review_form_wrapper { margin-top: 20px; }
.rasta-sc #review_form #respond { margin: 0; padding: 20px; border: 1px solid var(--t-line); border-radius: 22px; background: #fff; }
.rasta-sc #review_form #respond .comment-reply-title { display: block; margin-bottom: 12px; color: var(--t-ink); font-size: 16px; font-weight: 600; }
.rasta-sc #review_form #respond p { margin: 0 0 12px; }
.rasta-sc #review_form #respond label { display: block; margin-bottom: 6px; color: var(--t-ink-2); font-size: 13px; font-weight: 600; }
.rasta-sc #review_form #respond input[type="text"], .rasta-sc #review_form #respond input[type="email"], .rasta-sc #review_form #respond textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-soft); color: var(--t-ink); font: inherit; font-size: 14px; transition: border-color .2s ease, background .2s ease; }
.rasta-sc #review_form #respond input:focus, .rasta-sc #review_form #respond textarea:focus { border-color: var(--t-blue); outline: none; background: #fff; }
.rasta-sc #review_form #respond textarea { min-height: 120px; resize: vertical; }
.rasta-sc #review_form #respond .form-submit input#submit { height: 48px; padding: 0 26px; border: 0; border-radius: 14px; background: var(--t-blue); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.rasta-sc #review_form #respond .form-submit input#submit:hover { background: var(--t-blue-600); }
.rasta-sc #review_form #respond p.stars a { color: #F5B301; }

/* ================= دوره‌های مرتبط ================= */
.rasta-sc__related.rasta-courses { margin-top: 48px; }

/* ================= نوار خرید موبایل ================= */
.rasta-sc__bar { display: none; }

/* ================= واکنش‌گرا ================= */
@media (max-width: 1100px) {
    .rasta-sc__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; }
}

@media (max-width: 960px) {
    .rasta-sc__hero { grid-template-columns: minmax(0, 1fr); }
    .rasta-sc__layout { grid-template-columns: minmax(0, 1fr); }
    .rasta-sc__aside, .rasta-sc__main { grid-row: auto; grid-column: auto; }
    .rasta-sc__aside { position: static; }

    .rasta-sc__bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--t-line); background: rgba(255, 255, 255, .96); box-shadow: 0 -16px 34px -24px rgba(16, 24, 40, .5); transform: translateY(110%); transition: transform .4s var(--t-ease); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
    .rasta-sc__bar.is-visible { transform: none; }
    .rasta-sc__bar-price { min-width: 0; }
    .rasta-sc__bar .rasta-buy__price { align-items: flex-start; }
    .rasta-sc__bar .rasta-buy__price b { font-size: 18px; }
    .rasta-sc__bar .rasta-buy__old { margin-bottom: 0; }
    .rasta-sc__bar .rasta-buy__old del { font-size: 12px; }
    .rasta-sc__bar-note { display: inline-flex; align-items: center; gap: 6px; color: #067647; font-size: 13px; font-weight: 600; }
    .rasta-sc__bar-note.is-free { color: #9C6B22; }
    .rasta-sc__bar-note svg { width: 20px; height: 20px; }
    .rasta-sc .rasta-buy__btn.is-compact, .rasta-sc .rasta-buy__btn.is-compact:hover, .rasta-sc .rasta-buy__btn.is-compact:focus { flex: 0 0 auto; width: auto; height: 48px; padding: 0 18px; border-radius: 14px; font-size: 14px; transform: none; }
    body.rasta-bar-on { padding-bottom: 76px; }
}

@media (max-width: 720px) {
    .rasta-sc__hero { margin: 0 -14px; padding: 24px 16px 26px; border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
    .rasta-sc__title { font-size: 24px; }
    .rasta-sc__lead { font-size: 14px; }
    .rasta-sc__chips { gap: 6px; }
    .rasta-sc__chip { min-height: 36px; padding: 3px 10px; font-size: 12.5px; }
    .rasta-sc__video { border-width: 6px; border-radius: 22px; }
    .rasta-sc__play { width: 64px; height: 64px; }
    .rasta-sc__layout { margin-top: 20px; }
    .rasta-buy { padding: 18px; border-radius: 24px; }
    .rasta-sc__tabs { top: 8px; border-radius: 16px; }
    .rasta-sc__tabs a { flex: 0 0 auto; height: 40px; padding: 0 14px; font-size: 13.5px; }
    .rasta-sc__block { padding: 20px 16px; border-radius: 22px; }
    .rasta-sc__h { font-size: 17px; }
    .rasta-sc__features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .rasta-sc__features li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
    .rasta-sc__features i { flex-basis: 34px; width: 34px; height: 34px; }
    .rasta-sc__features b { font-size: 13.5px; }
    .rasta-sc__teacher { grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; text-align: center; }
    .rasta-sc__teacher-photo { width: 120px; }
    .rasta-sc__teacher-body h3 { justify-content: center; }
    .rasta-sc__teacher-foot { flex-direction: column; }
    .rasta-sc #reviews #comments ol.commentlist li .comment_container { padding: 14px 12px; }
}

@media (max-width: 600px) {
    .admin-bar .rasta-sc__tabs { top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .rasta-sc__play::before, .rasta-sc__production-bar i { animation: none; }
    .rasta-sc__video img, .rasta-sc__bar { transition: none; }
}



/* ================= کاور دوره در هیرو ================= */
.rasta-sc__cover { position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; border: 8px solid #fff; border-radius: 30px; background: linear-gradient(135deg, var(--t-blue-100), var(--t-blue-50)); box-shadow: 0 40px 70px -40px rgba(16, 24, 40, .6), 0 0 0 1px rgba(16, 24, 40, .04); transform: rotate(-1.5deg); transition: transform .6s var(--t-ease); }
.rasta-sc__cover:hover { transform: rotate(0); }
.rasta-sc__cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: cover; }
.rasta-sc .rasta-sc__cover-play, .rasta-sc .rasta-sc__cover-play:hover, .rasta-sc .rasta-sc__cover-play:focus { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 5px 16px 5px 5px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; background: rgba(11, 18, 32, .55); color: #fff; box-shadow: 0 14px 30px -14px rgba(11, 18, 32, .7); font: inherit; font-size: 13px; font-weight: 600; line-height: 1.6; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .3s ease; }
.rasta-sc .rasta-sc__cover-play:hover { background: var(--t-blue); }
.rasta-sc__cover-play i { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--t-blue); font-style: normal; }
.rasta-sc__cover-play i::before { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; animation: rastaScRing 2.6s ease-out infinite; }
.rasta-sc__cover-play svg { width: 15px; height: 15px; transform: translateX(1px); }

/* ================= ویدیوی معرفی در بخش «معرفی دوره» ================= */
.rasta-sc__block .rasta-sc__video, .rasta-sc__block .rasta-sc__video:hover, .rasta-sc__block .rasta-sc__video:focus { aspect-ratio: 16 / 9; margin-bottom: 22px; border: 0; border-radius: 22px; box-shadow: 0 30px 60px -40px rgba(16, 24, 40, .6); }

@media (max-width: 720px) {
    .rasta-sc__cover { border-width: 6px; border-radius: 24px; transform: none; }
    .rasta-sc .rasta-sc__cover-play { right: 10px; bottom: 10px; font-size: 12.5px; }
    .rasta-sc__block .rasta-sc__video, .rasta-sc__block .rasta-sc__video:hover, .rasta-sc__block .rasta-sc__video:focus { margin-bottom: 18px; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .rasta-sc__cover { transition: none; }
    .rasta-sc__cover-play i::before { animation: none; }
}




/* ================= موبایل: وسط‌چین ================= */
@media (max-width: 720px) {
    .rasta-sc__hero-text { text-align: center; }
    .rasta-sc__crumbs, .rasta-sc__chips { justify-content: center; }
    .rasta-sc__h { justify-content: center; text-align: center; }
    .rasta-sc__reviews-head { flex-direction: column; justify-content: center; }
    .rasta-buy__top { flex-direction: column; align-items: center; text-align: center; }
    .rasta-buy__top .rasta-buy__price { align-items: center; }
    .rasta-buy__status { justify-content: center; text-align: center; }
    .rasta-buy__progress.rasta-ui { justify-content: center; }
}



/* نوار تب‌های دوره دیگر با اسکرول حرکت نمی‌کند */
.rasta-sc__tabs, .admin-bar .rasta-sc__tabs { position: relative; top: 0; }
.rasta-sc__block { scroll-margin-top: 24px; }