/* Custom Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: .5rem 0;
}

.flex-stack {
    justify-content: space-between;
    align-items: center;
}

.h-20px {
    height: 20px !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    background-color: transparent;
    padding: 0;
    margin: 0;
    --bs-breadcrumb-divider: '>';
}

/* Custom Toolbar */


/* right side */
.menu-item {
    display: block;
    padding: 0;
}


.card-toolbar {
    display: flex;
    align-items: center;
    margin: .1rem 0;
    flex-wrap: wrap;
}

.cursor-pointer {
    cursor: pointer;
}

.badge-light {
    color: #7e8299;
    background-color: #f5f8fa;
}

.card-footer {
    padding: .5rem 1rem;
    background-color: #fff;
    border-top: 1px solid #eff2f5;
}

.indicator-progress {
    display: none;
}

.book-bottom-content{
   left: 0px;
}
.book_custom_mb{
    margin-bottom: 40px;
}
.two-line-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5; 
    max-height: 3em;  
    white-space: normal;
}
  
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .185em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .65s linear infinite spinner-border;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: .145em;
}

/* pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0px !important;
}

.page-item.disabled .page-link {
    color: #b5b5c3;
    pointer-events: none;
    background-color: transparent;
    border-color: transparent;
}

.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: .475rem;
    height: 2.5rem;
    min-width: 2.5rem;
    font-weight: 500;
    font-size: 1.075rem;
}

.page-link:focus {
    z-index: 3;
    color: #009ef7;
    background-color: #f1faff;
    outline: 0;
    box-shadow: none;
}

.page-link {
    padding: .375rem .75rem;
}

.page-link {
    position: relative;
    color: #5e6278;
    background-color: transparent;
    border: 0 solid transparent;
}

/* pagination */
.text-hover-warning {
    transition: color .2s ease, background-color .2s ease;
}

.text-hover-warning:hover {
    transition: color .2s ease, background-color .2s ease;
    color: #ffc700 !important;
}

.menu-link:hover {
    transition: color .2s ease, background-color .2s ease;
    background-color: rgba(232, 235, 232, 0.301) !important;
    /* color: #009ef7 !important; */
}

.dropdown-menu {
    display: none;
    border-radius: .475rem;
    background-color: #fff;
    box-shadow: 0 0 50px 0 rgba(82, 63, 105, .15);
    z-index: 105;
    border: none;
}

.text-hover-white:hover {
    transition: color .2s ease, background-color .2s ease;
    color: #fff !important;
}

.form-control.form-control-solid,
.form-control.form-control-solid.active,
.form-control.form-control-solid.focus,
.form-control.form-control-solid:active,
.form-control.form-control-solid:focus {
    background-color: #eef3f7;
    border-color: #eef3f7;
    color: #5e6278;
    transition: color .2s ease, background-color .2s ease;
    box-shadow: none;
    outline: none;
}



.w-50px {
    width: 50px !important;
}

.min-h-40px {
    min-height: 40px !important;
}

.min-w-300px {
    min-width: 300px !important;
}

.min-w-40px {
    min-width: 40px !important;
}

.w-200px {
    width: 200px !important;
}

.separator.separator-dashed {
    border-bottom-style: dashed;
    border-bottom-color: #e4e6ef;
}

.separator {
    display: block;
    height: 0;
    border-bottom: 1px solid #eff2f5;
}

.card-bordered {
    box-shadow: none;
    border: 1px solid #eff2f5;
}

.border-primary {
    border-color: #009ef7 !important;
}

.border-bottom {
    border-bottom: 1px solid #eff2f5 !important;
}

.border-top {
    border-top: 1px solid #eff2f5 !important;
}

.btn-active-primary:hover {
    color: #fff;
    border-color: #009ef7;
    background-color: #009ef7 !important;
}

.btn.btn-info {
    color: #fff;
    border-color: #7239ea;
    background-color: #7239ea;
}

.badge-light-primary {
    color: #009ef7;
    background-color: #f1faff;
}

.form-control-solid,
.form-select-solid {
    background-color: #f5f8fa;
    border-color: #f5f8fa;
    color: #5e6278;
    transition: color .2s ease, background-color .2s ease;
}
.form-select,
.form-control {
    box-shadow: none !important;
}
.form-control::placeholder {
    color: #a1a5b7;
    opacity: 1
}
.text-hover-white {
    transition: color .2s ease, background-color .2s ease;
}

