body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  padding-top: 80px;
  font-family: sans-serif;
}

body.dark {
  background-color: var(--primary-bg, #111);
  color: #fff;
}

.video-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  padding: 40px 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.video-js {
  width: 720px;
  height: 405px;
  border-radius: 10px;
  background-color: black;
}

.course-playlist {
  width: 360px;
  background-color: #fff;
  color: #111;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.course-playlist h3 {
  font-size: 18px;
  margin: 15px 0 10px;
  color: #111;
  font-weight: bold;
}

.course-playlist ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.course-playlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}
body.light h2 {
  color: #111;
}

.course-playlist li:hover {
  background-color: #f5f5f5;
}

.course-playlist li input[type="checkbox"] {
  margin-right: 10px;
}

.course-playlist li span {
  color: #666;
  font-size: 12px;
  margin-left: auto;
}

.course-playlist li.active {
  background-color: #e0f2ff;
  font-weight: bold;
}
.star-rating .star + .star {
  margin-left: 8px;
}

#carouselWrapper {
  overflow: hidden;
  height: 660px; 
  position: relative;
}

#newReviews {
  position: relative;
  transition: transform 0.7s ease-in-out;
}
#carouselWrapper::-webkit-scrollbar {
  width: 6px;
}
#carouselWrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
#carouselWrapper {
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}
.course-playlist {
  max-height: 500px; 
  overflow-y: auto;
  padding-right: 10px;
}

.course-playlist::-webkit-scrollbar {
  width: 6px;
}

.course-playlist::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.course-playlist::-webkit-scrollbar-track {
  background-color: transparent;
}
.toggle {
  cursor: pointer;
  display: inline-block;
  height: 40px;
  width: 80px;
  background-color: #444;
  border-radius: 50px;
  position: relative;
  z-index: 20;
}

.toggle-button {
  background-color: #fff;
  border-radius: 50%;
  height: 30px;
  width: 30px;
  position: absolute;
  top: 5px;
  left: 5px;
  transition: all 0.3s ease;
  transform: translateX(0);
}

#hide_checkbox:checked ~ .toggle .toggle-button {
  transform: translateX(40px);
}
body.dark {
  background-color: #111;
  color: #fff;
}

body.light {
  background-color: #fff;
  color: #111;
}
.theme-sensitive {
  color: white !important;
  transition: color 0.3s ease;
}

body.light .theme-sensitive {
  color: black !important;
}



@media (max-width: 768px) {
  .open-menu {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--primary-bg);
    padding: 1rem 2rem;
    z-index: 90;
    width: 200px;
    border-radius: 0 0 0 10px;
  }

  #check:checked ~ .menu {
    display: flex;
  }

  #check:checked ~ .menu .close-menu {
    display: block;
  }
}

@media (min-width: 769px) {
  .open-menu,
  .close-menu {
    display: none !important;
  }

  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    background: transparent;
  }
}