/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --background: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

   /* Header */
   .site-header {
    background-color: #5002f7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.site-logo {
    height: 40px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color);
}



/* Related Courses */
.related-courses {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Footer */
.site-footer {
    background-color: #212529;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-links h5 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .featured-video-container {
        margin-bottom: 20px;
    }
    
    .course-action-card {
        position: static;
        margin-top: 20px;
    }
    
    .course-title {
        font-size: 1.8rem;
    }
}

/* Form Label Styles - Enhanced for Visibility - Matching your existing styles */

/* Add this to your course_detail.css file */

/* Add this to your course_detail.css file */

body {
    position: relative;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    background-color: var(--background); /* Fallback color */
}

/* Pseudo-element for the background image with controlled opacity */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/course_detail-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2; /* Control the opacity here - 0.6 = 60% opacity */
    z-index: -1; /* Place it behind all content */
}

/* Make sure all content has a higher z-index than the background */
.container, .row, main {
    position: relative;
    z-index: 1;
}


/* Glass Morphism Effect - Matching your existing style */
.glass-morphism {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s;
}

/* Course Header */
.course-header {
    margin-bottom: 30px;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s;
}

.course-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.course-meta .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-right: 8px;
}

.course-short-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Featured Video Player */
.featured-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    margin-bottom: 20px;
    animation: fadeIn 1s;
}

.featured-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.5);
}

.video-placeholder i {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 3rem;
}

.video-title-bar {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    font-weight: bold;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* Video Playlist */
.video-playlist-container {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    animation: fadeIn 1s;
}

.playlist-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.video-playlist {
    max-height: 400px;
    overflow-y: auto;
}

.video-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
    cursor: pointer;
}

.video-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.video-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 3px solid var(--primary-color);
}

.video-item.preview-video {
    background-color: rgba(0, 123, 255, 0.1);
}

.video-item-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.video-thumbnail {
    position: relative;
    width: 60px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.preview-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #28a745;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
}

.video-info {
    flex: 1;
}

.video-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.video-duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.video-play-btn {
    white-space: nowrap;
}

/* Course Action Card */
.course-action-card {
    position: sticky;
    top: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s;
}

.course-action-card .card-body {
    padding: 20px;
}

