/* Course Page Layout */
.course-page {
  max-width: 800px;
  margin: 0 auto;
}

.course-page h1 {
  text-align: center;
  margin-bottom: 40px;
}

/* Subjects container */
.subjects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Subject cards */
.subjects .subject {
  position: relative;
  width: 700px;
  background-color: #4a148c; /* Dark purple */
  border-radius: 15px;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: 0 6px 0 #3a1070, 0 8px 20px rgba(0, 0, 0, 0.3);
  padding-bottom: 10px;
  overflow: visible;
  z-index: 1;
}

.subjects .subject:hover {
  /* Intentionally no hover effect */
}

.subjects .subject:active {
  box-shadow: 0 4px 0 #3a1070, 0 6px 10px rgba(0, 0, 0, 0.3);
}

.subject-header {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

.subject-header img {
  width: 80px;
  height: 80px;
  margin-right: 20px;
  border-radius: 5px;
  background-color: transparent;
  opacity: 1;
}

.subject-header h2 {
  flex-grow: 1;
  margin: 0;
  color: #ffffff;
  font-weight: bold;
}

.progress-bar {
  width: 150px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-left: 20px;
}

.progress {
  height: 100%;
  background-color: orange;
  width: 0%;
  border-radius: 5px;
}

/* Lectures dropdown */
.lectures {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
  z-index: 10;
  display: block !important;
}

.subject.active .lectures {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
  display: block !important;
}

.lecture-button {
  display: block !important;
  width: calc(100% - 30px) !important;
  margin: 10px auto !important;
  text-decoration: none;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff8800, #ff6600) !important;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 0 #cc5500, 0 6px 15px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lecture-button:hover {
  /* Intentionally no hover effect */
}

.lecture-button:active {
  box-shadow: 0 2px 0 #cc5500, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subject.active {
  margin-bottom: 150px;
  z-index: 2;
}

.lecture-button:last-child {
  margin-bottom: 0;
}

.subjects .subject.active .lectures {
  display: flex;
  max-height: 500px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .subjects .subject {
    width: 90%;
  }

  .subject-header img {
    width: 60px;
    height: 60px;
  }

  .progress-bar {
    width: 100px;
  }
}
