/* =========================
   Courses Section Styles
   ========================= */

.courses-section {
  background: #f8f9fa;
  position: relative;
}

.section-header {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.filter-controls {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.form-select:hover {
  border-color: var(--primary-color);
}

.course-card {
  background: white;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

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

.course-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

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

.course-card .card-header {
  background: transparent;
  border: none;
  padding: 1rem 1.5rem 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.course-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.course-card .card-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.course-card .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.course-card .card-footer {
  background: transparent;
  border: none;
  padding: 0 1.5rem 1.5rem;
}

.course-card .btn {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.course-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
  color: white !important;
}

.load-more-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.load-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
}

/* Course Card Animations */
.course-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.course-card:nth-child(1) { animation-delay: 0.1s; }
.course-card:nth-child(2) { animation-delay: 0.2s; }
.course-card:nth-child(3) { animation-delay: 0.3s; }
.course-card:nth-child(4) { animation-delay: 0.4s; }
.course-card:nth-child(5) { animation-delay: 0.5s; }
.course-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* No Results Styling */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-results .icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-results h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.no-results p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .filter-controls {
    padding: 1.5rem;
  }
  
  .course-card .card-title {
    font-size: 1.1rem;
  }
  
  .course-card .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .filter-controls {
    padding: 1rem;
  }
  
  .form-select {
    margin-bottom: 1rem;
  }
  
  .course-card {
    margin-bottom: 2rem;
  }
  
  .course-card .card-img-top {
    height: 180px;
  }
  
  .course-card .card-body {
    padding: 1rem;
  }
  
  .course-card .card-footer {
    padding: 0 1rem 1rem;
  }
}

/* Loading State */
.courses-loading {
  text-align: center;
  padding: 3rem;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
}

/* Error State */
.courses-error {
  text-align: center;
  padding: 3rem;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  color: #c53030;
}

.courses-error .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
} 