/* Admin Reply Styles */
.admin-reply {
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.admin-reply::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--bs-primary),
        rgba(0, 123, 255, 0.5)
    );
}

.admin-reply .badge-admin {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.course-card {
    border-radius: var(--lms-border-radius-md);
    border: 1px solid #fafafa;
    background: #fff;
    box-shadow: 2px 4px 4.7px 0 rgba(0, 0, 0, 0.04);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-card__image {
    position: relative;
    border-radius: var(--lms-border-radius-md);
    overflow: hidden;
}

.course-card__image .img-fluid {
    border-radius: var(--lms-border-radius-md);
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card__image img {
    transform: scale(1.02);
}

.course-tag-btn {
    color: white;
    border-radius: 20px;
    margin-right: 8px;
    border: none;
    padding: 4px 14px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.course-tag-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.course-tag-btn--0 {
    background-color: #400093;
}

.course-tag-btn--1 {
    background-color: #ff8054;
}

.course-tag-btn--2 {
    background-color: #48a1ff;
}

.course-tag-btn--3 {
    background-color: #46554b;
}

.course-card__title {
    /* line-height: 1; */
    margin-bottom: 0;
}

.course-card__title a {
    color: var(--lms-secondary-color);
    font-weight: 700;
    line-height: 25px;
    text-decoration: none;
    font-size: 18px;
    /* text-transform: uppercase; */
}

.course-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Interactive tags */
.interactive-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
}

.tag-button {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    min-width: 60px;
}

.tag-button.tag-purple {
    background: #9b59b6;
}

.tag-button.tag-orange {
    background: #e67e22;
}

.tag-button.tag-blue {
    background: #3498db;
}

.course-card__university {
    display: flex;
    align-items: center;
}

.course-card__mentor {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.course-card__mentor i {
    color: #9ca3af;
    margin-right: 6px;
}

.course-card__price {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.course-card__price .price-current {
    font-weight: 700;
    color: #000;
    font-size: 16px;
}

.course-card__price del {
    color: #777;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: line-through;
}

.course-card__price.free {
    color: #34c759;
}

.course-card__stats {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.course-card__stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.course-card__stats .stat-item i {
    font-size: 12px;
}

/* Course archive */

.subject-nav {
    margin-top: 0px;
}

.subject-thumbnail-wrapper {
    width: 100%;
    height: 138px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.subject-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.subject-thumbnail-wrapper:hover .subject-icon {
    transform: scale(1.05);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.nav-link.subject-filter {
    padding: 4px;
    border: 2px solid transparent;
    border-radius: var(--lms-border-radius-md);
    transition: all 0.3s ease;
}

.nav-link.subject-filter.active {
    background: linear-gradient(#fff, #fff) padding-box,
        var(--lms-gradient-primary) border-box;
    border: 2px solid transparent;
}

.courses-sidebar-item {
    border-radius: 8px;
    background: rgba(187, 181, 255, 0.13);
    padding: 14px;
    margin-bottom: 25px;
}

.courses-sidebar-item button svg {
    margin-right: 20px;
}

.courses-page {
    padding: 40px 0;
}

.courses-filter__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.courses-filter__title {
    font-size: 19px;
}

.courses-filter__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.courses-filter__checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 400;
    user-select: none;
}

.courses-filter__checkbox input[type="checkbox"] {
    display: none;
}

.courses-filter__checkmark {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background: #fff;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    transition: border 0.2s, background 0.2s;
    aspect-ratio: 1/1;
}

.courses-filter__checkbox
    input[type="checkbox"]:checked
    + .courses-filter__checkmark {
    background: var(--lms-gradient-primary);
    border: none;
}

.courses-filter__checkbox
    input[type="checkbox"]:checked
    + .courses-filter__checkmark::after {
    content: "";
    position: absolute;
    left: 19%;
    top: 40%;
    width: 8px;
    height: 13px;
    border: solid #242a31;
    border-width: 0 2px 2px 0;
    border-radius: 2px;
    transform: rotate(45deg) scale(0.8) translate(-50%, -50%);
    opacity: 1;
}

.courses-filter__checkmark::after {
    content: "";
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s;
}

.courses-filter__group {
    margin-bottom: 20px;
}

.course-search-box {
    width: 100%;
    position: relative;
    margin-bottom: 20px;
}

.course-search-box input {
    border-radius: var(--lms-border-radius-lg);
    background: #fafafa;
    padding: 16px 20px;
    font-size: 14px;
    border-color: transparent;
    color: #000;
}

.course-search-box input::placeholder {
    color: #000;
}

.course-search-box input:focus {
    color: var(--tblr-body-color);
    background: #fafafa;
    border-color: transparent;
    outline: 0;
    box-shadow: none;
}

.course-search-box svg {
    position: absolute;
    right: 17px;
    top: 15px;
}

.sort-link {
    color: var(--lms-secondary-color);
    text-decoration: none !important;
    font-size: 17px;
    transition: color 0.3s;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sort-link.dropdown-toggle::after {
    content: none;
}

.sort-link:hover,
.sort-link.active {
    color: #28a745;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-options span {
    font-weight: 700;
    color: var(--lms-secondary-color);
    font-size: 17px;
}

.sort-separator {
    color: #d1d5db !important;
    font-size: 14px;
    font-weight: 400;
    margin: 0px 15px;
}

.sort-link i {
    transition: transform 0.3s ease;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown .dropdown-toggle {
    cursor: pointer;
}

.sort-dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 160px;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.sort-dropdown.open .dropdown-menu {
    display: block;
}

.sort-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    clear: both;
    font-weight: 400;
    color: #333;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    text-decoration: none;
}

.sort-dropdown .dropdown-item:hover {
    color: #333;
    text-decoration: none;
    background-color: #f3f4f6;
}

/* Responsive */
@media (max-width: 768px) {
}

@media (max-width: 576px) {
}

.recent-courses__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.course-item-card {
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: var(--lms-border-radius-md);
    background: linear-gradient(#fff, #fff) padding-box,
        var(--lms-gradient-primary) border-box;
    border: 1px solid transparent;
}

.course-item-card__thumbnail-wrapper {
    display: flex;
    gap: 8px;
    background: #f6f6f6;
    padding: 6px;
    border-radius: var(--lms-border-radius-md);
}

.course-item-card:hover {
    transform: translateY(-2px);
}

.course-item-card__thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 101px;
    height: 101px;
    border-radius: var(--lms-border-radius-md);
    overflow: hidden;
}

.course-item-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: var(--lms-border-radius-md);
}

.course-item-card__badges {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 2px;
    padding: 2px;
}

.course-item-card__badges .badge {
    flex: 1;
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    color: white;
    border: none;
}

.badge--quiz {
    background-color: #6b46c1;
}

.badge--video {
    background-color: #f97316;
}

.badge--material {
    background-color: #60a5fa;
}

.course-item-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-item-card__title {
    font-size: 16px;
    font-weight: 500;
    color: var(--lms-secondary-color);
    margin: 0;
    line-height: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-item-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: normal;
}

.course-item-card__price-current {
    font-size: 16px;
    font-weight: 500;
    color: var(--lms-secondary-color);
}

.course-item-card__price-original {
    font-size: 14px;
    color: #777;
    text-decoration: line-through;
}

.course-item-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: normal;
}

.course-item-card__stars {
    display: flex;
    gap: 1px;
}

.course-item-card__stars i {
    font-size: 14px;
    color: #fbbf24;
}

.course-item-card__rating-text {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
}

.course-item-card__mentor {
    font-size: 13px;
    color: var(--lms-secondary-color);
    font-weight: 400;
    line-height: normal;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-item-card__mentor span {
    font-weight: 700;
}

.course-item-card__meta {
    margin-top: 12px;
}

/* Course single */
.card-thumb-single {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 5.9px 0 rgba(0, 0, 0, 0.07);
}

.card-thumb-single img,
.course-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px !important;
    position: absolute;
    top: 0;
    left: 0;
}

.card-single-course,
.card-lms {
    border: none;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 5.9px 0 rgba(0, 0, 0, 0.07);
}

.card-des-tab .card-header {
    border: none;
    box-shadow: none;
    padding: 12px;
}

.card-des-tab .nav-tabs {
    border-bottom: none;
}

.card-des-tab .nav-link {
    border: none;
    color: var(--lms-secondary-color);
    font-size: 20px;
    font-weight: 400;
}

.card-des-tab .nav-link.active {
    position: relative;
    font-weight: 700;
    background: var(--lms-gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-des-tab .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: var(--lms-gradient-primary);
}

.see-more-btn {
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
    color: #000 !important;
    background: transparent !important;
    border: none !important;
}

.see-more-btn:hover {
    transform: translateY(-1px);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn.expanded i {
    transform: rotate(180deg);
}

.desc-limited {
    max-height: 12em;
    overflow: hidden;
    position: relative;
    font-size: 20px;
    color: var(--lms-secondary-color);
}

.learning-objectives,
.desc-course {
    font-size: 20px;
    color: var(--lms-secondary-color);
}

.desc-limited::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, transparent, white);
}

.single-search-box {
    border-radius: 16px;
    border: 1px solid rgba(119, 119, 119, 0.18);
    background: #fff;
}

.single-search-box input {
    background: #fff !important;
}

.lesson-accordion .accordion-button {
    border: 1px solid #fafafa !important;
    padding: 15px;
}

.lesson-accordion .accordion-button:not(.collapsed) {
    border-radius: 8px !important;
    background: #fff;
    box-shadow: 0 1px 3.1px 0 rgba(0, 0, 0, 0.07) !important;
}

.topic-name {
    font-size: 23px;
}

.lesson-accordion .accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    display: none;
}

.lesson-number-item {
    background: var(--lms-gradient-primary);
    width: 40px;
    height: 40px;
    padding: 10px;
    color: var(--lms-secondary-color);
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
}

.connecting-line {
    position: absolute;
    left: 50%;
    top: 44px;
    width: 2px;
    height: 60px;
    transform: translateX(-50%);
    background: #2ad0e4;
}

.lesson-accordion .accordion-body {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6.3px 0 rgba(0, 0, 0, 0.02);
    padding: 1.25rem 1.25rem;
}

.lesson-content {
    border: none;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 1.5rem;
}

.card-single-course.card-review {
    background: #f1efffb8;
}

.overall-rating {
    background: #fff;
    padding: 50px;
}

.overall-rating .rating-score {
    display: none;
}

.review-filter button {
    background: #fafafa;
    padding: 6px 30px 6px 30px;
    aspect-ratio: 127/40;
    border: none;
    font-weight: 500;
    color: var(--lms-secondary-color);
}

.review-filter button.active,
.review-filter button:hover {
    background: var(--lms-gradient-primary);
}

.individual-reviews {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

#reviews-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.individual-reviews .rating-score {
    display: none;
}

.overview {
    top: 100px;
    z-index: 1;
}

.overview .card-body {
    padding: 20px 15px;
}

.overview-title {
    font-size: 18px;
    font-weight: 500;
}

.overview-price {
    color: #400093;
    font-size: 25px;
    font-weight: 600;
    line-height: normal;
}

.overview .rating-container .rating-score {
    order: 2;
}

.btn-add-heart {
    border: none;
    box-shadow: none;
    background: none;
    color: var(--lms-secondary-color);
    font-size: 16px;
}

.btn-add-heart img {
    border-radius: 30px;
    background: rgba(54, 220, 213, 0.1);
    padding: 6px;
    margin-right: 8px;
}

.overview-btn {
    border-radius: 4px;
    padding: 14px 16px;
    width: 100%;
    border: none !important;
    font-weight: 700;
    white-space: nowrap;
}

.btn-add-cart {
    background: rgba(255, 128, 84, 0.41);
    color: var(--lms-secondary-color);
}

.btn-activate {
    background: rgba(191, 142, 255, 0.35);
    color: var(--lms-secondary-color);
}

.btn-learn-experiment {
    color: #fff;
    background: #400093;
}

.btn-buy-now {
    background: var(--lms-gradient-primary);
    text-align: center;
    text-decoration: none !important;
    color: var(--lms-secondary-color) !important;
}

.mentors-list {
    border-radius: 8px;
    background: #f6f5ff;
    padding: 12px;
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.mentors-list .card-single-course {
    padding: 12px;
}

.btn-review {
    position: relative;
    display: inline-block;
    font-weight: bold;
    cursor: pointer;
    background: var(--lms-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border: 2px solid transparent;
}

.btn-review::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: var(--lms-gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

/* Responsive for course item card */
@media (max-width: 768px) {
    .course-item-card {
        padding: 12px;
        gap: 10px;
    }

    .course-item-card__thumbnail {
        width: 70px;
        height: 70px;
    }

    .course-item-card__title {
        font-size: 14px;
    }

    .course-item-card__price-current {
        font-size: 16px;
    }

    .course-item-card__badges .badge {
        font-size: 7px;
        padding: 1px 3px;
    }
}

@media (max-width: 576px) {
    .course-item-card {
        padding: 10px;
        gap: 8px;
    }

    .course-item-card__thumbnail {
        width: 60px;
        height: 60px;
    }

    .course-item-card__title {
        font-size: 13px;
    }

    .course-item-card__price-current {
        font-size: 15px;
    }

    .course-item-card__mentor {
        font-size: 12px;
    }
}

/* Filter Modal Styles */

#filterModal .btn-close {
    margin-left: auto;
    border: 1px solid #000;
    color: #000;
    opacity: 1;
}

.filter-options {
    display: flex;
    flex-direction: column;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.filter-checkbox,
.filter-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-checkbox {
    border-radius: 4px;
}

.filter-radio {
    border-radius: 50%;
}

.filter-checkbox:checked {
    background-color: var(--lms-primary-color);
    border-color: var(--lms-primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.filter-radio:checked {
    background-color: var(--lms-primary-color);
    border-color: var(--lms-primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='4' fill='%23fff'/%3e%3c/svg%3e");
    background-size: 8px;
    background-position: center;
    background-repeat: no-repeat;
}

.filter-option label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.modal-header {
    border-bottom: 2px solid var(--lms-primary-color);
    padding: 20px 24px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.modal-footer {
    padding: 16px 24px;
    gap: 12px;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.modal-footer .btn-outline-primary {
    border-color: var(--lms-primary-color);
    color: var(--lms-primary-color);
}

.modal-footer .btn-outline-primary:hover {
    background-color: var(--lms-primary-color);
    border-color: var(--lms-primary-color);
    color: white;
}

.modal-footer .btn-primary {
    background: var(--lms-gradient-primary);
    border: none;
    color: white;
}

.modal-footer .btn-primary:hover {
    opacity: 0.9;
}

/* Favorite Button Styles */
.favorite-btn-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.div-svg-icon-heart {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    background: rgba(54, 220, 213, 0.1);
    border-radius: 30px;
}

.favorite-btn-icon:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.favorite-btn.active svg {
    opacity: 1;
    animation: heartBeat 0.6s ease-in-out;
}

.favorite-btn.active svg path {
    fill: #ff4757 !important;
}

.favorite-btn:hover svg {
    opacity: 1;
    transform: scale(1.05);
}

.favorite-btn:hover svg path {
    fill: #ff4757 !important;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* learning */

.card-header-learning {
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.03);
    padding: 20px;
    border: none;
}

.card-body-learning {
    color: var(--lms-secondary-color);
}

.card-title-learning {
    background: var(--lms-gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 25px;
    font-weight: 700;
}

.transition-collapse-icon {
    transition: all 0.3s;
}

.accordion-button.collapsed .transition-collapse-icon {
    transform: rotate(-90deg);
}

.list-topic .accordion-item {
    border: none;
}

.list-topic .accordion-header {
    padding: 10px;
    font-size: 18px;
    color: var(--lms-secondary-color);
}

.list-topic .list-group-item {
    color: #3d3d3d;
    font-weight: 500;
    font-size: 16px;
    padding: 0 20px;
}

.quiz-package-sidebar .list-group-item {
    font-size: 18px;
}

.list-topic .list-group-item.active,
.list-topic .list-group-item:hover {
    background: transparent !important;
    color: #400093;
    text-decoration: none !important;
}

.dropdown-menu-join-quiz .dropdown-item:hover {
    background: #400093;
    color: #fff;
}

.accordion-topic .accordion-button {
    padding: 0;
}

.box-shadow-none {
    box-shadow: none !important;
}

.quiz-list .quiz-item {
    padding: 10px 0;
}

.quiz-list .quiz-item a {
    font-size: 18px;
    color: var(--lms-text-secondary);
    text-decoration: none !important;
    font-weight: 600;
}

.quiz-list .quiz-item.active a {
    color: #400093;
}

.question-nav-btn {
    width: 40px !important;
    height: 40px;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    padding: 12px;
    background: #fafafa;
    border: 1px solid transparent;
}

.form-check-input:disabled {
    opacity: 1 !important;
}

.quiz-type-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-type-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-type-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.quiz-type-option.selected {
    border-color: #667eea;
    background-color: #e3f2fd;
}

.quiz-type-option i {
    font-size: 1.5rem;
    color: #667eea;
}

.question-nav-btn.correct {
    background: #fff !important;
    border-color: #3b814c !important;
    color: #3b814c !important;
}

.question-nav-btn.answered {
    background: #fff !important;
    border-color: #ee1d52 !important;
    color: #ee1d52 !important;
}

.question-nav-btn.active,
.question-nav-btn:hover {
    background: var(--lms-gradient-primary) !important;
    color: var(--lms-text-secondary) !important;
    border-color: #53fbb1 !important;
}

#question-text {
    font-size: 18px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Radio button states */
.answer .form-check-input:checked[type="radio"] {
    --tblr-form-check-bg-image: none;
    position: relative;
    border: 1px solid;
}

.answer .form-check {
    margin-bottom: 15px;
}

.answer .form-check input {
    border: 1.609px solid #a19f9f;
}

.answer .form-check-input:checked[type="radio"]::after {
    content: "";
    border: 1px solid transparent;
    top: 50%;
    left: 50%;
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 99px;
    transform: translate(-49%, -49%);
}

input[name="answer-sidebar"].correct {
    background-color: #fff !important;
    border-color: #28a745 !important;
}

input[name="answer-sidebar"].correct::after {
    background-color: #28a745 !important;
}

input[name="answer-sidebar"].incorrect {
    background-color: #fff !important;
    border-color: #dc3545 !important;
    position: relative;
}

input[name="answer-sidebar"].incorrect::after {
    content: "";
    border: 1px solid transparent;
    top: 50%;
    left: 50%;
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 99px;
    transform: translate(-49%, -49%);
    background-color: #dc3545 !important;
}

label[for^="sidebar_"].correct {
    color: #28a745 !important;
    font-weight: bold;
}

label[for^="sidebar_"].incorrect {
    color: #dc3545 !important;
    font-weight: bold;
}

/* payment */

.payment-info {
    border: none;
}

.payment-info .card-body,
.payment-info-course .card-body {
    padding: 40px;
}

.payment-info .detail-item {
    font-size: 18px;
    line-height: 1.5;
    color: #000;
}

.payment-info-course {
    background: #fff;
    border: none;
}

.payment-info-course {
    color: #000;
    font-size: 18px;
}

/* learning */
.quiz-action {
    padding: 10px 30px;
}

.quiz-action-back {
    background: #e7d4ff !important;
}

.quiz-action-next {
    background: #400093 !important;
}

.quiz-action-finish {
    background: #ee1d52 !important;
}

#answer-options {
    font-size: 18px;
    transition: all 0.3s ease;
}

#question-text {
    transition: all 0.3s ease;
}

.quiz-content {
    transition: opacity 0.3s ease;
}

.question-loading {
    opacity: 0.7;
    pointer-events: none;
}

#question-grid {
    transition: opacity 0.3s ease;
}

#explanation-text img {
    display: none;
}

#expanded-explanation-content img {
    display: block;
    max-width: 100%;
    height: auto !important;
    margin: 10px 0;
}

#explanationModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.filter-tag:hover {
    background: #e9ecef;
}

.course-card__progress {
    color: var(--lms-secondary-color);
}

/* Offcanvas style */
#overflowPopupContent {
    position: fixed;
    top: 150px;
    left: -90%;
    width: 90%;
    height: fit-content;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1005;
    transition: left 0.3s ease;
    overflow-y: auto;
    min-width: 0;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    padding: 0;
}

/* Backdrop */
#popupBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

@media (max-width: 992px) {
    .courses-filter {
        display: none;
    }

    .btn-mobile-filter {
        display: flex;
        gap: 2px;
    }

    .btn-mobile-filter .lms-btn {
        width: 100%;
    }

    .btn-mobile-filter .btn-custom:first-child {
        border-radius: 8px 0 0 8px;
    }

    .btn-mobile-filter .btn-custom:last-child {
        border-radius: 0 8px 8px 0;
    }

    .sort-options {
        display: none;
    }

    .modal-sort .sort-options {
        display: block;
    }

    .courses-sidebar-item {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .course-grid {
        padding: 1rem 0 0;
    }

    .dropdown-menu-join-quiz .dropdown-item {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .navbar-toggler {
        padding: 0;
    }

    .course-grid .lms-btn {
        padding: 0.85rem 1.75rem;
        width: auto;
    }

    .topic-name {
        font-size: 20px;
    }

    .lesson-details h5 {
        font-size: 1.125rem;
    }

    .learning-objectives,
    .desc-course {
        font-size: 18px;
    }

    .card-body {
        padding: 0.5rem;
    }

    .overall-rating {
        padding: 30px;
    }

    .review-filter .mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-title-learning {
        font-size: 22px;
    }

    .payment-info .card-body,
    .payment-info-course .card-body {
        padding: 30px 20px;
    }

    .payment-info .card-body h4,
    .payment-info-course .card-body h4 {
        font-size: 1.25rem;
    }

    .payment-info-course h5 {
        font-size: 1rem;
    }

    .payment-info .detail-item {
        font-size: 1rem;
    }

    .card-des-tab .nav-link {
        font-size: 18px;
    }

    #answer-options,
    #question-text {
        font-size: 16px;
    }

    #question-grid-loading {
        display: none !important;
    }

    .btn-mobile-filter .lms-btn {
        color: #000;
    }
}

@media (max-width: 576px) {
    .qr-code-container img {
        max-width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .qr-code-container img {
        max-width: 100% !important;
    }
}
