body {
    background: #f5f7fa;
}

/* Course card image badges */
.card-img-wrapper {
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: block;
    border: none;
}

.badge-custom {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    white-space: nowrap;
    pointer-events: none;
}

.badge-upcoming {
    top: 14px;
    left: 14px;
    background: #ffc107;
    color: #222;
}

.badge-top-course {
    top: 14px;
    right: 14px;
    background: #28a745;
    color: #fff;
}

.badge-date {
    bottom: 14px;
    left: 14px;
    background: #0ea5e9;
    color: #fff;
}

.badge-level {
    bottom: 14px;
    right: 14px;
    background: #4481eb;
    color: #fff;
}

.badge-comingsoon {
    top: 14px;
    left: 14px;
    background: #dc3545;
    color: #fff;
}

.badge-course-category {
    background: linear-gradient(90deg, #4481eb 0%, #04befe 100%);
    color: #fff;
    font-weight: 600;
    padding: 4px;
    margin-bottom: 18px !important;
    border-radius: 18px;
    display: inline-block;
    font-size: 12px;
}

.badge-type-online {
    background: #1a8cff;
    color: #fff;
}

.badge-type-zoom {
    background: #6f42c1;
    color: #fff;
}

.badge-type-inperson {
    background: #28a745;
    color: #fff;
}

/* Skeleton loader */
.skeleton-card {
    background: #e3e7ec;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    height: 360px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.skeleton-img {
    background: linear-gradient(90deg,#f4f4f4 25%,#e6e6e6 50%,#f4f4f4 75%);
    background-size: 400% 100%;
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: 160px;
    animation: skeleton-loading 1.3s infinite linear;
}

.skeleton-content {
    padding: 18px;
}

.skeleton-title,
.skeleton-line,
.skeleton-btn {
    display: block;
    border-radius: 4px;
    background: #ececec;
    margin-bottom: 12px;
    animation: skeleton-loading 1.3s infinite linear;
}

.skeleton-title {
    width: 65%;
    height: 22px;
}

.skeleton-line {
    width: 90%;
    height: 14px;
}

.skeleton-btn {
    width: 45%;
    height: 32px;
    margin-bottom: 0;
}

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Cards */
.card,
.event-card,
.course-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    border: none;
    transition: box-shadow 0.2s;
}

.card:hover,
.event-card:hover,
.course-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.course-card {
    position: relative !important;
    overflow: visible !important;
    z-index: auto !important;
}

.card.event-card {
    border: none;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.card-text {
    font-size: 14px;
    color: #555;
    line-height: 24px;
}

.price span {
    font-size: 18px;
    font-weight: bold;
}

.discount-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 10px;
}

.past-event {
    opacity: 0.6;
    pointer-events: auto;
}

.past-event .buy-btn,
.past-event .enrol-btn {
    pointer-events: none;
}

/* Quick view panel */
.course-card .hover-panel {
    display: none;
    position: absolute;
    left: 100%;
    right: auto;
    margin-left: 18px;
    margin-right: 0;
    width: 360px;
    max-width: 94vw;
    background: linear-gradient(100deg, #e5effb 80%, #eaf3fb 100%);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    animation: hoverSlide 0.25s;
    z-index: 99999 !important;
    border: none;
}

@keyframes hoverSlide {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.hover-panel .hover-arrow {
    position: absolute;
    left: -18px;
    top: 28px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 18px solid #e5effb;
    filter: drop-shadow(-2px 0 3px rgba(0,0,0,0.11));
    z-index: 9999;
}

.course-card.open-left .hover-panel {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 18px;
}

.course-card.open-left .hover-panel .hover-arrow {
    left: auto;
    right: -18px;
    border-right: none;
    border-left: 18px solid #fff;
    filter: drop-shadow(2px 0 3px rgba(0,0,0,0.11));
}

.hover-panel ul {
    list-style: disc;
    padding-left: 22px !important;
    margin-bottom: 8px;
}

.hover-list li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    margin-bottom: 6px;
    color: #232a33;
    line-height: 1.6;
}

.hover-list i {
    font-size: 1.07em;
    margin-top: 4px;
    margin-left: -20px;
    min-width: 18px;
}

.course-summary {
    background: #f3f6fd;
    border-left: 4px solid #4481eb;
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 10px;
    color: #333;
}

/* Buttons */
.card-buttons {
    margin-top: 10px;
}

.card-buttons .btn {
    font-size: 12px;
    padding: 6px 14px;
    margin: 3px;
    text-transform: uppercase;
}

.btn-primary {
    margin-top: 10px !important;
}

.theme-btn {
    width: 100%;
    max-width: 300px;
    margin: 10px 0 0;
}

.reset-product-button {
    margin-top: 0;
    height: 49px;
    padding: 0 12px;
    line-height: 3;
}

/* Form and search */
.form-select {
    font-size: 0.9rem !important;
}

.shop-sidebar .sidebar-search .search-form .form-group button {
    right: 100px !important;
}

.shop-sidebar .sidebar-search .search-form .form-group input[type=search] {
    width: 93% !important;
}

/* Wishlist */
.wishlist-button .fa-heart {
    transition: transform 0.1s;
}

.wishlist-button.pulsed .fa-heart {
    animation: heart-pulse 0.4s;
}

@keyframes heart-pulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.28); }
    50% { transform: scale(0.92); }
    75% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Section titles */