.discount-badge {
    background-color: #dc3545;
    color: white;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.original-price {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.course-includes {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.course-includes h6 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.course-includes ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.course-includes ul li i {
    margin-right: 8px;
    color: #28a745;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Course Rating */
.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #ffc107;
    margin-right: 8px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 10px 15px;
    margin-right: 5px;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background-color: transparent;
}

.tab-content {
    padding: 20px;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    animation: fadeIn 1s;
}

.tab-content h3, .tab-content h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.tab-content p {
    color: var(--text-secondary);
}

/* Reviews */
.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-header {
    margin-bottom: 10px;
}

.review-header h5 {
    color: var(--text-primary);
}

.review-content {
    color: var(--text-secondary);
}

/* Accordion for Curriculum */
.accordion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-button {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 15px;
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f8fafc'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 15px;
    color: var(--text-secondary);
}

/* Related Courses */
.related-courses {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s;
}

.related-courses h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.related-courses .card {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-courses .card:hover {
    transform: translateY(-5px);
}

.related-courses .card-body {
    padding: 15px;
}

.related-courses .card-title {
    color: var(--text-primary);
}

.related-courses .card-text {
    color: var(--text-secondary);
}

.related-courses .card-footer {
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
}

/* Form Styles - Matching your existing form styles */
.review-form {
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    animation: fadeIn 1s;
}

.review-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.review-form input, 
.review-form textarea, 
.review-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.8);
    color: #060336;
    margin-bottom: 15px;
}

.review-form button {
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-form button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Progress Bar */
.progress {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: #4CAF50;
    transition: width 0.5s ease;
}

/* Buttons */
.btn-primary {
    background-color: #4CAF50;
    border-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: #4CAF50;
    border-color: #4CAF50;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
}

/* Countdown Timer */
.discount-timer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    color: var(--text-primary);
}

.countdown {
    font-weight: bold;
    color: #ffc107;
}

/* Animations - Matching your existing animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scrollbar Styling */
.video-playlist::-webkit-scrollbar {
    width: 8px;
}

.video-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.video-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.video-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .featured-video-container {
        margin-bottom: 20px;
    }
    
    .course-action-card {
        position: static;
        margin-top: 20px;
    }
    
    .course-title {
        font-size: 1.8rem;
    }
    
    .video-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .video-play-btn {
        margin-top: 10px;
        align-self: flex-end;
    }
}

/* Form Label Styles - Enhanced for Visibility - Matching your existing styles */
form label.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.1rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

form input:focus + label.form-label,
form textarea:focus + label.form-label,
form select:focus + label.form-label {
    top: -20px;
    left: 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: normal;
    text-shadow: none;
}

.form-label {
    color: var(--text-primary) !important;
}

/* File Preview Styles - Matching your existing styles */
.file-preview-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thumbnail-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

.file-preview-item span {
    flex-grow: 1;
    margin-left: 10px;
}

.file-preview-container {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Video Form Styles - Matching your existing styles */
.video-form {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.remove-video {
    margin-top: 10px;
}

#add-video {
    margin-bottom: 20px;
}












/* Elegant Search Bar */
.search-container {
    margin-bottom: 25px;
    padding: 0;
    animation: fadeIn 1s;
}

.search-form {
    width: 100%;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.search-input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input-group:focus-within {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.search-icon {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    min-width: 150px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.5rem 0;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    margin: 0 10px;
}

.search-dropdown {
    position: relative;
    margin: 0 5px;
}

.search-select {
    appearance: none;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 0.5rem 2rem 0.5rem 1rem;
    cursor: pointer;
    outline: none;
    min-width: 120px;
}

.select-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-primary);
    pointer-events: none;
}

.search-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.search-button i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.search-button:hover i {
    transform: translateX(3px);
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 15px;
    padding-left: 10px;
}

.search-tag-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-right: 10px;
}

.search-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin: 0.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: var(--text-primary);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .search-input-group {
        padding: 0.8rem 1rem;
    }
    
    .search-input {
        width: 100%;
        order: 1;
        margin-bottom: 10px;
    }
    
    .search-icon {
        order: 0;
        margin-bottom: 10px;
    }
    
    .search-filters {
        width: 100%;
        order: 2;
        margin: 5px 0;
        justify-content: space-between;
        color: #060336;
    }
    
    .search-dropdown {
        margin: 5px 0;
        color: #060336;
    }
    
    .search-button {
        width: 100%;
        justify-content: center;
        order: 3;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .search-input-group {
        border-radius: 15px;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .search-dropdown {
        width: 100%;
    }
    
/* Update the search-select styles in your CSS */
.search-select {
    appearance: none;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: #7c3aed; /* Deep purple color for better readability */
    font-size: 0.9rem;
    padding: 0.5rem 2rem 0.5rem 1rem;
    cursor: pointer;
    outline: none;
    min-width: 120px;
    font-weight: 500; /* Make it slightly bolder */
}
    
    .search-tags {
        justify-content: center;
    }
}


/* Style the dropdown options */
.search-select option,
.search-select optgroup {
    background-color: white;
    color: #7c3aed; /* Deep purple color */
}

/* Style the optgroup label */
.search-select optgroup {
    font-weight: bold;
    color: #4c1d95; /* Darker purple for optgroup labels */
}

/* Ensure dropdown text is visible when open */
.search-dropdown select:focus {
    color: #7c3aed;
}



/* Student Review Section */

/* Review Section Styles */
.reviews-section {
    padding: 20px 0;
}

.review-form-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    margin-right: 5px;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}

.reviews-list {
    margin-top: 30px;
}

.review-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.review-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.review-rating {
    color: #ffc107;
    font-size: 18px;
}

.review-content {
    color: #333;
    line-height: 1.6;
}

.no-reviews {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin: 30px 0;
}


/* Elegant Rating Bars Styling */
/* Elegant Rating Bars Styling */
.rating-breakdown {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.rating-breakdown h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.breakdown-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stars-count {
    width: 80px;
    font-size: 14px;
    color: #555;
    text-align: right;
    padding-right: 10px;
}

.progress {
    flex-grow: 1;
    height: 8px; /* Thinner progress bar */
    background-color: #e9ecef;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: #ffc107; /* Warm yellow color */
    border-radius: 4px;
    transition: width 0.5s ease;
}

.count {
    width: 40px;
    font-size: 14px;
    color: #555;
    text-align: left;
}

/* Hover effect for better interactivity */
.breakdown-row:hover .progress-bar {
    background-color: #ffaa00; /* Slightly darker on hover */
}

.breakdown-row:hover {
    background-color: rgba(0,0,0,0.02);
    border-radius: 4px;
}

/* No ratings message */
.no-ratings {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Average rating display */
.average-rating-display {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-number {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-right: 15px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.total-reviews {
    color: #6c757d;
    font-size: 14px;
}


 /* Responsive Video Container */
 .featured-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Pop-up Video Mode */
.video-popup-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-popup-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    aspect-ratio: 16/9;
}

.video-popup-controls {
    position: absolute;
    top: -40px;
    right: 0;
    display: flex;
    gap: 10px;
}

.video-popup-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.video-popup-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 100;
}

.expand-video-btn {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.expand-video-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Video Title Bar */
.video-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    z-index: 10;
}

/* Completed Video Styling */
.video-item.completed {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}

.completion-checkmark {
    color: #28a745;
    margin-left: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-popup-container {
        width: 95%;
    }
}


/* Video Completion Checkmark and Progress Bar Styling */

.completion-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    margin-left: 5px;
}

.video-item.completed {
    background-color: rgba(40, 167, 69, 0.1);
    border-left: 3px solid #28a745;
}


/* Video Progress Bar */
.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.video-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.video-progress-indicator {
    height: 100%;
    width: 0;
    background: #ff0000;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.video-time-display {
    color: white;
    font-size: 12px;
    text-align: right;
}

/* Make sure the progress bar doesn't interfere with YouTube's controls */
#youtube-player {
    z-index: 10;
}

