/*
 Theme Name:   EduPress Child
 Theme URI:    https://edupress.thimpress.com/
 Description:  EduPress Child Theme
 Author:       ThimPress
 Author URI:   https://thimpress.com
 Template:     edu-press
 Version:      1.0.0
 Text Domain:   edu-press-child
*/

#dashboard-statistic .statistic-box[title="Total Student"],
.learnpress .lp-content-area .review-stars-rated,
.course-rate,
.lp-courses-rating-reviews-ajax .item-title,
.otgs-development-site-front-end,
.lp-single-instructor .instructor-avatar .lp-btn-to-edit-avatar.lp-btn-to-edit-avatar,
.lp-instructor-meta .instructor-item-meta .lp-icon-user-graduate,
.lp-instructor-meta .instructor-item-meta .instructor-total-students,
.ul-instructor-courses .review-stars-rated,
.lp-archive-courses .course .review-stars-rated {
    display: none;
}


.course-thumbnail,
.course,
.e-con-inner {
    position: relative;
    /* containing block for the absolute child */
}

.course-thumbnail .course-img img {
    display: block;
    /* avoid inline gaps */
    width: 100%;
    height: auto;
}

body .lp-archive-courses .lp-content-area.has-sidebar{
    flex-direction: row-reverse;
}


.lp-label.lp-label--partner {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    /* above the image */
    background: #3498DB;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    pointer-events: none;
}

.lp-partner-badge {
    z-index: 2;
    /* above the image */
    background: #000;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
    pointer-events: none;
    margin: 12px;
}

.partnerlabel {
    position: absolute;
    padding: 0 !important;
}

/* Defensive: if any ancestor gives the image a higher stacking context */
.course-thumbnail .course-img,
.course-thumbnail a {
    position: static;
    /* ensure no higher z-index/stacking context is created */
    z-index: auto;
}

/* If some theme CSS puts transforms/filters on the image (creates new stacking context),
   you can force the label above everything inside .course-thumbnail: */
.course-thumbnail {
    isolation: isolate;
}

.course-default-thumbnail {
    width: 100%;
    display: block;
}

.course-default-thumbnail img {
    width: 100%;
    display: block;
    height: 230px;
    border-radius: 20px 20px 0px 0px;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: #000000;
}

body .lp-single-course__header__inner {
    min-height: 228px;
}

/*------------ header -----------------*/

.site-header {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.site-header a {
    font-weight: 600;
}

.site-header .width-logo a img {
    max-height: 78px;
}

#masthead.affix .width-logo a img {
    max-height: 55px;
}

.header-right .widget-menu-item {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.sticky-header #masthead.affix {
    z-index: 9999 !important;
}

header#masthead {
    border: none !important;
}


.sticky-header #masthead ul.navbar-main-menu>li>a {
    transition: all ease-out 0.3s;
}

.sticky-header #masthead.affix ul.navbar-main-menu>li>a {
    padding: 15px 20px;
}


.section-hero {
    left: 0px !important;
}

@media screen and (max-width: 1024px) {
    .header-right .widget-menu-item {
        margin-right: 15px;
    }

    .navigation .width-logo.table-cell {
        display: inline-block;
    }

    .navigation {
        min-height: auto !important;
    }
}

@media screen and (max-width: 768px) {


    .section-hero {
        background-size: cover !important;
        background-position: top left !important;
        padding: 120px 0 100px !important;
        margin: 0 auto !important;
    }

    .section-hero .elementor-container {
        min-height: inherit !important;
    }
}

body .archive .lp-archive-courses .top_heading {
    margin-bottom: 30px;
}

@media screen and (max-width: 900px) {
    body .thim-ekits-course__inner {
        column-gap: 10px;
        row-gap: 10px;
    }
}

/*------------ categories -----------------*/

.thim-ekits-course-categories .thim-ekits-course-categories__item {
    border: 1px solid var(--thim-border_color);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thim-ekits-course-categories img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.thim-ekits-course-categories .thim-ekits-course-categories__item {
    text-align: left;
}

.thim-ekits-course-categories .thim-ekits-course-categories__item:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}




@media screen and (max-width: 768px) {

    .card-item:hover,
    .thim-ekits-course-categories .thim-ekits-course-categories__item:hover {
        transform: translateY(0) !important;
    }

    .thim-ekits-course-categories {
        grid-template-columns: 1fr 1fr !important;
        margin-bottom: 40px !important;
        gap: 20px !important;
    }
}

/*------------ categories -----------------*/

.card-item {
    border: 1px solid #EAEAEA;
    padding: 0;
    height: 100%;
}

.card-item>div {
    height: 100%;
}

.card-item:hover {
    filter: none !important;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.card-item .e-con-inner {
    padding: 0;
}

.card-item .e-con-inner>div {
    padding: 0 15px;
}

.elementor-widget-thim-loop-item-info .elementor-icon-list-icon svg path {
    fill: #3498DB;
}

.card-item .e-con-inner .elementor-widget-thim-loop-item-featured-image {
    padding: 0;
    margin: 0 !important;
}

.card-item .e-con-inner .elementor-heading-title {
    margin-top: 12px;
}

.card-item .e-con-inner .elementor-button {
    border: none !important;
    border-top: 1px solid #EAEAEA !important;
    border-radius: 0 !important;
    color: #000000 !important;
    padding: 12px 0 12px !important;
    font-weight: 600 !important;
}

.card-item .e-con-inner .elementor-button:hover,
.card-item .e-con-inner .elementor-button:active,
.card-item .e-con-inner .elementor-button:focus {
    background-color: transparent !important;
    border-color: transparent !important;
    border-top: 1px solid #EAEAEA !important;
    color: #3498DB !important;
}

.card-item:hover .elementor-button {
    background-color: transparent !important;
    border-color: transparent !important;
    border-top-color: #EAEAEA !important;
}

.card-full-img {
    background-image: none !important;
    background-color: #F5F5F5 !important;
}


.card-full-img .elementor-background-overlay {
    width: calc(100% - 100px);
    margin: 0 auto;
    background-position: center right;
    background-size: 40%;
}

/* ---------- Course buttons layout ---------- */
.thim-ekit-single-course__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
    margin-top: 24px;
}