.section-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: #222;
}

/* Detail page blocks */
.timeline-list {
    list-style: none;
    padding-left: 1.5em;
    position: relative;
}

.timeline-list li {
    position: relative;
    margin-bottom: .8em;
    padding-left: 1.2em;
}

.timeline-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: .5em;
    width: .5em;
    height: .5em;
    background: #5b6dfc;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e4e7fb;
}

.event-details,
.event-description,
.event-instructions,
.media-box,
.tags-box,
.similar-events,
.social-share,
.venue-info,
.event-guest {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
}

.custom-hr {
    margin: 0.5rem 0;
    border-top: 1px solid #e4e4e4;
    opacity: 1;
    height: 1px;
}

/* Comments */
.qa-comment-list,
.qa-review-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-comment-box {
    display: flex;
    align-items: flex-start;
    background: #f2f8fd;
    border-radius: 14px;
    margin-bottom: 28px;
    padding: 24px 24px 18px 18px;
    box-shadow: 0 2px 8px rgba(0,30,80,0.09);
}

.qa-comment-avatar {
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: #b8a750;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-weight: 700;
}

.qa-comment-content {
    flex: 1;
}

.qa-comment-user {
    font-weight: bold;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: #263445;
}

.qa-comment-content blockquote {
    font-style: italic;
    margin: 0 0 10px 0;
    padding: 0 0 0 14px;
    border-left: 3px solid #b8a750;
    color: #444;
    quotes: "“" "”" "‘" "’";
}

.qa-comment-content blockquote:before {
    content: open-quote;
    color: #b8a750;
    font-size: 2rem;
    margin-right: 4px;
}

.qa-comment-content blockquote:after {
    content: close-quote;
    color: #b8a750;
    font-size: 2rem;
    margin-left: 4px;
}

.qa-reply-box {
    margin-top: 8px;
    border-left: 3px solid #2d6ebb;
    padding-left: 14px;
    background: #f8fafc;
    border-radius: 7px;
}

.qa-reply-label {
    display: block;
    font-weight: bold;
    color: #b8a750;
    margin-bottom: 2px;
}

.qa-reply-content {
    color: #333;
}

/* Reviews */
.qa-review-box {
    display: flex;
    align-items: flex-start;
    background: #fffceb;
    border-radius: 14px;
    margin-bottom: 28px;
    padding: 24px 24px 18px 18px;
    box-shadow: 0 2px 8px rgba(200,160,30,0.09);
    border: 1.5px solid #ffe28a;
}

.qa-review-avatar {
    min-width: 48px;
    min-height: 48px;
    max-width: 48px;
    max-height: 48px;
    background: #ffe28a;
    color: #b8a750;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-weight: 700;
}

.qa-review-content {
    flex: 1;
}

.qa-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.qa-review-stars {
    margin-left: 12px;
    font-size: 1.08rem;
}

.qa-review-rating {
    font-weight: bold;
    color: #b8a750;
    margin-left: 6px;
    font-size: 0.98rem;
}

.qa-review-content blockquote {
    font-style: italic;
    margin: 0 0 10px 0;
    padding: 0 0 0 14px;
    border-left: 3px solid #ffe28a;
    color: #805c14;
    background: transparent;
    quotes: "“" "”" "‘" "’";
}

.qa-review-content blockquote:before {
    content: open-quote;
    color: #ffe28a;
    font-size: 2rem;
    margin-right: 4px;
}

.qa-review-content blockquote:after {
    content: close-quote;
    color: #ffe28a;
    font-size: 2rem;
    margin-left: 4px;
}

.qa-review-reply {
    margin-top: 8px;
    border-left: 3px solid #b8a750;
    padding-left: 14px;
    background: #fdf7e4;
    border-radius: 7px;
}

.qa-review-date {
    margin-top: 5px;
    color: #b8a750;
    font-size: 0.9rem;
}

/* Modal */
.custom-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.custom-modal-close,
.custom-modal-close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
}

.custom-modal-close:hover,
.custom-modal-close:focus,
.custom-modal-close-btn:hover,
.custom-modal-close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Tabs and accordion */
.nav-tabs .nav-link {
    padding: 8px 14px !important;
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 1rem 1rem 0 0;
    margin-right: 4px;
    color: #333;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.nav-tabs .nav-link.active {
    background: #ffe082;
    color: #232323;
    border-bottom: 2px solid #ffe082;
    font-weight: 600;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: #0d6efd;
}

