.courses-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.course-card {
  background: var(--theme);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-cover {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-cover img {
  transform: scale(1.05);
}

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

.course-badge {
  width: 120px;
  height: 120px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.course-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem 1.5rem 1.5rem;
}

.course-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--primary);
}

.course-issuer {
  font-size: 0.95rem;
  color: var(--secondary);
  margin: 0 0 0.5rem 0;
  font-weight: 500;
}

.course-date {
  font-size: 0.85rem;
  color: var(--tertiary);
  margin: 0 0 1rem 0;
}

.course-description {
  font-size: 0.9rem;
  color: var(--content);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  flex: 1;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.course-link:hover {
  background-color: var(--primary);
  color: var(--theme);
}

.course-link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .course-content {
    padding: 0 1.25rem 1.25rem;
  }

  .course-cover {
    height: 140px;
  }

  .course-badge {
    width: 100px;
    height: 100px;
  }
}
