.courses-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
  font-family: 'Inter', sans-serif;
}

.courses-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.courses-header p {
  color: hsl(220,10%,45%);
  margin-top: 0.5rem;
}

.courses-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.search-container {
  position: relative;
  flex: 1;
}

.search-container input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.5rem;
  border: 1px solid hsl(220,15%,90%);
  border-radius: 0.5rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(220,10%,45%);
}

.level-buttons button {
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(220,15%,90%);
  background: white;
  cursor: pointer;
  text-transform: capitalize;
}

.level-buttons button.active {
  background: hsl(250,65%,55%);
  color: white;
  border-color: hsl(250,65%,55%);
}

.courses-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.course-card {
  border: 1px solid hsl(220,15%,90%);
  border-radius: 0.75rem;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.course-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.course-card .course-body {
  padding: 0.75rem;
}

.course-card h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.course-card p {
  font-size: 0.875rem;
  color: hsl(220,10%,45%);
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    max-height: 90px;
    overflow: hidden;
}

.course-card .course-meta {
  font-size: 0.75rem;
  color: hsl(220,10%,45%);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.no-results {
  text-align: center;
  margin-top: 3rem;
  color: hsl(220,10%,45%);
  display: none;
}
.course-type {

    display: inline-block;

    padding: 6px 12px;

    border-radius: 999px;

    font-size: 13px;

    font-weight: 600;

    background: #eff6ff;

    color: #2563eb;

    margin-bottom: 10px;
}