/* ============================================================
   فنی البرز — استایل‌های مخصوص نسخه وردپرس
   (اجزای جدید صفحه دوره، فرم‌ها، نظرات و کلاس‌های هسته وردپرس)
   ============================================================ */

/* ---------- دسترس‌پذیری ---------- */
.skip-link:focus {
    position: fixed;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 999;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 18px;
    clip-path: none;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    border-radius: var(--radius-sm);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* فیلد تله ضداسپم فرم‌ها */
.fa-hp {
    position: absolute !important;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- لوگوی تصویری ---------- */
.logo__img {
    display: grid;
    flex-shrink: 0;
    place-items: center;
}

.logo__img img {
    display: block;
    width: auto;
    height: 46px;
}

/* ---------- فیلترهای لینکی (دسته مقالات) ---------- */
a.course-filter__btn { display: inline-flex; align-items: center; }

a.course-filter__btn[aria-current="page"] {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

/* ---------- تصویر شاخص در کارت‌ها ---------- */
.post__media {
    position: relative;
    overflow: hidden;
}

.post__media .post__img {
    width: 100%;
    height: 100%;
}

.post--card .post__img { aspect-ratio: 16 / 10; }

.post--featured .post__media { aspect-ratio: 16 / 9; }

.post--wide .post__media { min-height: 340px; }

.post--wide .post__media .post__img {
    position: absolute;
    inset: 0;
}

.post__img {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.post:hover .post__img { transform: scale(1.04); }

.article-cover.post__media .post__img {
    position: absolute;
    inset: 0;
}

/* ---------- آواتار عکس‌دار ---------- */
.avatar--photo {
    overflow: hidden;
    background: var(--brand-soft);
}

.avatar--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

a.chip { transition: background var(--transition), border-color var(--transition); }

a.chip--dark:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .28);
}

/* ============================================================
   صفحه دوره — اجزای جدید
   ============================================================ */

/* ---------- متن معرفی (خروجی ویرایشگر) ---------- */
.course-text a {
    font-weight: 500;
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: rgba(18, 87, 165, .35);
    text-underline-offset: 5px;
}

.course-text ul,
.course-text ol {
    margin: 0 0 1em;
    padding-inline-start: 22px;
    font-size: 15.5px;
    line-height: 2.1;
    color: #2b3a4a;
}

.course-text h2,
.course-text h3 {
    margin: 1.4em 0 .5em;
    font-size: 18px;
    font-weight: 800;
}

/* ---------- ویدیوی دوره ---------- */
.course-video {
    margin: 28px 0 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.course-video__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0b1e36;
    border-radius: 14px;
}

.course-video__player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0b1e36;
}

.course-video__caption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 6px 2px;
    font-size: 14px;
    font-weight: 700;
}

.course-video__caption svg { color: var(--brand); }