.thim-ekit-single-course__buttons form,
.thim-ekit-single-course__buttons>a {
    flex: 1 1 220px;
    margin: 0;
}

.thim-ekit-single-course__buttons>a {
    display: block;
    text-decoration: none;
}

.thim-ekit-single-course__buttons button,
.thim-ekit-single-course__buttons .lp-button {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
}

.thim-ekit-single-course__buttons button svg,
.thim-ekit-single-course__buttons button i {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .thim-ekit-single-course__buttons {
        gap: 8px;
    }

    .thim-ekit-single-course__buttons form,
    .thim-ekit-single-course__buttons>a {
        flex-basis: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .card-full-img .elementor-background-overlay {
        background-position: center right !important;
    }
}

@media screen and (max-width: 768px) {

    .card-full-img {
        padding-top: 300px !important;
        padding-bottom: 20px !important;
        margin-top: 40px !important;
    }


    .card-full-img .elementor-background-overlay {
        width: 100% !important;
        background-size: 300px !important;
        background-position: center 10% !important;
    }




}


/*------------ footer -----------------*/
.footer .navbar-main-menu {
    gap: 0 !important;
    margin: 0;
    padding: 0;
    display: flex;
}

.footer .navbar-main-menu li {
    padding: 10px 9px !important;
    text-align: center;
    list-style: none;
}

.footer .navbar-main-menu li a {
    padding: 0 !important;
    color: #fff;
    position: relative;
}



.footer a svg {
    width: 20px;
    height: 20px;
}

.footer a svg path {
    stroke: transparent !important;
    transition: all .3s ease-in;
}

.footer a:hover svg path {
    fill: #3498DB;
}


.footer a:hover svg path {
    fill: #3498DB !important;
}


.footer .navbar-main-menu li a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform .3s;
}

.footer .navbar-main-menu li:hover a {
    background: none !important;
    color: #fff;
}

.footer .navbar-main-menu li:hover a::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

.wrapper-center {
    justify-content: center !important;
    display: flex;
}

footer#colophon {
    background-color: unset !important;
}

footer#colophon .footer {
    padding: 0 !important;
    border: none !important;
}

footer#colophon section.footer,
.thim-ekit__footer__inner section.footer {
    padding: 60px 0 40px !important;
}

/* Remove parent layout constraints on footer */
.site-footer .footer {
    max-width: none;
    /* remove container cap */
    margin: 0;
    /* stop auto-centering container */
    display: block;
    /* cancel flex layout */
    flex-wrap: nowrap;
    /* irrelevant once not flex, but safe */
}

/* If parent still wins, bump specificity or force it */
body .site-footer .footer {
    max-width: none !important;
    margin: 0 !important;
    display: block !important;
    flex-wrap: nowrap !important;
}

footer#colophon a:hover {
    color: #fff !important;
}

@media screen and (max-width: 1000px) {
    section.footer .navbar-main-menu {
        display: flex;
        gap: .625rem;
    }
}

@media screen and (max-width: 776px) {
    section.footer .navbar-main-menu {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .625rem;
    }
}


/*------------ footer -----------------*/



.content-area {
    min-height: 85vh;
}

.lp-archive-courses {
    min-height: 85vh;
}


/*---------------- cours -------------------*/
body .learn-press-courses .course {
    margin: 0 0 0px 0;
}

body .learn-press-courses .course .course-item {
    height: 100%;
}

body .learn-press-courses .course .course-item {
    transition: all 0.3s;
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

body .learn-press-courses .course .course-item .course-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

body .learn-press-courses .course .course-item .course-content .course-info {
    margin-top: auto;
    width: 100%;
}

body .learn-press-courses .course .course-item .course-content .wap-course-title {
    margin: 0 0 8px 0;
}

body .learn-press-courses .course-instructor-category {
    margin-bottom: 8px;
}

body .learn-press-courses .course .course-item .course-content .course-progress-bar {
    margin: 8px 0;
}



body .learn-press-courses .course-content .course-readmore {
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid #EAEAEA;
}

body .learn-press-courses[data-layout=list] .course-content .course-info a {
    text-align: right;
}

body .learn-press-courses .course .course-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

body .learn-press-courses .course-content .course-info a {
    padding: 14px 24px 0;
    border: none;
    font-weight: 600;
}

body .learn-press-courses .course-content .course-info a:hover,
body .learn-press-courses .course-content .course-info a:focus {
    background: transparent;
    color: #3498DB;
}

body .learn-press-courses .course-wrap-meta .meta-item::before {
    color: #3498DB;
}

body.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-wrap-meta {
    column-gap: 10px;
    margin-bottom: 0;
}

body.learnpress .lp-content-area .learn-press-courses .course-item {
    height: 100%;
}

body.learnpress .lp-content-area .learn-press-courses .course-item .course-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    padding: 15px;
}

.thim-ekits-course.learn-press-courses .course.thim-ekits-course__item>div {
    height: 100%;
}

.thim-ekits-course.learn-press-courses .course.thim-ekits-course__item .elementor-widget-thim-custom-course-thumbnail {
    padding: 0;
}

.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail,
.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail * {
    height: auto !important;
}

.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail,
.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail {
    height: 100% !important;
}

.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail,
.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail .custom-course-listing-thumbnail,
.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail .course-listing-thumbnail-overlay,
.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail .course-listing-bg-image {
    height: 100% !important;
}

.learnpress .lp-content-area .learn-press-courses[data-layout=list] .course-thumbnail .custom-course-listing-thumbnail {
    border-radius: 16px 0 0 16px !important;
}

.learn-press-courses[data-layout=list] .course-thumbnail {
    min-width: 280px;
}

