/* 6.28.6 — استاندارد پوستر فریان: ۱۲۸۰×۷۲۰ پیکسل (نسبت ۱۶:۹)، فرمت JPG/WebP/PNG، زیر ۳۰۰ کیلوبایت.
   تصویر هیچ‌وقت بریده نمی‌شود (contain)؛ اگر نسبتش ۱۶:۹ نباشد فقط حاشیه‌ی خنثی کنارش دیده می‌شود. */
.fyc-course-card-media,.fyc-showcase-card-media,.fyc-event-card-cover,.fyc-event-cover,.fyc-ev3-cover,.fyc-path-card-image,.fyc-path-hero-media{aspect-ratio:16/9!important}
.fyc-course-card-media img,.fyc-showcase-card-media img,.fyc-event-card-cover img,.fyc-event-cover img,.fyc-ev3-cover img,.fyc-path-card-image img,.fyc-path-hero-media img,.fyc-ep-course img,.fyc-instructor-course-grid img,.fyc-course-recommended img,.fyc-custom-course img{object-fit:contain!important;object-position:center!important;background:#f1f5f9}
.fyc-ep-course img,.fyc-instructor-course-grid img,.fyc-course-recommended img,.fyc-custom-course img{aspect-ratio:16/9!important}
.fyc-course-card:hover .fyc-course-card-media img,.fyc-showcase-card:hover .fyc-showcase-card-media img,.fyc-path-card:hover .fyc-path-card-image img{transform:none!important}
/* بالای صفحه‌ی دوره: همان جایگاه و عرضِ دایره‌ی قبلی (تا به عنوان نخورد)، ولی به‌جای دایره‌ی بریده‌شده، پوستر کامل با گوشه‌ی نرم */
.page-banner .shape-author{border-radius:16px!important}
.page-banner .shape-author .fyc-course-image,.page-banner .shape-author .fyc-course-image__link{border-radius:16px!important;overflow:hidden}
.page-banner .shape-author img,.page-banner .shape-author .fyc-course-image__img{aspect-ratio:16/9!important;height:auto!important;object-fit:contain!important;border-radius:16px!important;background:#f1f5f9;box-shadow:0 8px 24px rgba(15,23,42,.12)}
/* ردیف پایین کارت (قیمت و دکمه‌ی مشاهده) همیشه ته کارت و هم‌تراز بین کارت‌های هم‌ردیف */
.fyc-course-card{display:flex!important;flex-direction:column}
.fyc-course-card>.fyc-course-card-media{flex:none}
.fyc-course-card>.fyc-course-card-body{flex:1 1 auto}
/* سایه‌ی روی پوستر ملایم‌تر تا متن پایین پوستر محو نشود */
.fyc-card-media-shade{background:linear-gradient(to top,rgba(15,23,42,.2),transparent 24%)!important}

/* 6.28.12 — برچسب وضعیت کوچک روی پوستر */
.fyc-course-card-media,.fyc-showcase-card-media{position:relative}
.fyc-card-status{position:absolute!important;top:auto!important;bottom:8px!important;left:8px!important;right:auto!important;width:auto!important;height:auto!important;max-width:60%;z-index:3;display:inline-block!important;margin:0!important;padding:2px 9px!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;line-height:1.6!important;color:#fff!important;white-space:nowrap;pointer-events:none;box-shadow:0 1px 4px rgba(15,23,42,.3)}
.fyc-card-status--pre{background:#2563eb}
.fyc-card-status--full{background:#d97706}
.fyc-card-status--closed{background:#dc2626}
/* 6.29.0 — دکمه تکمیل، حالت تمرکز، فصل و جلسه فعال */
.fyc-complete-row .fyc-mark-complete{font-size:13px!important;font-weight:600!important;padding:8px 18px!important;border-radius:999px!important;position:relative;overflow:hidden;background:linear-gradient(135deg,#16a34a,#22c55e)!important;border:0!important;color:#fff!important;box-shadow:0 4px 14px rgba(22,163,74,.28);transition:transform .2s,box-shadow .2s}
.fyc-complete-row .fyc-mark-complete::after{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:fycShine 3.2s ease-in-out infinite}
.fyc-complete-row .fyc-mark-complete:not([disabled]):hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(22,163,74,.38)}
.fyc-complete-row .fyc-mark-complete svg{width:15px;height:15px}
.fyc-complete-row .fyc-mark-complete[disabled]{opacity:.55;box-shadow:none}
.fyc-complete-row .fyc-mark-complete[disabled]::after{display:none}
@keyframes fycShine{0%,55%{left:-60%}100%{left:140%}}
.fyc-course-focus-toggle{background:linear-gradient(135deg,#7c3aed,#2563eb)!important;color:#fff!important;border:0!important;border-radius:999px!important;font-weight:700!important;padding:9px 18px!important;box-shadow:0 0 0 0 rgba(124,58,237,.55);animation:fycPulse 2.4s infinite;transition:transform .2s}
.fyc-course-focus-toggle:hover{transform:translateY(-2px)}
.fyc-course-focus-toggle span{color:#fff!important}
@keyframes fycPulse{0%{box-shadow:0 0 0 0 rgba(124,58,237,.5)}70%{box-shadow:0 0 0 12px rgba(124,58,237,0)}100%{box-shadow:0 0 0 0 rgba(124,58,237,0)}}
.fyc-section{transition:border-color .25s,box-shadow .25s}
.fyc-section.is-open{border-color:#2563eb!important;box-shadow:0 6px 22px rgba(37,99,235,.14)!important;position:relative}
.fyc-section.is-open::before{content:"";position:absolute;top:10px;bottom:10px;inset-inline-start:0;width:4px;border-radius:4px;background:linear-gradient(#2563eb,#7c3aed)}
.fyc-section.is-open>.fyc-section-header{background:linear-gradient(90deg,rgba(37,99,235,.09),transparent)!important}
.fyc-section.is-open>.fyc-section-header .section_title{color:#1d4ed8!important}
.fyc-section.is-open>.fyc-section-header .fyc-section-icon{background:#2563eb!important;color:#fff!important}
.fyc-lesson.is-open{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.14)!important}
.fyc-lesson.is-open>.fyc-lesson-header{background:#eaf1ff!important}
.fyc-lesson.is-open>.fyc-lesson-header .lesson_title{color:#1d4ed8!important}
/* 6.29.0 — بخش‌های ساختارمند توضیحات */
.fyc-desc-boxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:22px}
.fyc-desc-box{background:#fff;border:1px solid #e3e9f3;border-radius:16px;padding:18px 20px;box-shadow:0 6px 18px rgba(15,23,42,.05);position:relative;overflow:hidden}
.fyc-desc-box::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:linear-gradient(#2563eb,#7c3aed)}
.fyc-desc-box--audience,.fyc-desc-box--outline{grid-column:1/-1}
.fyc-desc-box h3{margin:0 0 12px!important;font-size:16px!important;font-weight:800;color:#0f172a}
.fyc-desc-box ul,.fyc-desc-box ol{margin:0!important;padding:0!important;list-style:none!important;counter-reset:fycd;display:grid;gap:8px}
.fyc-desc-box li{position:relative;padding-inline-start:30px;line-height:1.9;color:#334155;font-size:14px;counter-increment:fycd}
.fyc-desc-box ul li::before{content:"✓";position:absolute;inset-inline-start:0;top:2px;width:20px;height:20px;border-radius:50%;background:#e7f6ec;color:#16a34a;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.fyc-desc-box ol li::before{content:counter(fycd);position:absolute;inset-inline-start:0;top:3px;width:21px;height:21px;border-radius:7px;background:#eaf1ff;color:#2563eb;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.fyc-desc-box--outline ol{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
@media(max-width:700px){.fyc-desc-boxes,.fyc-desc-box--outline ol{grid-template-columns:1fr}}

/* 6.29.0 — نمایشگر PDF داخل جلسه */
.fyc-doc-viewer{border:1px solid #dbe3ef;border-radius:16px;overflow:hidden;background:#fff;margin:6px 0 10px}
.fyc-doc-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:linear-gradient(90deg,#eef4ff,#f8fafc);border-bottom:1px solid #e1e8f2}
.fyc-doc-name{font-weight:700;font-size:14px;color:#0f172a}
.fyc-doc-actions{display:flex;gap:8px}
.fyc-doc-actions a{padding:5px 12px;border-radius:999px;background:#2563eb;color:#fff!important;font-size:12px;font-weight:700;text-decoration:none!important}
.fyc-doc-actions a+a{background:#fff;color:#2563eb!important;border:1px solid #bfd3ff}
.fyc-doc-frame{display:block;width:100%;height:min(78vh,760px);min-height:420px;border:0;background:#f1f5f9}

/* 6.29.0 — تصویر مجری مهمان */
.fyc-guest-photo{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block}
.fyc-person-letter .fyc-guest-photo{width:100%;height:100%}

.fyc-desc-rich ul,.fyc-desc-rich ol{margin:0!important;padding:0!important}
.fyc-desc-rich p{margin:0 0 8px;line-height:1.9;color:#334155;font-size:14px}
.fyc-desc-ed .wp-editor-wrap{margin-top:6px}

/* 6.28.17 — عنوان تکراری بالای صفحه‌ی مسیر یادگیری (خود صفحه عنوان را در کارت اصلی دارد) */
body.single-fyc_learning_path .page-header{display:none!important}

/* 6.28.19 — کلاس آنلاین: بازه‌ی زمانی و ضبط‌ها */
.fyc-online-time{display:grid;gap:3px;padding:12px 16px;border-radius:14px;border:1px solid #bfd3ff;background:#eff6ff;margin:0 0 12px;color:#1e3a8a}
.fyc-online-time.is-live{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.fyc-online-time.is-ended{background:#f1f5f9;border-color:#e2e8f0;color:#475569}
.fyc-online-time small{font-size:12px;opacity:.85}
.fyc-room-recs{margin-top:14px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
.fyc-room-recs ul{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.fyc-room-recs li{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}
.fyc-room-recs a{font-weight:700;color:#2563eb!important;text-decoration:none!important}
.fyc-room-recs small{color:#64748b}

body.single-fyc_podcast .page-header,body.single-fyc_book .page-header{display:none!important}

/* 6.28.26 — کارت مسیرهای یادگیری */
.fyc-path-list .fyc-path-card-image b{color:#fff!important;font-weight:700!important;font-size:12px!important}
.fyc-path-list .fyc-path-card footer a{color:#fff!important;text-decoration:none!important;font-weight:700!important;font-size:13px!important}
.fyc-path-list header h2{font-size:22px!important;font-weight:800!important;color:#0f172a!important;margin:0!important}
.fyc-path-list header span{color:#2563eb!important;font-size:13px!important;font-weight:600!important}
.fyc-path-list .fyc-path-card h3,.fyc-path-list .fyc-path-card h3 a{color:#0f172a!important;font-weight:800!important;font-size:15px!important;text-decoration:none!important}
.fyc-path-list .fyc-path-card p{color:#64748b!important;font-size:13px!important;font-weight:400!important;line-height:1.9!important}
.fyc-path-list .fyc-path-card footer strong{color:#0f172a!important;font-weight:800!important}
.fyc-path-list .fyc-path-carousel-nav button{color:#334155!important;font-weight:700!important}


/* 6.28.27 — تخفیف شگفت‌انگیز با شمارنده */
.fyc-sale-box{margin:0 0 14px;padding:14px 16px;border-radius:16px;background:linear-gradient(135deg,#fff1f2,#fff7ed);border:1px solid #fecdd3;display:grid;gap:10px;text-align:center}
.fyc-sale-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fyc-sale-badge{padding:4px 12px;border-radius:999px;background:linear-gradient(135deg,#e11d48,#f97316);color:#fff;font-size:12px;font-weight:800}
.fyc-sale-percent{color:#be123c;font-size:16px;font-weight:900}
.fyc-sale-count{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;direction:ltr}
.fyc-sale-count div{background:#fff;border:1px solid #fed7aa;border-radius:12px;padding:8px 4px;display:grid;gap:2px}
.fyc-sale-count b{font-size:22px;font-weight:900;color:#be123c;line-height:1.2}
.fyc-sale-count small{font-size:11px;color:#9a3412}
.fyc-sale-until{font-size:12px;color:#9a3412}
.fyc-sale-over{grid-column:1/-1;color:#64748b;font-weight:700}
.fyc-sale-box.is-ended{background:#f1f5f9;border-color:#e2e8f0}
.fyc-quick-price .fyc-cb-actions{margin:14px 0 0}

/* 6.28.30 — شمارنده‌ی تخفیف شگفت‌انگیز روی کارت دوره */
.fyc-course-card-media,.fyc-showcase-card-media{position:relative}
.fyc-card-sale{position:absolute!important;inset-inline:0;bottom:0;z-index:4;display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:6px 12px!important;background:linear-gradient(90deg,#e11d48,#f97316)!important;color:#fff!important;font-size:12px!important;line-height:1.5!important;border-radius:0!important;box-shadow:none!important}
.fyc-card-sale b{font-weight:800!important;color:#fff!important}
.fyc-card-sale i{font-style:normal!important;font-weight:800!important;direction:ltr;letter-spacing:0;color:#fff!important}
.fyc-card-status{top:8px!important;bottom:auto!important}
.fyc-card-sale i{direction:rtl!important;unicode-bidi:isolate}