.course-video--dark {
    margin-top: 0;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

.course-video--dark .course-video__caption { color: #fff; }

.course-video--dark .course-video__caption svg { color: var(--accent); }

/* ---------- مخاطبان: حالت تک‌کارت ---------- */
.info-grid--single { grid-template-columns: 1fr; }

/* ---------- آنچه بدست می‌آورید ---------- */
.benefits { margin-top: 28px; }

.benefits__title {
    margin: 0 0 16px;
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.7;
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.benefit {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: border-color var(--transition), transform var(--transition);
}

.benefit:hover {
    border-color: rgba(18, 87, 165, .3);
    transform: translateY(-3px);
}

.benefit__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 13px;
}

.benefit:nth-child(2) .benefit__icon { color: #d97706; background: #fff4e0; }
.benefit:nth-child(3) .benefit__icon { color: #0f766e; background: #e6f6f3; }

.benefit__title {
    margin: 0 0 8px;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.7;
}

.benefit__text {
    margin: 0;
    font-size: 13.5px;
    line-height: 2;
    color: var(--text-muted);
}

/* ---------- کارت ثبت‌نام: قیمت قبل از تخفیف ---------- */
.enroll-card__old {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.enroll-card__old del { text-decoration-color: #dc2626; }

.enroll-card__off {
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
}

.enroll-card__price .enroll-card__ask { font-size: 24px; }

/* ---------- جدول شهریه ---------- */
.price-plans {
    display: grid;
    gap: 24px;
}

.price-plan__title {
    margin: 0 0 12px;
    font-size: 16.5px;
    font-weight: 800;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.price-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 118px;
    padding: 20px 22px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.price-card__label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-card__value {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.price-card__value strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.price-card__value--old del {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration-color: #dc2626;
    text-decoration-thickness: 2px;
}

.price-card--main {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(150deg, #1a64b8 0%, #0b2f5c 100%);
    border-color: transparent;
    box-shadow: 0 18px 36px -18px rgba(11, 47, 92, .6);
}

.price-card--main .price-card__label,
.price-card--main .price-card__value { color: rgba(255, 255, 255, .8); }

.price-card--main .price-card__value strong {
    font-size: 26px;
    color: #fff;
}

/* ---------- ثبت‌نام فوری ---------- */
.register-box {
    position: relative;
    padding: 30px;
    overflow: hidden;
    background:
        radial-gradient(420px 240px at 0% 0%, rgba(245, 158, 11, .12), transparent 70%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: 0 24px 48px -32px rgba(11, 30, 54, .35);
}

.register-box__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.register-box__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #d97706);
    border-radius: 16px;
    box-shadow: 0 10px 24px -10px rgba(217, 102, 11, .6);
}

.register-box__title {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 800;
    line-height: 1.6;
}

.register-box__text {
    margin: 4px 0 0;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--text-muted);
}

.register-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
}

.register-form .btn { justify-content: center; }

.register-box__phones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
}

.register-box__phones .btn { font-weight: 700; }

/* ---------- پیام نتیجه فرم ---------- */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
}

.form-notice svg { flex-shrink: 0; margin-top: 2px; }

.form-notice strong { font-size: 15px; font-weight: 800; }

.form-notice p {
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.9;
}

.form-notice--success { color: #166534; background: #e8f7ee; border: 1px solid #bbe5c9; }
.form-notice--error   { color: #991b1b; background: #fdecec; border: 1px solid #f5c2c2; }

/* ---------- دوره مجازی ---------- */
.online-box {
    position: relative;
    padding: 32px;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(26, 100, 184, .55), transparent 70%),
        radial-gradient(420px 260px at 0% 100%, rgba(245, 158, 11, .12), transparent 70%),
        #0b1e36;
    border-radius: 24px;
    isolation: isolate;
}

.online-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 10%, transparent 70%);
            mask-image: radial-gradient(circle at 100% 0%, #000 10%, transparent 70%);
}

.online-box__head {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-bottom: 22px;
}

.online-box__title {
    margin: 0;
    font-size: clamp(20px, 2.4vw, 25px);
    font-weight: 800;
    line-height: 1.6;
    color: #fff;
}

.online-box__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 0 0 26px;
}

.online-box__features div {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
}

.online-box__features dt {
    font-size: 12.5px;
    color: rgba(255, 255, 255, .6);
}

.online-box__features dd {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}

.online-box__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
}

.online-box__sub {
    margin: 0 0 14px;
    font-size: 16.5px;
    font-weight: 800;
    color: #fff;
}

.online-box .checklist li {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}

.online-box__side {
    display: grid;
    gap: 16px;
}

.online-box__buy {
    display: grid;
    gap: 12px;
}

.online-box__buy .btn {
    white-space: normal;
    text-align: center;
}

.online-box__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 14px;
}

.online-box__price small { font-size: 13px; }

.online-box__price strong {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

/* ---------- ویدیوهای کارآموزان و کارگاه ---------- */
.testimonials-grid--2 { grid-template-columns: repeat(2, 1fr); }

.workshop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 28px;
}

.workshop--spaced {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px dashed var(--border);
}

.workshop__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.7;
}

.workshop .course-video { margin: 0; }

/* ---------- متن جمع‌شونده (توضیحات تکمیلی) ---------- */
.fold { position: relative; }

.js .fold.is-foldable:not(.is-open) .fold__content {
    max-height: 520px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
            mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.fold__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--brand);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color var(--transition), background var(--transition);
}

.fold__btn:hover {
    background: var(--brand-soft);
    border-color: rgba(18, 87, 165, .3);
}

.fold__btn svg { transition: transform var(--transition); }

.fold.is-open .fold__btn svg { transform: rotate(180deg); }