.thim-ekits-course.learn-press-courses .course.thim-ekits-course__item .elementor-widget-thim-loop-item-read-more {
    margin-top: auto;
}

.thim-ekits-course.learn-press-courses .course.thim-ekits-course__item .elementor-button-link {
    margin-top: 16px;
}


body.learnpress .lp-content-area .learn-press-courses .course-item .course-content .course-info {
    margin-top: auto;
    width: 100%;
}

body.learnpress .lp-content-area .learn-press-courses .course-item .course-content .course-info .course-readmore {
    margin-top: 20px;
}

body .learn-press-courses[data-layout=grid] .course,
body .learn-press-courses.lp-courses-related .course {
    padding: 0 8px;
}

body .learn-press-courses[data-layout=list] .course {
    padding: 0;
    border: none;
}

body .learn-press-courses[data-layout=list] .course .course-item {
    border: 1px solid #EAEAEA;
    border-radius: 20px;
    overflow: hidden;
    padding: 0;
}

/* LearnPress thumbnail styles moved to custom-thumbnails.css */

body .lp-single-course .lp-single-course-main__right__inner {
    padding: 0 0 15px;
    top: 70px;
}


@media (min-width: 992px) {
    body:not(.custom-course-thumbnails-enabled) .lp-single-course .lp-single-course-main__right {
        margin-top: -260px;
    }
}


body .lp-single-course .lp-single-course-main__right__inner>div {
    padding: 0 15px;
    margin-bottom: 15px !important;
}

body .lp-single-course .lp-single-course-main__right__inner .custom-single-course-thumbnail {
    padding: 0;
}

@media screen and (min-width: 1024px) {
    .learnpress .lp-content-area .lp-main-content {
        padding-left: 80px !important;
    }
}

@media screen and (min-width: 768px) {
    .learnpress .lp-content-area .learn-press-courses[data-layout=grid] li {
        width: 50% !important;
    }
}

body .lp-courses-bar .switch-layout .switch-btn.grid {
    border: none;
}

body .switch-layout input[type=radio]:nth-child(3):checked~.switch-btn:nth-child(4),
body .switch-layout input[type=radio]:nth-child(1):checked~.switch-btn:nth-child(2) {
    background: transparent;
}

body .lp-courses-bar .switch-layout .switch-btn.list {
    border: none;
}

