.student-courses {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, #0f1220 0%, #080a14 100%);
  color: #eaf0ff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.student-courses__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 48px clamp(24px, 6vw, 72px) 32px;
}

.student-courses__header-content h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
}

.student-courses__header-content p {
  margin: 12px 0 0;
  color: #9ea6c6;
  max-width: 520px;
  font-size: 1rem;
}

.student-courses__back {
  align-self: center;
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.student-courses__back:hover,
.student-courses__back:focus-visible {
  color: #bde9ff;
}

.student-courses__main {
  padding: 0 clamp(24px, 6vw, 72px) 72px;
}

.enrollment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.enrollment-grid__empty,
.enrollment-grid__error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 48px;
  text-align: center;
  background: rgba(19, 23, 45, 0.6);
  border: 1px solid rgba(71, 85, 130, 0.35);
  border-radius: 20px;
  color: #9ea6c6;
}

.enrollment-grid__error {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(68, 17, 26, 0.45);
}

.recommendation-panel {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recommendation-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.recommendation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.recommendation-list__status {
  margin: 0;
  font-size: 0.95rem;
  color: #9ea6c6;
}

.recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 33, 58, 0.85), rgba(18, 22, 43, 0.92));
  border: 1px solid rgba(71, 85, 130, 0.28);
  box-shadow: 0 18px 36px rgba(8, 10, 20, 0.5);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommendation-card:hover,
.recommendation-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(11, 15, 34, 0.6);
}

.recommendation-card__type {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ea6c6;
}

.recommendation-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #eaf0ff;
}

.recommendation-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: #aab1cd;
}

.enrollment-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(27, 33, 58, 0.9), rgba(18, 22, 43, 0.9));
  border: 1px solid rgba(71, 85, 130, 0.35);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(8, 10, 20, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enrollment-card:hover,
.enrollment-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(11, 15, 34, 0.65);
}

.enrollment-card__cover {
  position: relative;
  padding-top: 48%;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.25), rgba(59, 130, 246, 0.25));
}

.enrollment-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enrollment-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.enrollment-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.enrollment-card__summary {
  margin: 0;
  color: #9ea6c6;
  font-size: 0.95rem;
  line-height: 1.5;
}

.enrollment-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.progress-ring {
  --progress: 0%;
  --size: 68px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#7dd3fc var(--progress), rgba(49, 56, 92, 0.7) 0);
  display: grid;
  place-items: center;
  color: #eaf0ff;
  font-weight: 600;
}

.progress-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: rgba(15, 18, 32, 0.95);
}

.progress-ring__value {
  position: relative;
  font-size: 0.95rem;
}

.enrollment-card__stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #aab1cd;
}

.enrollment-card__stats strong {
  color: #eaf0ff;
  font-size: 1rem;
}

.enrollment-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.enrollment-card__continue {
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #0b0f22;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enrollment-card__continue:hover,
.enrollment-card__continue:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.45);
}

.enrollment-card__meta-note {
  margin: 0;
  font-size: 0.85rem;
  color: #9ea6c6;
}

@media (max-width: 720px) {
  .student-courses__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-courses__back {
    align-self: flex-start;
  }

  .enrollment-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .enrollment-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .enrollment-card__continue {
    width: 100%;
    text-align: center;
  }
}