.bg-hover-primary {
    cursor: pointer;
}
.bg-light-primary {
    background-color: #f1faff;
}

/* select2  */
.select2-container.select2-container--default.select2-container--open {
    z-index: 5000;
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    min-height: 40px;
    padding-left: 7px;
    padding-top: 6px;
    border: 0;
    background-color: #eef3f7;
    border-color: #eef3f7 !important;
    color: #5e6278;
}
.select2-dropdown {
    border: 0;
    box-shadow: 0 0 50px 0 rgba(82, 63, 105, .15);
    border-radius: .475rem;
    padding: 1rem 0;
    background-color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 6px !important;
}
.select2-results__option--selectable {
    cursor: pointer;
    padding: 10px 15px;
    margin: 0 5px;
    color: #5e6278;
}
/* select2 */

.swal2-container.swal2-center>.swal2-popup {
    padding: 20px !important;
}

div:where(.swal2-container) div:where(.swal2-actions) {
    gap: 12px;
}

.text-hover-white {
    transition: color .2s ease, background-color .2s ease;
}

.bg-hover-primary {
    cursor: pointer;
}
.bg-light-primary {
    background-color: #f1faff;
}
.text-hover-white:hover {
    transition: color .2s ease, background-color .2s ease;
    color: #fff !important;
}
.bg-hover-primary:hover {
    --bg-color: 0, 158, 247;
    background-color: #009ef7;
}   
.text-hover-white:hover i {
    transition: color .2s ease, background-color .2s ease;
    color: #fff !important;
}   
.mw-700px {
    max-width: 700px !important;
}
.mw-600px {
    max-width: 600px !important;
}

.ck-content {
    min-height: 200px;
    border-radius: .475rem!important;
}
.ck-editor .ck-content {
    border-bottom-right-radius: .475rem!important;
    border-bottom-left-radius: .475rem!important;
    border-top-left-radius: 0!important;
    border-top-right-radius: 0!important;
}
.required:after {
    content: "*";
    position: relative;
    font-size: inherit;
    color: #f1416c;
    padding-left: .25rem;
    font-weight: 700;
}
body {
    display: flex;
    flex-direction: column; 
    color: #181c32;
}
@media (min-width: 992px) {
    .content {
        padding: 30px 0;
    }
}
.select2-container {
    display: block;
}
.select2-container *:focus {
    outline: none;
}
.image-input:not(.image-input-empty) {
    background-image: none !important;
}
.image-input {
    position: relative;
    display: inline-block;
    border-radius: .475rem;
    background-repeat: no-repeat;
    background-size: cover;
}
.image-input.image-input-outline .image-input-wrapper {
    border: 3px solid #fff;
    box-shadow: 0 .1rem 1rem .25rem rgba(0, 0, 0, .05);
}
.image-input .image-input-wrapper {
    width: 120px;
    height: 120px;
    border-radius: .475rem;
    background-repeat: no-repeat;
    background-size: cover;
}
.h-125px {
    height: 125px !important;
}

@media (min-width: 576px) {
    .w-sm-425px {
        width: 425px !important;
    }
}
.image-input [data-kt-image-input-action=change] {
    left: 100%;
    top: 0;
}
.image-input [data-kt-image-input-action] {
    cursor: pointer;
    position: absolute;
    transform: translate(-50%, -50%);
}
.image-input [data-kt-image-input-action=change] input {
    width: 0 !important;
    height: 0 !important;
    overflow: hidden;
    opacity: 0;
}
.btn-active-color-primary i {
    color: #009ef7;
}
.image-input [data-kt-image-input-action=cancel],
.image-input [data-kt-image-input-action=remove] {
    position: absolute;
    left: 100%;
    top: 100%;
}

.btn-active-success:hover:not(.btn-active){
    color: #fff;
    border-color: #50cd89;
    background-color: #50cd89 !important;
}
.hover-scroll-x {
    position: relative;
}
@media (min-width: 992px) {
    .hover-scroll-x {
        overflow-x: hidden;
        border-bottom: .4rem solid transparent;
    }
}
.btn.btn-info i {
    color: #fff;
}
.btn-active-primary:hover:not(.btn-active) i{
    color: #fff;
}
.mt-n4 {
    margin-top: -1rem !important;
}
.card .card-header .card-title.flex-column {
    align-items: flex-start;
    justify-content: center;
}
.hover-success:hover {
    background-color: #50cd89 !important;
    color: #fff !important;
}
.page_tag:hover,
.academy-class-tag:hover,
.active-page-tag:hover {
    border: 1.5px solid #50cd89 !important;
    transition: border .2s ease;
    background-color: #f7fff8 !important;
    cursor: pointer;
}
.active-page-tag:has(input[type=radio]:checked),
.active-page-tag:has(input[type=checkbox]:checked),
.class_active{
    background-color: #d8ffdb !important;
    color: #000 !important;
    border: 1.5px solid #50cd89 !important;
    transition: border .2s ease;
}