/* Hide list layout option completely */
body .lp-courses-bar .switch-layout .switch-btn.list,
body .lp-courses-bar .switch-layout input[value="list"],
body .lp-courses-bar .switch-layout label[for*="list"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body .lp-courses-bar .switch-layout .switch-btn {
    padding: 8px 8px s;
}

body .lp-courses-bar .courses-order-by {
    border: none;
}

body.learnpress .lp-content-area .lp-courses-bar .search-courses {
    margin: 0 0 0 auto;
}

body.learnpress .lp-content-area .lp-courses-bar .search-courses input {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #000;
    transition: border-color 0.3s ease;
    padding: 8px 26px 8px 20px;
}

body.learnpress .lp-content-area .lp-courses-bar .search-courses input:focus {
    border-bottom-color: #3498DB;
    /* par ex. bleu WordPress */
    outline: none;
    /* supprime le contour bleu par défaut */
}

body.learnpress .lp-content-area .lp-courses-bar .search-courses button {
    padding: 6px;
    right: 0px;
}

.learn-press-message.info {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.learnpress .lp-user-profile .lp-content-area {
    justify-content: center;
}

.lp-single-instructor__info__right .lp-instructor-meta .instructor-item-meta i,
.lp-single-instructor .ul-instructor-courses .course-wrap-meta .meta-item::before {
    color: #3498DB !important;
}

.lp-review-svg-star.far svg {
    stroke: #3498DB !important;

}

body.learnpress .lp-content-area .lp-form-course-filter .course-filter-submit {
    background-color: #1D5BC9;
}

body.learnpress .lp-content-area .lp-form-course-filter .course-filter-submit:hover,
body.learnpress .lp-content-area .lp-form-course-filter .course-filter-submit:focus {
    background-color: #3498DB;
}

body.learnpress .lp-content-area .lp-form-course-filter .course-filter-reset {
    color: #000000;
    transition: all ease-out 0.2s;
    border-color: #000;
}

.lp-single-instructor .ul-instructor-courses .course-item {
    display: flex;
    flex-direction: column;
}

.lp-single-instructor .ul-instructor-courses .course-content {
    flex: 1;
}

.lp-single-instructor .ul-instructor-courses .course-title:hover {
    color: #3498DB !important;
}

body.learnpress .lp-content-area .lp-form-course-filter .course-filter-reset:hover {
    background-color: #1D5BC9;
    border-color: #1D5BC9;
    color: #fff;
}

body .learn-press-courses .wap-course-title a:hover {
    color: #3498DB;
}

.lp-single-course-main__right .course-rate {
    display: none;
}

.lp-single-course-main__right .lp-button {
    width: 100%;
}

.review-form .review-fields .review-actions .lp-button {
    width: auto;
}

.lp-single-course-main__right .lp-single-course-main__right__inner {
    margin-top: 12px;
}

.lp-single-course-main__right .info-learning {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body .lp-single-course .lp-single-course-main .course-buttons {
    gap: 8px !important;
    display: flex !important;
}

.lp-single-course .lp-single-course-main .info-metas .info-meta-left img{
    min-width: 16px ;
    height: 16px ;
    width: 16px ;
}
.lp-single-course .lp-single-course-main .info-metas .info-meta-item {
    margin-bottom: 8px !important;
}

.lp-single-course .lp-single-course-main .course-img {
    margin: -20px -15px 20px -15px !important;
}

.lp-single-course .lp-single-course-main .course-img img {
    width: 100%;
    border-radius: 20px 20px 0 0;
}

@media screen and (min-width: 840px) {
    body.single-lp_course .lp-single-course .learn-press-message.success.lp-content-area {
        max-width: calc(100% - 400px) !important;
        margin-left: 0px;
        padding-bottom: 15px;
    }   
}

body.learnpress button.lp-button {
    background-color: #1D5BC9
}

body.learnpress button.lp-button:hover {
    background-color: #3498DB;
}

body.learnpress .lp-single-course .lp-single-course-main .course-buttons .lp-button {
    background-color: #1D5BC9
}

body.learnpress .lp-single-course .lp-single-course-main .course-buttons .lp-button:hover {
    background-color: #3498DB;
}

.lp-icon-signal::before,
.lp-icon-file-o::before,
.lp-icon-clock-o::before,
.lp-icon-puzzle-piece::before {
    color: #3498DB;
}

.quizzes .lp-icon-puzzle-piece:before{
    color: #004289;
}

.active .lp-icon-puzzle-piece:before{
    color: #FFF;
}

.learnpress-page input[type=text],
.learnpress-page input[type=email],
.learnpress-page input[type=number],
.learnpress-page input[type=password],
.learnpress-page textarea {
    border-radius: 10px !important;
}

.lp-single-course .lp-single-course-main__right {
    z-index: 999;
}

body .lp-courses-bar .switch-layout .switch-btn {
    padding: 0px 10px;
}

body .lp-courses-bar .courses-order-by {
    padding: 0px 30px 0 16px;
}

body .learn-press-courses .course {
    margin: 0 0 30px 0;
}


/*---------------- cours -------------------*/


/*PROFILE*/

.learnpress .lp-user-profile .lp-profile-content-area {
    align-items: center !important;
}



/* Course Progress Bar Styles */
.course-progress-bar {
    margin: 12px 0;
    padding: 0 20px;
    width: 100%;
}

.course-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #666;
}

.course-progress-label .progress-text {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-progress-label .progress-percentage {
    font-weight: 600;
    color: #3498DB;
}

.course-progress-track {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498DB 0%, #2ecc71 100%);
    border-radius: 3px;
    transition: width 0.3s ease-in-out;
    position: relative;
}

.course-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .course-progress-bar {
        margin: 10px 0;
        padding: 0 15px;
    }

    .course-progress-label {
        font-size: 11px;
    }

    .course-progress-track {
        height: 5px;
    }
}

/* Shortcode-specific styles */
.lp-course-progress-error,
.lp-course-progress-empty {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
}

.lp-course-progress-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lp-course-progress-empty {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Single course progress shortcode styles */
.lp-course-progress-single {
    margin: 15px 0;
}

.lp-course-progress-single-error,
.lp-course-progress-single-empty,
.lp-course-progress-single-guest,
.lp-course-progress-single-completed {
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.lp-course-progress-single-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lp-course-progress-single-empty {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.lp-course-progress-single-guest {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.lp-course-progress-single-completed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Completed course progress bar styling */
.course-progress-bar--completed .course-progress-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.course-progress-bar--completed .progress-percentage {
    color: #28a745;
    font-weight: 700;
}

/* Progress bar style variants */
.course-progress-bar--compact {
    margin: 8px 0;
}

.course-progress-bar--compact .course-progress-label {
    font-size: 11px;
    margin-bottom: 4px;
}

.course-progress-bar--compact .course-progress-track {
    height: 4px;
}

.course-progress-bar--minimal {
    margin: 6px 0;
}

.course-progress-bar--minimal .course-progress-label {
    display: none;
}

.course-progress-bar--minimal .course-progress-track {
    height: 3px;
}

/* User courses progress shortcode styles */
.lp-user-courses-progress {
    margin: 20px 0;
}

.lp-user-courses-progress--guest,
.lp-user-courses-progress--empty {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

.lp-user-courses-progress__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-user-courses-progress__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.lp-user-courses-progress__item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 15px;
    background: #fff;
    transition: all 0.3s ease;
}

.lp-user-courses-progress__item:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lp-user-courses-progress__thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.lp-user-courses-progress__thumb--placeholder {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: #f2f2f2;
}

.lp-user-courses-progress__content {
    flex: 1;
}

.lp-user-courses-progress__title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.lp-user-courses-progress__title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lp-user-courses-progress__title a:hover {
    color: #3498DB;
}

/* Layout variants */
.lp-user-courses-progress--compact .lp-user-courses-progress__item {
    padding: 10px;
    gap: 10px;
}

.lp-user-courses-progress--compact .lp-user-courses-progress__thumb img,
.lp-user-courses-progress--compact .lp-user-courses-progress__thumb--placeholder {
    width: 40px;
    height: 40px;
}

.lp-user-courses-progress--compact .lp-user-courses-progress__title {
    font-size: 14px;
    margin-bottom: 6px;
}

/* Grid layout adjustments */
.lp-user-courses-progress--grid .lp-user-courses-progress__item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.lp-user-courses-progress--grid .lp-user-courses-progress__thumb img,
.lp-user-courses-progress--grid .lp-user-courses-progress__thumb--placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

/* Responsive adjustments for shortcodes */
@media screen and (max-width: 768px) {
    .lp-user-courses-progress__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lp-user-courses-progress__item {
        padding: 12px;
        gap: 12px;
    }

    .lp-user-courses-progress__thumb img,
    .lp-user-courses-progress__thumb--placeholder {
        width: 50px;
        height: 50px;
    }

    .lp-user-courses-progress__title {
        font-size: 14px;
    }
}

.lp-in-progress__ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.lp-in-progress__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.lp-in-progress__thumb img {
    min-width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    display: block
}

.lp-in-progress__thumb--placeholder {
    display: inline-block;
    width: 64px;
    height: 64px;
    border-radius: 6px;
    background: #f2f2f2
}

.lp-in-progress__title {
    font-weight: 600;
    text-decoration: none;
    color: #222;
    margin-bottom: 8px;
}

.lp-in-progress__title:hover {
    text-decoration: underline
}

.lp-in-progress__progress {
    margin-top: 8px;
}

/* Enhanced progress bar styles for lp-in-progress */
.lp-in-progress__progress .course-progress-bar {
    margin: 0;
    padding: 0;
}

.lp-in-progress__progress .course-progress-label {
    margin-bottom: 4px;
}

.lp-in-progress__progress .course-progress-track {
    height: 6px;
}

/* Fallback styles for original progress bar */
.lp-in-progress__bar {
    position: relative;
    height: 8px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 6px
}

.lp-in-progress__bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #4caf50
}

.lp-in-progress__pct {
    margin-left: 8px;
    font-size: 12px;
    color: #555
}

.lp-in-progress__pct--na {
    color: #999
}

/* Membership info text styling - replaces Buy Membership button */
.membership-info-text {
    background: rgba(255, 59, 48, 0.1019607843);
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
}

.membership-info-text .membership-notice {
    font-weight: 600;
    color: #495057;
    margin: 0 0 8px 0;
    font-size: 16px;
}

.membership-info-text .membership-description {
    color: #6c757d;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* lp_in_progress shortcode styling for 3 courses per line */
.learn-press-courses.lp-list-courses-no-css[data-layout="grid"] {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.learn-press-courses.lp-list-courses-no-css[data-layout="grid"] .course {
    width: 33.3333%;
    /* 3 columns = 33.3333% each */
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] .course {
        width: 50%;
        /* 2 columns on tablets */
    }
}

@media screen and (max-width: 768px) {
    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] .course {
        width: 50%;
        /* 2 columns on smaller tablets */
    }

    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] {
        margin: 0 -10px;
    }

    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] .course {
        padding: 0 10px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 480px) {
    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] .course {
        width: 100%;
        /* 1 column on mobile */
    }

    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] {
        margin: 0;
    }

    .learn-press-courses.lp-list-courses-no-css[data-layout="grid"] .course {
        padding: 0;
        margin-bottom: 15px;
    }
}



/*pagination*/

.learnpress-block-pagination .page-numbers>li .page-numbers.current,
.learn-press-pagination .page-numbers>li .page-numbers.current {
    color: #fff !important;
}

.learnpress-block-pagination .page-numbers>li,
.learn-press-pagination .page-numbers>li {
    margin: 0 5px !important;
}


/*#popup-header*/


body #popup-header {
    background: #F7F7FB;
}

body .lp-modal-dialog .lp-modal-header {
    background: #004289;
}

body #popup-header .lp-button {
    background: #1D5BC9;
}

