.course-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 12px;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.book-icon-wrapper {
  width: 44px;
  height: 44px;
  background-color: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.book-icon {
  font-size: 20px;
  color: var(--text);
}

.community-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

.completed-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #1abc9c;
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(26, 188, 156, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
}

.enrolled-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
}

.card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.card-progress .mc-progress-bar {
  flex: 1;
}

.card-progress .progress-label {
  font-size: 11px;
  font-weight: 700;
  color: #1abc9c;
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.card-body {
  margin-bottom: 12px;
}

.course-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.course-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-icon {
  font-size: 13px;
  color: var(--text-muted);
}

.author-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.topic-count {
  font-size: 12px;
  color: var(--text-muted);
}