.accordion-button:hover {
    background: #e8f1fc !important;
    color: #1a2956;
}

.accordion-button:not(.collapsed) {
    background: #e8f1fc !important;
    color: #19305c;
    font-weight: bold;
    border-left: 3px solid #2986f5;
}

.accordion-button.bg-light {
    background-color: #f7f9fc !important;
    border-bottom: 1px solid #ececec;
}

.accordion-item {
    border: none;
    background: #fff;
    border-radius: 1rem !important;
    box-shadow: 0 2px 12px 0 rgba(80,100,140,0.06);
}

.accordion-button .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    max-width: 70vw;
}

.accordion-button .d-flex.align-items-center.gap-2 {
    flex-wrap: wrap;
    gap: 0.4rem !important;
}

.accordion-button .badge {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
}

/* Curriculum */
.curriculum-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    border-bottom: 1px solid #ececec;
    padding: 10px 16px;
    background: #f6f8fc;
    border-radius: 0.5rem;
    margin-bottom: 0;
}

.curriculum-list .list-group-item:last-child {
    border-bottom: none;
}

.bg-lesson {
    background: #f6f8fc !important;
    color: #2a2a2a;
    border-radius: 0.5rem;
    margin-bottom: 4px;
}

.lesson-main {
    flex: 1 1 auto;
    min-width: 0;
}

.lesson-duration {
    background: #ffe082;
    color: #3a2d02;
    border-radius: 1rem;
    font-size: 0.9em;
    padding: 6px 14px;
    box-shadow: 0 1px 4px rgba(60,60,100,0.07);
    margin-left: 10px;
    white-space: nowrap;
    font-weight: 500;
}

.lesson-count-badge {
    font-size: 0.85rem;
    padding: 0.25em 0.6em;
    background-color: #6c757d;
    color: #fff;
    opacity: 0.85;
    user-select: none;
    white-space: nowrap;
}

.lesson-docs .badge {
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Course description bullets */
.blog-details__text-2 ul {
    list-style: none;
    padding-left: 1.2rem;
    margin-left: 0;
}

.blog-details__text-2 ul li {
    position: relative;
    margin-bottom: 0.6rem;
}

.blog-details__text-2 ul li::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #071e30;
    position: absolute;
    left: -1.2rem;
    top: 0.05rem;
    font-size: 0.5rem;
}

/* Layout helpers */
.col-md-4,
.row {
    overflow: visible !important;
    position: static !important;
    z-index: auto !important;
}

.col-md-8-course {
    flex: 0 0 auto;
    width: 66.66666667% !important;
}

.d-flex.overflow-auto.gap-3::-webkit-scrollbar {
    display: none;
}

.d-flex.overflow-auto.gap-3 {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .card-title {
        font-size: 16px !important;
        line-height: 1.25;
    }

    .shop-sidebar .sidebar-search .search-form .form-group button {
        right: 80px !important;
    }
}

@media (max-width: 1199.98px) and (min-width: 577px) {
    .row {
        display: flex;
        flex-wrap: wrap;
    }

    .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        min-width: 50% !important;
        box-sizing: border-box;
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 991.98px) and (min-width: 768px) {
    .col-md-8,
    .col-md-4 {
        width: 100%;
        max-width: 100%;
    }

    .col-md-8 {
        order: 1 !important;
    }

    .col-md-4 {
        order: 2 !important;
    }
}

@media (min-width: 900px) and (max-width: 1199.98px) {
    .row.g-4 > .col-md-8 {
        flex: 0 0 65%;
        max-width: 65%;
    }

    .row.g-4 > .col-md-4 {
        flex: 0 0 35%;
        max-width: 35%;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .col-md-8-course {
        flex: 0 0 auto;
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .badge-custom {
        font-size: 11px;
        padding: 4px 8px;
    }

    .badge-upcoming {
        top: 8px;
        left: 8px;
    }

    .badge-top-course {
        top: 8px;
        right: 8px;
    }

    .badge-date {
        bottom: 8px;
        left: 8px;
    }

    .badge-level {
        bottom: 8px;
        right: 8px;
    }

    .badge-comingsoon {
        top: 8px;
        left: 8px;
    }

    .quickview-btn {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .shop-sidebar .sidebar-search .search-form .form-group button {
        right: 80px !important;
    }

    .btn-primary {
        margin-top: 10px !important;
    }

    .lesson-main > div.mt-1 {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .accordion-button .text-truncate {
        max-width: 28vw;
    }

    .col-md-8-course {
        flex: 0 0 auto;
        width: 100% !important;
    }
}