/* ============================================================
   محتوای ویرایشگر (کلاس‌های هسته وردپرس)
   ============================================================ */
.prose > :first-child { margin-top: 0; }

.prose img,
.course-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.prose .wp-caption,
.prose .wp-block-image { max-width: 100%; }

.prose .wp-caption-text,
.prose .wp-element-caption {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.8;
    text-align: center;
    color: var(--text-muted);
}

.prose .aligncenter,
.prose .wp-block-image .aligncenter {
    display: block;
    margin-inline: auto;
}

.prose .alignright { float: right; margin: .4em 0 1em 1.5em; }
.prose .alignleft  { float: left;  margin: .4em 1.5em 1em 0; }

.prose::after {
    content: "";
    display: table;
    clear: both;
}

.prose table:not(.table) {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    background: var(--surface);
}

.prose table:not(.table) th,
.prose table:not(.table) td {
    padding: 10px 14px;
    text-align: start;
    border: 1px solid var(--border);
}

.prose table:not(.table) th { background: #f1f5fa; }

.prose .wp-block-embed iframe,
.prose iframe {
    max-width: 100%;
    border: 0;
    border-radius: 16px;
}

.prose .wp-block-embed__wrapper { position: relative; }

.prose video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.prose .wp-block-gallery { gap: 12px; }

.prose .wp-block-button__link {
    display: inline-flex;
    padding: 12px 22px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--brand);
    border-radius: var(--radius-sm);
}

.prose .wp-block-quote { margin-inline: 0; }

.prose hr,
.prose .wp-block-separator {
    height: 1px;
    margin-block: 2em;
    background: var(--border);
    border: 0;
}

.prose code {
    padding: 2px 6px;
    font-size: .9em;
    background: #eef2f7;
    border-radius: 6px;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    font-weight: 700;
}

.sticky .post__title::before { content: "📌 "; }

/* ============================================================
   برگه‌ها
   ============================================================ */
.page-card {
    position: relative;
    z-index: 1;
    max-width: 880px;
    margin: -96px auto 72px;
    padding: 40px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 48px -32px rgba(11, 30, 54, .3);
}

.page-card + .page-card { margin-top: -40px; }

.page-card__media {
    margin: -12px -16px 28px;
    overflow: hidden;
    border-radius: 18px;
}

.page-card__media img {
    display: block;
    width: 100%;
    height: auto;
}

.page-card--flat {
    max-width: none;
    margin: 0 0 28px;
    box-shadow: none;
}

.home-content__inner {
    max-width: 880px;
    margin-inline: auto;
}

.about-story__body p {
    margin: 0 0 16px;
    font-size: 15.5px;
    line-height: 2.1;
    color: var(--text-muted);
}

.about-visual__card--photo {
    overflow: hidden;
    background: #0b1e36;
}

.about-visual__card--photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card__map--embed {
    height: 240px;
    background: #e9f0f8;
}

.map-card__map--embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- جستجو ---------- */
.archive-subtitle {
    margin: 12px 0 18px;
    font-size: 20px;
    font-weight: 800;
}

.archive-subtitle ~ .archive-subtitle { margin-top: 44px; }

.search-field--wide { width: min(520px, 100%); }

/* ============================================================
   نظرات
   ============================================================ */
.comments__title,
.comments__form-title {
    margin: 0 0 20px;
    font-size: clamp(19px, 2.2vw, 22px);
    font-weight: 800;
    line-height: 1.6;
}

.comment-list,
.comment-list .children {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list { margin-bottom: 36px; }

.comment-list .children {
    margin-top: 14px;
    padding-inline-start: 28px;
    border-inline-start: 2px solid var(--border);
}

.comment-card {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.comment-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-card__meta {
    display: grid;
    line-height: 1.6;
}

.comment-card__author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
}

.comment-card__badge {
    padding: 1px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 999px;
}

.comment-card__date {
    font-size: 12.5px;
    color: var(--text-muted);
}

.comment-card__text {
    font-size: 15px;
    line-height: 2;
    color: #2b3a4a;
}

.comment-card__text p { margin: 0 0 .6em; }
.comment-card__text p:last-child { margin: 0; }

.comment-card__pending {
    margin: 0 0 8px;
    font-size: 13px;
    color: #b45309;
}

.comment-card__reply a {
    display: inline-flex;
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
}

.comment-respond {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.comment-list .comment-respond { margin-top: 14px; }

.comment-form .comment-notes { margin: 0; }

.comment-form-cookies-consent {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-muted);
}

.comment-form-cookies-consent label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.comment-form .form-submit { margin: 0; }

#cancel-comment-reply-link {
    margin-inline-start: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: #dc2626;
}