body #popup-header .lp-button:hover,
body #popup-header .lp-button:focus {
    background: #3498DB;
}

body .learn-press-progress .learn-press-progress__active {
    background: linear-gradient(90deg, #3498DB 0%, #2ecc71 100%);
}

body .lp-modal-dialog .lp-modal-footer {
    text-align: center;
}

.sso-wrapper {
    min-height: 70vh;
    justify-content: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.sso-wrapper a {
    position: relative;
    font-weight: 600;
}

.sso-wrapper a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #004289;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform .3s ease;
}

.sso-wrapper a:hover::after {
    transform-origin: bottom left;
    transform: scaleX(1);
}

.error-404 {
    margin-top: 30px !important;
    margin-bottom: 50px;
}

/*#popup-header*/

body .pmpro_btn {
    background-color: #1D5BC9 !important;
    border-radius: 30px !important;
    border-color: #1D5BC9 !important;
    color: #fff !important;
}

body .pmpro_btn:hover,
body .pmpro_btn:focus {
    background-color: #3498DB !important;
    border-color: #3498DB !important;
}


#popup-header .course-title a,
#popup-header .number {
    background: linear-gradient(90deg, #004289 0%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#popup-header .course-title a:hover {
    background: linear-gradient(90deg, #3498DB 0%, #2ECC71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body .info-learning .course-progress__line {
    margin-top: 6px;
}

.info-learning .course-progress__line__active {
    background: linear-gradient(90deg, #3498DB 0%, #2ECC71 100%) !important;
}

@media screen and (max-width: 767px) {
    body .pmpro_card_title {
        padding: 20px 15px 0 !important;
    }

    body .pmpro_card_content {
        padding: 15px !important;
    }
}

/* --- Style du bloc profil Ismail --- */
.fourd-profile {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 19px 0 19px 100px;
    z-index: 1111;
}

#masthead.affix .fourd-profile {
    padding: 5px 0 5px 100px;
}

/* Avatar rond */
.profile-avatar {
    background-color: #004289;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -2px;
    width: 20px;
    height: 24px;
}

.partner_gold .profile-avatar::after{
    background: url(assets/images/icon-Gold.svg)  no-repeat center;
    background-size: contain;
}

.partner_elite .profile-avatar::after{
    background: url(assets/images/icon-Elite.svg)  no-repeat center;
    background-size: contain;
  
}

.partner_silver .profile-avatar::after{
    background: url(assets/images/icon-Silver.svg)  no-repeat center;
    background-size: contain;
}

.partner_platinum .profile-avatar::after{
    background: url(assets/images/icon-Platinum.svg)  no-repeat center;
    background-size: contain;
}

.partner_bronze .profile-avatar::after{
    background: url(assets/images/icon-Bronze.svg)  no-repeat center;
    background-size: contain;
}


/* Dropdown */
.profile-dropdown {

    position: absolute;
    right: 0;
    top: 100%;
    /* espace ajusté */
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 240px;
    z-index: 1;
    transition: opacity 0.15s ease-in-out;
    pointer-events: none;

    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.3s;
    -khtml-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    -webkit-transform: translateY(15px);
    -moz-transform: translateY(15px);
    -ms-transform: translateY(15px);
    -o-transform: translateY(15px);
}



/* Affichage au survol */
.fourd-profile:hover .profile-dropdown {

    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.profile-avatar-lg {
    min-width: 40px;
    height: 40px;
    background-color: #004289;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    position: relative;
}

.profile-info .profile-name {
    font-weight: 600;
    color: #1c1d1f;
}

.profile-info .profile-email {
    font-size: 13px;
    color: #6a6f73;
}

.profile-links {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.profile-links a {
    display: block;
    padding: 10px 16px;
    color: #1c1d1f;
    text-decoration: none;
    font-size: 14px;
}

.profile-links a:hover {
    background-color: #f7f9fa;
}

.popup-logo {
    min-width: 130px;
    margin-left: 10px;
}

.popup-logo a {
    display: block;
}

.popup-logo a img {
    width: 130px;
    display: block;
}

#popup-sidebar .lp-course-curriculum .course-item.current {
    transition: background 0.3s ease;
}

#popup-sidebar .lp-course-curriculum .course-item.current:before,
#popup-sidebar .lp-course-curriculum .course-item:hover:before {
    background: #1D5BC9 !important;
}

#popup-sidebar .lp-course-curriculum .course-item:hover:before {
    transition: width 0.3s ease-in;
}

#popup-sidebar .lp-course-curriculum .course-item:hover:before {
    width: 8px !important;
}