.btn-custom-active-color:hover,
.academy_print_btn:hover,
.toggle-subchapter-btn:hover {
    color: #7e8299;
    border-color: #f5f8fa;
    background-color: #ffffff !important;
}
.btn-custom-active-color:hover,
.toggle-subchapter-btn:hover i,
.academy_print_btn:hover i{
    color: #009ef7 !important;
}
.academy-hover-card:hover .text-hover-primary {
    transition: color .2s ease, background-color .2s ease;
    color: #009ef7 !important;
}
.academy-hover-card:hover{
    background-color: #0062061f !important;
    transition: background-color .2s ease;
}
.academy-hover-card:hover .sub-chapter .frist_child{
    background-color: rgb(255 255 255 / 58%) !important;
    transition: background-color .2s ease;
}
.academy-hover-card:hover .sub-chapter .second_child{
    background-color: rgb(255 255 255 / 89%) !important;
    transition: background-color .2s ease;
}

.theme-border-left::before{
    content: "";
    display: inline-block;
    background-color: #50cd89;
    border-radius: 6px;
    width: 3px;
    height: 64px;
    flex-shrink: 0;
    position: absolute;
    left: 0px;
    top: 0px;
}
.scroll-bar-none{
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.question-span p {
    display: inline;
}

.table-active-danger {
    --bs-table-bg-state: rgb(255 0 0 / 10%);
    --bs-table-striped-bg-state: rgb(255 0 0 / 10%);
    --bs-table-striped-color-state: rgb(255 0 0 / 10%);
    --bs-table-active-bg-state: rgb(255 0 0 / 10%);
    --bs-table-active-color-state: rgb(255 0 0 / 10%);
    --bs-table-hover-bg-state: rgb(255 0 0 / 10%);
    --bs-table-hover-color-state: rgb(255 0 0 / 10%);
}



@media (max-width: 768px) {

    .academy-filter-sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        background: #ffffff;
        width: 70%;
        padding: 10px 8px;
        display: none;
        bottom: 0;
        overflow-y: scroll;
        height: 100vh;
    }
    .overlay-mask {
        bottom: 0;
        left: 0;
        position: fixed;
        right: 0;
        top: 0;
        background: #424242;
        opacity: .3;
        overscroll-behavior: contain;
    }
    .mobile_position_other{
        position: absolute;
        bottom: 0;  
        width: 100%;
        top: -50px;
        left: -11px !important;
        overflow-x: auto; 
        padding: 10px; 
        justify-content: start !important;
        flex-wrap: nowrap !important;
        overflow-y: hidden;
        height: 50px;

    }
    .mobile_position_print{
        position: absolute;
        right: -17px;
        top: -14px;
        flex-wrap: nowrap !important;
    }
    .mobile_image_width{
        width: 40% !important;
    }
}


@media (min-width: 768px) {
.w-md-100 {
    width: 100%!important
}
.w-md-25{
    width: 25%!important
}
}
@media (min-width: 1200px) {
    .w-lg-25 {
        width: 25%!important
    }
}
.custom_academy_badge{
    height: fit-content !important;
    width: fit-content !important;
    padding: 0px !important;
    margin-left: 3px;
}




