/* Container for the course cards */
.ld-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

/* Individual course card styling */
.ld-course-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

.ld-course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Thumbnail container */
.ld-card-thumbnail {
  width: 100%;
  height: 180px;
  background-color: #f0f0f0;
}

.ld-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for courses without a thumbnail */
.ld-card-placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
}

.ld-card-placeholder-image::after {
  content: "No Image";
  font-size: 16px;
}

/* Card content area */
.ld-card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ld-card-title {
  font-size: 1.1em;
  margin: 0 0 10px 0;
  color: #333;
}

/* --- PROGRESS BAR STYLES --- */

.ld-card-progress {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.ld-card-progress-label {
  display: block;
  font-size: 0.85em;
  color: #555;
  margin-bottom: 5px;
}

.ld-card-progress-bar-container {
  width: 100%;
  background-color: #e9ecef;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.ld-card-progress-bar {
  height: 100%;
  background-color: #007bff;
  border-radius: 20px;
  transition: width 0.4s ease-in-out;
}