#popup-sidebar .lp-course-curriculum .course-item.current,
#popup-sidebar .lp-course-curriculum .course-item:hover {
    background: #e8eef8
}


#popup-course #sidebar-toggle::before {
    color: #004289;
}

#popup-course .lp-icon-times:before {
    color: #004289;
}

body.lp-sidebar-toggle__close #popup-course #sidebar-toggle::before {
    color: #004289;
}

/* Course Materials in Popup Sidebar - User Friendly Styling */
/* Wrapper for materials with vertical title - Positioned next to sidebar scrollbar */
#popup-sidebar {
    position: relative;
}

.popup-sidebar-materials-wrapper {
    position: fixed;
    left: 0px !important;
    /* Position right next to sidebar (sidebar width is 475px) */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex !important;
    align-items: flex-start;
    gap: 0;
    margin-right: 0;
    pointer-events: auto;
    visibility: visible !important;
    opacity: 1 !important;
    transition: left 0.25s ease;
}
.lp-sidebar-toggle__open .popup-sidebar-materials-wrapper {
    left: 475px !important;
}

@media screen and (max-width: 1280px) {
    .lp-sidebar-toggle__open .popup-sidebar-materials-wrapper {
        left: 300px !important;
        /* Adjust position for smaller screens */
    }
}







/* Vertical title positioned next to sidebar - User Friendly Design */
.course-material-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: #e8eef8;
    color: #1D5BC9;
    padding: 16px 10px;
    border-radius: 0 12px 12px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    white-space: nowrap;
    position: relative;
    z-index: 10001;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    visibility: visible !important;
    opacity: 1 !important;
    border: 2px solid rgba(29, 91, 201, 0.2);
    text-transform: uppercase;
    outline: none;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.course-material-title-vertical::before {
    display: inline-block;
    position: static;
    margin: 0 0 8px 0;
    width: auto;
    height: auto;
    font-family: "lp-icon";
    content: "\f0d9";
    font-size: 1.2em;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: rotate(0deg);
}

.course-material-title-vertical:hover {
    background: #d0e4ff;
    color: #004289;
    padding-right: 18px;
    transform: translateX(-3px);
    border-color: rgba(29, 91, 201, 0.3);
}

.course-material-title-vertical:hover::before {
    color: #004289;
}

/* Active state when materials are shown */
.popup-sidebar-materials-wrapper.active .course-material-title-vertical {
    background: #d0e4ff;
    color: #004289;
    box-shadow: none;
    transform: translateX(-3px);
    border-color: rgba(29, 91, 201, 0.35);
}

.popup-sidebar-materials-wrapper.active .course-material-title-vertical::before {
    color: #004289;
    content: "\f0da";
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Materials container - hidden by default, shown on click/hover - User Friendly Design */
#popup-sidebar .popup-sidebar-materials,
.popup-sidebar-materials-wrapper .popup-sidebar-materials {
    margin: 0;
    padding: 28px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 0 16px 16px 0;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.04);
    width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 100%;
    top: 0;
    z-index: 10000;
    pointer-events: none;
}

/* Custom scrollbar for materials panel */
.popup-sidebar-materials-wrapper .popup-sidebar-materials::-webkit-scrollbar {
    width: 8px;
}

.popup-sidebar-materials-wrapper .popup-sidebar-materials::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.popup-sidebar-materials-wrapper .popup-sidebar-materials::-webkit-scrollbar-thumb {
    background: #1D5BC9;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.popup-sidebar-materials-wrapper .popup-sidebar-materials::-webkit-scrollbar-thumb:hover {
    background: #004289;
}

/* Show materials when active class is added (via click) */
.popup-sidebar-materials-wrapper.active .popup-sidebar-materials {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Also show on hover for better UX (but active state takes priority) */
.popup-sidebar-materials-wrapper:hover:not(.active) .popup-sidebar-materials {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Keep materials visible when hovering over them */
.popup-sidebar-materials-wrapper .popup-sidebar-materials:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Show materials when title has focus */
.popup-sidebar-materials-wrapper:focus-within .popup-sidebar-materials,
.course-material-title-vertical:focus+.popup-sidebar-materials {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Skeleton loader styling */
.popup-sidebar-materials-wrapper .popup-sidebar-materials .lp-material-skeleton {
    padding: 8px 0;
}

/* Empty state styling */
.popup-sidebar-materials-wrapper .popup-sidebar-materials:empty::after {
    content: 'No materials available';
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* Responsive adjustments */

@media (max-width: 1280px) {
    #popup-sidebar {
        flex: 0 0 300px !important;
        width: 300px !important;
        max-width: 300px !important;
        min-width: 300px !important;
    }
}

@media (max-width: 1200px) {
    .popup-sidebar-materials-wrapper .popup-sidebar-materials {
        width: 400px;
        padding: 24px 20px !important;
    }

    #popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item {
        min-width: 150px;
        max-width: 190px;
        padding: 18px 16px;
    }

    #popup-sidebar {
        flex: 0 0 300px;
        width: 300px;
        max-width: 300px;
        min-width: 300px;
    }
}

@media (max-width: 767px) {
    .popup-sidebar-materials-wrapper {
        display: none !important;
    }

    .course-material-title-vertical {
        writing-mode: horizontal-tb;
        padding: 14px 24px;
        border-radius: 12px 12px 0 0;
        min-height: auto;
        font-size: 14px;
        display: none;
    }


    .popup-sidebar-materials-wrapper .popup-sidebar-materials {
        width: calc(100vw - 40px);
        max-width: 420px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        border-radius: 12px;
        border-left: none;
        border-top: 3px solid #1D5BC9;
    }

    .popup-sidebar-materials-wrapper.active .popup-sidebar-materials,
    .popup-sidebar-materials-wrapper:hover .popup-sidebar-materials {
        transform: translateX(-50%) translateY(0);
    }

    #popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .header-wrap .row {
        margin-right: 0;
        margin-left: 0;
    }

    .header-wrap .row .navigation {
        padding-left: 0;
        padding-right: 0;
    }

}