.skeleton-c9ay7k6i5vw:empty {
    position: relative;
    height: 400px;
    background-color: #ffffff;
    border-radius: 0px 0px 0px 0px;
    background-image: linear-gradient(#F5F7F9 6px, transparent 0), linear-gradient(#F5F7F9 6px, transparent 0), linear-gradient(#F5F7F9 6px, transparent 0), linear-gradient(#F5F7F9 6px, transparent 0), linear-gradient(#F5F7F9 6px, transparent 0), radial-gradient(circle 20px at 20px 20px, #F5F7F9 99%, transparent 0);
    background-repeat: repeat-y;
    background-size: 43% 133px, 90% 133px, 74% 133px, 52px 133px, 88px 133px, 40px 133px;
    background-position: left 12px top 111px, left 12px top 92px, left 12px top 73px, left 59px top 39px, left 59px top 21px, left 12px top 12px;
}

.skeleton-c9ay7k6i5vw:empty:before {
    content: ' ';
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 400px;
    -webkit-mask-image: linear-gradient(94deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 80%);
    -webkit-mask-repeat: repeat-y;
    -webkit-mask-size: 90px 400px;
    -webkit-mask-position: -20% 0;
    background-image: linear-gradient(rgba(226, 227, 233, 1) 6px, transparent 0), linear-gradient(rgba(226, 227, 233, 1) 6px, transparent 0), linear-gradient(rgba(226, 227, 233, 1) 6px, transparent 0), linear-gradient(rgba(226, 227, 233, 1) 6px, transparent 0), linear-gradient(rgba(226, 227, 233, 1) 6px, transparent 0), radial-gradient(circle 20px at 20px 20px, rgba(226, 227, 233, 1) 99%, transparent 0);
    background-repeat: repeat-y;
    background-size: 43% 133px, 90% 133px, 74% 133px, 52px 133px, 88px 133px, 40px 133px;
    background-position: left 12px top 111px, left 12px top 92px, left 12px top 73px, left 59px top 39px, left 59px top 21px, left 12px top 12px;
    animation: shineForSkeleton-c9ay7k6i5vw 2s infinite;
}

@keyframes shineForSkeleton-c9ay7k6i5vw {
    to {
        -webkit-mask-position: 120% 0
    }
}

.fade-enter,
.fade-leave {
    transition: opacity 0.5s ease-in-out;
}

.fade-enter-start,
.fade-leave-end {
    opacity: 0;
}

.fade-enter-end,
.fade-leave-start {
    opacity: 1;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
}
.overlay.overlay-block .overlay-layer,
.overlay.overlay-show .overlay-layer,
.overlay:hover .overlay-layer {
    transition: all .3s ease;
    opacity: 1;
}
.h-250px {
    height: 250px !important;
}
.fs-3x {
    font-size: calc(1.425rem + 2.1vw) !important;
}
.custom-text-gray{
    color: rgb(90 92 98 / 78%) !important;
}
.sa-btn-success-2{
    background-color: var(--sa-bg-secondary);
    color: #000;
}
.sa-btn-success-2:hover{
    background-color: var(--sa-bg-secondary-300);
    color: #ffffff;
}
.text-hover-success:hover{
    color: var(--sa-bg-secondary-300) !important;
}

@media (min-width: 768px) {
    .h-md-375px {
        height: 375px !important;
    }
    .rounded-r-none{
        border-top-right-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
    }
    .rounded-l-none{
        border-top-left-radius: 0px !important;
        border-bottom-left-radius: 0px !important;
    }
}
@media (min-width: 1200px) {
    .fs-3x {
        font-size: 3rem !important;
    }
}



/*--------  cart qty button ---------*/
.qty-container{
  display: flex;
  align-items: center;
  justify-content: center; 
}
.qty-container .input-qty{
  text-align: center;
  padding: 6px 10px;
  border: 1px solid #d4d4d4;
  max-width: 54px;
}
.qty-container .qty-btn-minus,
.qty-container .qty-btn-plus{
  border: 1px solid #d4d4d4;
  padding: 10px 13px;
  font-size: 10px;
  height: 34px;
  width: 34px;
  transition: 0.3s;
}
.qty-container .qty-btn-plus{
  margin-left: -1px;
}
.qty-container .qty-btn-minus{
  margin-right: -1px;
}

.qty-container button:focus,
input:focus{
  outline: none;
  box-shadow: none;
}
.theme-grid-h::before{
    height: 45px;
}
/* Hide the small-screen button on large screens */
@media screen and (min-width: 768px) {
    .small-screen-lang-btn {
        display: none !important;
    }
}

/* Hide the large-screen button on small screens */
@media screen and (max-width: 767px) {
    .large-screen-lang-btn {
        display: none !important;
    }
}

/* --------- test mode position mobile --------- */
@media (max-width: 768px) {
    .test_mode_position{
        transform: translate(-50%, -50%) !important;
        left: 50% !important;
    }
}


.line_ellipsis{
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;

}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 1.2s infinite;
}



