.courses_filters {
    display: flex;
    flex-direction: column;
    height: auto;
    row-gap: 20px;
    width: 100%;
}

.courses_filters__header {
    display: flex;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 2px solid #03999D;
}

.courses_filters__title {
    display: flex;
    /*align-items: center;*/
    width: 100%;
}

.courses_filters__title h1 {
    margin: 0;
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
}

.courses_filters__activities {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.courses_filters__activities .lms_courses.search {
    flex: 1;
    max-width: 400px;
    margin-right: 0;
}

.courses_filters__activities .lms_courses {
    display: flex;
}

.courses_filters__activities .lms_courses.search .stm_lms_courses__search {
    width: 100%;
    display: inline-flex;
}

.courses_filters__activities .lms_courses.search .stm_lms_courses__search input {
    height: 44px;
    color: #1f2937;
    background-color: #FFFDF9;
    border: 2px solid #03999D;
    border-right: none;
    border-radius: 4px 0 0 4px;
    box-sizing: border-box;
    margin-right: 0;
    padding: 0 15px !important;
    font-size: 15px;
    transition: all 0.3s ease;
}

.courses_filters__activities .lms_courses.search .stm_lms_courses__search input:focus {
    outline: none;
    border-color: #1E3A8A;
    box-shadow: 0 0 0 3px rgba(3, 153, 157, 0.1);
}

.courses_filters__activities .lms_courses.search .stm_lms_courses__search .lms-search-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
    width: 44px;
    border: 2px solid #03999D;
    border-radius: 0 4px 4px 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #03999D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.courses_filters__activities .lms_courses.search .stm_lms_courses__search .lms-search-btn:hover {
    background-color: #1E3A8A;
    border-color: #1E3A8A;
}

.courses_filters__activities .lms_courses.search .stm_lms_courses__search .lms-search-btn i {
    color: #FFFDF9;
    font-size: 16px;
}

.fa, .fas {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.fa, .fas, .far, .fal, .fad, .fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fa-search::before {
    content: "\f002";
}

.courses_filters .stm_lms_courses_grid__sort {
    display: flex;
    align-items: center;
    margin-left: auto;
    border: 2px solid #03999D;
    border-radius: 4px;
    overflow: hidden;
    height: 44px;
}

.courses_filters__switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 0;
    border-radius: 4px;
    overflow: hidden;
}

.courses_filters .stm_lms_courses_grid__sort .sort_label {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFDF9;
    background-color: #1E3A8A;
    height: 100%;
    padding: 0 20px;
    min-width: 100px;
}

.courses_filters .stm_lms_courses_grid__sort .no-search {
    background: #FFFDF9;
    text-indent: 5px;
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    padding: 0 15px;
    border: none;
    color: #1f2937;
    font-size: 14px;
    min-width: 250px;
}

.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

select {
    max-width: 100%;
}

.courses_filters .stm_lms_courses_grid__sort .select2 {
    max-width: 300px;
    height: 44px;
    width: 100%;
}

.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
}

.courses_filters .stm_lms_courses_grid__sort .select2 .select2-selection {
    display: flex;
    align-items: center;
    height: 44px;
    border: none;
    background-color: #FFFDF9;
}

span.select2-container--default span.select2-selection--single span.select2-selection__rendered {
    color: #1f2937;
    line-height: 44px;
    padding: 0 48px 0 15px;
    font-size: 14px;
}

body:not(.academy, .classic_lms, .classic-lms-2) span.select2-container--default .select2-selection--single .select2-arrow,
body:not(.academy, .classic_lms, .classic-lms-2) span.select2-container--default .select2-selection--single span.select2-selection__arrow {
    height: 44px;
    width: 48px;
}

body:not(.academy, .classic_lms, .classic-lms-2) span.select2-container--default .select2-selection--single .select2-arrow b,
body:not(.academy, .classic_lms, .classic-lms-2) span.select2-container--default .select2-selection--single span.select2-selection__arrow b {
    border-color: #1E3A8A transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.courses_filters .stm_lms_courses_grid__sort .select2 .select2-selection .select2-selection__arrow b::after {
    border-color: #1E3A8A transparent transparent;
}

.courses_filters__switcher i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 18px;
    color: #1f2937;
    background-color: #FFFDF9;
    cursor: pointer;
    border: 2px solid #03999D;
    box-sizing: border-box;
    transition: all 0.3s ease;
    margin-left: -2px;
}

.courses_filters__switcher i:first-child {
    border-radius: 4px 0 0 4px;
    margin-left: 0;
}

.courses_filters__switcher i:last-child {
    border-radius: 0 4px 4px 0;
}

.courses_filters__switcher i:hover {
    background-color: rgba(3, 153, 157, 0.1);
}

.courses_filters__switcher i.active {
    color: #FFFDF9;
    background-color: #03999D;
    border-color: #03999D;
}

.stmlms-grid::before {
    content: "\e9a6";
}

.stmlms-list::before {
    content: "\e995";
}

/* Responsive Design */
@media (max-width: 1024px) {
    .courses_filters__activities {
        flex-wrap: wrap;
    }

    .courses_filters__activities .lms_courses.search {
        max-width: 100%;
        flex: 1 1 100%;
        margin-bottom: 15px;
    }

    .courses_filters .stm_lms_courses_grid__sort {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .courses_filters__title h1 {
        font-size: 24px;
    }

    .courses_filters__activities {
        flex-direction: column;
        gap: 15px;
    }

    .courses_filters__activities .lms_courses.sort {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .courses_filters .stm_lms_courses_grid__sort {
        width: 100%;
        margin-left: 0;
    }

    .courses_filters__switcher {
        margin-left: 0;
        width: 100%;
    }

    .courses_filters__switcher i {
        flex: 1;
    }
}