/* ==========================================================================
   COMPONENT / COURSE CARD
   The "purchased courses" card + individual course item. First used on the
   Cart Summary screens; expect this to be reused (possibly with size/layout
   variants) on My Courses, Category Page, and Knowledge Center.
   ========================================================================== */
.courses-banner {
  width: 100%;
  max-width: var(--content-max);
  min-height: 180px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-card);
}

.courses-label {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-heading);
  text-align: right;
}

.courses-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: 100%;
}

.course-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.course-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.course-title {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-text-heading);
}

.course-subtitle {
  font-family: var(--font-main);
  font-weight: 400;
  font-size: 14px;
  line-height: 18px;
  color: var(--color-primary-navy);
  margin-top: 2px;
}

.course-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-icon.icon-blue {
  background-color: var(--color-blue-soft-bg);
}

.course-icon.icon-green {
  background-color: var(--color-green-soft-bg);
}

/* ==========================================================================
   RESPONSIVE — Course card / courses banner
   ========================================================================== */
@media (max-width: 1023px) {
  .courses-banner {
    padding: var(--space-5) var(--space-6);
  }

  .courses-grid {
    flex-wrap: wrap;
    gap: var(--space-5);
  }

  .course-item {
    flex: 1 1 240px;
  }
}

@media (max-width: 599px) {
  .courses-banner {
    padding: var(--space-4);
    min-height: 0;
  }

  .courses-grid {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
  }

  .course-item {
    flex: 1 1 auto;
  }

  .course-icon {
    width: 64px;
    height: 64px;
  }

  .course-title {
    font-size: 16px;
  }
}
