/* ═══════════════════════════════════════════════════════
   Amasiko Training Centre — Courses Page Styles
   ═══════════════════════════════════════════════════════ */

/* ── Page Hero ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: 56px 0 48px;
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(201,168,76,0.05);
  pointer-events: none;
}

.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb-sep { color: rgba(255,255,255,0.2); }

.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.1;
}
.page-hero-title em { font-style: italic; color: var(--gold-light); }

.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.75;
}

/* ── Layout ─────────────────────────────────────────────── */
.courses-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ── Sidebar ────────────────────────────────────────────── */
.courses-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}

.sidebar-card-title {
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 20px;
  border-bottom: 2px solid var(--gold);
}

.seta-filter-list {
  padding: 10px 0;
}

.seta-filter-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  text-align: left;
  transition: all var(--ease);
  text-decoration: none;
}

.seta-filter-btn:hover {
  background: var(--gold-pale);
  color: var(--navy);
  border-left-color: var(--gold);
  padding-left: 24px;
}

.seta-filter-btn.active {
  background: var(--gold-pale);
  color: var(--navy);
  border-left-color: var(--gold);
  font-weight: 700;
}

.seta-filter-icon { font-size: 1rem; width: 22px; text-align: center; }

.seta-filter-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--off-white);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 20px;
}
.seta-filter-btn.active .seta-filter-count {
  background: var(--gold);
  color: var(--navy-deep);
}

/* Sidebar CTA */
.sidebar-cta {
  background: var(--navy);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}
.sidebar-cta h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 18px;
}
.btn-sidebar-apply {
  display: block;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 0.87rem;
  padding: 11px 16px;
  border-radius: 8px;
  transition: background var(--ease);
  margin-bottom: 8px;
}
.btn-sidebar-apply:hover { background: var(--gold-light); }
.btn-sidebar-enquire {
  display: block;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all var(--ease);
}
.btn-sidebar-enquire:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── Courses Main ───────────────────────────────────────── */
.courses-main {}

/* Toolbar */
.courses-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.courses-count {
  font-size: 0.88rem;
  color: var(--text-light);
}
.courses-count strong { color: var(--navy); font-weight: 700; }

.toolbar-right { display: flex; align-items: center; gap: 10px; }

.view-toggle {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.view-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
  transition: all var(--ease);
  font-family: 'DM Sans', sans-serif;
}
.view-btn.active { background: var(--navy); color: var(--white); }
.view-btn:hover:not(.active) { background: var(--off-white); color: var(--navy); }

/* ── No Results ─────────────────────────────────────────── */
.no-results {
  text-align: center;
  padding: 72px 24px;
  color: var(--text-light);
}
.no-results-icon { font-size: 3rem; margin-bottom: 16px; }
.no-results h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.no-results p  { font-size: 0.9rem; }

/* ── GRID VIEW ──────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.35);
}

/* Featured ribbon */
.course-ribbon {
  position: absolute;
  top: 16px; right: -8px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 14px 4px 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: -2px 2px 6px rgba(0,0,0,0.15);
}
.course-ribbon::after {
  content: '';
  position: absolute;
  right: 0; bottom: -6px;
  border-left: 8px solid var(--gold-dark);
  border-bottom: 6px solid transparent;
}

.course-card-top {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--off-white);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.course-icon {
  width: 50px; height: 50px;
  border-radius: 11px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: background var(--ease);
}
.course-card:hover .course-icon { background: var(--gold-pale); }

.course-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-seta    { background: var(--navy); color: var(--gold-light); }
.badge-nqf     { background: #E8F0FE; color: #1A56DB; }
.badge-type-learnership { background: #FFF0E6; color: #C05621; }
.badge-type-skills      { background: #E6F4EA; color: #137333; }
.badge-type-short       { background: #F3E8FF; color: #6B21A8; }
.badge-type-qcto        { background: #FEF9E7; color: #92610A; }

.course-card-body { padding: 16px 22px; flex: 1; }

.course-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--text-light);
}
.course-meta-icon { font-size: 0.85rem; width: 16px; text-align: center; flex-shrink: 0; }

.course-card-footer {
  padding: 14px 22px 20px;
  border-top: 1px solid var(--off-white);
}

.btn-apply-card {
  display: block;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 11px;
  border-radius: 8px;
  transition: background var(--ease), transform var(--ease);
  font-family: 'DM Sans', sans-serif;
}
.btn-apply-card:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-1px); }

/* ── LIST VIEW ──────────────────────────────────────────── */
.courses-list { display: flex; flex-direction: column; gap: 16px; }

.course-list-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: all var(--ease);
  position: relative;
  overflow: hidden;
}

.course-list-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}

.course-list-item:hover {
  border-color: rgba(201,168,76,0.3);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.course-list-item:hover::before { transform: scaleY(1); }

.list-icon {
  width: 54px; height: 54px;
  border-radius: 11px;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.list-body {}

.list-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  line-height: 1.25;
}

.list-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.list-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.list-action { flex-shrink: 0; }

.btn-apply-list {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background var(--ease);
  font-family: 'DM Sans', sans-serif;
}
.btn-apply-list:hover { background: var(--gold); color: var(--navy-deep); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .courses-layout { grid-template-columns: 240px 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .courses-layout { grid-template-columns: 1fr; }
  .courses-sidebar { position: static; }
  .seta-filter-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
  .seta-filter-btn  { width: auto; border: 1.5px solid var(--border); border-left: 1.5px solid var(--border); border-radius: 20px; padding: 7px 14px; font-size: 0.8rem; }
  .seta-filter-btn.active { border-color: var(--gold); background: var(--gold-pale); }
  .seta-filter-btn:hover  { padding-left: 14px; }
  .course-list-item { grid-template-columns: 44px 1fr; }
  .list-action { grid-column: 1 / -1; }
  .btn-apply-list { display: block; text-align: center; }
}

@media (max-width: 480px) {
  .courses-grid { grid-template-columns: 1fr; }
}
