.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.course-list-hero {
  margin-bottom: 2.5rem;
}

.course-list-hero-header {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.course-list-hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: rgba(248, 250, 252, 0.98);
  margin: 0 0 0.75rem;
}

.course-list-hero-description {
  font-size: 1.05rem;
  color: rgba(241, 245, 249, 0.92);
  margin: 0;
  max-width: 48rem;
  line-height: 1.7;
}

.course-list-hero-icon {
  font-size: 3.25rem;
  color: rgba(248, 250, 252, 0.92);
  opacity: 0.9;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.page-title i {
  color: var(--primary-400);
}

[data-bs-theme="light"] .page-title i {
  color: var(--primary-600);
}

.page-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.filter-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 3rem;
  border: 1px solid var(--border-color);
}

[data-bs-theme="light"] .filter-section {
  background: var(--bg-secondary);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label i {
  color: var(--primary-400);
}

[data-bs-theme="light"] .filter-label i {
  color: var(--primary-600);
}

.form-control {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.filter-btn {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
}

[data-bs-theme="light"] .filter-btn {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: rgba(248, 250, 252, 0.98);
}

.filter-btn:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.active-filters {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.active-filters-label {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-filter {
  color: var(--error-500);
  text-decoration: none;
}

.remove-filter:hover {
  color: var(--error-600);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.course-card {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

[data-bs-theme="light"] .course-card {
  background: var(--bg-secondary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
}

.course-card:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
  border-color: var(--primary-500);
}

.course-image-wrapper {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-image-wrapper i {
  font-size: 4rem;
  color: white;
  opacity: 0.8;
}

.course-level-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.course-level-badge.beginner {
  background: #10b981;
}

.course-level-badge.intermediate {
  background: #f59e0b;
}

.course-level-badge.advanced {
  background: #ef4444;
}

.course-body {
  padding: 1.5rem;
}

.course-title {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.course-title:hover {
  color: var(--primary-400);
}

[data-bs-theme="light"] .course-title:hover {
  color: var(--primary-600);
}

.course-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.course-meta-item i {
  color: var(--secondary-400);
}

.course-actions .btn {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: block;
  text-align: center;
}

[data-bs-theme="light"] .course-actions .btn {
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
  color: rgba(248, 250, 252, 0.98);
}

.course-actions .btn:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 4rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.empty-state-description {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-link {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--bg-card);
}

.page-link:hover {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

.page-item.active .page-link {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
}

.page-item.disabled .page-link {
  color: var(--text-muted);
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-form {
    grid-template-columns: 1fr;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .active-filters {
    flex-direction: column;
    align-items: flex-start;
  }
}
