/* Courses Grid Container */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem; /* Increased gap between cards */
  padding: 2rem;
}

/* Individual Course Card */
.course-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0; /* Subtle border */
  margin-bottom: 1.5rem;
}

.course-card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
}

/* Thumbnail Styling */
.course-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.course-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Title Styling */
.course-card h3 {
  margin: 0 0 1rem 0;
  color: #2d3748;
  font-size: 1.4rem;
  line-height: 1.3;
}

/* Meta Information (Date/Price) */
.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
}

.course-date {
  color: #4a5568;
  font-size: 0.9rem;
}

.course-price {
  color: #48bb78; /* Green for emphasis */
  font-weight: 600;
  font-size: 1.1rem;
  background: #f0fff4;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Excerpt Styling */
.course-excerpt {
  color: #718096;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Button Container */
.course-actions {
  display: flex;
  gap: 1rem; /* Space between buttons */
  margin-top: 1.5rem;
}

/* Learn More Link */
.learn-more {
  display: inline-block;
  padding: 10px 25px;
  background: #edf2f7;
  color: #2d3748;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.learn-more:hover {
  background: #e2e8f0;
  color: #1a202c;
}

/* Apply Button */
.apply-button {
  display: inline-block;
  background: #4299e1;
  color: white !important;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.apply-button:hover {
  background: #3182ce;
}

/* Responsive Design */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  
  .course-card {
    margin-bottom: 1rem;
  }
}