/* ------------------------------------------------------ */
/* متغیرهای رنگی اختصاصی شما */
/* ------------------------------------------------------ */
:root {
    --clt-font-family: 'IRANSans', Tahoma, sans-serif;
    --clt-color-primary: #A96045;
    --clt-color-primary-light: #d6876a;
    --clt-color-quiz : #2e7d32;
    --clt-color-secondary: #48413A;
    --clt-color-header-bg: #A960451a;
    --clt-color-white: #ffffff;
    --clt-color-gray-light: #fcfcfd;
    --clt-color-gray-border: #f1f5f9;
    --clt-color-free-badge: #2e7d32;
    --clt-color-free-bg: #e8f5e9;
    /* انیمیشن فوق‌العاده نرم و پریمیوم */
    --clt-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* کانتینر اصلی */
.product-course-headings-section{
    font-family: var(--clt-font-family);
    color: var(--clt-color-secondary);
    max-width: 900px;
    margin: 2rem auto;
    direction: rtl;
}
.product-course-heading-section a{
    color: var(--clt-color-secondary);
}

.section-title-2-wrap {
    margin-bottom: 2rem;
    /*border-bottom: 2px solid var(--clt-color-gray-border);*/
    padding-bottom: 0.5rem;
}

.section-title-2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--clt-color-secondary);
}

.product-course-headings {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ------------------------------------------------------ */
/* هدر فصل (آکاردئون مدرن شده) */
/* ------------------------------------------------------ */
.product-course-heading {
    margin-bottom: 1.5rem;
}

.product-course-heading-head {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(169, 96, 69, 0.12);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    text-align: right;
    transition: var(--clt-transition);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.product-course-heading-head:hover,
.product-course-heading-head:focus {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(169, 96, 69, 0.08);
    border-color: rgba(169, 96, 69, 0.4);
}

.product-course-heading-head-title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
}

.main-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--clt-color-secondary);
    font-family: "iransans";
}

.title-separator {
    color: var(--clt-color-primary);
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.5;
}

.product-course-heading-head-prefix {
    background: linear-gradient(120deg, var(--clt-color-primary), var(--clt-color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.product-course-heading-head-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: 1.5rem;
}

.product-course-heading-head-sections,
.product-course-heading-head-length {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clt-color-secondary);
    opacity: 0.9;
    font-family:'iransans';
}

.product-course-heading-head-sections svg,
.product-course-heading-head-length svg {
    color: var(--clt-color-primary);
}

.product-course-heading-head-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--clt-color-primary);
}

.product-course-heading[aria-expanded="true"] .product-course-heading-head-arrow {
    transform: rotate(180deg);
}

/* ------------------------------------------------------ */
/* لیست جلسات (بدنه) */
/* ------------------------------------------------------ */
.product-course-heading-sections {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    background-color: var(--clt-color-white);
    border-radius: 14px;
    border: 1px solid var(--clt-color-gray-border);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.product-course-heading-section {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--clt-color-gray-border);
    transition: var(--clt-transition);
    position: relative;
}

.product-course-heading-section:last-child {
    border-bottom: none;
}

.product-course-heading-section:hover {
    background-color: var(--clt-color-gray-light);
    padding-right: 1.8rem;
    box-shadow: inset -4px 0 0 var(--clt-color-primary);
}