.comments__closed { color: var(--text-muted); }

.article-comments { margin-top: 48px; }

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    font-weight: 700;
    color: var(--brand);
}

/* ============================================================
   واکنش‌گرا
   ============================================================ */
/* تا ۱۱۹۹ پیکسل ستون کناری ثبت‌نام جا را تنگ می‌کند؛ بخش‌های دوستونه تک‌ستون می‌شوند */
@media (max-width: 1199px) {
    .online-box__grid,
    .workshop { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {

    .testimonials-grid--2 {
        grid-template-columns: none;
        grid-auto-columns: minmax(280px, 70%);
    }

    .post--wide .post__media { min-height: 260px; }
}

@media (max-width: 767px) {
    .benefits__grid { grid-template-columns: 1fr; }

    .register-form { grid-template-columns: 1fr; }

    .register-box,
    .online-box { padding: 22px; }

    .page-card {
        margin-top: -110px;
        padding: 26px 20px;
        border-radius: 20px;
    }

    .page-card__media { margin: -6px -4px 20px; }

    .comment-list .children { padding-inline-start: 14px; }

    .comment-respond { padding: 20px; }

    .prose .alignright,
    .prose .alignleft {
        float: none;
        margin: 1em auto;
    }
}

@media (max-width: 575px) {
    .testimonials-grid--2 { grid-auto-columns: 84%; }
}

/* ============================================================
   مگامنو (منوی سه‌سطحی: دپارتمان ← گروه ← دوره)
   ============================================================ */
.dropdown--mega {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 4px 12px;
    width: max-content;
    max-width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - var(--header-height) - 32px);
    overflow-y: auto;
    padding: 14px;
}

.dropdown__group { min-width: 0; }

.dropdown__heading {
    display: block;
    margin-bottom: 4px;
    padding: 6px 12px 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
    border-bottom: 1px solid var(--border);
}

a.dropdown__heading:hover { color: var(--brand-dark); }

.dropdown__list,
.dropdown__sublist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown--mega .dropdown__list a { padding: 6px 12px; font-size: 14px; }

.dropdown__sublist {
    margin-inline-start: 14px;
    padding-inline-start: 6px;
    border-inline-start: 2px solid var(--border);
}

.dropdown__sublist a { font-size: 13.5px !important; }

.dropdown a[aria-current="page"] {
    color: var(--brand);
    background: var(--brand-soft);
}

/* منوی پرآیتم سایت (۹ آیتم): فاصله‌ها فشرده‌تر؛ زیر ۱۲۸۰ پیکسل منوی موبایل (main.css) */
@media (min-width: 1280px) {
    .nav { margin-inline-start: 0; }
    .nav__list { gap: 0; }
    .nav__link { padding: 10px 8px; font-size: 14px; }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .header__actions .btn--primary span { display: none; }
    .header__actions .btn--primary { width: 42px; height: 42px; padding: 0; justify-content: center; }
}

@media (max-width: 1279px) {
    .dropdown--mega {
        display: none;
        width: auto;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding: 4px;
    }

    .nav__item.is-open > .dropdown--mega { display: block; }

    .dropdown__heading { margin-top: 6px; border-bottom: 0; }
}

/* ============================================================
   شهریه دوره‌ها (page-templates/template-prices.php)
   ============================================================ */
.prices__nav { margin-bottom: 28px; }

.price-group { margin-bottom: 40px; scroll-margin-top: calc(var(--header-height) + 16px); }

.price-group__title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 800;
}

.price-group__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: var(--radius-sm);
}

.price-table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.price-table {
    width: 100%;
    font-size: 14.5px;
    border-collapse: collapse;
}

