/* =============================================================
   listcourses.css — Systems & Network Training
   Save to: /css/pages/listcourses.css
   ============================================================= */

/* ── Brand tokens ─────────────────────────────────────────────── 
:root {
  --snt-teal:       #1a7f6e;
  --snt-teal-soft:  #e1f5f0;
  --snt-teal-dark:  #0f5a4d;
  --snt-navy:       #1a2e3b;
  --snt-navy-soft:  #e6edf2;
  --snt-navy-dark:  #0f1e27;
}

/* ── Hero ─────────────────────────────────────────────────────── 
.lc-hero {
  background: var(--snt-navy);
  padding: 3rem 0 2.75rem;
  border-bottom: 3px solid var(--snt-teal);
}
.lc-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5DCAA5;
  margin-bottom: 0.5rem;
}
.lc-title {
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.5rem;
}
 
.lc-subtitle {
  color: #9ab0bc;
  font-size: 0.95rem;
  max-width: 580px;
  margin-bottom: 1.5rem;
}

/* ── Search bar ───────────────────────────────────────────────── */
.lc-search-wrap {
  position: relative;
  max-width: 560px;
}
.lc-search {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.lc-search::placeholder { color: #7a96a6; }
.lc-search:focus {
  border-color: var(--snt-teal);
  background: rgba(255,255,255,0.12);
}
.lc-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7a96a6;
  pointer-events: none;
  font-size: 0.85rem;
}
.lc-search-count {
  display: none;
  font-size: 0.8rem;
  color: #5DCAA5;
  margin-top: 0.4rem;
  margin-left: 0.25rem;
}

/* ── Jump nav ─────────────────────────────────────────────────── */
.lc-jumpnav {
  background: #fff;
  border-bottom: 1px solid #e2e8ec;
  position: sticky;
  top: 0;
  z-index: 100;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lc-jumpnav-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
  padding: 0;
}
.lc-jumplink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: #555;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.lc-jumplink:hover {
  color: var(--snt-teal);
  text-decoration: none;
}
.lc-jumplink.active {
  color: var(--snt-teal);
  border-bottom-color: var(--snt-teal);
  font-weight: 500;
}
.lc-jumplink-count {
  font-size: 0.7rem;
  background: var(--snt-navy-soft);
  color: #555;
  border-radius: 20px;
  padding: 1px 6px;
  font-weight: 500;
}
.lc-jumplink.active .lc-jumplink-count {
  background: var(--snt-teal-soft);
  color: var(--snt-teal-dark);
}

/* ── Body ─────────────────────────────────────────────────────── */
.lc-body {
  padding: 3rem 0 4rem;
  background: #f8fafb;
}

/* ── Category section ─────────────────────────────────────────── */
.lc-category {
  margin-bottom: 3rem;
  scroll-margin-top: 120px; /* offset for sticky header + jumpnav */
}
.lc-cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--snt-teal);
}
.lc-cat-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--snt-navy);
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}
.lc-cat-count {
  font-size: 0.78rem;
  color: #888;
  margin-left: 0.5rem;
}

/* ── Course card grid ─────────────────────────────────────────── */
.lc-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.lc-course-card {
  background: #fff;
  border: 1px solid #e2e8ec;
  border-radius: 8px;
  padding: 1rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lc-course-card:hover {
  border-color: var(--snt-teal);
  box-shadow: 0 2px 8px rgba(26,127,110,0.08);
}

.lc-course-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--snt-navy);
  text-decoration: none;
  line-height: 1.4;
  flex: 1;
}
.lc-course-title:hover {
  color: var(--snt-teal);
  text-decoration: none;
}

/* ── Course meta pills ────────────────────────────────────────── */
.lc-course-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lc-meta-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lc-meta-duration {
  background: var(--snt-navy-soft);
  color: var(--snt-navy-dark);
}
.lc-meta-price {
  background: var(--snt-teal-soft);
  color: var(--snt-teal-dark);
}

/* ── Course action buttons ────────────────────────────────────── */
.lc-course-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.lc-btn-view {
  font-size: 0.78rem;
  color: var(--snt-teal);
  text-decoration: none;
  font-weight: 500;
}
.lc-btn-view:hover {
  color: var(--snt-teal-dark);
  text-decoration: underline;
}
.lc-btn-reserve {
  font-size: 0.78rem;
  background: var(--snt-teal);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s;
}
.lc-btn-reserve:hover {
  background: var(--snt-teal-dark);
  color: #fff;
  text-decoration: none;
}

/* ── No results ───────────────────────────────────────────────── */
.lc-no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
  font-size: 0.95rem;
}
.lc-clear-btn {
  background: none;
  border: none;
  color: var(--snt-teal);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 576px) {
  .lc-title  { font-size: 1.5rem; }
  .lc-course-grid { grid-template-columns: 1fr; }
  .lc-jumplink { padding: 0.6rem 0.75rem; font-size: 0.75rem; }
}