.cart-link {
    position: relative;
}

.cart_total_items {
    background-color: var(--primary);
    color: #fff;
    padding: 0;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    inset-inline-start: -4px;
    font-size: 10px;
    font-weight: 600;
    width: 15px;
    height: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

:root[dir="rtl"] input[type="email"],
:root[dir="rtl"] input[type="number"] {
    direction: rtl;
}

.category-courses-wrapper {
    position: relative;
}

.index-spinner {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    color: var(--primary);
    z-index: 2;
}

.courses_sec .course_card .card-body .top_card .categ_badge {
    font-size: 8px;
    padding: 0.5rem 0.3rem;
}

.courses_sec .course_card .card-body .title {
    height: 38px;
}

.courses_sec .course_card .card-body .top_card .prices .del {
    font-size: 12px;
}

.courses_sec .course_card .card-body .top_card .prices .price {
    font-size: .8rem;
}

.footer .content .social_links a {
    margin-top: 5px;
}

.truncated-text {
    display: -webkit-box;
    -webkit-line-clamp: 13;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: none; /* Hide by default */
}

.contact_pg .social_links {
    display: grid;
    grid-template-columns: .1fr .1fr;
    gap: 2px;
}

.contact_pg .map_box iframe {
    width: 100%;
    height: 650px;
}

.subjects-wrapper .select2-container--default {
    min-height: 60px;
    width: 100% !important;
    background-color: #F4F4F4;
    height: auto;
    /*padding-bottom: 20px;*/
}

.subjects-wrapper .select2-container--default .select2-selection--multiple {
    border: unset;
    background-color: #F4F4F4;
    padding-inline-end: 30px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-bottom: 5px;
}

.subjects-wrapper .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding-inline-start: 50px;
    position: relative;
    top: 12px;
}

.subjects-wrapper .select2-container--default .select2-selection--multiple .select2-search__field {
    padding-inline-start: 50px;
    padding-top: unset !important;
    position: relative;
    bottom: 12px;
    height: 25px;
}

.profile_pg .subjects-wrapper .select2-container--default .select2-selection--multiple .select2-search__field {
    /*padding-inline-start: unset;*/
}

/*start user profile photo*/
.user_img .avatar-upload {
    position: relative;
    max-width: 200px;
    /*margin: 50px auto;*/
    margin: 0 auto 30px;
}

.user_img .avatar-upload .avatar-edit {
    position: absolute;
    right: 12px;
    z-index: 1;
    top: 10px;
}

.user_img .avatar-upload .avatar-edit input {
    display: none;
}

.user_img .avatar-upload .avatar-edit input + label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    border-radius: 100%;
    background: #fff;
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s ease-in-out;
}

.user_img .avatar-upload .avatar-edit input + label:hover {
    background: #f1f1f1;
    border-color: #d6d6d6;
}

.user_img .avatar-upload .avatar-edit input + label:after {
    content: "\f040";
    font-family: "Font Awesome 6 Pro";
    color: #757575;
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    text-align: center;
    margin: auto;
}

.user_img .avatar-upload .avatar-preview {
    width: 150px;
    height: 150px;
    position: relative;
    border-radius: 100%;
    border: 6px solid #fff;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.user_img .avatar-upload .avatar-preview > div {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.user_img.txt_btn .avatar-upload .avatar-edit {
    position: absolute;
    left: 50%;
    right: auto;
    z-index: 1;
    height: -moz-max-content;
    height: max-content;
    bottom: 0;
    top: auto;
    transform: translate(-50%, 20%);
    background-color: #171e2c;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.0666666667);
    font-size: 10px;
    font-weight: bold;
    white-space: nowrap;
    border-radius: 10px;
}

.user_img.txt_btn .avatar-upload .avatar-edit input {
    display: none;
}

.user_img.txt_btn .avatar-upload .avatar-edit input + label {
    width: 100%;
    height: 100%;
    padding: 10px 30px;
    cursor: pointer;
    box-shadow: none;
    border-radius: 10px;
}

.user_img.txt_btn .avatar-upload .avatar-edit input + label:hover {
    background: #171e2c;
    border-color: #171e2c;
}

.user_img.txt_btn .avatar-upload .avatar-edit input + label:after {
    display: none;
}

.user_img.txt_btn .avatar-upload .avatar-preview > div {
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

/*end user profile photo*/

.products_det_pg2 .inner .rates_body .rates_r .stars_progress .item .progress_num {
    font-size: 13px;
}

/*start rating stars*/
.stars-content .star-rating {
    display: flex;
    flex-direction: row-reverse;
    font-size: 18px;
    justify-content: center;
    padding: 10px 15px 25px;
    text-align: center;
    margin: auto;
}

.stars-content .star-rating i {
    margin: 0 5px;
}

.stars-content .star-rating input {
    display: none;
}

.stars-content .star-rating label {
    color: #ccc;
    cursor: pointer;
}

.stars-content .star-rating :checked ~ label {
    color: #FFD06A;
    opacity: 1;
}

.stars-content .star-rating label:hover,
.stars-content .star-rating label:hover ~ label {
    color: #FFB820;
    opacity: 1;
}

.stars-content textarea {
    padding: 20px;
}

.modal.modal-rate .btn-close {
    z-index: 50;
}

/*end rating stars***/


/****** Start Chat ********/
.chat_pg .new_chat {
    height: 850px;
}

.chat_pg .new_chat .users .user_card:hover,
.chat_pg .new_chat .users .user_card.active {
    background-color: rgb(147 202 222);
}

.chat_pg .new_chat .add-comment .form-group textarea {
    border-color: rgb(147 202 222);
}

.chat_pg button.load-more {
    color: rgb(147 202 222);
}

/****** End Chat ********/

#couponResult .coupon-result-img {
    position: absolute;
    top: 57%;
    left: 40%;
}

.course_contains p {
    font-size: 14px;
}

.share-course {
    font-size: 13px;
}

.share-links {
    display: none !important;
}

/*start share links*/
.sharing-wrapper {
    position: relative;
}

.sharing-wrapper .share-links {
    position: absolute;
    bottom: 0;
    inset-inline-start: -36px;
    /*visibility: hidden;*/
    transition: all 0.3s linear;
    flex-direction: column-reverse;
}

.sharing-wrapper .share-links.active a {
    transform: scaleX(1) translateY(0px);
    visibility: visible;
    opacity: 1;
}

.sharing-wrapper .share-links a {
    width: 35px;
    height: 35px;
    /*border-radius: 0%;*/
    margin: 2px;
    color: var(--mainColor);
    background-color: #f6f6f6;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    /*opacity: 0;*/
    box-shadow: 3px 6px 10px 0 rgba(0, 0, 0, 0.0666666667);
    /*transform: scaleX(0) translateY(50px);*/
    transform-origin: right center;
    perspective: 1000px;
    border-radius: 25px;
    border: 1px solid #256b7f;
}

.sharing-wrapper .share-links a:nth-child(2) {
    transition-delay: 0.1s;
}

.sharing-wrapper .share-links a:nth-child(3) {
    transition-delay: 0.2s;
}

.sharing-wrapper .share-links a:nth-child(4) {
    transition-delay: 0.3s;
}

.sharing-wrapper .share-links a:nth-child(5) {
    transition-delay: 0.4s;
}

.sharing-wrapper .share-links a:hover {
    background-color: var(--primary);
    color: #fff !important;
}

/*end share links*/

.recorded_course_pg .vids_box .data_body .data .item .vid_link {
    font-size: 11px;
}

.video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.recorded_course_pg .vids_box .data_body .data .item .homework_link.checked {
    pointer-events: auto;
}