.product-course-heading-section-index {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    color: var(--clt-color-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    margin-left: 1rem;
    flex-shrink: 0;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 2px 4px rgba(0,0,0,0.05);
    transition: var(--clt-transition);
}

.product-course-heading-section:hover .product-course-heading-section-index {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border-color: var(--clt-color-primary-light);
    color: var(--clt-color-primary);
}

.product-course-heading-section-title {
    flex-grow: 1;
    min-width: 0; /* اجازه می‌دهد عنوان داخل فلکس کوچک شده و سه‌نقطه بخورد */
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0 1rem; /* فاصله‌ی تضمینی بین عنوان جلسه و زمان آن */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.5;
}

/* عنوان جلسه: حداکثر یک خط با line-height برابر ۲ و سه‌نقطه در انتها */
.product-course-heading-section-title a {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    line-height: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

/* با هاور روی ردیف، عنوان به‌صورت کامل و چندخطی نمایش داده می‌شود */
.product-course-heading-section:hover .product-course-heading-section-title a,
.product-course-heading-section-title a:hover {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

@keyframes pulse-free-badge {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.product-course-heading-section-free {
    background-color: var(--clt-color-free-bg);
    color: var(--clt-color-free-badge);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
    animation: pulse-free-badge 2s infinite;
}

.topic-actions-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-right: auto;
}

.product-course-heading-section-length-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clt-color-secondary);
    opacity: 0.7;
    white-space: nowrap;
}

.product-course-heading-section-length-icon {
    display: flex;
    color: var(--clt-color-secondary);
}

/* ------------------------------------------------------ */
/* دکمه‌های مدرن */
/* ------------------------------------------------------ */
.product-course-heading-section-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--clt-transition);
    white-space: nowrap;
    background: rgba(169, 96, 69, 0.08);
    border: 1px solid rgba(169, 96, 69, 0.3);
    color: var(--clt-color-primary);
}

.product-course-heading-section-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

.product-course-heading-section-btn:hover {
    background: var(--clt-color-primary);
    border-color: var(--clt-color-primary);
    color: var(--clt-color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 96, 69, 0.2);
}

.product-course-heading-section-btn:hover svg {
    transform: scale(1.1);
}

.product-course-heading-section-btn.btn-buy-mode {
    background: rgba(72, 65, 58, 0.05);
    border: 1px solid rgba(72, 65, 58, 0.2);
    color: var(--clt-color-secondary);
}

.product-course-heading-section-btn.btn-buy-mode:hover {
    border-color: var(--clt-color-secondary);
    box-shadow: 0 4px 12px rgba(72, 65, 58, 0.2);
}

/* ------------------------------------------------------ */
/* پاپ‌آپ ویدیو (استایل‌های جدید و سینمایی) */
/* ------------------------------------------------------ */
.clt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.85); /* رنگ تیره و عمیق‌تر برای بک‌گراند */
    z-index: 99999999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px); /* افکت شیشه‌ای بک‌گراند */

    /* انیمیشن محو شدن */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* کلاسی که با جاوااسکریپت اضافه می‌شود */
.clt-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.clt-modal-content {
    position: relative;
    width: 92%;
    max-width: 850px;
    background: #000; /* پس زمینه مشکی خالص برای ویدیو */
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1);

    /* انیمیشن زوم و بالا آمدن مدال */
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    overflow: hidden; /* جلوگیری از بیرون زدن ویدیو از حاشیه‌های گرد */
}

.clt-modal-overlay.active .clt-modal-content {
    transform: scale(1) translateY(0);
}

.clt-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: var(--clt-transition);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.clt-modal-close:hover {
    background: var(--clt-color-primary);
    color: #fff;
    transform: rotate(90deg) scale(1.1); /* افکت جذاب چرخش هنگام هاور */
    border-color: var(--clt-color-primary);
}

/* نگه‌دارنده ویدیو برای حفظ نسبت ۱۶:۹ */
.clt-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* نسبت تصویر 16:9 */
    background: #000;
}

.clt-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
    border: none;
}

