/* 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-w a.rasta-btn.rasta-btn--primary,
.rasta-w a.rasta-btn.rasta-btn--primary:hover,
.rasta-w a.rasta-btn.rasta-btn--primary:focus {
    color: #fff;
}

/* ================= پنل ================= */

.rasta-hero {
    position: relative;
    margin-top: 14px;
    padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 60px);
    overflow: hidden;
    border: 1px solid rgba(220, 230, 255, .9);
    border-radius: 36px;
    background:
        radial-gradient(55% 75% at 18% 45%, 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-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(47, 107, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 107, 255, .08) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(50% 70% at 18% 50%, #000 0%, transparent 100%);
    mask-image: radial-gradient(50% 70% at 18% 50%, #000 0%, transparent 100%);
}

.rasta-hero .rasta-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 72px);
}

.rasta-hero .rasta-hero__content {
    min-width: 0;
}

/* ================= متن ================= */

.rasta-hero .rasta-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 4px 4px 4px 14px;
    border: 1px solid var(--t-line);
    border-radius: 999px;
    background: #fff;
    color: var(--t-ink-2);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    box-shadow: 0 12px 30px -22px rgba(16, 24, 40, .4);
}

.rasta-hero .rasta-hero__eyebrow i {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--t-blue-50);
    color: var(--t-blue);
    font-style: normal;
}

.rasta-hero .rasta-hero__eyebrow svg {
    width: 14px;
    height: 14px;
}

.rasta-hero .rasta-hero__title {
    margin: 20px 0 16px;
    padding: 0;
    color: var(--t-ink);
    font-family: inherit;
    font-size: clamp(28px, 3.3vw, 46px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.2px;
    text-transform: none;
}

.rasta-hero .rasta-hero__title em {
    position: relative;
    display: inline-block;
    color: var(--t-blue);
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.rasta-hero .rasta-hero__swash {
    position: absolute;
    right: 0;
    bottom: -.08em;
    width: 100%;
    height: .28em;
    overflow: visible;
}

.rasta-hero .rasta-hero__swash path {
    fill: none;
    stroke: var(--t-blue);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: .45;
    vector-effect: non-scaling-stroke;
    animation: rastaDraw 1.4s .8s var(--t-ease) forwards;
}

.rasta-hero .rasta-hero__desc {
    max-width: 540px;
    margin: 0;
    color: var(--t-muted);
    font-size: clamp(14.5px, 1.15vw, 16px);
    font-weight: 400;
    line-height: 2.1;
}

/* ================= دکمه‌ها ================= */

.rasta-hero .rasta-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 26px;
    margin-top: 28px;
}

.rasta-hero .rasta-btn {
    font-weight: 600;
}

.rasta-hero .rasta-btn--lg {
    height: 52px;
    padding: 0 24px;
    font-size: 14.5px;
}

.rasta-hero .rasta-hero__play,
.rasta-hero .rasta-hero__play:hover,
.rasta-hero .rasta-hero__play:focus {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--t-ink);
    box-shadow: none;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.rasta-hero .rasta-hero__play-icon {
    position: relative;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--t-blue);
    box-shadow: 0 14px 30px -14px rgba(47, 107, 255, .6), inset 0 0 0 1px var(--t-line);
    transition: transform .35s var(--t-ease), background .2s ease, color .2s ease;
}

.rasta-hero .rasta-hero__play-icon::before {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(47, 107, 255, .35);
    border-radius: 50%;
    animation: rastaRing 2.6s ease-out infinite;
}

.rasta-hero .rasta-hero__play-icon svg {
    width: 16px;
    height: 16px;
    transform: translateX(1.5px);
}

.rasta-hero .rasta-hero__play:hover .rasta-hero__play-icon {
    background: var(--t-blue);
    color: #fff;
    transform: scale(1.06);
}

.rasta-hero .rasta-hero__play-text small {
    display: block;
    color: var(--t-muted);
    font-size: 12px;
    line-height: 1.6;
}

.rasta-hero .rasta-hero__play-text span {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* ================= آمار ================= */

.rasta-hero .rasta-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.rasta-hero .rasta-hero__stat {
    position: relative;
    min-width: 130px;
    padding: 14px 18px 12px;
    overflow: hidden;
    border: 1px solid rgba(220, 230, 255, .95);
    border-radius: 18px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .45) 75%);
    box-shadow: 0 16px 34px -26px rgba(47, 107, 255, .55);
    isolation: isolate;
}

