﻿
/* ===================== 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;
}



/* ===================== SKELETON ===================== */
.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,
.skeleton-title_course_category {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 0.25rem;
}

.skeleton-text_course_category {
    height: 1.25rem;
}

.skeleton-title_course_category {
    height: 2.25rem;
}


/* ===================== SECTION ===================== */
.rbt-section-overlayping-top {
    padding-top: 270px !important;
    background: #fff;
}


/* ===================== HEADER ROW ===================== */
.w-100.d-flex.row {
    align-items: center;
}


/* ===================== FILTER SELECT ===================== */
.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;
    }

    /* Select wrapper */
    .col-md-4.filter-select .rbt-modern-select {
        position: relative;
        display: inline-block;
        min-width: 120px;
    }

        /* Custom select */
        .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;
            display: inline-block;
            box-sizing: border-box;
            position: relative;
            z-index: 1;
        }

    /* Remove default arrow */
    .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-size: 14px;
        font-weight: 600;
        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 .bootstrap-select button.btn-light {
    box-shadow: none !important;
}

.rbt-modern-select .dropdown-toggle::after {
    display: none !important;
}

.rbt-modern-select .dropdown-item {
    border-radius: 5px !important;
}

.inner {
    border-radius: 5px !important;
}

.rbt-modern-select .bootstrap-select .dropdown-toggle .filter-option-inner-inner {
    color: black !important;
}

.rbt-modern-select .dropdown-menu {
    padding: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* ===================== LABEL ===================== */
.select-label,
.rbt-label-style {
    font-size: 16px !important;
    font-weight: normal !important;
    color: #4A4C4F !important;
    text-transform: none !important;
}


/* ===================== DIVIDER ===================== */
.divider {
    width: 100%;
    margin: 12px 0 18px;
    border-bottom: 2px dotted rgba(0, 0, 0, 0.12);
}

/* ===================== PAGINATION INFO ===================== */
.blog-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.blog-pagination-info {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.4;
    color: #4A4C4F;
    white-space: nowrap;
}

.blog-pagination-row nav {
    margin-left: auto;
}

.blog-post-pagination {
    display: flex !important;
    justify-content: flex-end !important;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}

    .blog-post-pagination .blog-page-item,
    .blog-post-pagination .blog-page-ellipsis {
        margin: 0;
    }

        .blog-post-pagination .blog-page-item a,
        .blog-post-pagination .blog-page-ellipsis span {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            height: 40px;
            padding: 0 16px;
            border: 1px solid #E8E8E8;
            border-radius: 0 !important;
            background: white;
            color: #4A4C4F;
            font-size: 16px;
            font-weight: 500;
            line-height: 1;
            text-decoration: none;
            margin-left: -1px;
            transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .blog-post-pagination .blog-page-item:first-child a {
            border-radius: 4px 0 0 4px !important;
            margin-left: 0;
        }

        .blog-post-pagination .blog-page-item:last-child a {
            border-radius: 0 4px 4px 0 !important;
        }

    .blog-post-pagination .blog-page-prev a,
    .blog-post-pagination .blog-page-next a {
        min-width: 68px;
    }

    .blog-post-pagination .blog-page-item:not(.active):not(.disabled):hover a {
        background: #F5F5F5;
        color: #0078D4;
    }

    .blog-post-pagination .blog-page-item.active a {
        background: #3431C6 !important;
        color: white !important;
        border-color: #3431C6 !important;
        z-index: 1;
        position: relative;
    }

    .blog-post-pagination .blog-page-item.disabled a {
        color: #9A9A9A;
        cursor: default;
        pointer-events: none;
    }

    .blog-post-pagination .blog-page-ellipsis span {
        cursor: default;
        font-weight: 600;
    }


/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px) {
    .col-md-4.filter-select {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .blog-pagination-row {
        align-items: flex-start;
        flex-direction: column;
    }

        .blog-pagination-row nav {
            margin-left: 0;
            width: 100%;
        }
}