/* Materials panel content - User Friendly Styling */
.popup-sidebar-materials-wrapper .popup-sidebar-materials {
    padding: 28px 24px !important;
}

#popup-sidebar .popup-sidebar-materials .course-material {
    margin: 0;
    background: transparent;
    padding: 0;
}

#popup-sidebar .popup-sidebar-materials .course-material__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding: 0 0 16px 0;
    color: #1D5BC9;
    border-bottom: 3px solid #1D5BC9;
    display: block;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

#popup-sidebar .popup-sidebar-materials .course-material__title:before {
    content: "📎";
    margin-right: 12px;
    font-size: 22px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(29, 91, 201, 0.3));
}

#popup-sidebar .popup-sidebar-materials .lp-list-material {
    margin: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    padding: 12px 0;
    width: 100%;
}

/* Style for lp-list-material items when displayed as list (not table) */
#popup-sidebar .popup-sidebar-materials .lp-list-material>ul,
#popup-sidebar .popup-sidebar-materials .lp-list-material ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material>ul>li,
#popup-sidebar .popup-sidebar-materials .lp-list-material ul li {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e8eef8;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material>ul>li::before,
#popup-sidebar .popup-sidebar-materials .lp-list-material ul li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #1D5BC9 0%, #004289 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material>ul>li:hover,
#popup-sidebar .popup-sidebar-materials .lp-list-material ul li:hover {
    border-color: #1D5BC9;
    box-shadow: 0 6px 20px rgba(29, 91, 201, 0.2);
    transform: translateX(-4px);
    background: linear-gradient(145deg, #ffffff 0%, #f0f4fb 100%);
}

#popup-sidebar .popup-sidebar-materials .lp-list-material>ul>li:hover::before,
#popup-sidebar .popup-sidebar-materials .lp-list-material ul li:hover::before {
    transform: scaleY(1);
}

/* Style list item content */
#popup-sidebar .popup-sidebar-materials .lp-list-material li .lp-material-file-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    flex: 1;
    margin: 0;
    line-height: 1.5;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material li .lp-material-file-type {
    font-size: 11px;
    color: #1D5BC9;
    text-transform: uppercase;
    background: linear-gradient(135deg, #e8f0fe 0%, #d0e4ff 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1.5px solid rgba(29, 91, 201, 0.25);
    box-shadow: 0 2px 6px rgba(29, 91, 201, 0.15);
    white-space: nowrap;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material li .lp-material-file-size {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material li .lp-material-file-link {
    margin: 0;
    padding: 0;
    border: none;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material li .lp-material-file-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1D5BC9 0%, #004289 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(29, 91, 201, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

#popup-sidebar .popup-sidebar-materials .lp-list-material li .lp-material-file-link a:hover {
    background: linear-gradient(135deg, #004289 0%, #002d66 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 91, 201, 0.4);
}

/* Simple table format like course single page */
#popup-sidebar .popup-sidebar-materials .course-material-table {
    width: 100%;
    display: table;
    border-spacing: 0;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

#popup-sidebar .popup-sidebar-materials .course-material-table thead {
    display: table-header-group;
    background: #f7f7fb;
    border: 1px solid #e2e0db;
}

#popup-sidebar .popup-sidebar-materials .course-material-table th {
    padding: 0.7em 1em;
    border: 1px solid #e2e0db;
    background: #f7f7fb;
    font-weight: 600;
    text-align: center;
    font-size: 13px;
}

#popup-sidebar .popup-sidebar-materials .course-material-table th:first-child {
    text-align: left;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody {
    display: table-row-group;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item {
    display: table-row;
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    transition: background-color 0.2s ease;
    cursor: default;
    box-shadow: none;
    overflow: visible;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item:nth-child(even) {
    background: #fafafa;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item:hover {
    background: #f0f4fb;
    border: none;
    box-shadow: none;
    transform: none;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item td {
    display: table-cell;
    padding: 0.7em 1em;
    border: 1px solid #e2e0db;
    background: transparent;
    text-align: left;
    vertical-align: middle;
    width: auto;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item td:not(:first-child) {
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--lp-border-color, #E2E0DB);
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item td.lp-material-file-type {
    text-align: center !important;
    vertical-align: middle !important;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item .lp-material-file-name {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin: 0;
    white-space: normal;
    text-align: left;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item td.lp-material-file-type,
#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item .lp-material-file-type {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    display: table-cell;
    padding: 0.7em 1em;
    border: 1px solid #e2e0db;
    background: transparent;
    text-align: left;
    vertical-align: middle;
    width: auto;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item .lp-material-file-size {
    font-size: 13px;
    color: #666;
    margin: 0;
    font-weight: 400;
    text-align: center;
    padding: 0;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item .lp-material-file-link {
    margin: 0;
    padding: 0;
    border: none;
    text-align: center;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item .lp-material-file-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #1D5BC9;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color 0.2s ease;
    text-decoration: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

#popup-sidebar .popup-sidebar-materials .course-material-table tbody tr.lp-material-item .lp-material-file-link a:hover {
    background: #004289;
    transform: none;
    box-shadow: none;
}



#popup-sidebar .popup-sidebar-materials .lp-material-file-link .locked {
    color: #999;
    font-size: 16px;
}


.quiz-status>div {
    background-color: #F7F7FB !important;
}

.learnpress.learnpress #popup-content #button-submit-quiz {
    color: #fff;
}

.in-progress-heading {
    padding-bottom: 25px;
}

/* Ensure popup-content doesn't overlap with sidebar */
#popup-course {
    display: flex !important;
    flex-direction: row !important;
}

#popup-sidebar {
    flex: 0 0 475px;
    width: 475px;
    max-width: 475px;
    min-width: 475px;
}

/* Allow sidebar to hide when toggled closed */
body.lp-sidebar-toggle__close #popup-sidebar {
    flex: 0 0 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

#popup-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: auto !important;
    position: relative !important;
}

/* Hide course materials from popup-content (lesson/quiz view only) - they should only appear in popup-sidebar-materials */
/* Only hide in popup context, NOT on course single page */
body.course-item-popup #popup-content .course-material,
body.course-item-popup #popup-content .lp-material-skeleton,
body.course-item-popup #popup-content .lp-list-material,
body.course-item-popup #popup-content .course-material-table,
body.course-item-popup #popup-content .course-material__title,
body.viewing-course-item #popup-content .course-material,
body.viewing-course-item #popup-content .lp-material-skeleton,
body.viewing-course-item #popup-content .lp-list-material,
body.viewing-course-item #popup-content .course-material-table,
body.viewing-course-item #popup-content .course-material__title {
    display: none !important;
}

#popup-footer .course-item-nav {
    padding: 10px 0;
    position: relative;
}

#popup-footer .course-item-nav .next,
#popup-footer .course-item-nav .prev {
    background-color: #1D5BC9;
    border-radius: 30px;
    line-height: 2.5em !important;

}

#popup-footer .course-item-nav .next:hover,
#popup-footer .course-item-nav .prev:hover {
    background-color: #3498DB;
}

body #popup-footer .course-item-nav .next a {
    color: #fff;
    padding: 0px 30px 0px 20px;
    z-index: 1;
}

