/* Search Bar Styling */
.search-bar-container {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(40, 167, 69, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(15px);
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.search-icon {
  position: absolute;
  left: 1rem;
  z-index: 3;
  font-size: 1.1rem;
}

.search-input {
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid rgba(40, 167, 69, 0.2);
  border-radius: 15px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  flex-grow: 1;
}

.search-input:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
  background: rgba(255, 255, 255, 1);
}

.search-btn {
  margin-left: 0.75rem;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.search-results-info {
  text-align: center;
}

/* Professional Course Cards */
.course-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(15px);
  animation: courseCardFadeIn 0.6s ease-out forwards;
  opacity: 0;
  cursor: pointer;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.course-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
}

/* Course Card Header */
.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0 1.5rem;
  position: relative;
  z-index: 2;
}

.course-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.course-icon-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.course-card:hover .course-icon-wrapper {
  transform: scale(1.15) rotate(-10deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Course Badge */
.course-badge .badge {
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Course Card Body */
.course-card-body {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.course-title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #2d3748;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem;
}

.course-international {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: rgba(40, 167, 69, 0.9);
  color: white !important;
  border-radius: 12px;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Course Statistics Grid */
.course-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-stat {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.course-stat:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.course-stat .stat-number {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.course-stat .stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Course Progress Section */
.course-progress-section {
  margin-bottom: 1.5rem;
}

.course-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-percentage {
  font-size: 1.1rem;
  font-weight: 800;
}

.course-progress {
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.course-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.course-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: progressShimmer 2.5s infinite;
}

@keyframes progressShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Course Meta Information */
.course-meta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.duration-badge,
.employment-badge {
  background: rgba(248, 249, 250, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.duration-badge:hover,
.employment-badge:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Course Card Decoration */
.course-card-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.course-card:hover .course-card-decoration {
  height: 6px;
  opacity: 1;
}

/* Course Card Color Variants */
.course-card-success:hover {
  border-color: rgba(40, 167, 69, 0.3);
}

.course-card-primary:hover {
  border-color: rgba(0, 123, 255, 0.3);
}

.course-card-warning:hover {
  border-color: rgba(255, 193, 7, 0.3);
}

.course-card-info:hover {
  border-color: rgba(23, 162, 184, 0.3);
}

.course-card-secondary:hover {
  border-color: rgba(108, 117, 125, 0.3);
}

.course-card-danger:hover {
  border-color: rgba(220, 53, 69, 0.3);
}

/* Animations */
@keyframes courseCardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .course-card-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
  }
  
  .course-title {
    font-size: 1.1rem;
  }
  
  .course-icon-wrapper {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .course-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .course-stat .stat-number {
    font-size: 1.3rem;
  }
  
  .course-card-header {
    padding: 1.25rem 1.25rem 0 1.25rem;
  }
  
  .course-card-body {
    padding: 0.75rem 1.25rem 1.25rem 1.25rem;
  }
}

@media (max-width: 576px) {
  .course-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .course-stat {
    padding: 0.5rem;
  }
  
  .course-title {
    font-size: 1rem;
  }
  
  .course-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Loading States */
.course-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

.course-card.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* Print Styles */
@media print {
  .course-card {
    background: white !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    break-inside: avoid;
    margin-bottom: 1rem;
  }
  
  .course-icon-wrapper {
    background: #000 !important;
    color: white !important;
  }
  
  .course-badge .badge {
    background: #000 !important;
    color: white !important;
    border: 1px solid #000;
  }
}
