
.student-review-rating {
    color: #ffc107; /* Bootstrap's warning color (gold) */
    font-size: 1.5em;
}

.btn-primary {
    background-color: #7BC148 !important;
    border-color: #7BC148 !important;
}
.btn-primary:hover {
    background-color: #64a132 !important;
    border-color: #64a132 !important;
}
.btn-outline-primary{
    color: #7BC148 !important;
    border-color: #7BC148 !important;
}
.btn-outline-primary:hover{
    border: none !important;
    background: #7BC148 !important;
    color: #fff !important;
}
.nav-tabs-custom .nav-item .nav-link.active {
    color: #7BC148 !important;
}
.nav-tabs-custom .nav-item .nav-link::after{
    background: #7BC148 !important;
}

/* Style Swiper nav buttons */
.swiper{
    z-index: 0 !important;
}
.swiper-button-next::after, .swiper-button-prev::after{
    background-color: #7BC148 !important; /* Bootstrap primary */
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 15px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.swiper-button-next, .swiper-button-prev{
    color: #7BC148 !important;
    width: 50px !important;
    height: 50px !important;
    background: white !important;
    border-radius: 50% !important;
}

@media (max-width: 767px) {
    .swiper-button-next::after, .swiper-button-prev::after{
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
    .swiper-button-next, .swiper-button-prev{
        width: 40px !important;
        height: 40px !important;
    }
}

/*ratings css*/
.primary-bg {
    background-color: #7BC148 !important;
}

.slider-btn {
    background-color: #7BC148;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.instructor-name {
    font-size: 0.9rem;
    color: #6c757d;
}

.course-slider {
    overflow: hidden;
    position: relative;
}

.course-slider-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

.course-card {
    /*padding: 0 10px;*/
    flex: 0 0 auto;
    width: 100%; /* default fallback for XS screens */
}

.card-dropdown {
    position: absolute;
    top: 10px;
    left: 10px;
    /*z-index: 1;*/
}

.dropdown-container{
    background: #b2cd9f;
    height: 30px;
    width: 30px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-toggle-icon {
    font-size: 1rem;
    line-height: 1;
    color: #000;
}

.dropdown-toggle-icon:focus {
    box-shadow: none;
}

.btn-close{
    border: none;
    padding: 0;
    font-size: .7rem !important;
    line-height: 1;
    color: #000;
}

.share-course-button, .my-learn-course-search, .submit-course-comments{
    background: #7BC148;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-course-button:hover,
.submit-course-comments:hover,
.my-learn-course-search:hover {
    border: 1px solid #7BC148 !important;
    color: #7BC148 !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #7BC148;
    color: #7BC148;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: #7BC148;
    color: #fff;
}

.user-ratings-icons{
    font-size: 0.6rem;
}
.user-ratings-text{
    font-size: 0.6rem;
    color: #6c757d;
}
.user-ratings-container{
    cursor: pointer;
}

.star {
    font-size: 24px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.star.hovered,
.star.selected {
    color: #ffc107; /* Bootstrap's warning color */
}

.share-course-input {
    width: 100% !important;
    height: 40px !important;
    padding: 8px 12px !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    font-size: 1rem !important;
}
.share-course-input,
.share-course-button {
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 1rem !important;
}

.course-action-link {
    padding: 0.3rem !important;
    font-size: 12px;
    font-weight: 600;
}

.course-action-link:hover {
    padding: 0.3rem !important;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 5px !important;
    transition: background-color 0.3s !important;
    background: lightgray !important;
    border: none !important;
}
 .course-action-cart {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 0.5rem;
     border-radius: 5px;
     text-decoration: none;
     color: #fff;
     width: 100%;
     background-color: #6c757d; /* Default: Bootstrap secondary */
     font-weight: 600;
     transition: background-color 0.3s ease;
 }

.course-action-cart:hover {
    background-color: #5a6268;
}

.course-favorite-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 1px solid #7BC148;
    padding: 0 12px;
}
.course-favorite-link .icon{
    color: #7BC148;
    font-weight: bold;
}
.course-favorite-link .icon:hover{
    color: white;
}
.course-favorite-link:hover {
    background-color: #7BC148;
    border: 1px solid #7BC148;
    color: white;
}
.course-favorite-link.wishlisted{
    background-color: #7BC148;
    border: 1px solid #7BC148;
    color: white;
}
.explore-roles-button{
    border: 1px solid #7BC148;
    padding: 6px 10px;
    border-radius: 4px;
}
@media (min-width: 576px) {
    .course-card {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .course-card {
        width: 33.3333%;
    }
}

@media (min-width: 992px) {
    .course-card {
        width: 25%;
    }
}

/* Blur effect for background */
body.modal-blur {
    overflow: hidden;
}
body.modal-blur::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
}

/* Preview Modal Styles */
.preview-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preview-modal-container {
    width: 850px;
    max-width: 90%;
    max-height: 90vh;
}

.preview-modal {
    background-color: #1c1d1f;
    border-radius: 4px;
    overflow: hidden;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.preview-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    background-color: black;
}

.preview-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

.preview-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-info {
    padding: 16px 24px;
}

.preview-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
}

.preview-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #cec0fc;
}

.no-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cec0fc;
}