/* ------------------------------------------------------ */
/* ریسپانسیو (موبایل) */
/* ------------------------------------------------------ */
@media (max-width: 768px) {

    .clt-quiz-item{
        padding-right: 20px;
    }
    .product-course-heading-head-title .main-title,
    .product-course-heading-head-prefix{
        font-size: 14px;
    }

    .product-course-heading-head {
        flex-direction: row;
        align-items: center;
        gap: 1.2rem;
    }

    .product-course-heading-head-arrow {
        position: absolute;
        left: 1rem;
    }

    .product-course-heading-head-info {
        margin-left: calc(1rem + 8px);
        justify-content: flex-start;

    }
    .product-course-heading-head-info div,
    .product-course-heading-head-info time{
        font-size: 12px;
    }
    .product-course-heading-section {
        padding: 1.2rem 1rem; /* افزایش پدینگ برای ارتفاع بیشتر */
        flex-wrap: nowrap; /* همه چیز در یک ردیف باقی می‌ماند */
        gap: 0.6rem;
        overflow: visible; /* حذف overflow برای جلوگیری از برش خوردن متن */
    }

    .product-course-heading-section:hover {
        padding-right: 1.2rem;
    }

    .product-course-heading-section-index {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        margin-left: 0;
        flex-shrink: 0;
    }
    .product-course-heading-section-title {
        flex-grow: 1;
        min-width: 0; /* تا عنوان داخل ردیف کوچک شده و سه‌نقطه بخورد */
        font-size: 14px;
        overflow: hidden;
        display: flex;
        padding: 0.3rem;
    }


    .product-course-heading-section-free {
        display: inline-block;
        vertical-align: middle;
        margin-right: 0.3rem;
    }

    .topic-actions-wrap {
        width: auto;
        justify-content: flex-end;
        margin-top: 0;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .product-course-heading-section-length-wrap {
        font-size: 0.75rem;
    }

    .product-course-heading-section-btn {
        padding: 0.4rem 0.4rem;
        font-size: 12px;
        justify-content: center; /* آیکون و متن دقیقاً در وسط دکمه قرار می‌گیرند */
    }


    /* پاپ‌آپ ویدیو در موبایل */
    .clt-modal-content {
        width: 95%;
        border-radius: 12px;
    }

    .clt-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
    .btn-text-desktop{
        display: none;
    }
}
/* استایل‌های پایه پاپ‌آپ */
.clt-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* قرارگیری روی تمامی عناصر سایت */
    display: flex;
    align-items: center;
    justify-content: center;

    /* مخفی بودن پیش‌فرض با قابلیت انیمیشن‌پذیری */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

/* کلاس نمایش پاپ‌آپ */
.clt-video-modal.active {
    visibility: visible;
    opacity: 1;
}

/* پس‌زمینه تاریک با افکت بلور */
.clt-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* محفظه دربرگیرنده ویدیو */
.clt-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #000;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    z-index: 1000000;

    /* افکت بزرگ‌نمایی هنگام باز شدن */
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clt-video-modal.active .clt-video-modal-content {
    transform: scale(1);
}

/* دکمه بستن (ضربدر) */
.clt-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.clt-close-modal:hover {
    color: #ff5252;
    background: rgba(0, 0, 0, 0.9);
}

/* حفظ نسبت ابعاد 16:9 برای ویدیو */
.clt-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* نسبت دقیق 16 به 9 */
    background-color: #000;
}

.clt-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
}
.product-course-heading-progress{
    height: 40px;
    margin-left: 12px;
}
/* ==========================================================================
   Quiz Items Custom Styles
   ========================================================================== */

/* Hover state for Quiz Items: Green background */
.product-course-heading-section.clt-quiz-item:hover {
    background-color: #6c847e1a !important; /* Transparent green */
    box-shadow: inset -4px 0 0 var(--clt-color-free-badge) !important; /* Green right border instead of orange */
}

/* Hover state for Quiz Icon (Checklist) */
.product-course-heading-section.clt-quiz-item:hover .clt-quiz-icon svg {
    stroke: var(--clt-color-free-badge) !important;
}

/* Optional: Adding a subtle border to the icon itself on hover if needed */
.product-course-heading-section.clt-quiz-item:hover .clt-quiz-icon {
    border: 1px solid var(--clt-color-free-badge);
    border-radius: 4px;
}

/* ==========================================================================
   Free Items Custom Styles
   ========================================================================== */

