
/* =========================================
   Frontend Course Curriculum
   ========================================= */

.mergheneh-course-curriculum {
    margin-top: 30px;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 15px;
}

.mergheneh-curriculum-title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.mergheneh-curriculum-chapter {
    margin-bottom: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.mergheneh-curriculum-chapter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    background: #f7f7f7;
}

.mergheneh-curriculum-chapter-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.mergheneh-curriculum-chapter-header span {
    font-size: 13px;
    white-space: nowrap;
    color: #666;
}

.mergheneh-curriculum-lessons {
    padding: 5px 18px;
}

.mergheneh-curriculum-lesson {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #eeeeee;
}

.mergheneh-curriculum-lesson:last-child {
    border-bottom: none;
}

.mergheneh-curriculum-lesson-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mergheneh-lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 12px;
}

.mergheneh-curriculum-lesson-title {
    font-size: 14px;
}

.mergheneh-lesson-action {
    flex-shrink: 0;
    text-decoration: none !important;
}

.mergheneh-lesson-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 13px;
}

.mergheneh-lesson-locked .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

@media (max-width: 576px) {

    .mergheneh-curriculum-lesson {
        align-items: flex-start;
        flex-direction: column;
    }

    .mergheneh-lesson-action,
    .mergheneh-lesson-locked {
        margin-right: 38px;
    }

}

/* =========================================
   Bootstrap Accordion - Course Curriculum
   ========================================= */

.mergheneh-course-curriculum .accordion-item {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.mergheneh-course-curriculum .accordion-button {
    gap: 15px;
    font-weight: 600;
}

.mergheneh-course-curriculum .accordion-button:not(.collapsed) {
    box-shadow: none;
    background-color: #f1f9f6 ;
}

.mergheneh-chapter-title {
    flex: 1;
}

.mergheneh-chapter-count {
    margin-left: 35px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    color: #777;
}

.mergheneh-curriculum-lesson {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.mergheneh-curriculum-lesson:last-child {
    border-bottom: none;
}

.mergheneh-curriculum-lesson-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mergheneh-lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 12px;
}

.mergheneh-curriculum-lesson-title {
    font-size: 14px;
}

.mergheneh-lesson-action {
    flex-shrink: 0;
    white-space: nowrap;
}

.mergheneh-lesson-locked {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 13px;
}

@media (max-width: 576px) {

    .mergheneh-curriculum-lesson {
        align-items: flex-start;
        flex-direction: column;
    }

    .mergheneh-lesson-action,
    .mergheneh-lesson-locked {
        margin-right: 38px;
    }

    .mergheneh-chapter-count {
        margin-left: 20px;
    }

}

/* =========================================
   Lesson Row
   ========================================= */

.mergheneh-curriculum-lesson-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mergheneh-lesson-type-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f5f5f5;
    font-size: 14px;
}

.mergheneh-lesson-number {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 12px;
    font-weight: 600;
}

.mergheneh-curriculum-lesson-title {
    min-width: 0;
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
   Lesson Actions
   ========================================= */

.mergheneh-lesson-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.mergheneh-lesson-action {
    white-space: nowrap;
}


/* =========================================
   Video Player
   ========================================= */

.mergheneh-lesson-player {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 15px;
}

.mergheneh-video-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.mergheneh-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
}


/* =========================================
   Product Quick Navigation
========================================= */
html {
    scroll-behavior: smooth;
}
.mergheneh-product-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 8px;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.mergheneh-product-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 10px 18px;

    color: #555;
    text-decoration: none;

    border-radius: 8px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.mergheneh-product-nav-item:hover {
    color: #000;
    background-color: #f5f5f5;
}

.mergheneh-product-nav-item i {
    font-size: 14px;
}

.mergheneh-product-nav-item small {
    font-size: 12px;
    opacity: 0.7;
}
/* جلوگیری از چسبیدن عنوان بخش به بالای صفحه
   هنگام اسکرول با anchor */

#product-description,
#course-curriculum {
    scroll-margin-top: 30px;
}




/* =========================================
   Product Navigation - Desktop
========================================= */

.mergheneh-product-nav {
    position: sticky;
    top: 15px;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin-left: auto;
    margin-right: auto;

    gap: 4px;

    padding: 5px;

    background: #fff;

    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mergheneh-product-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 8px 16px;

    color: #555;
    text-decoration: none;

    border-radius: 7px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.mergheneh-product-nav-item:hover {
    color: #000;
    background-color: #f5f5f5;
}

.mergheneh-product-nav-item i {
    font-size: 13px;
}

.mergheneh-product-nav-item small {
    font-size: 11px;
    opacity: 0.65;
}

/* موبایل */

@media (max-width: 410px) {

    .mergheneh-product-nav {
        position: sticky;
        top: 10px;
        z-index: 100;

        display: flex;
        width: 100%;
        gap: 4px;
        padding: 5px;
        margin-bottom: 1.5rem !important;

        background: #fff;
    }

    .mergheneh-product-nav-item {
        flex: 1;
        min-width: 0;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 3px;

        padding: 9px 6px;

        font-size: 13px;
        line-height: 1.5;

        text-align: center;
        white-space: nowrap;
    }

    .mergheneh-product-nav-item i {
        font-size: 14px;
    }

    .mergheneh-product-nav-item small {
        display: block;
        font-size: 10px;
        line-height: 1.4;
        opacity: 0.65;
    }

}