/* Rasta Academy — ویجت دوره‌ها و کارت دوره */

/* ================= پایه ================= */
.rasta-w { direction: rtl; color: var(--t-ink); font-family: var(--rasta-font, inherit); }
.rasta-w *, .rasta-w *::before, .rasta-w *::after { box-sizing: border-box; }

/* ================= بخش ================= */
.rasta-courses { margin-block: clamp(12px, 2vw, 24px); }
.rasta-courses .rasta-courses__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: 26px; }
.rasta-courses .rasta-courses__intro { min-width: 0; max-width: 640px; }
.rasta-courses .rasta-courses__eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--t-blue); font-size: 13px; font-weight: 600; line-height: 1.6; }
.rasta-courses .rasta-courses__eyebrow i { display: grid; flex: 0 0 30px; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--t-blue-50); color: var(--t-blue); font-style: normal; box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .12); }
.rasta-courses .rasta-courses__eyebrow svg { width: 16px; height: 16px; }
.rasta-courses .rasta-courses__title { margin: 8px 0 6px; padding: 0; color: var(--t-ink); font-family: inherit; font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.rasta-courses .rasta-courses__desc { margin: 0; color: var(--t-muted); font-size: 14.5px; font-weight: 400; line-height: 2; }
.rasta-courses .rasta-courses__tools { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.rasta-courses .rasta-courses__navs { display: flex; gap: 8px; }
.rasta-courses .rasta-courses__nav, .rasta-courses .rasta-courses__nav:hover, .rasta-courses .rasta-courses__nav:focus { display: grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0; border: 1px solid var(--t-line); border-radius: 50%; background: #fff; color: var(--t-ink-2); box-shadow: none; font: inherit; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.rasta-courses .rasta-courses__nav:hover:not(:disabled) { border-color: var(--t-blue); background: var(--t-blue); color: #fff; }
.rasta-courses .rasta-courses__nav:disabled { opacity: .4; cursor: default; }
.rasta-courses .rasta-courses__nav svg { width: 18px; height: 18px; }
.rasta-courses .rasta-courses__all, .rasta-courses .rasta-courses__all:visited { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 1px solid var(--t-line); border-radius: 999px; background: #fff; color: var(--t-ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .2s ease, color .2s ease; }
.rasta-courses .rasta-courses__all:hover { border-color: var(--t-blue); color: var(--t-blue); }
.rasta-courses .rasta-courses__all svg { width: 16px; height: 16px; transition: transform .3s var(--t-ease); }
.rasta-courses .rasta-courses__all:hover svg { transform: translateX(-3px); }

/* ================= ریل اسلایدر ================= */
.rasta-courses .rasta-courses__track { --per: var(--per-d, 4); --gap: 20px; display: flex; gap: var(--gap); margin: -14px -6px -34px; padding: 14px 6px 34px; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; scroll-padding-inline: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rasta-courses .rasta-courses__track > .rasta-ccard { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); }
.rasta-courses .rasta-courses__track::-webkit-scrollbar { display: none; }
.rasta-courses .rasta-courses__track.is-grabbing { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.rasta-courses--grid .rasta-courses__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); margin: 0; padding: 0; overflow: visible; }

/* نخ و سوزن پیشرفت اسلایدر */
.rasta-courses .rasta-courses__progress { position: relative; height: 2px; margin: 22px 0 0 30px; border-radius: 2px; background: var(--t-line); }
.rasta-courses .rasta-courses__thumb { position: absolute; top: 0; right: calc(var(--rc-progress, 0) * (100% - var(--rc-visible, 1) * 100%)); width: calc(var(--rc-visible, 1) * 100%); height: 2px; border-radius: 2px; background: linear-gradient(to left, var(--t-blue), #8DB2FF); transition: width .3s ease; }
.rasta-courses .rasta-courses__thumb svg { position: absolute; top: 50%; left: -27px; width: 30px; height: 8px; color: var(--t-ink); transform: translateY(-50%); }
.rasta-courses.is-static .rasta-courses__navs, .rasta-courses.is-static .rasta-courses__progress { display: none; }
.rasta-courses .rasta-courses__empty { padding: 28px; border: 1px dashed var(--t-line); border-radius: 20px; color: var(--t-muted); font-size: 14px; text-align: center; }

/* ================= کارت دوره ================= */
.rasta-ccard { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px; border: 1px solid var(--t-line); border-radius: 24px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 36px -30px rgba(16, 24, 40, .35); scroll-snap-align: start; transition: transform .45s var(--t-ease), box-shadow .45s ease, border-color .3s ease; }
.rasta-ccard::after { content: ""; position: absolute; right: 26px; bottom: -1px; left: 26px; height: 2px; border-radius: 2px; background: var(--t-blue); transform: scaleX(0); transition: transform .5s var(--t-ease); }
.rasta-ccard:hover { border-color: var(--t-blue-100); box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 30px 60px -34px rgba(47, 107, 255, .55); transform: translateY(-6px); }
.rasta-ccard:hover::after { transform: scaleX(1); }
.rasta-ccard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #DCE6FF, #EEF3FF); }
.rasta-ccard__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; object-fit: cover; transition: transform .9s var(--t-ease); }
.rasta-ccard:hover .rasta-ccard__media img { transform: scale(1.06); }
.rasta-ccard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 18, 32, .45), rgba(11, 18, 32, 0) 45%); pointer-events: none; }
.rasta-ccard__peek { position: absolute; top: 50%; left: 50%; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--t-blue); box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 18px 30px -12px rgba(11, 18, 32, .5); opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .35s ease, transform .45s var(--t-ease); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rasta-ccard__peek svg { width: 20px; height: 20px; transform: translateX(1.5px); }
.rasta-ccard:hover .rasta-ccard__peek { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.rasta-ccard__chip, .rasta-ccard__flag, .rasta-ccard__lessons { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 20px); padding: 2px 10px; border-radius: 999px; font-size: 11.5px; line-height: 1.9; white-space: nowrap; }
.rasta-ccard__chip { top: 10px; right: 10px; overflow: hidden; background: rgba(255, 255, 255, .9); color: var(--t-ink-2); text-overflow: ellipsis; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rasta-ccard__flag { top: 10px; left: 10px; background: var(--t-ink); color: #fff; font-weight: 600; }
.rasta-ccard__flag--free { background: #12B76A; }
.rasta-ccard__lessons { bottom: 10px; right: 10px; background: rgba(11, 18, 32, .55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rasta-ccard__lessons svg { width: 12px; height: 12px; }
.rasta-ccard__body { display: flex; flex: 1; flex-direction: column; padding: 14px 6px 4px; }
.rasta-ccard .rasta-ccard__title { display: -webkit-box; min-height: 3.5em; margin: 0 0 8px; padding: 0; overflow: hidden; color: var(--t-ink); font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.75; letter-spacing: 0; text-transform: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rasta-ccard .rasta-ccard__link, .rasta-ccard .rasta-ccard__link:visited { color: inherit; text-decoration: none; transition: color .2s ease; }
.rasta-ccard .rasta-ccard__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 24px; }
.rasta-ccard:hover .rasta-ccard__link { color: var(--t-blue); }
.rasta-ccard .rasta-ccard__link:focus-visible { outline: none; }
.rasta-ccard:has(.rasta-ccard__link:focus-visible) { outline: 2px solid var(--t-blue); outline-offset: 3px; }
.rasta-ccard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; color: var(--t-muted); font-size: 12.5px; line-height: 1.8; }
.rasta-ccard__meta span { display: inline-flex; align-items: center; gap: 5px; }
.rasta-ccard__meta svg { width: 14px; height: 14px; color: #98A2B3; }
.rasta-ccard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--t-line); }
.rasta-ccard__teacher { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--t-ink-2); font-size: 12.5px; }
.rasta-ccard__teacher img { flex: 0 0 28px; width: 28px; height: 28px; max-width: none; border-radius: 50%; object-fit: cover; }
.rasta-ccard__teacher span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rasta-ccard__price { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; margin-inline-start: auto; line-height: 1.35; }
.rasta-ccard__price del { color: #98A2B3; font-size: 11.5px; }
.rasta-ccard__price b { color: var(--t-ink); font-size: 16px; font-weight: 600; white-space: nowrap; }
.rasta-ccard__price small { margin-inline-start: 3px; color: var(--t-muted); font-size: 11px; font-weight: 400; }
.rasta-ccard__price .is-free { color: #079455; }

/* ================= واکنش‌گرا ================= */
@media (max-width: 1320px) { .rasta-courses { margin-inline: 0; } }
@media (max-width: 1200px) { .rasta-courses .rasta-courses__track { --per: min(var(--per-d, 4), 3); } }
@media (max-width: 900px) { .rasta-courses .rasta-courses__track { --per: 2; } }
@media (max-width: 720px) {
    .rasta-courses { margin-inline: 14px; }
    .rasta-courses .rasta-courses__head { align-items: center; margin-bottom: 18px; }
    .rasta-courses .rasta-courses__navs { display: none; }
    .rasta-courses .rasta-courses__all, .rasta-courses .rasta-courses__all:visited { height: 40px; padding: 0 14px; font-size: 12.5px; }
    /* ریل تا لبه‌ی صفحه ادامه پیدا می‌کند */
    .rasta-courses--slider .rasta-courses__track { --per: 1.3; --gap: 14px; margin-inline: -14px; padding-inline: 14px; scroll-padding-inline: 14px; }
    .rasta-courses .rasta-courses__progress { margin-top: 16px; }
}
@media (max-width: 380px) { .rasta-courses--slider .rasta-courses__track { --per: 1.12; } }
@media (prefers-reduced-motion: reduce) { .rasta-ccard, .rasta-ccard::after, .rasta-ccard__media img, .rasta-ccard__peek, .rasta-courses .rasta-courses__track { scroll-behavior: auto; transition: none; } }




/* ================= دکمه‌ی کارت ================= */
.rasta-ccard .rasta-ccard__cta, .rasta-ccard .rasta-ccard__cta:visited { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin-top: 12px; padding: 0 14px; overflow: hidden; border: 1px solid transparent; border-radius: 14px; background: var(--t-blue-50); color: var(--t-blue); font-size: 13.5px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.rasta-ccard .rasta-ccard__cta:hover, .rasta-ccard .rasta-ccard__cta:focus-visible { background: var(--t-blue); color: #fff; box-shadow: 0 14px 26px -16px rgba(47, 107, 255, .9); }
.rasta-ccard .rasta-ccard__cta-icon { display: grid; place-items: center; width: 18px; height: 18px; }
.rasta-ccard .rasta-ccard__cta-icon svg { width: 18px; height: 18px; }
.rasta-ccard .rasta-ccard__cta.is-incart, .rasta-ccard .rasta-ccard__cta.is-incart:visited { background: var(--t-ink); color: #fff; }
.rasta-ccard .rasta-ccard__cta.is-incart:hover { background: var(--t-blue); }
.rasta-ccard .rasta-ccard__cta.is-incart .rasta-ccard__cta-icon svg { animation: rastaNudge 1.6s var(--t-ease) infinite; }
.rasta-ccard .rasta-ccard__cta.is-student, .rasta-ccard .rasta-ccard__cta.is-student:visited { border-color: rgba(18, 183, 106, .25); background: #ECFDF3; color: #067647; }
.rasta-ccard .rasta-ccard__cta.is-student:hover { border-color: #12B76A; background: #12B76A; color: #fff; box-shadow: 0 14px 26px -16px rgba(18, 183, 106, .9); }
.rasta-ccard .rasta-ccard__cta.is-view, .rasta-ccard .rasta-ccard__cta.is-view:visited { border-color: var(--t-line); background: #fff; color: var(--t-ink-2); }
.rasta-ccard .rasta-ccard__cta.is-loading { pointer-events: none; }
.rasta-ccard .rasta-ccard__cta.is-loading .rasta-ccard__cta-icon svg { display: none; }
.rasta-ccard .rasta-ccard__cta.is-loading .rasta-ccard__cta-icon::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: rastaSpin .7s linear infinite; }
@keyframes rastaNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }
@keyframes rastaSpin { to { transform: rotate(360deg); } }

/* ================= پس‌زمینه‌ی پنلی ================= */
.rasta-courses.rasta-courses--panel { --pad: clamp(22px, 3.6vw, 48px); position: relative; padding: clamp(30px, 4vw, 52px) var(--pad); overflow: hidden; border: 1px solid rgba(220, 230, 255, .9); border-radius: 36px; background: radial-gradient(55% 80% at 88% 0%, rgba(47, 107, 255, .13), transparent 62%), linear-gradient(180deg, #F2F6FF 0%, #FFFFFF 100%); box-shadow: 0 40px 80px -60px rgba(47, 107, 255, .5); isolation: isolate; }
.rasta-courses.rasta-courses--panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(0deg, rgba(47, 107, 255, .07) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(47, 107, 255, .07) 0 1px, transparent 1px 5px); -webkit-mask-image: radial-gradient(42% 60% at 90% 0%, #000 0%, transparent 100%); mask-image: radial-gradient(42% 60% at 90% 0%, #000 0%, transparent 100%); pointer-events: none; }
.rasta-courses--panel.rasta-courses--slider .rasta-courses__track { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
@media (max-width: 720px) {
    .rasta-courses.rasta-courses--panel { --pad: 16px; margin-inline: 0; padding: 32px var(--pad) 30px; border-width: 1px 0; border-radius: 0; box-shadow: none; }
    .rasta-courses--panel.rasta-courses--slider .rasta-courses__track { --gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rasta-ccard .rasta-ccard__cta, .rasta-ccard .rasta-ccard__cta-icon svg { transition: none; animation: none; } }



/* ================= دکمه‌ی عمودی «مشاهده همه» ================= */
.rasta-courses .rasta-courses__more, .rasta-courses .rasta-courses__more:visited { position: relative; display: flex; flex: 0 0 108px; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0 18px; overflow: hidden; border-radius: 24px; background: linear-gradient(165deg, #4A82FF 0%, #2F6BFF 45%, #1E4FD8 100%); color: #fff; text-decoration: none; scroll-snap-align: end; box-shadow: 0 26px 46px -30px rgba(30, 79, 216, .95); isolation: isolate; transition: transform .45s var(--t-ease), box-shadow .45s ease; }
.rasta-courses .rasta-courses__more::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 5px); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%); }
.rasta-courses .rasta-courses__more:hover { color: #fff; box-shadow: 0 34px 56px -30px rgba(30, 79, 216, 1); transform: translateY(-6px); }
.rasta-courses .rasta-courses__more-needle { display: grid; place-items: center; width: 30px; height: 30px; color: rgba(255, 255, 255, .85); }
.rasta-courses .rasta-courses__more-needle svg { width: 30px; height: 8px; transform: rotate(-90deg); }
.rasta-courses .rasta-courses__more-text { display: flex; flex: 1; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; line-height: 1.6; letter-spacing: 0; white-space: nowrap; writing-mode: vertical-rl; }
.rasta-courses .rasta-courses__more-count { margin-bottom: -4px; color: rgba(255, 255, 255, .75); font-size: 11.5px; font-weight: 400; line-height: 1.6; white-space: nowrap; }
.rasta-courses .rasta-courses__more-arrow { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--t-blue); box-shadow: 0 0 0 6px rgba(255, 255, 255, .16); transition: transform .4s var(--t-ease); }
.rasta-courses .rasta-courses__more-arrow svg { width: 18px; height: 18px; }
.rasta-courses .rasta-courses__more:hover .rasta-courses__more-arrow { transform: translateX(-4px); }
.rasta-courses.is-end .rasta-courses__more-arrow { animation: rastaNudge 1.2s var(--t-ease) 3; }
@media (max-width: 720px) { .rasta-courses .rasta-courses__more, .rasta-courses .rasta-courses__more:visited { flex-basis: 92px; border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { .rasta-courses .rasta-courses__more, .rasta-courses .rasta-courses__more-arrow { transition: none; animation: none; } }



/* ================= آیکن برچسب‌های کارت ================= */
.rasta-ccard__flag svg { width: 12px; height: 12px; }
.rasta-ccard__flag--free { background: linear-gradient(135deg, #F6DFA6, #D9A84E); color: #4A3000; }

/* دکمه‌ی «دریافت رایگان» (طلایی) */
.rasta-ccard .rasta-ccard__cta.is-free, .rasta-ccard .rasta-ccard__cta.is-free:visited { border-color: rgba(176, 125, 44, .25); background: linear-gradient(135deg, #FFF6E2, #FBE9C4); color: #7A5310; }
.rasta-ccard .rasta-ccard__cta.is-free:hover { border-color: transparent; background: linear-gradient(135deg, #F3D48C, #D9A84E); color: #3D2800; box-shadow: 0 14px 26px -16px rgba(176, 125, 44, .9); }
.rasta-ccard .rasta-ccard__cta.is-free:hover .rasta-ccard__cta-icon svg { animation: rastaGift .6s var(--t-ease); }
@keyframes rastaGift { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(10deg) scale(1.1); } }

/* ================= استایل هدیه (دوره‌های رایگان) ================= */
.rasta-courses.rasta-courses--gift { --pad: clamp(22px, 3.6vw, 48px); --gold: #E6B962; position: relative; padding: 118px var(--pad) clamp(30px, 4vw, 48px); overflow: hidden; border-radius: 36px; background: radial-gradient(42% 55% at 50% 0%, rgba(230, 185, 98, .26), transparent 70%), radial-gradient(45% 60% at 100% 100%, rgba(74, 130, 255, .4), transparent 70%), radial-gradient(40% 50% at 0% 70%, rgba(74, 130, 255, .22), transparent 70%), linear-gradient(165deg, #0B1840 0%, #12307F 58%, #1A44B4 100%); color: #fff; box-shadow: 0 50px 90px -60px rgba(11, 24, 64, .9); isolation: isolate; }
.rasta-courses.rasta-courses--gift::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 24px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); mask-image: linear-gradient(to bottom, #000 0%, transparent 75%); pointer-events: none; }
.rasta-courses--gift .rasta-courses__ribbon { position: absolute; top: 38px; right: 0; left: 0; z-index: 0; height: 16px; background: linear-gradient(180deg, #9C6B22 0%, #F6DFA6 38%, #E6B962 62%, #9C6B22 100%); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.rasta-courses--gift .rasta-courses__bow { position: absolute; top: 4px; left: 50%; z-index: 1; width: 108px; transform: translateX(-50%); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .4)); }
.rasta-courses--gift .rasta-courses__bow svg { display: block; width: 100%; height: auto; overflow: visible; }
.rasta-courses--gift .rasta-courses__spark { position: absolute; z-index: 1; color: #F6DFA6; animation: rastaTwinkle 2.8s ease-in-out infinite; }
.rasta-courses--gift .rasta-courses__spark svg { display: block; width: 100%; height: 100%; }
.rasta-courses--gift .rasta-courses__spark--1 { top: 10px; left: calc(50% - 104px); width: 16px; height: 16px; }
.rasta-courses--gift .rasta-courses__spark--2 { top: 66px; left: calc(50% + 74px); width: 12px; height: 12px; animation-delay: .9s; }
.rasta-courses--gift .rasta-courses__spark--3 { top: 72px; left: calc(50% - 140px); width: 9px; height: 9px; animation-delay: 1.7s; }
@keyframes rastaTwinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }

.rasta-courses--gift .rasta-courses__head { position: relative; z-index: 1; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.rasta-courses--gift .rasta-courses__intro { margin-inline: auto; }
.rasta-courses--gift .rasta-courses__eyebrow { color: #F6DFA6; }
.rasta-courses--gift .rasta-courses__eyebrow i { background: rgba(230, 185, 98, .14); color: #F6DFA6; box-shadow: inset 0 0 0 1px rgba(230, 185, 98, .35); }
.rasta-courses--gift .rasta-courses__title { color: #fff; }
.rasta-courses--gift .rasta-courses__desc { color: rgba(255, 255, 255, .72); }
.rasta-courses--gift .rasta-courses__nav, .rasta-courses--gift .rasta-courses__nav:hover, .rasta-courses--gift .rasta-courses__nav:focus { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.rasta-courses--gift .rasta-courses__nav:hover:not(:disabled) { border-color: var(--gold); background: var(--gold); color: #0B1840; }
.rasta-courses--gift .rasta-courses__all, .rasta-courses--gift .rasta-courses__all:visited { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.rasta-courses--gift .rasta-courses__all:hover { border-color: var(--gold); color: #F6DFA6; }
.rasta-courses--gift.rasta-courses--slider .rasta-courses__track { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.rasta-courses--gift .rasta-ccard { border-color: rgba(255, 255, 255, .7); box-shadow: 0 30px 50px -36px rgba(0, 0, 0, .8); }
.rasta-courses--gift .rasta-ccard::after { background: var(--gold); }
.rasta-courses--gift .rasta-ccard:hover { border-color: #F6DFA6; box-shadow: 0 34px 60px -30px rgba(230, 185, 98, .55); }
.rasta-courses--gift .rasta-ccard__peek { color: #B07D2C; }
.rasta-courses--gift .rasta-ccard__price .is-free { color: #9C6B22; }
.rasta-courses--gift .rasta-courses__progress { background: rgba(255, 255, 255, .14); }
.rasta-courses--gift .rasta-courses__thumb { background: linear-gradient(to left, #E6B962, #F6DFA6); }
.rasta-courses--gift .rasta-courses__thumb svg { color: #fff; }
.rasta-courses--gift .rasta-courses__more, .rasta-courses--gift .rasta-courses__more:visited { background: linear-gradient(165deg, #FBE7B8 0%, #E6B962 50%, #B98634 100%); color: #3D2800; box-shadow: 0 26px 46px -28px rgba(230, 185, 98, .9); }
.rasta-courses--gift .rasta-courses__more:hover { color: #3D2800; }
.rasta-courses--gift .rasta-courses__more-needle { color: #5A3B00; }
.rasta-courses--gift .rasta-courses__more-needle svg { width: 22px; height: 22px; transform: none; }
.rasta-courses--gift .rasta-courses__more-count { color: rgba(61, 40, 0, .7); }
.rasta-courses--gift .rasta-courses__more-arrow { background: #0B1840; color: #F6DFA6; box-shadow: 0 0 0 6px rgba(11, 24, 64, .12); }

@media (max-width: 720px) {
    .rasta-courses.rasta-courses--gift { --pad: 16px; margin-inline: 0; padding: 96px var(--pad) 30px; border-radius: 0; box-shadow: none; }
    .rasta-courses--gift .rasta-courses__ribbon { top: 30px; height: 13px; }
    .rasta-courses--gift .rasta-courses__bow { top: 2px; width: 88px; }
    .rasta-courses--gift .rasta-courses__spark--1 { left: calc(50% - 86px); }
    .rasta-courses--gift .rasta-courses__spark--3 { left: calc(50% - 112px); top: 60px; }
    .rasta-courses--gift .rasta-courses__spark--2 { top: 56px; left: calc(50% + 60px); }
    .rasta-courses--gift .rasta-courses__head { align-items: center; gap: 14px; }
    .rasta-courses--gift.rasta-courses--slider .rasta-courses__track { --gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .rasta-courses--gift .rasta-courses__spark, .rasta-ccard .rasta-ccard__cta.is-free:hover .rasta-ccard__cta-icon svg { animation: none; } }


/* ================= استایل هدیه: ارتفاع جمع‌وجورتر ================= */
.rasta-courses.rasta-courses--gift { padding-top: 92px; padding-bottom: clamp(26px, 3vw, 38px); }
.rasta-courses--gift .rasta-courses__ribbon { top: 30px; height: 14px; }
.rasta-courses--gift .rasta-courses__bow { top: 1px; width: 92px; }
.rasta-courses--gift .rasta-courses__spark--1 { top: 6px; left: calc(50% - 92px); }
.rasta-courses--gift .rasta-courses__spark--2 { top: 52px; left: calc(50% + 64px); }
.rasta-courses--gift .rasta-courses__spark--3 { top: 56px; left: calc(50% - 124px); }
.rasta-courses--gift .rasta-courses__head { gap: 14px; margin-bottom: 22px; }
.rasta-courses--gift .rasta-courses__title { margin: 4px 0 2px; font-size: clamp(21px, 2.1vw, 28px); }
.rasta-courses--gift .rasta-courses__desc { line-height: 1.9; }
.rasta-courses--gift .rasta-courses__progress { margin-top: 16px; }

/* ================= کارت «به‌زودی» ================= */
.rasta-courses .rasta-courses__soon { position: relative; display: flex; flex: 1 0 calc((100% - (var(--per, 4) - 1) * var(--gap, 20px)) / var(--per, 4)); flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 260px; padding: 28px 22px; overflow: hidden; border: 1px solid var(--t-blue-100); border-radius: 24px; background: radial-gradient(60% 60% at 50% 35%, rgba(47, 107, 255, .1), transparent 70%), rgba(255, 255, 255, .6); text-align: center; scroll-snap-align: start; isolation: isolate; }
.rasta-courses .rasta-courses__soon::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(45deg, rgba(47, 107, 255, .05) 0 1px, transparent 1px 18px), repeating-linear-gradient(-45deg, rgba(47, 107, 255, .05) 0 1px, transparent 1px 18px); -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.rasta-courses .rasta-courses__soon-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 8px; border-radius: 24px; background: #fff; color: var(--t-blue); box-shadow: 0 0 0 10px rgba(47, 107, 255, .06), 0 22px 40px -22px rgba(47, 107, 255, .7); animation: rastaFloat 3.6s ease-in-out infinite; }
.rasta-courses .rasta-courses__soon-icon svg { width: 34px; height: 34px; }
.rasta-courses .rasta-courses__soon-text { display: block; color: var(--t-ink); font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; line-height: 1.7; }
.rasta-courses .rasta-courses__soon-sub { display: block; color: var(--t-muted); font-size: 13px; line-height: 1.8; }
@keyframes rastaFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-4deg); } }

.rasta-courses--gift .rasta-courses__soon { border-color: rgba(246, 223, 166, .28); background: radial-gradient(60% 60% at 50% 35%, rgba(230, 185, 98, .16), transparent 70%), rgba(255, 255, 255, .05); }
.rasta-courses--gift .rasta-courses__soon::before { background-image: repeating-linear-gradient(45deg, rgba(246, 223, 166, .08) 0 1px, transparent 1px 18px), repeating-linear-gradient(-45deg, rgba(246, 223, 166, .08) 0 1px, transparent 1px 18px); }
.rasta-courses--gift .rasta-courses__soon-icon { background: linear-gradient(150deg, #FBE7B8, #D9A84E); color: #4A3000; box-shadow: 0 0 0 10px rgba(230, 185, 98, .12), 0 24px 44px -20px rgba(230, 185, 98, .8); }
.rasta-courses--gift .rasta-courses__soon-text { color: #fff; }
.rasta-courses--gift .rasta-courses__soon-sub { color: rgba(255, 255, 255, .65); }

@media (max-width: 720px) {
    .rasta-courses.rasta-courses--gift { padding-top: 80px; }
    .rasta-courses--gift .rasta-courses__ribbon { top: 26px; height: 12px; }
    .rasta-courses--gift .rasta-courses__bow { width: 78px; }
    .rasta-courses--gift .rasta-courses__spark--1 { left: calc(50% - 78px); }
    .rasta-courses--gift .rasta-courses__spark--2 { top: 46px; left: calc(50% + 54px); }
    .rasta-courses--gift .rasta-courses__spark--3 { top: 50px; left: calc(50% - 104px); }
    .rasta-courses .rasta-courses__soon { min-height: 220px; padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { .rasta-courses .rasta-courses__soon-icon { animation: none; } }


/* ================= عنوان وسط‌چین (هماهنگ با استایل هدیه) ================= */
.rasta-courses .rasta-courses__head { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.rasta-courses .rasta-courses__intro { margin-inline: auto; }

/* ================= برچسب‌های روی تصویر کارت ================= */
.rasta-ccard__chip { max-width: calc(50% - 14px); }
.rasta-ccard__flag { max-width: calc(50% - 14px); overflow: hidden; text-overflow: ellipsis; }
.rasta-ccard__flag svg, .rasta-ccard__lessons svg { flex: 0 0 auto; }
@media (max-width: 720px) {
    .rasta-ccard__chip, .rasta-ccard__flag, .rasta-ccard__lessons { gap: 4px; padding: 1px 8px; font-size: 10.5px; line-height: 1.9; }
    .rasta-ccard__chip { top: 8px; right: 8px; max-width: calc(50% - 12px); }
    .rasta-ccard__flag { top: 8px; left: 8px; max-width: calc(50% - 12px); font-weight: 600; }
    .rasta-ccard__lessons { right: 8px; bottom: 8px; }
    .rasta-ccard__flag svg, .rasta-ccard__lessons svg { width: 11px; height: 11px; }
}