/* Green theme for play buttons in free items */
.product-course-heading-section.free .clt-play-btn {
    background-color: #e6f4ea !important; /* Light green background */
    color: #1e8e3e !important; /* Dark green text/icon */
    border: 1px solid #1e8e3e !important;
}

.product-course-heading-section.free .clt-play-btn:hover {
    background-color: #1e8e3e !important;
    color: #ffffff !important;
}

.product-course-heading-section.free .clt-play-btn svg {
    fill: currentColor !important;
}
/* ===== آیتم فعال در مسیر دوره (جلسه فعلی) ===== */

.product-course-heading-section.is-active-topic {
    box-shadow: inset -4px 0 0 var(--clt-color-primary);
}

.product-course-heading-section.is-active-topic .product-course-heading-section-title {
    color: var(--clt-color-primary);
}

.product-course-heading-section.is-active-topic .product-course-heading-section-index {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    border-color: var(--clt-color-primary-light);
    color: var(--clt-color-primary);
}

.product-course-heading-section.is-active-topic .product-course-heading-section-name {
    font-weight: 700;
}

/* در حالت فعال، دکمه مشاهده کمی برجسته‌تر باشد */
.product-course-heading-section.is-active-topic .product-course-heading-section-btn {
    border-color: var(--clt-color-primary);
    color: var(--clt-color-primary);
}
.topic-status-wrap{
    display: flex;
}
/* =========================================
   Completion Tooltip
========================================= */

.topic-complete-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Tooltip bubble */
.clt-has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 66px;
    transform: translate(-50%, 8px);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 5;
}



/* Show tooltip */
.clt-has-tooltip:hover::after,
.clt-has-tooltip:hover::before,
.clt-has-tooltip:focus-visible::after,
.clt-has-tooltip:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -2px);
}

/* Completed */
.topic-complete-indicator--done.clt-has-tooltip::after {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #fff;
}

.topic-complete-indicator--done.clt-has-tooltip::before {
    border-top-color: #22c55e;
}

/* Pending */
.topic-complete-indicator--pending.clt-has-tooltip::after {
    background: #e5e7eb;
    color: #374151;
}

.topic-complete-indicator--pending.clt-has-tooltip::before {
    border-top-color: #e5e7eb;
}


/* Mobile adjustments */
@media (max-width: 768px) {
    .clt-has-tooltip::after {
        font-size: 11px;
        padding: 5px 10px;
        transform: translate(-50%, -14px);
    }
}

/* ================================
   Mark Complete Button Styles
   ================================ */

.clt-mark-complete-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #0073aa;
    background-color: #0073aa;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.clt-mark-complete-btn:hover {
    background-color: #005f8d;
    border-color: #005f8d;
    color: #fff;
}

.clt-mark-complete-btn--completed {
    background-color: #46b450;
    border-color: #46b450;
}

.clt-mark-complete-btn--completed:hover {
    background-color: #3da246;
    border-color: #3da246;
}

.clt-mark-complete-btn--loading {
    opacity: 0.7;
    cursor: wait;
}

.clt-mark-complete-status-message {
    display: inline-block;
    margin-right: 10px;
    font-size: 13px;
    color: #555;
}

.clt-mark-complete-msg--login-required {
    font-size: 13px;
    color: #c00;
}

/* ------------------------------------------------------ */
/* استایل‌های دکمه تکمیل وضعیت (Mark Complete)             */
/* ------------------------------------------------------ */
.clt-mark-complete-wrapper {
    width: fit-content;
}