.price-table :is(th, td) {
    padding: 14px 18px;
    text-align: start;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.price-table thead th {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: #f7f9fc;
}

.price-table tbody tr:last-child :is(th, td) { border-bottom: 0; }

.price-table tbody tr:hover { background: var(--brand-soft); }

.price-table tbody th { font-weight: 700; white-space: normal; }

.price-table tbody th a:hover { color: var(--brand); }

.price-table tbody th small {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-table del { color: var(--text-muted); }

.price-table strong { font-size: 16px; color: var(--brand); }

.price-table__off {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .price-table thead { display: none; }

    .price-table,
    .price-table tbody,
    .price-table tr { display: block; }

    .price-table tr { padding: 12px 0; border-bottom: 1px solid var(--border); }

    .price-table tbody tr:last-child { border-bottom: 0; }

    .price-table :is(th, td) {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 16px;
        white-space: normal;
        border: 0;
    }

    .price-table tbody th { display: block; }

    .price-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
    }
}

/* ============================================================
   فیلم معرفی / تصویر دوره بالای کارت ثبت‌نام
   ============================================================ */
.enroll-media {
    position: relative;
    margin: -14px -14px 22px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b1e36;
    border-radius: 16px;
    box-shadow: 0 12px 28px -18px rgba(11, 30, 54, .55);
    isolation: isolate;
}

.enroll-media__player,
.enroll-media__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0b1e36;
}

.enroll-media__img { transition: transform .5s ease; }

.enroll-media:hover .enroll-media__img { transform: scale(1.04); }

/* لایه تیره روی کاور تا دکمه و برچسب خوانا باشند */
.js .enroll-media--video::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at center, rgba(11, 30, 54, .35), rgba(11, 30, 54, .1) 70%);
    pointer-events: none;
    transition: opacity var(--transition);
}

.enroll-media__play { display: none; }

.js .enroll-media__play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
}

.js .enroll-media__play svg {
    box-sizing: content-box;
    width: 24px;
    height: 24px;
    padding: 18px;
    color: var(--brand);
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .25), 0 12px 24px rgba(11, 30, 54, .35);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: enroll-pulse 2.4s ease-out infinite;
}

.enroll-media__play:hover svg,
.enroll-media__play:focus-visible svg { transform: scale(1.08); }

@keyframes enroll-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45), 0 12px 24px rgba(11, 30, 54, .35); }
    70%  { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 12px 24px rgba(11, 30, 54, .35); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 12px 24px rgba(11, 30, 54, .35); }
}

/* بالا-چپ: پایین و راست کاورها معمولاً عنوان و لوگوی خود فیلم است */
.enroll-media__tag {
    position: absolute;
    inset-inline-end: 12px;
    top: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(11, 30, 54, .55);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.enroll-media__tag svg { color: var(--accent); }

.enroll-media.is-playing::after,
.enroll-media.is-playing .enroll-media__play,
.enroll-media.is-playing .enroll-media__tag { display: none; }

@media (prefers-reduced-motion: reduce) {
    .js .enroll-media__play svg { animation: none; }
}

/* با فیلم، کارت بلندتر می‌شود؛ در صفحه‌های کوتاه ستون کناری ثابت نمی‌ماند تا پایین کارت دیده شود */
@media (min-width: 992px) and (max-height: 820px) {
    .course-aside { position: relative; top: 0; }
}

@media (max-width: 767px) {
    .enroll-media { margin: -8px -6px 18px; }
}

/* ============================================================
   چیدمان صفحه دوره: ستون کناری فقط کنار «معرفی دوره» چسبان است؛
   بخش‌های بعدی تمام‌عرض (course-rest). ناوبری بخش‌ها تا پایین صفحه چسبان می‌ماند.
   ============================================================ */
.course-layout {
    grid-template-areas:
        "tabs side"
        "main side"
        "rest rest";
}

.course-side {
    grid-area: side;
    align-self: stretch; /* محدوده چسبیدن کارت = ارتفاع ردیف ناوبری + معرفی */
}

.course-tabs { grid-area: tabs; }
.course-main { grid-area: main; }
.course-rest { grid-area: rest; min-width: 0; }

.course-rest > .course-block:first-child { border-top: 1px solid var(--border); }

@media (max-width: 991px) {
    .course-layout {
        grid-template-areas:
            "side"
            "tabs"
            "main"
            "rest";
    }
}
