/* Custom CSS for Course List Professional Design */

/* Split Card Grid Layout */
.split-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.split-card {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.split-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  transform: translateX(4px);
}

.split-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
}

.emoji-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d6efd, #5e9fff);
  border-radius: 50%;
  margin-right: 12px;
}

.emoji {
  font-size: 20px;
  color: white;
}

.course-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 5px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.certificate-prefix {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.skills {
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}

.skill-tag {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.split-footer {
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.learn-btn {
  background: linear-gradient(90deg, #0d6efd, #5e9fff);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.learn-btn:hover {
  background: linear-gradient(90deg, #0a58ca, #4d8bf1);
}

/* Course Preloader Styles (ensure they match production) */
#course-preloaders {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.course-preloader {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 100%;
}

.preloader-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
}

.preloader-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  margin-right: 12px;
  animation: pulse 1.5s infinite ease-in-out;
}

.preloader-lines {
  flex-grow: 1;
}

.preloader-line {
  height: 12px;
  background: #e5e7eb;
  border-radius: 6px;
  margin-bottom: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}

.preloader-line:last-child {
  width: 60%;
  margin-bottom: 0;
}

.preloader-content {
  padding: 15px 20px;
  flex-grow: 1;
}

.preloader-tag {
  height: 24px;
  width: 80px;
  background: #e5e7eb;
  border-radius: 12px;
  margin-bottom: 8px;
  display: inline-block;
  margin-right: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}

.preloader-footer {
  padding: 15px 20px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
}

.preloader-button {
  height: 36px;
  width: 100px;
  background: #e5e7eb;
  border-radius: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