/* اختصاص پس‌زمینه سبز کمرنگ به تگ فرم که لرن‌دش می‌سازد */
.clt-mark-complete-wrapper form {
    background-color: var(--clt-color-free-bg, #e8f5e9) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(46, 125, 50, 0.1) !important;
    margin: 0;
    padding: 0;
    display: inline-flex;
    transition: var(--clt-transition, all 0.3s ease) !important;
}

.clt-mark-complete-wrapper form:hover {
    background-color: #dcedc8 !important; /* کمی تیره‌تر شدن سبز کمرنگ هنگام هاور */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.1) !important;
}
.topic-completed{
    background-color: #dcedc8 !important; /* کمی تیره‌تر شدن سبز کمرنگ هنگام هاور */
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.1) !important;
    border: 1px solid rgba(46, 125, 50) !important;
    border-radius: 8px !important;
    padding: 8px 20px !important; /* ابعاد ظریف و کوچکتر */
    font-size: 13px !important;
    font-family: var(--clt-font-family) !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    /* رنگ فال‌بک (پشتیبان) برای مرورگرهای قدیمی */
    color: #2e7d32 !important;

}

/* استایل‌دهی دکمه داخلی برای اعمال متن گرادیانت و سایز کوچکتر */
.clt-mark-complete-wrapper input[type="submit"],
.clt-mark-complete-wrapper button,
.clt-mark-complete-wrapper .learndash_mark_complete_button {
    background: transparent !important; /* پس‌زمینه را شفاف می‌کنیم تا رنگ فرم دیده شود */
    border: none !important;
    padding: 8px 20px !important; /* ابعاد ظریف و کوچکتر */
    font-size: 13px !important;
    font-family: var(--clt-font-family) !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    /* رنگ فال‌بک (پشتیبان) برای مرورگرهای قدیمی */
    color: #2e7d32 !important;
}

/* ایجاد گرادیانت سبز روی متن دکمه (پشتیبانی در مرورگرهای مدرن) */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .clt-mark-complete-wrapper input[type="submit"],
    .clt-mark-complete-wrapper button,
    .clt-mark-complete-wrapper .learndash_mark_complete_button {
        background-image: linear-gradient(to right, #1b5e20, #4caf50) !important; /* گرادیانت از سبز تیره به روشن */
        -webkit-background-clip: text !important;
        background-clip: text !important;
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
    }
}
.clt-mark-complete-wrapper svg{
    stroke: var(--clt-color-free-badge);
}
.clt-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.clt-completed { background-color: #e6fffa; color: #38b2ac; }
.clt-in-progress { background-color: rgba(46, 125, 50, 0.09); color: #2e7d32; }
.clt-not-started { background-color: #f7fafc; color: #718096; }

.clt-card-progress-container { margin:0; }
.clt-card-progress-info { font-size: 13px; color:var(--clt-color-primary); font-weight: 700; margin-bottom: 5px; text-align: right; direction: rtl; }

.clt-card-progress-bg {
    height: 6px;
    background: #edf2f7;
    border-radius: 10px;
    overflow: hidden;
}

.clt-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clt-color-primary), var(--clt-color-primary-light));
    transition: width 0.4s ease;
}

/* ==========================================================================
   Like Button Styles ([clt_like_step])
   ========================================================================== */
.clt-like-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'iransans';
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.clt-like-btn:hover:not(.clt-like-btn--disabled) {
    color :#d32f2f;
    background-color: #fff0f0;
    border-color: #ffcdd2;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* حالت لایک شده */
.clt-like-btn.liked {
    background-color: #fff0f0;
    border-color: #ffcdd2;
    color: #d32f2f;
}

.clt-like-btn.liked:hover:not(.clt-like-btn--disabled) {
    background-color: #ffeaea;
}

/* آیکون قلب با استفاده از Mask تصویر SVG (برای تغییر رنگ راحت با CSS) */
.clt-like-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" fill="currentColor"/></svg>');
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" fill="currentColor"/></svg>');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transition: transform 0.2s ease;
}

.clt-like-btn:active .clt-like-icon {
    transform: scale(0.8);
}

/* حالت در حال لود شدن (Ajax) */
.clt-like-btn.is-loading {
    opacity: 0.7;
    cursor: wait;
}

.clt-like-btn.is-loading .clt-like-icon {
    animation: clt-pulse 1s infinite alternate;
}