body #popup-footer .course-item-nav .prev a {
    color: #fff;
    padding: 0px 20px 0px 30px;
    z-index: 1;
}

body #popup-footer .course-item-nav .next::before,
body #popup-footer .course-item-nav .prev::before {
    color: #fff;
}

body #popup-footer .course-item-nav .next:hover a,
body #popup-footer .course-item-nav .prev:hover a {
    color: #fff;
}

body #popup-footer .course-item-nav .next:hover::before,
body #popup-footer .course-item-nav .prev:hover::before {
    color: #fff;
}

body #popup-footer .course-item-nav .next::before {
    position: absolute;
    right: 15px;
    margin-top: 1px;
}

body #popup-footer .course-item-nav .prev::before {
    position: absolute;
    left: 15px;
}

.content-item-wrap .questions-pagination .nav-links .page-numbers.current,
.content-item-wrap .questions-pagination .nav-links .page-numbers:hover {
    background-color: var(--thim-font_title-color, #000000);
    color: #ffffff !important;
    border-color: var(--thim-font_title-color, #000000);
}

.content-item-wrap .questions-pagination .nav-links .page-numbers.next,
.content-item-wrap .questions-pagination .nav-links .page-numbers.prev {
    background-color: #1D5BC9;
    border-color: #1D5BC9;
    color: #ffffff !important;
}

.content-item-wrap .questions-pagination .nav-links .page-numbers.next:hover,
.content-item-wrap .questions-pagination .nav-links .page-numbers.prev:hover {
    background-color: #3498DB;
    border-color: #3498DB;
}


body #popup-footer .course-item-nav__name {
    top: -36px;
    background: #d9e0f1;
    border-radius: 10px;
    color: #004289;
}

body #popup-footer .course-item-nav__name::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #d9e0f1;
}

body #popup-footer .prev .course-item-nav__name::before {
    left: 50%;
}


/* Completed course sections */
.course-section.section-completed {
    border-left: 4px solid #34c759;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.12) 0%, rgba(52, 199, 89, 0.04) 100%);
    border-radius: 8px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.course-section.section-completed:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(52, 199, 89, 0.12);
}

.course-section.section-completed .course-section-header {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-section-status {
    /* margin-left: auto; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 28px;
    height: 28px;
    /* background: #34c759; */
    color: #ffffff;
    border-radius: 50%;
    padding: 0;
    /* box-shadow: 0 4px 10px rgba(52,199,89,0.25); */
}

.course-section-status .status-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #34c759;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.course-section-status .status-icon::before {
    content: "\2713";
}

.course-section.section-completed .course-section__title {
    color: #1b5e20;
    font-weight: 600;
}

.course-section.section-completed .section-count-items {
    color: rgba(27, 94, 32, 0.8);
    font-weight: 600;
}

.course-section.section-completed .course-section__items li {
    border-color: rgba(52, 199, 89, 0.35);
}

@media (max-width: 768px) {
    .course-section-status {
        margin-left: 0;
        margin-top: 8px;
    }
}

.header-login,
.header-signup {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-login::before,
.header-signup::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.header-login::before {
    background-image: url('./assets/images/arrow-right.png');
}

.header-signup::before {
    background-image: url('./assets/images/user-plus.png');
}

/* Course material guest preview */
.lp-material-login-required {
    text-align: center;
}

.lp-material-login-required .course-item-ico.locked {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.04);
    position: relative;
}

.lp-material-login-required .course-item-ico.locked::before {
    content: "\f023";
    display: inline-block;
    font-family: "lp-icon";
    font-weight: normal;
    font-size: 14px;
    color: #6b6b6b;
    line-height: 1;
    position: relative;
}

.lp-finish-course-form.form-button{
    display: block;
    text-align: right;
}