/* Gab24 Courses List Styles - Minimal CSS Only */

.gab24-recent-courses {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    
}

.gab24-recent-courses  .gab24-course-item {
    flex: 0 0 calc(30% - 10px);
    margin-bottom: 15px;
    scroll-snap-align: start; /* Optional: for snap scrolling */
}

/* Optional: Enable snap scrolling */
.gab24-recent-courses {
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none;
}
.gab24-course-item .course-title {
    line-height: 18px;
    font-size: 14px;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}
.gab24-course-item img {
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gab24-course-item {
       
    }
}


/* Loading overlay */
.gab24-course-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: var(--bs-body-bg);
    display: none;
}

.img-blur {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    filter: blur(75px) !important;
    -webkit-filter: blur(75px) !important;
    z-index: 0 !important;
    opacity: 1;
}
.accordion .img-blur {
    filter: blur(50px) !important;
    -webkit-filter: blur(50px) !important;
    z-index: -1 !important;
}

.gab24-course-list .gab24-course-item .img-cover {
    max-width: 100px;
}
.gab24-course-item .img-cover img{
    border-radius: 8px 0 0;
}

.course-curriculum .accordion-item{
    border: none;
    background: transparent;
}

.course-curriculum .accordion-body{
    padding: 0;
}

.course-curriculum .accordion-button{justify-content: space-between;}
.img-cover{z-index: 1;}
.grid-title{
    position: relative;
    z-index: 1;
 overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: flex;
    align-items: center;
    justify-content: space-between;
        gap: 10px;
}

.grid-title span::after{
    display: block;
    content: "";
    background-image: url(/wp-content/plugins/playlist-manager/images/down-arrow-icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 20px;
    height: 15px;
    transform: rotate(-90deg);
}

/* Make course items clickable */
.gab24-course-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gab24-course-item > div {
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.gab24-course-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Course Popup Styles */
.gab24-course-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gab24-course-popup-overlay.active {
    display: block;
    opacity: 1;
}

.gab24-course-popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background-color: #100f14;
    z-index: 100;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.gab24-course-popup.active {
    display: block;
    opacity: 1;
}

.gab24-course-popup-content {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 1rem;
}

.gab24-course-popup-header {
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.gab24-course-popup-header h4 {
    margin: 0;
   font-size: 1.1rem;
    text-align: center;
    flex-grow: 1;
}

.gab24-course-popup-close, .btn-back-to-list {
    background: none;
    border: none;
    outline: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.gab24-course-popup-close:after, .btn-back-to-list:after {
    content: "";
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-back-to-list:after {
background-image: url(/wp-content/themes/bootscore-child/assets/img/icons/back-icon.svg);
}


.gab24-course-popup-close:hover {
    background-color: var(--bs-light);
    color: var(--bs-dark);
}

.gab24-course-popup-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--bs-border-color);
    text-align: center;
}

.accordion-button.collapsed::after{}
.accordion-button:not(.collapsed)::after{}


/* Course details minimal styles */
.gab24-course-details .accordion-button{
color: var(--bs-white);
    margin-bottom: 8px;
    border-radius: var(--bs-accordion-border-radius);
    box-shadow: none;
    overflow: hidden;
    background: none;
}

.gab24-course-details .accordion-button:not(.collapsed) {
    color: var(--bs-white);
    background: none;
    box-shadow: none;
}
.gab24-course-details .accordion-button.collapsed::after, .gab24-course-details .accordion-button:not(.collapsed)::after {
    margin-left: 15px;
    content: "";
    background-image: url(/wp-content/plugins/playlist-manager/images/down-arrow-icon.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
        width: 18px;
    height: 18px;
}
.gab24-course-details .accordion-button:not(.collapsed)::after {
    background-image: url(/wp-content/plugins/playlist-manager/images/down-arrow-icon.svg);
}

.gab24-course-details .accordion-button:focus {    box-shadow: none;}

.gab24-course-popup-header .img-blur {
    z-index: -1 !important;
}

@media (min-width: 1200px){
.gab24-course-popup-header{border: none; gap: 30px;}
.course-header {    display: flex;    align-items: center;    flex-direction: column;         flex-grow: 1;}
.course-header button{width: max-content;    margin-bottom: 12px;    flex-direction: row-reverse;    gap: 10px;    align-items: center;}
.gab24-course-popup {    padding: 0 15%;}

.gab24-course-popup-header h4 {font-size: 2.2rem; padding: 0 !important; font-weight: 700; text-align: center;}
.gab24-course-popup-close:after, .btn-back-to-list:after {width: 24px;    height: 24px;}
.gab24-course-popup-header .course-cover .gs-cover {    width: 200px;    height: 200px;}
}

@media (max-width: 1199px){
    .course-header button span{display: none;}
.course-header {    display: flex;    align-items: center;         flex-grow: 1;}
.gab24-recent-courses .gab24-course-item {        flex: 0 0 calc(15% - 10px);    }
}



@media (max-width: 991px){
    .gab24-recent-courses .gab24-course-item {
        flex: 0 0 calc(20% - 10px);
    }
}

@media (max-width: 575px){
    .gab24-recent-courses .gab24-course-item {
        flex: 0 0 calc(30% - 10px);
    }
}