/* حالت غیرفعال (کاربر لاگین نکرده) */
.clt-like-btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

@keyframes clt-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

/* ==============================
   Progress Grid (Custom LD Toolkit)
   ============================== */

.clt-progress-grid-wrapper {
    margin-top: 24px;
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    font-family: 'iransans';
}

.clt-progress-grid-wrapper .clt-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
@media(max-width:1024px){
    .clt-progress-grid-wrapper .clt-toc-header {
    display: flex;
    flex-flow:column-reverse;
    align-items: flex-start;
    gap:16px;
    margin-bottom: 24px;
}
}
.clt-progress-grid-wrapper .clt-toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    line-height: 2em;
}

.clt-progress-grid-wrapper .clt-toc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.clt-progress-grid-wrapper .clt-toc-badge-access {
    background-color: #e6f6f0;
    color: #0a8f5a;
}

.clt-progress-grid-wrapper .clt-toc-badge-locked {
    background-color: #ffeceb;
    color: #d93025;
}

/* Legend */

.clt-progress-grid-legend {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.clt-progress-grid-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #555;
}

.clt-progress-grid-legend-item .clt-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.clt-progress-grid-legend-item.clt-status-completed .clt-status-dot {
    background-color: #16a34a;
}

.clt-progress-grid-legend-item.clt-status-in-progress .clt-status-dot {
    background-color: #f97316;
}

.clt-progress-grid-legend-item.clt-status-not-started .clt-status-dot {
    background-color: #9ca3af;
}

/* Sections */

.clt-progress-grid-section {
    margin-top: 12px;
}

.clt-progress-grid-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.clt-progress-grid-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

/* Grid layout */

.clt-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

/* Grid items – نسخه مینیمال و فشرده */

.clt-progress-grid-item {
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px;
    border-radius: 8px;
    text-decoration: none;
    background-color: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.4);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}

.clt-progress-grid-item:hover {
    background-color: #f3f4f6;
    border-color: rgba(100, 116, 139, 0.8);
    transform: translateY(-1px);
}

.clt-progress-grid-item-type {
    font-size: 0.62rem;
    font-weight: 500;
    color: #6b7280;
}

.clt-progress-grid-item-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.clt-progress-grid-item-duration {
    font-size: 0.62rem;
    color: #6b7280;
}

/* Status colors */

.clt-progress-grid-item-completed {
    background-color: #ecfdf3;
    border-color: #4ade80;
}

.clt-progress-grid-item-completed .clt-progress-grid-item-title {
    color: #166534;
}

.clt-progress-grid-item-in-progress {
    background-color: #fff7ed;
    border-color: #fdba74;
}

.clt-progress-grid-item-in-progress .clt-progress-grid-item-title {
    color: #9a3412;
}

.clt-progress-grid-item-not-started {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.clt-progress-grid-empty {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
}

/* Responsive */

@media (max-width: 640px) {
    .clt-progress-grid-wrapper {
        padding: 16px;
    }

    .clt-progress-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Progress Grid – base status colors */
.clt-progress-grid-item-completed {
    background-color: #ecfdf3;
    border: 1px solid #22c55e;
    color: #166534;
}

.clt-progress-grid-item-in-progress {
    background-color: #fff7ed;
    border: 1px solid #fb923c;
    color: #7c2d12;
}

.clt-progress-grid-item-not-started {
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    color: #4b5563;
}

/* Hover: همان تم رنگی، فقط کمی پررنگ‌تر یا روشن‌تر، نه خاکستری یکسان */

.clt-progress-grid-item-completed:hover {
    background-color: #d1fae5;
    border-color: #16a34a;
    color: #166534;
}

.clt-progress-grid-item-in-progress:hover {
    background-color: #ffedd5;
    border-color: #f97316;
    color: #7c2d12;
}

.clt-progress-grid-item-not-started:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}
@media(max-width:768px){
    .product-course-heading-head-sections{
        display:none !important;
    }
}
.section-title-2-title{
    font-family:'gramophone' !important;
    font-weight: 900 !important;
}

/* ==========================================================================
   Activity Dashboard ([custom_ld_activity_dashboard])
   نمای تجمیعی دوره: حلقه‌ی پیشرفت، آمار، نوار زمان تماشا و دکمه‌ی ادامه
   ========================================================================== */
.clt-dash {
    font-family: var(--clt-font-family);
    direction: rtl;
    color: var(--clt-color-secondary);
    background: #fff;
    border: 1px solid rgba(169, 96, 69, 0.14);
    border-radius: 14px;
    padding: 20px;
}

.clt-dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.clt-dash-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.8;
}

