/* ======================================
   MOBILE-FIRST COURSE DETAIL STYLES
   ====================================== */

/* Base Variables */
:root {
  --primary-color: #00ffff;
  --primary-dark: #0096ff;
  --secondary-color: #ff6b7a;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f23;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.2);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-effect: 0 0 15px rgba(0, 255, 255, 0.5);
  --star-color: #ffd700;
  --success-color: #2ed573;
  --warning-color: #ff9900;
  --danger-color: #ff4757;
}

/* ======================================
   MOBILE LAYOUT (Core Styles)
   ====================================== */

/* Main Container */
.course-detail-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Video Player Section */
.video-player-section {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--bg-dark);
  z-index: 10;
}

.main-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.main-video-container iframe,
.main-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



@keyframes pulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* ======================================

/* Video Info Section */
.video-info {
  padding: 15px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-radius: 0 0 15px 15px;
  border: 1px solid var(--border-glass);
  border-top: none;
  margin-bottom: 15px;
}

.video-info h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: white;
  line-height: 1.3;
}

.video-meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.video-stats i {
  color: var(--star-color);
}

/* Video Actions */
.video-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.action-button {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-button:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.action-button i {
  font-size: 1rem;
}

/* Video Tags */
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.badge {
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.badge.primary {
  background: rgba(0, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.badge.secondary {
  background: rgba(255, 107, 122, 0.2);
  color: white;
  border: 1px solid rgba(255, 107, 122, 0.3);
}

.badge.info {
  background: rgba(0, 150, 255, 0.2);
  color: white;
  border: 1px solid rgba(0, 150, 255, 0.3);
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #0096ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-main {
  
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}

.logo-sub
{
  
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #00c8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

}



/* Enrollment Section */
.enrollment-section {
  margin-top: 15px;
  padding: 15px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.2));
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  text-align: center;
}

.enroll-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.927), rgba(255, 132, 0, 0.959));
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1rem;
}

.action-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.927), rgba(255, 132, 0, 0.959));
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1rem;
}


.enroll-button:hover {
  box-shadow: var(--glow-effect);
  transform: translateY(-2px);
}

/* Course Files Section */
.course-files {
  margin: 0 15px 15px 15px;
  padding: 15px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
}

.course-files h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-files h4 i {
  color: var(--primary-color);
}

.files-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  transition: all 0.3s;
}

.file-item:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

a.download-button {
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.927), rgba(255, 132, 0, 0.959));
}

.file-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 1.2rem;
}

.file-icon i {
  color: white;
}

.file-details {
  display: flex;
  flex-direction: column;
}

