/* Course Cards CSS for Edubin Child Theme */

:root {
  --primary: #00bb22;
  --bg-dark: #1a1a1a;
  --bg-darker: #121212;
  --text-light: #ccc;
  --text-muted: #aaa;
}

/* Course grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Course card styles */
.course-card {
  background-color: var(--bg-dark);
  width: 420px;
  margin: auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
}

.course-image {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 20px 20px 0 0;
}

.course-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  flex-wrap: wrap;
}

.course-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  align-items: stretch;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background 0.2s ease;
}

.btn.primary {
  background-color: var(--primary);
  color: white;
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.course-details {
  flex: 2;
}

.course-title {
  font-size: 18px;
  margin: 0 0 10px 0;
  color: var(--primary);
}

.course-details hr {
  border: none;
  border-top: 1px solid #333;
  margin-block: 10px;
}

.course-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
}

.course-meta {
  background-color: var(--bg-darker);
  padding: 15px 20px;
  border-top: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 0 0 20px 20px;
}

.course-dates {
  font-size: 13px;
  color: var(--text-muted);
}

.course-price {
  background-color: var(--primary);
  color: black;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 10px;
}

/* Page title */
.page-title {
  color: var(--primary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
}

/* No courses message */
.no-courses {
  text-align: center;
  padding: 40px;
  background-color: var(--bg-dark);
  border-radius: 20px;
  grid-column: 1 / -1;
}

/* Pagination styles */
.pagination-wrapper {
  margin-top: 40px;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
  background-color: var(--primary);
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  
  .course-card {
    width: 100%;
    max-width: 420px;
  }
} 