.rasta-hero .rasta-hero__stat::before {
    content: "";
    position: absolute;
    top: -30px;
    left: -30px;
    z-index: -1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 107, 255, .18), transparent);
}

.rasta-hero .rasta-hero__num {
    display: flex;
    align-items: baseline;
    gap: 3px;
    color: var(--t-ink);
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.25;
}

.rasta-hero .rasta-hero__num b {
    font-weight: 600;
}

.rasta-hero .rasta-hero__num span {
    color: var(--t-blue);
    font-size: .72em;
    font-weight: 600;
}

.rasta-hero .rasta-hero__label {
    display: block;
    margin-top: 4px;
    color: var(--t-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

/* ================= تصویر: مودبورد پارچه ================= */

.rasta-hero .rasta-hero__visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1.05;
    margin-inline-start: auto;
}

.rasta-hero .rasta-hero__glow {
    position: absolute;
    inset: 10%;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(47, 107, 255, .28), transparent);
    filter: blur(36px);
}

.rasta-hero .rasta-mood {
    --mx: 0;
    --my: 0;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.rasta-hero .rasta-mood__layer {
    position: absolute;
    transform: translate(calc(var(--mx) * var(--k, 1) * 16px), calc(var(--my) * var(--k, 1) * 16px)) rotate(var(--r, 0deg));
    transition: transform .6s var(--t-ease);
}

.rasta-hero .rasta-mood__swatch {
    --s: 10px;
    -webkit-mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--s) 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--s) 51% repeat-x;
    mask:
        conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--s) 51% repeat-x,
        conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--s) 51% repeat-x;
    filter: drop-shadow(0 18px 24px rgba(16, 24, 40, .18));
}

.rasta-hero .rasta-mood__swatch--cream {
    --r: 8deg;
    top: 0;
    right: 2%;
    width: 64%;
    height: 56%;
    background:
        repeating-linear-gradient(90deg, rgba(140, 110, 70, .13) 0 1px, transparent 1px 7px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 3px),
        linear-gradient(160deg, #F6EFE2, #EADFCB);
}

.rasta-hero .rasta-mood__swatch--blue {
    --r: -9deg;
    bottom: 13%;
    left: 0;
    width: 58%;
    height: 46%;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px),
        linear-gradient(140deg, #4A7DFF, #2350C8);
}

.rasta-hero .rasta-mood__photo {
    --r: -3deg;
    top: 7%;
    left: 15%;
    width: 64%;
    height: 76%;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 40px 70px -34px rgba(16, 24, 40, .6), 0 0 0 1px rgba(16, 24, 40, .04);
}

.rasta-hero .rasta-mood__photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 12px;
    object-fit: cover;
    object-position: center 18%;
}