.file-name {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

.file-size {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.download-button {
  background: rgba(0, 255, 255, 0.2);
  color: var(--primary-color);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.download-button:hover {
  background: rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

.locked-file {
  color: rgb(255, 255, 255);
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.no-files {
  color: rgb(255, 255, 255);
  font-style: italic;
  text-align: center;
  padding: 10px;
}

.course-nav-item-unique{
  color: rgb(255, 255, 255);
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  
}

i.fas.fa-list {
    color: rgb(191, 0, 255) !important;
}


i.fas.fa-star{
    color: orange !important;
}


i.fas.fa-chalkboard-teacher{
    color: rgb(0, 238, 255) !important;
}

span{
  color: rgb(255, 255, 255);
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  
}


/* Playlist Section */
.playlist-section {
  margin: 0 15px 15px 15px;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
}

.playlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--border-glass);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.927), rgba(255, 132, 0, 0.959));
}

.playlist-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.playlist-toggle {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.playlist-toggle:hover {
  color: var(--primary-color);
}

.playlist-container {
  max-height: 300px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.playlist-container.collapsed {
  max-height: 0;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s;
}

.playlist-item:hover {
  background: rgba(0, 0, 0, 0.2);
}

i.fas.fa-lock {
    color: red !important;
}


.playlist-item.active {
  background: rgba(0, 255, 255, 0.395);
  border-left: 3px solid var(--primary-color);
}

.video-thumbnail {
  position: relative;
  width: 100px;
  height: 85px;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  font-size: 0.7rem;
  padding: 2px 4px;
  border-radius: 3px;
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(233, 236, 236, 0.509);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: red !important;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}



.video-label {
  font-size: 0.7rem;
}

.preview-label {
  position: absolute;
  top: 3px;
  left: 3px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.658), rgba(255, 132, 0, 0.685));
  color: white;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-title {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.play-icon {
  color: var(--primary-color);
  font-size: 1rem;
  flex-shrink: 0;
}

.course-tabs-container {
  margin: 0 15px 80px 15px; /* Extra bottom margin for mobile navigation */
  position: relative;
  
}



.tabs-header {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-glass);
  z-index: 100;
  height: 70px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.tab-button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button i {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.tab-button span {
  display: block; /* Ensure text is visible */
  text-align: center;
}


.tab-button.active {
  color: var(--primary-color);
}

.tabs-content {
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  margin-bottom: 15px;
}

.tab-pane {
  display: none;
  padding: 20px 15px;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 15px 0;
}

.tab-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin: 20px 0 10px 0;
}

/* Overview Tab */
.course-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.course-description p {
  margin-bottom: 15px;
}

.learning-outcomes,
.prerequisites {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Curriculum Tab */
.curriculum-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.curriculum-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.curriculum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  cursor: pointer;
}

.lesson-info {
  flex: 1;
}

.lesson-info h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 5px 0;
}

.lesson-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-badge {
  background: var(--primary-color);
  color: var(--text-dark);
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 500;
}

.lesson-toggle {
  color: var(--primary-color);
  font-size: 1rem;
  transition: all 0.3s;
}

.curriculum-content {
  padding: 0 15px 15px;
  display: none;
}

.curriculum-item.active .curriculum-content {
  display: block;
}

.curriculum-item.active .lesson-toggle i {
  transform: rotate(180deg);
}

.lesson-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.lesson-button {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  font-weight: 500;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.lesson-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-effect);
}

.locked-lesson {
  display: inline-block;
  padding: 8px 15px;
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  font-size: 0.9rem;
}

.empty-curriculum {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Instructor Tab */
.instructor-profile {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 20px;
}

.instructor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.instructor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 2rem;
}

.instructor-info {
  flex: 1;
}

.instructor-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 10px 0;
}

.instructor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.instructor-meta i {
  color: var(--primary-color);
}

.instructor-bio {
  color: rgb(255, 255, 255);
  line-height: 1.6;
  font-size: 0.95rem;
}
i.fas.fa-book{
  color:#00ffff !important;
}
i.fas.fa-users{
  color:#00ffff !important;
}

/* Reviews Tab */
.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.rating-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: orange
  line-height: 1;
}

.rating-stars {
  margin: 10px 0;
  color: var(--star-color);
  font-size: 1.2rem;
}

.rating-count {
  color: rgb(255, 255, 255);
  font-size: 0.9rem;
}

