﻿/* ===================== GLOBAL FONT ===================== */
html, body,
input, button, textarea, select,
a, p, span, li, label, div,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Google Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading style */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600 !important;
    line-height: 1.2 !important;
    margin: 0.5rem 0 !important;
}


/* ===================== overlayping-top ===================== */
.rbt-section-overlayping-top {
    margin: 0 auto !important;
    padding-top: 40px !important;
}

/* ===================== FILTER SELECT ===================== */
.w-100.d-flex.row {
    align-items: center;
}

.col-md-4.filter-select {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
}

    .col-md-4.filter-select .select-label {
        margin: 0;
        white-space: nowrap;
    }

    /* Custom select */
    .col-md-4.filter-select .rbt-modern-select {
        position: relative;
        display: inline-block;
        min-width: 120px;
    }

        .col-md-4.filter-select .rbt-modern-select select,
        .col-md-4.filter-select select#selectOrderType {
            appearance: none;
            border: none;
            background: transparent;
            padding: 6px 56px 6px 6px;
            font-weight: 700;
            font-size: 15px;
            color: #222;
            cursor: pointer;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
        }

    .col-md-4.filter-select select::-ms-expand {
        display: none;
    }

    /* Custom caret */
    .col-md-4.filter-select .rbt-modern-select::after {
        content: '⇅';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        font-size: 14px;
        color: black;
        pointer-events: none;
        z-index: 2;
    }

    .col-md-4.filter-select .rbt-modern-select select:focus {
        outline: none;
        box-shadow: none;
    }

/* Bootstrap select override */
.rbt-modern-select .dropdown-toggle::after {
    display: none;
}

.rbt-modern-select .dropdown-item {
    border-radius: 5px !important;
}

.inner {
    border-radius: 5px !important;
}

.rbt-modern-select .bootstrap-select button.btn-light {
    border: none !important;
    box-shadow: none !important;
    color: black !important;
}

.rbt-modern-select .dropdown-menu {
    padding: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}


/* Responsive */
@media (max-width: 767px) {
    .col-md-4.filter-select {
        justify-content: flex-start;
        margin-top: 8px;
    }
}


/* ===================== CARD ===================== */
.rbt-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rbt-card .rbt-card-body .rbt-card-paid {
    align-items: unset !important;
}


/* ===================== SALE BADGE ===================== */
.sale-of-ticker-grid {
    bottom: 5px !important;
    right: 5px !important;
}

.sale-of-ticker-list {
    top: 10px !important;
    right: 5px !important;
}

.off-price {
    margin-left: unset !important;
}


/* ===================== SKELETON LOADING ===================== */
.skeleton_course_category {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    border-radius: 5px;
    animation: skeleton-loading-feedback 1.5s linear infinite;
}

@keyframes skeleton-loading-feedback {
    to {
        background-position-x: -200%;
    }
}

/* Skeleton elements */
.skeleton-text_course_category {
    height: 1.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-title_course_category {
    height: 2.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-search_course_category {
    height: 5.25rem;
    margin-bottom: 0.75rem;
}

.skeleton-text_course_category,
.skeleton-title_course_category,
.skeleton-search_course_category,
.skeleton-seperator_course_category {
    width: 100%;
    border-radius: 0.25rem;
}

/* ===================== SKELETON LOADING ===================== */
.skeleton_course_category {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-loading-feedback 1.5s linear infinite;
}

@keyframes skeleton-loading-feedback {
    to {
        background-position-x: -200%;
    }
}

/* ===================== COURSE LIST SKELETON ===================== */
.course-list-skeleton {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.course-skeleton-card {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.course-skeleton-image {
    width: 100%;
    height: 218px;
    border-radius: 0;
}

.course-skeleton-content {
    padding: 18px 20px 16px 20px;
}

/* Top meta */
.course-skeleton-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.skeleton-meta-item {
    height: 16px;
    width: 31%;
}

/* Title */
.skeleton-title-line {
    height: 22px;
    width: 100%;
    margin-bottom: 10px;
}

.skeleton-title-line-short {
    width: 82%;
}

/* Description */
.skeleton-desc-line {
    height: 15px;
    width: 100%;
    margin-top: 14px;
}

.skeleton-desc-line-short {
    width: 88%;
    margin-top: 8px;
}

/* Divider */
.course-skeleton-divider {
    height: 1px;
    background: #eeeeee;
    margin: 14px -20px 12px -20px;
}

/* Bottom */
.course-skeleton-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.course-skeleton-author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.skeleton-avatar_course_category {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-author-label {
    width: 70px;
    height: 13px;
    margin-bottom: 7px;
}

.skeleton-author-name {
    width: 160px;
    height: 15px;
}

.course-skeleton-rating {
    width: 145px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skeleton-rating-score {
    width: 42px;
    height: 16px;
    margin-bottom: 6px;
}

.skeleton-rating-stars {
    width: 120px;
    height: 16px;
    margin-bottom: 6px;
}

.skeleton-rating-text {
    width: 92px;
    height: 13px;
}

/* Responsive */
@media (max-width: 767px) {
    .course-skeleton-image {
        height: 190px;
    }

    .course-skeleton-content {
        padding: 16px;
    }

    .course-skeleton-meta {
        gap: 10px;
        margin-bottom: 14px;
    }

    .skeleton-meta-item {
        width: 33.333%;
    }

    .course-skeleton-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .course-skeleton-rating {
        width: 100%;
    }

    .course-skeleton-divider {
        margin-left: -16px;
        margin-right: -16px;
    }
}


/* ===================== FORM LABEL ===================== */
.select-label,
.rbt-label-style {
    font-size: 16px !important;
    font-weight: normal !important;
    color: #4A4C4F !important;
    text-transform: none !important;
}


/* ===================== PAGINATION ===================== */
.rbt-pagination {
    justify-content: flex-end !important;
    border-right: 1px solid #d1d1d1 !important;
    box-shadow: none !important;
}

    .rbt-pagination li {
        margin: 0 !important;
    }

        .rbt-pagination li a {
            border-radius: 0 !important;
            border: 1px solid #d1d1d1 !important;
            border-right: none !important;
        }

        .rbt-pagination li.active a,
        .rbt-pagination li:hover a {
            border: none !important;
        }

.paging-first-item .rbt-pagination li a {
    border-radius: 5px 0 0 5px !important;
}


/* ===================== DIVIDER ===================== */
.divider {
    width: 100%;
    margin: 12px 0 18px;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.12);
}
