/* LearnDash Elements */
.learndash-wrapper {

    /* Status Complete */
    .ld-status-complete {
        span {
            display: none;
        }

        background-color: #fff !important;
        border: 4px solid #257F5E !important;
    }

    .ld-item-list-actions {
        margin-top: 25px !important;
    }

    /* Course Step Back */
    .ld-course-step-back {
        font: 600 16px/100% 'Quicksand', sans-serif !important;
        text-decoration: none !important;
        color: var(--color-0E7399);
    }

    /* Progress Percentage */
    .ld-progress-percentage {
        color: var(--color-black) !important;
    }

    /* Progress Bar */
    .ld-progress-bar-percentage {
        background-color: var(--color-257F5E) !important;
    }

    .ld-enrollment__pricing {
        .ld-enrollment__pricing-label {
            margin-bottom: 0px !important;
        }
    }

    /* Topic status */
    .ld-ld-topic-status {
        .ld-breadcrumbs {
            padding: 9px 18px !important;

            ol {
                a {
                    font: 600 13.5px/100% 'DM Sans', sans-serif !important;
                }
            }

            .ld-status-progress {
                margin: 0 !important;
            }
        }
    }

    /* Course Tab Tutorial/Material  */
    .ld-tab-bar {
        gap: 50px;

        .ld-tab-bar__tabs span {
            font: 700 20px/1.15 'Quicksand', sans-serif;
        }

        .ld-tab-bar__panels {
            #ld-tab-panel-content {
                p {
                    margin: 0;
                }

                ul {
                    margin: 20px 0;
                }

                div {
                    gap: 18px;
                }

                display: grid;
                gap: 50px;
            }
        }
    }

    /* Lesson List */
    .ld-lesson-list {
        .ld-section-heading {
            margin-bottom: 50px !important;

            h3 {
                font: 600 30px/100% 'Quicksand', sans-serif !important;
                color: var(--color-11546E);
            }

            button {
                border-radius: 56px;
                padding: 10px 20px !important;

                span {
                    font: 500 16px/1.15 'Quicksand', sans-serif;
                }
            }
        }

        .ld-item-lesson-item {
            margin: 0 0 18px 0 !important;

            .ld-item-title {
                font: 400 18px/100% 'DM Sans', sans-serif;

                &:hover {
                    color: var(--color-0E7399);
                }

                color: var(--color-black);

                p {
                    margin: 0;
                }

                .ld-item-component {
                    font: 700 15px/100% 'DM Sans', sans-serif;
                }
            }

            .ld-status-icon {
                margin-top: 0px !important;
            }

            .ld-item-details {
                .ld-expand-button {
                    span {
                        font: 700 15px/100% 'DM Sans', sans-serif;
                    }

                    .ld-icon {
                        width: 24px;
                        height: 24px;
                        padding: 4.5px;
                    }
                }
            }

            .ld-item-list-item-expanded {
                font-size: 16px;
            }
        }

        .ld-item-list-item-quiz {
            .ld-item-name {
                align-items: center;
                font: 400 18px/100% 'DM Sans', sans-serif;

                span,
                .ld-item-title {
                    color: var(--color-black);
                }
            }
        }
    }

    /* Status */
    .ld-course-status {
        .ld-course-status-enrolled {
            padding: 9px 18px !important;

            .ld-progress-stats {
                font: 400 13.5px/100% 'DM Sans', sans-serif;
            }
        }
    }

    /* Lesson Topic List */
    .ld-lesson-topic-list {
        .ld-item-list-item {
            .ld-item-name {
                font: 400 18px/100% 'DM Sans', sans-serif;
            }
        }
    }
}

/* Media Query regroupée pour écrans de 320px - Valeurs hardcodées */
@media (max-width: 320px) {
    .ld-button {
        color: #0E7399;
    }
    
    .ld-button:hover {
        color: #000000 !important;
    }
    
    .ld-button:active {
        background-color: #257F5E !important;
    }
    
    .ld-topic-title:hover {
        color: #11546E;
    }
    
    .ld-topic-title:hover .ld-topic-title {
        color: #0E7399;
    }
    
    .ld-topic-title:hover .ld-topic-title {
        color: #000000;
    }
    
    .ld-topic-title:hover .ld-topic-title {
        color: #000000;
    }
}

img.attachment-post-thumbnail {
  object-fit: contain !important;
}

.learndash-wrapper .ld-item-list {
    margin-bottom: 100px !important;
}