.clt-dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.clt-dash-badge svg {
    width: 13px;
    height: 13px;
}

.clt-dash-badge-access { background: #e6f6f0; color: #0a8f5a; }
.clt-dash-badge-locked { background: #ffeceb; color: #d93025; }

.clt-dash-main {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 18px;
}

.clt-dash-ring {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clt-color-header-bg);
    border-radius: 12px;
    padding: 14px;
}

.clt-dash-stats {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.clt-dash-chips {
    display: flex;
    gap: 10px;
}

.clt-dash-chip {
    flex: 1;
    min-width: 0;
    background: var(--clt-color-gray-light);
    border: 1px solid var(--clt-color-gray-border);
    border-radius: 10px;
    padding: 10px 12px;
}

.clt-dash-chip-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8a8079;
    font-size: 0.72rem;
    margin-bottom: 4px;
}

.clt-dash-chip-label svg {
    width: 15px;
    height: 15px;
    color: var(--clt-color-primary);
    flex-shrink: 0;
}

.clt-dash-chip-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.clt-dash-chip-value .clt-dash-total {
    color: #b8b0a8;
    font-size: 0.8rem;
    font-weight: 600;
}

.clt-dash-clock {
    direction: ltr;
    display: inline-block;
    unicode-bidi: isolate;
}

.clt-dash-barbox {
    background: var(--clt-color-gray-light);
    border: 1px solid var(--clt-color-gray-border);
    border-radius: 10px;
    padding: 12px;
}

.clt-dash-barhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: #8a8079;
    margin-bottom: 8px;
}

.clt-dash-bar {
    height: 8px;
    background: var(--clt-color-gray-border);
    border-radius: 999px;
    overflow: hidden;
}

.clt-dash-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clt-color-primary), var(--clt-color-primary-light));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.clt-dash-motiv {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--clt-color-free-badge);
    margin-top: 8px;
}

.clt-dash-motiv svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.clt-dash-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    background: var(--clt-color-header-bg);
    border: 1px solid rgba(169, 96, 69, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    text-decoration: none;
    transition: var(--clt-transition);
}

.clt-dash-cta:hover {
    border-color: var(--clt-color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(169, 96, 69, 0.12);
}

.clt-dash-cta-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--clt-color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clt-dash-cta-icon svg { width: 18px; height: 18px; }

.clt-dash-cta-text {
    flex: 1;
    min-width: 0;
}

.clt-dash-cta-label {
    display: block;
    font-size: 0.68rem;
    color: #8a8079;
    margin-bottom: 2px;
}

.clt-dash-cta-title {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clt-color-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.clt-dash-cta-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--clt-color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.clt-dash-cta-action svg { width: 16px; height: 16px; }

.clt-dash-empty {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 640px) {
    .clt-dash { padding: 16px; }

    .clt-dash-ring { flex-basis: 100%; }

    .clt-dash-chips { flex-wrap: wrap; }

    .clt-dash-chip { flex: 1 1 calc(50% - 5px); }

    .clt-dash-cta-action {
        font-size: 0; /* روی موبایل فقط فلش نمایش داده شود تا فضای عنوان حفظ شود */
        gap: 0;
    }

    .clt-dash-cta-action svg { width: 18px; height: 18px; }
}
