/* --- layout tokens --- */
:root{
  --bg: #0f0f10;
  --card: #151515;
  --muted: #bdbdbd;
  --accent: #e0a730;
  --text: #fff;
  --glass: rgba(255,255,255,0.03);
  --shadow: 0 8px 28px rgba(0,0,0,0.5);
  --radius: 12px;
}

/* Light-mode overrides (use .light-mode on body) */
body.light-mode {
  --bg: #fafafa;
  --card: #ffffff;
  --muted: #444;
  --accent: #204180;
  --text: #111;
  --glass: rgba(0,0,0,0.03);
  --shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Page base */
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container utility */
.container {
  width: min(1150px, 94%);
  margin: 0 auto;
}

/* HERO */
.courses-hero {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.courses-hero h1 { font-size: 34px; margin: 0 0 8px; color: var(--text); }
.courses-hero p { margin: 0 0 18px; color: var(--muted); }

/* hero actions: search + select */
.hero-actions {
  display:flex;
  gap:12px;
  align-items:center;
  margin-top: 14px;
}
.hero-actions input[type="search"]{
  background: var(--card);
  border: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 260px;
  box-shadow: var(--shadow);
}
.hero-actions select{
  background: var(--card);
  color: var(--text);
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* COURSES LIST (main) */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 0 80px;
}

/* each course item: horizontal card */
.course-item {
  display: flex;
  gap: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent);
  border-radius: var(--radius);
  padding: 18px;
  align-items: stretch;
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease;
  border: 1px solid rgba(255,255,255,0.03);
}

/* hover lift */
.course-item:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.55); }

/* thumbnail */
.course-thumb {
  width: 320px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #222;
}

/* body */
.course-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.course-title { margin: 0; font-size: 20px; color: var(--text); }
.course-meta { margin: 0; color: var(--muted); font-size: 14px; display:flex; align-items:center; gap:8px; }
.pill { background: rgba(255,255,255,0.04); padding:6px 10px; border-radius: 999px; font-weight:600; font-size:13px; color:var(--muted); }
.duration, .students { color: var(--muted); font-size: 13px; }

/* short description */
.course-desc { margin: 0; color: var(--muted); line-height: 1.5; }

/* actions row */
.course-actions { margin-top: auto; display:flex; gap: 12px; align-items:center; }

/* buttons */
.btn { text-decoration: none; border-radius: 10px; padding: 8px 14px; font-weight:600; cursor:pointer; border: none; display:inline-flex; align-items:center; gap:8px; }
.btn-primary { background: var(--accent); color: #000; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--muted); border: none; }

body.light-mode .btn-outline { border-color: rgba(0,0,0,0.08); }

/* small decorative dot */
.dot { color: var(--muted); font-size: 12px; margin: 0 6px; }

/* RESPONSIVE: stack for smaller screens */
@media (max-width: 880px) {
  .course-item { flex-direction: column; align-items:center; text-align:center; padding:16px; }
  .course-thumb { width: 100%; height: 220px; border-radius: 12px; }
  .course-actions { justify-content: center; width: 100%; margin-top: 12px; }
  .course-body { align-items: center; }
  .course-meta { justify-content: center; }
  .course-title { font-size: 18px; }
}

/* tiny screens */
@media (max-width: 420px) {
  .hero-actions input[type="search"]{ min-width: 140px; }
  .courses-hero h1 { font-size: 22px; }
}