.rasta-hero .rasta-mood__photo .rasta-hero__ph {
    position: absolute;
    inset: 8px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(160deg, #DCE6FF, #EEF3FF 45%, #fff);
    color: rgba(47, 107, 255, .35);
}

.rasta-hero .rasta-mood__photo .rasta-hero__ph svg {
    width: 80px;
    height: 80px;
}

.rasta-hero .rasta-mood__tape-wrap {
    --r: -8deg;
    bottom: 9%;
    left: -5%;
    width: 92%;
    filter: drop-shadow(0 12px 14px rgba(16, 24, 40, .22));
}

.rasta-hero .rasta-mood__tape {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.rasta-hero .rasta-tape__body {
    fill: #FBEBB0;
}

.rasta-hero .rasta-tape__ticks line {
    stroke: rgba(11, 18, 32, .6);
    stroke-width: 1;
}

.rasta-hero .rasta-tape__nums text {
    fill: var(--t-ink);
    font-family: var(--rasta-font, inherit);
    font-size: 9.5px;
    font-weight: 600;
    text-anchor: middle;
}

.rasta-hero .rasta-tape__tab {
    fill: var(--t-blue);
}

.rasta-hero .rasta-mood__pin {
    --r: 8deg;
    top: 3%;
    right: 20%;
    z-index: 3;
    width: 54px;
    height: 54px;
    color: rgba(11, 18, 32, .7);
    filter: drop-shadow(0 6px 8px rgba(16, 24, 40, .25));
}

/* ================= کارت‌های شناور ================= */

.rasta-hero .rasta-hero__badge {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 36px -20px rgba(16, 24, 40, .45), 0 0 0 1px rgba(231, 235, 243, .9);
    animation: rastaFloat 7s ease-in-out infinite alternate;
}

.rasta-hero .rasta-hero__badge--one {
    bottom: 24%;
    left: -5%;
}

.rasta-hero .rasta-hero__badge--two {
    top: 15%;
    left: -7%;
    animation-delay: -3.5s;
}

.rasta-hero .rasta-hero__badge i {
    display: grid;
    flex: 0 0 28px;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--t-blue-50);
    color: var(--t-blue);
    font-style: normal;
}

.rasta-hero .rasta-hero__badge svg {
    width: 14px;
    height: 14px;
}

.rasta-hero .rasta-hero__badge b {
    display: block;
    color: var(--t-ink);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.rasta-hero .rasta-hero__badge small {
    display: block;
    color: var(--t-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

/* ================= انیمیشن‌ها ================= */

.rasta-hero .rasta-anim {
    opacity: 0;
    transform: translateY(16px);
    animation: rastaRise .9s var(--t-ease) forwards;
    animation-delay: calc(var(--d, 0) * 110ms + 100ms);
}

@keyframes rastaRise {
    to { opacity: 1; transform: none; }
}

@keyframes rastaDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes rastaFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

@keyframes rastaRing {
    from { opacity: .8; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.4); }
}

/* ================= واکنش‌گرا ================= */

/* لپ‌تاپ کوچک: فاصله از لبه‌ی صفحه، هم‌تراز با هدر */
@media (max-width: 1320px) { .rasta-hero { margin-inline: 0; } }

/* تبلت: یک‌ستونه و وسط‌چین */
@media (max-width: 1024px) {
    .rasta-hero .rasta-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .rasta-hero .rasta-hero__content {
        text-align: center;
    }

    .rasta-hero .rasta-hero__desc {
        margin-inline: auto;
    }

    .rasta-hero .rasta-hero__actions,
    .rasta-hero .rasta-hero__stats {
        justify-content: center;
    }

    .rasta-hero .rasta-hero__visual {
        max-width: 400px;
        margin-inline: auto;
    }

    .rasta-hero::before {
        -webkit-mask-image: radial-gradient(70% 40% at 50% 80%, #000 0%, transparent 100%);
        mask-image: radial-gradient(70% 40% at 50% 80%, #000 0%, transparent 100%);
    }
}

/* موبایل: تمام‌عرض، بدون گوشه‌ی گرد */
@media (max-width: 720px) {
    .rasta-hero {
        margin: 0;
        padding: 28px 16px 32px;
        border-width: 0 0 1px;
        border-radius: 0;
        box-shadow: none;
    }

    .rasta-hero .rasta-hero__eyebrow {
        font-size: 12px;
    }

    .rasta-hero .rasta-hero__title {
        margin: 16px 0 12px;
        font-size: 26px;
    }

    .rasta-hero .rasta-hero__desc {
        font-size: 14px;
        line-height: 2;
    }

    .rasta-hero .rasta-hero__actions {
        flex-direction: column;
        gap: 18px;
        margin-top: 24px;
    }

    .rasta-hero .rasta-hero__actions .rasta-btn {
        width: 100%;
    }

    .rasta-hero .rasta-hero__stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 28px;
    }

    .rasta-hero .rasta-hero__stat {
        min-width: 0;
        padding: 12px 6px 10px;
        border-radius: 14px;
        text-align: center;
    }

    .rasta-hero .rasta-hero__num {
        justify-content: center;
        font-size: 20px;
    }

    .rasta-hero .rasta-hero__label {
        font-size: 11px;
        line-height: 1.5;
    }

    .rasta-hero .rasta-hero__badge {
        display: none;
    }

    .rasta-hero .rasta-hero__visual {
        width: 100%;
        max-width: 340px;
    }

    .rasta-hero .rasta-mood__photo {
        top: 6%;
        left: 12%;
        width: 72%;
        height: 80%;
        padding: 6px;
        border-radius: 14px;
    }

    .rasta-hero .rasta-mood__photo img {
        border-radius: 10px;
    }

    .rasta-hero .rasta-mood__tape-wrap {
        bottom: 6%;
        left: -2%;
        width: 90%;
    }

    .rasta-hero .rasta-mood__pin {
        right: 13%;
        width: 44px;
        height: 44px;
    }
}

/* گوشی‌های خیلی باریک */
@media (max-width: 360px) {
    .rasta-hero {
        padding-inline: 12px;
    }

    .rasta-hero .rasta-hero__title {
        font-size: 23px;
    }

    .rasta-hero .rasta-hero__num {
        font-size: 17px;
    }

    .rasta-hero .rasta-hero__label {
        font-size: 10.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rasta-hero .rasta-anim,
    .rasta-hero .rasta-hero__badge,
    .rasta-hero .rasta-hero__play-icon::before {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .rasta-hero .rasta-hero__swash path {
        stroke-dashoffset: 0;
        animation: none;
    }
}



/* ================= اصلاحات موبایل (تست‌شده) ================= */

/* در حالت تک‌ستونه، تصویر مدرس بالای متن */
@media (max-width: 1024px) {
    .rasta-hero .rasta-hero__visual {
        order: -1;
    }
}

@media (max-width: 720px) {
    .rasta-hero .rasta-hero__grid {
        gap: 22px;
    }

    .rasta-hero .rasta-hero__visual {
        max-width: 300px;
    }

    .rasta-hero .rasta-hero__eyebrow {
        margin-top: 4px;
    }
}

@media (max-width: 360px) {
    .rasta-hero .rasta-hero__visual {
        max-width: 250px;
    }
}




/* ================= آیکن کارت‌های آمار ================= */
.rasta-hero .rasta-hero__stat { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 16px; }
.rasta-hero .rasta-hero__stat-icon { 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; box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .12); }
.rasta-hero .rasta-hero__stat-icon svg { width: 18px; height: 18px; }
.rasta-hero .rasta-hero__stat-body { display: block; min-width: 0; }
@media (max-width: 720px) {
    .rasta-hero .rasta-hero__stat { flex-direction: column; gap: 6px; padding: 12px 6px 10px; }
    .rasta-hero .rasta-hero__stat-icon { flex-basis: 30px; width: 30px; height: 30px; border-radius: 10px; }
    .rasta-hero .rasta-hero__stat-icon svg { width: 15px; height: 15px; }
}




/* ================= برچسب نام مدرس (برچسب پارچه‌ای سنجاق‌شده) ================= */
.rasta-hero .rasta-hero__tag { position: absolute; top: 46%; right: -5%; z-index: 4; display: block; min-width: 132px; padding: 12px 16px 10px; border-radius: 6px; background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FF 100%); box-shadow: 0 18px 34px -18px rgba(16, 24, 40, .45), 0 0 0 1px rgba(231, 235, 243, .9); text-align: center; transform: rotate(4deg); }
.rasta-hero .rasta-hero__tag::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(47, 107, 255, .22); border-radius: 3px; pointer-events: none; }
.rasta-hero .rasta-hero__tag-pin { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #9BB9FF 0 18%, var(--t-blue) 45%, #1E4FD8 100%); box-shadow: 0 3px 6px rgba(16, 24, 40, .35); transform: translateX(-50%); }
.rasta-hero .rasta-hero__tag b { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--t-ink); font-size: 13.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.rasta-hero .rasta-hero__tag b svg { flex: 0 0 15px; width: 15px; height: 15px; color: var(--t-blue); }
.rasta-hero .rasta-hero__tag small { display: block; color: var(--t-muted); font-size: 11px; line-height: 1.6; white-space: nowrap; }
@media (max-width: 720px) {
    .rasta-hero .rasta-hero__tag { top: auto; right: -2%; bottom: 26%; min-width: 0; padding: 10px 12px 8px; }
    .rasta-hero .rasta-hero__tag b { font-size: 12.5px; }
    .rasta-hero .rasta-hero__tag small { font-size: 10.5px; }
}