hr {
    margin-bottom: 14px;
    border: none;
    border-top: 1px solid #e6e6e6;
}

.right-pannel-couse-list {
    padding-left: 60px !important;
}

.course-category-list {
    width: 100%;
}


/* ===================== COURSE CARD (SIMPLE) ===================== */
.course-simple {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 200px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .course-simple:hover {
        border-color: #d8dcf0;
        box-shadow: 0 10px 26px rgba(18, 24, 40, 0.08);
        transform: translateY(-2px);
    }

    /* spacing between cards */
    .course-simple + .course-simple {
        margin-top: 16px;
    }


    /* ===================== THUMBNAIL ===================== */
    .course-simple .thumb {
        position: relative;
        flex: 0 0 354px;
        align-self: stretch;
        overflow: hidden;
        border-radius: 8px 0 0 8px;
        box-sizing: border-box;
    }

        .course-simple .thumb a {
            display: block;
            width: 100%;
            height: 100%;
        }

        .course-simple .thumb img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 8px 0 0 8px;
        }

.course-category-bookmark {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .course-category-bookmark i {
        line-height: 1;
        color: inherit;
    }

    .course-category-bookmark .icon-bookmark {
        width: 22px;
        height: 22px;
    }

    .course-category-bookmark:hover,
    .course-category-bookmark.is-wishlist-active {
        background: #3431C6;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(52, 49, 198, 0.24);
    }

    .course-category-bookmark .text-primary,
    .course-category-bookmark.is-wishlist-active i {
        color: #fff !important;
    }


    /* ===================== CONTENT ===================== */
    .course-simple .content {
        flex: 1 1 auto;
        min-width: 0;
        padding: 25px 30px 15px 15px;
    }

    .course-simple .title {
        display: -webkit-box;
        margin: 4px 0 8px;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        color: #111827;
        height: calc(18px * 1.4 * 2);
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-decoration: none;
    }

        .course-simple .title:hover {
            color: #3431C6;
        }

    .course-simple .overview {
        display: -webkit-box;
        margin-bottom: 12px;
        font-size: 14px;
        line-height: 1.5;
        color: #000000E0;
        height: calc(14px * 1.5 * 2);
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


    /* ===================== META ===================== */
    .course-simple .meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 6px;
        font-size: 14px;
        color: #070A0E;
    }

        .course-simple .meta > div {
            display: inline-flex;
            align-items: center;
            min-width: 0;
            white-space: nowrap;
        }

        .course-simple .meta i,
        .course-simple .meta .icon {
            margin-right: 6px;
            font-size: 18px;
            color: #374151;
            vertical-align: middle;
        }


/* ===================== PRICE ===================== */
.course-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

    .course-price .current-price {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
    }

    .course-price .off-price {
        font-size: 13px;
        color: #6b7280;
        text-decoration: line-through;
    }


/* ===================== ACTION ===================== */
.course-action a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    background: #0ea5a1;
    color: #fff;
}


/* ===================== BADGE ===================== */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    color: #d94666;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


/* ===================== RATING ===================== */
.course-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.course-author {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.course-author-avatar-link {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 50%;
}

.course-author-avatar {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    object-fit: cover;
}

.course-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.course-author-label {
    font-size: 14px;
    line-height: 1.4;
    color: #4A4C4F;
}

.course-author-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #070A0E;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.course-author-name-link {
    display: block;
    text-decoration: none;
}

.course-author-name-link:hover {
    color: #3431C6;
}

.course-rating-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 auto;
}

.course-rating-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-render i {
    margin-right: 4px;
    font-size: 16px;
    color: #f59e0b;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    color: black;
}

.rating-count {
    font-size: 14px;
    font-weight: 400;
    color: black;
}


/* ===================== PAGINATION CONTAINER ===================== */
.course-category-pagination {
    margin-top: 28px;
}

@media (max-width: 1399px) {
    .course-simple .thumb {
        flex-basis: 320px;
    }

    .course-simple .content {
        padding: 22px 24px 15px 16px;
    }

    .course-simple .meta {
        gap: 14px;
        font-size: 13px;
    }
}

@media (max-width: 1199px) {
    .right-pannel-couse-list {
        padding-left: 30px !important;
    }

    .course-simple .thumb {
        flex-basis: 270px;
    }

    .course-simple .content {
        padding: 18px;
    }

    .course-simple .title {
        font-size: 17px;
        height: calc(17px * 1.4 * 2);
    }

    .rating-render i {
        margin-right: 2px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .course-filter-column {
        margin-bottom: 24px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .right-pannel-couse-list {
        padding-left: 15px !important;
    }

    .course-simple {
        min-height: 190px;
    }

    .course-simple .thumb {
        flex-basis: clamp(220px, 34vw, 300px);
    }

    .course-simple .meta {
        justify-content: flex-start !important;
        gap: 8px 14px;
    }

    .course-card-bottom {
        align-items: flex-start;
    }

    .course-rating-summary {
        align-items: flex-end;
    }
}

@media (max-width: 767px) {
    hr {
        margin: 12px -16px 14px;
    }

    .course-filter-column {
        margin-bottom: 20px;
    }

    .right-pannel-couse-list {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .course-category-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .course-simple,
    .course-simple:hover {
        flex-direction: column;
        min-height: 0;
        border-radius: 12px;
        transform: none;
    }

    .course-simple + .course-simple {
        margin-top: 0;
    }

    .course-simple .thumb {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 12px 12px 0 0;
    }

    .course-simple .thumb img {
        position: static;
        height: 100%;
        border-radius: 12px 12px 0 0;
    }

    .course-category-bookmark {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .course-simple .content {
        padding: 16px;
    }

    .course-simple .meta {
        gap: 8px 12px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .course-simple .meta > div {
        white-space: normal;
    }

    .course-simple .meta i,
    .course-simple .meta .icon {
        font-size: 16px;
    }

    .course-simple .title {
        margin: 0 0 8px;
        font-size: 16px;
        line-height: 1.35;
        height: calc(16px * 1.35 * 2);
    }

    .course-simple .overview {
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 1.5;
        height: calc(13px * 1.5 * 2);
        -webkit-line-clamp: 2;
    }

    .course-card-bottom {
        gap: 14px;
    }
}

@media (max-width: 575px) {
    .course-simple .content {
        padding: 14px;
    }

    .course-simple .meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .course-simple .meta > div:first-child {
        grid-column: 1 / -1;
    }

    .course-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .course-author {
        width: 100%;
    }

    .course-rating-summary {
        width: 100%;
        align-items: flex-start;
        padding-top: 2px;
    }

    .course-rating-top {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .course-category-pagination {
        margin-top: 22px;
    }
}

@media (max-width: 380px) {
    .course-simple .meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-simple .meta > div:first-child {
        grid-column: auto;
    }

    .course-author-avatar {
        width: 36px;
        height: 36px;
        max-width: 36px;
        max-height: 36px;
        flex-basis: 36px;
    }
}

