/* Score-Up — My Courses page cards */

.courses-home.courses {
  padding: 24px 0 48px;
}

.courses-home.courses .speacial-heading h1 {
  color: var(--primary);
  margin-bottom: 6px;
}

.courses-home.courses .speacial-heading p {
  color: var(--text-secondary);
  font-size: 14px;
}

.scoreup-my-course {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(0, 59, 122, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(8, 38, 95, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scoreup-my-course:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(8, 38, 95, 0.12);
}

.scoreup-my-course__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #dbe7ff;
  overflow: hidden;
}

.scoreup-my-course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.scoreup-my-course__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #128c4a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.scoreup-my-course__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 16px;
  text-align: right;
}

.scoreup-my-course__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.45;
  color: #003b7a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.scoreup-my-course__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scoreup-my-course__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #dbe7ff;
  color: #003b7a;
}

.scoreup-my-course__chip--accent {
  background: #ffd100;
  color: #08265f;
}

.scoreup-my-course__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scoreup-my-course__meta li {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.scoreup-my-course__meta strong {
  color: #003b7a;
  font-weight: 700;
}

.scoreup-my-course__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scoreup-my-course__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  background: #ffd100;
  color: #08265f !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.scoreup-my-course__cta:hover {
  background: #ffe04a;
  color: #08265f !important;
  transform: translateY(-1px);
}

.scoreup-my-course__empty {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
  border-radius: 20px;
  background: #f7f9fc;
  border: 2px dashed rgba(0, 59, 122, 0.2);
}

.scoreup-my-course__empty h4 {
  color: #003b7a;
  font-weight: 800;
  margin-bottom: 8px;
}

.scoreup-my-course__empty p {
  color: #64748b;
  margin-bottom: 16px;
}

.scoreup-my-course__empty a {
  display: inline-flex;
  padding: 10px 22px;
  border-radius: 999px;
  background: #003b7a;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 575px) {
  .scoreup-my-course__title {
    font-size: 15px;
  }
}

body.dark .scoreup-my-course {
  background: #0b2748;
  border-color: #1c456d;
}

body.dark .scoreup-my-course__title {
  color: #fff;
}

body.dark .scoreup-my-course__chip {
  background: #10345c;
  color: #ffd100;
}

body.dark .scoreup-my-course__meta li,
body.dark .scoreup-my-course__desc {
  color: #94a3b8;
}

body.dark .scoreup-my-course__meta strong {
  color: #ffd100;
}