.rating-breakdown {
  width: 100%;
  margin-bottom: 25px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stars-label {
  width: 60px;
  font-size: 0.9rem;
  color: rgb(17, 0, 255);
  text-align: right;
}

.progress-container {
  flex: 1;
  height: 8px;
  background: rgb(3, 236, 253);
  border-radius: 4px;
  overflow: hidden;
}

.count-label {
  width: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.empty-ratings {
  text-align: center;
  padding: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Review Form */
.review-form-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.review-form-container h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0 0 15px 0;
}

.rating-input {
  margin-bottom: 15px;
}

.rating-input label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.star-rating-selector {
  display: flex;
  gap: 5px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.rating-star {
  cursor: pointer;
  transition: all 0.2s;
}

.rating-star:hover,
.rating-star.active {
  color: var(--star-color);
}

.selected-rating {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.comment-input {
  margin-bottom: 15px;
}

.comment-input label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.comment-input textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 0.95rem;
  resize: vertical;
}

.comment-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-review {
  display: block;
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
}

.submit-review:hover {
  box-shadow: var(--glow-effect);
  transform: translateY(-2px);
}

.review-notice {
  background: rgba(0, 251, 255, 0.573);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  margin-bottom: 25px;
}

.review-notice p {
  color: rgb(255, 255, 255);
  margin-bottom: 15px;
}

.review-notice a {
  color: orange
  text-decoration: none;
}

.review-notice a:hover {
  text-decoration: underline;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-item {
  background: rgba(3, 230, 247, 0.495);
  border-radius: 15px;
  padding: 15px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
}

.reviewer-details {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-size: 1rem;
  font-weight: bold;
  color: white;
}

.review-date {
  font-size: 0.8rem;
  color: rgb(255, 153, 0);
}

.review-rating {
  color: var(--star-color);
  font-size: 0.9rem;
}

.review-content {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.review-actions {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.edit-review,
.delete-review {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.edit-review:hover {
  color: var(--primary-color);
}

.delete-review:hover {
  color: var(--danger-color);
}

.empty-reviews {
  text-align: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.pagination-link:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--primary-color);
}

.pagination-link.active {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  border-color: var(--primary-color);
}

/* Custom Scrollbar for Playlist */
.playlist-container::-webkit-scrollbar {
  width: 6px;
}

.playlist-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 255, 0.3);
  border-radius: 3px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 255, 0.5);
}

/* ======================================
   TABLET LAYOUT (768px and up)
   ====================================== */
@media (min-width: 768px) {
  /* Main Container */
  .course-detail-container {
    padding: 20px;
  }
  
  /* Video Player Section */
  .video-player-section {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  /* Video Info */
  .video-info {
    margin-bottom: 20px;
    border-radius: 15px;
    padding: 20px;
  }
  
  .video-info h1 {
    font-size: 1.6rem;
  }
  
  /* Course Files & Playlist */
  .course-files,
  .playlist-section {
    margin: 0 0 20px 0;
  }
  
  
  
  .tab-button {
    flex-direction: row;
    padding: 15px;
    font-size: 0.9rem;
  }
  
  .tab-button i {
    margin: 0 8px 0 0;
    font-size: 1rem;
  }
  
  .tabs-content {
    border-top: none;
    border-radius: 0 0 15px 15px;
    margin-bottom: 0;
  }
  
  .course-tabs-container {
    
    margin-bottom: 20px;
  }
  
  /* Reviews */
  .reviews-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .overall-rating {
    align-items: flex-start;
  }
  
  /* Two-column layout for review form and breakdown */
  .review-form-container,
  .rating-breakdown {
    width: 48%;
    display: inline-block;
    vertical-align: top;
  }
  
  .review-form-container {
    margin-right: 4%;
  }
}

/* ======================================
   DESKTOP LAYOUT (1024px and up)
   ====================================== */
@media (min-width: 1024px) {
  /* Main Container - Two-column layout */
  .course-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
      "video playlist"
      "info playlist"
      "files files"
      "tabs tabs";
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
  }
  
  /* Video Player Section */
  .video-player-section {
    grid-area: video;
  }
  
  /* Video Info */
  .video-info {
    grid-area: info;
  }
  
  /* Playlist - Fixed position on scroll */
  .playlist-section {
    grid-area: playlist;
    position: sticky;
    top: 90px; /* Adjust based on your header height */
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
  }
  
  .playlist-container {
    flex: 1;
    max-height: none;
  }
  
  /* Course Files */
  .course-files {
    grid-area: files;
  }
  
  /* Tabs */
  .course-tabs-container {
    grid-area: tabs;
  }
  
  /* Tab Content Layout */
  .tab-pane {
    padding: 30px;
  }
  .tabs-header {
    position: static; /* Remove fixed positioning */
    bottom: auto;
    height: auto;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
    border-radius: 15px 15px 0 0;
    box-shadow: none;
  }
  
  .tab-button {
    flex-direction: row;
    padding: 15px;
    font-size: 0.9rem;
  }
.tab-button i {
    margin: 0 8px 0 0;
    font-size: 1rem;
  }
  
  .course-tabs-container {
    margin-bottom: 20px;
  }
  /* Instructor Profile - Two-column layout */
  .instructor-header {
    align-items: flex-start;
  }
  
  .instructor-avatar {
    width: 120px;
    height: 120px;
  }
  
  .default-avatar {
    width: 120px;
    height: 120px;
    font-size: 3rem;
  }
  
  /* Reviews - Three-column layout */
  .reviews-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* ======================================
   LARGE DESKTOP LAYOUT (1440px and up)
   ====================================== */
@media (min-width: 1440px) {
  .course-detail-container {
    grid-template-columns: 3fr 1fr;
    max-width: 1400px;
  }
  
  .reviews-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ======================================
   ANIMATIONS AND EFFECTS
   ====================================== */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.enroll-button {
  animation: pulse 2s infinite;
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.playlist-item {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.playlist-item:nth-child(1) { animation-delay: 0.1s; }
.playlist-item:nth-child(2) { animation-delay: 0.15s; }
.playlist-item:nth-child(3) { animation-delay: 0.2s; }
.playlist-item:nth-child(4) { animation-delay: 0.25s; }
.playlist-item:nth-child(5) { animation-delay: 0.3s; }
.playlist-item:nth-child(6) { animation-delay: 0.35s; }
.playlist-item:nth-child(7) { animation-delay: 0.4s; }
.playlist-item:nth-child(8) { animation-delay: 0.45s; }
.playlist-item:nth-child(9) { animation-delay: 0.5s; }
.playlist-item:nth-child(10) { animation-delay: 0.55s; }

/* ======================================
   UTILITY CLASSES
   ====================================== */
.text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ======================================
   ACCESSIBILITY IMPROVEMENTS
   ====================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.tab-button:focus,
.playlist-toggle:focus,
.action-button:focus,
.enroll-button:focus,
.download-button:focus,
.lesson-button:focus,
.submit-review:focus,
.rating-star:focus,
.pagination-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: more) {
  :root {
    --primary-color: #00ffff;
    --primary-dark: #0096ff;
    --text-light: #ffffff;
    --text-dark: #000000;
    --bg-dark: #000000;
    --bg-glass: rgba(0, 0, 0, 0.9);
    --border-glass: rgba(255, 255, 255, 0.5);
  }
  
  .badge,
  .preview-badge,
  .video-duration {
    border: 1px solid #ffffff;
  }
}





/* ======================================
   COURSE DETAIL PAGE ADDITIONAL STYLES
====================================== */


/* Course Statistics Section */
.course-statistics {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 20px 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-item i {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-item i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .course-statistics {
        padding: 15px;
        margin: 15px 0;
    }
}

/* Share Dropdown Styles */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1000;
    padding: 8px 0;
}

.share-menu.show {
    display: block;
}

.share-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.share-option:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.share-option i {
    margin-right: 10px;
    width: 16px;
}

/* Platform specific colors */
.share-option[data-platform="facebook"]:hover { color: #1877f2; }
.share-option[data-platform="twitter"]:hover { color: #1da1f2; }
.share-option[data-platform="linkedin"]:hover { color: #0077b5; }
.share-option[data-platform="whatsapp"]:hover { color: #25d366; }
.share-option[data-platform="telegram"]:hover { color: #0088cc; }


/* Discussions Tab Styles */
.discussion-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.discussion-form h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.discussion-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.discussion-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.submit-discussion {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.submit-discussion:hover {
    background: #0056b3;
}

/* Discussions List */
.discussions-list {
    space-y: 20px;
}

.discussion-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    height: 120px;

}

.discussion-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.discussion-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.user-details .username {
    font-weight: 600;
    color: #333;
    display: block;
}

.discussion-date {
    color: #666;
    font-size: 12px;
}

.discussion-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px 0;
}

.discussion-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.replies-count {
    color: #666;
    font-size: 14px;
}

.reply-button {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reply-button:hover {
    background: #218838;
}

.empty-discussions {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* Notes Tab Styles */
.notes-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.notes-form h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.note-title-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
}

.note-title-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.notes-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.notes-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.submit-note {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.submit-note:hover {
    background: #138496;
}

/* Notes List */
.notes-list {
    space-y: 15px;
}

.note-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.note-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.note-header h5 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.note-date {
    color: #666;
    font-size: 12px;
}

.note-content {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.note-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.edit-note, .delete-note {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-note {
    background: #ffc107;
    color: #212529;
}

.edit-note:hover {
    background: #e0a800;
}

.delete-note {
    background: #dc3545;
    color: white;
}

.delete-note:hover {
    background: #c82333;
}

.empty-notes {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .discussion-item, .note-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .discussion-form, .notes-form {
        padding: 15px;
    }
    
    .discussion-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .note-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .user-info {
        gap: 8px;
    }
    
    .user-avatar, .user-avatar-placeholder {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .discussion-form textarea, .notes-form textarea {
        min-height: 60px;
    }
}


/* ======================================
   THE VIDEO SECTIONS STYLING UPDATE
   ====================================== */

/* Video Info Section - Mobile Optimized */
.video-info {
  padding: 15px;
  background: #0c98c7c9;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Course Header */
.course-header {
  margin-bottom: 15px;
}
i.fas.fa-share{
  color: #0066ff !important;
}
.course-title-section h1 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #0525a3;
}

.course-meta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-meta, .video-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.video-meta span, .video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Course Actions Row */
.course-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.badge.primary { background: #007bff; color: white; }
.badge.secondary { background: #6c757d; color: white; }
.badge.info { background: #17a2b8; color: white; }

.video-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-button:hover {
  background: #e9ecef;
}

.action-text {
  display: none;
}

/* Share Dropdown */
.share-dropdown {
  position: relative;
}

.share-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  min-width: 150px;
}

.share-menu.show {
  display: block;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.share-option:hover {
  background: #f8f9fa;
  text-decoration: none;
  color: #333;
}

/* Course Info Cards - Mobile First */
.course-info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #e9ecef;
}

.card-header i {
  font-size: 14px;
  color: #007bff;
}

.card-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.card-content {
  padding: 12px;
  background-color: rgba(41, 232, 249, 0.365);;
}

/* Pricing Card */
.price-section {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #0033ff;
  font-size: 14px;
  font-weight: bold;
}

.discount-price, .current-price {
  font-size: 18px;
  font-weight: bold;
  color: #ff0000;
}

.discount-badge {
  background: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: bold;
}

.free-badge {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

/* Stats Card */
.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #e9ecef;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

.stat-value {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

/* Progress Card */
.progress-overview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#007bff 0deg, #007bff calc(var(--progress, 0) * 3.6deg), #e9ecef calc(var(--progress, 0) * 3.6deg));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.progress-circle::before {
  content: '';
  width: 35px;
  height: 35px;
  background: white;
  border-radius: 50%;
  position: absolute;
}

.progress-percentage {
  font-size: 10px;
  font-weight: bold;
  color: #333;
  z-index: 1;
}

.progress-details {
  flex: 1;
}

.progress-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.progress-label {
  font-size: 11px;
  color: #666;
}

.progress-value {
  font-size: 11px;
  font-weight: 600;
  color: #333;
}

/* Instructor Card */
.instructor-mini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.instructor-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.instructor-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar-small {
  width: 100%;
  height: 100%;
  background: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.instructor-details {
  flex: 1;
  min-width: 0;
}

.instructor-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.instructor-stats {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #666;
}

.instructor-stats span {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Certificate Card */
.certificate-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.certificate-status.earned {
  color: #28a745;
}

.certificate-status.pending {
  color: #ffc107;
}

/* Enrollment Card */
.enrollment-benefits {
  margin-bottom: 12px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 11px;
  color: #333;
}

.benefit-item i {
  color: #ff0000;
  font-size: 2rem;
}

.enroll-now-btn {
  width: 100%;
  background: #007bff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s ease;
}

.enroll-now-btn:hover {
  background: #0056b3;
}

/* Tablet Styles */
@media (min-width: 576px) {
  .video-info {
    padding: 20px;
  }
  
  .course-title-section h1 {
    font-size: 24px;
  }
  
  .course-meta-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .course-actions-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .action-text {
    display: inline;
    color: #ffffff !important ;
  }
  
  .course-info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .video-meta, .video-stats {
    font-size: 14px;
  }
  
  .card-header h4 {
    font-size: 15px;
  }
}

/* Desktop Styles */
@media (min-width: 768px) {
  .course-info-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .course-title-section h1 {
    font-size: 28px;
  }
  
  .video-meta, .video-stats {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .course-info-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .course-info-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .video-info {
    padding: 25px;
  }
}

/* Animation for progress circle */
@keyframes progressAnimation {
  from {
    background: conic-gradient(#007bff 0deg, #e9ecef 0deg);
  }
}

.progress-circle {
  animation: progressAnimation 1s ease-in-out;
}

/* Hover effects for cards */
.info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .info-card {
    transition: none;
  }
  
  .progress-circle {
    animation: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .info-card {
    border: 2px solid #333;
  }
  
  .badge {
    border: 1px solid currentColor;
  }
}




