
/* ═══════════════════════════════════════════════════
   ALL COURSES PAGE — fully scoped to .aci-courses-page
   No conflict with header or base styles
═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&family=Nunito+Sans:wght@400;600;700&display=swap');

.aci-courses-page {
  font-family: 'Nunito Sans', sans-serif;
  background: #f7f7fb;
  min-height: 100vh;
  color: #222;
}

/* ── PAGE HERO ── */
.acp-hero {
  background: linear-gradient(135deg, #1a1a6e 0%, #2a2a9e 60%, #1a1a6e 100%);
  padding: 48px 32px 56px;
  position: relative;
  overflow: hidden;
}
.acp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.acp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.acp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.acp-breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.acp-breadcrumb a:hover { color: #ff6600; }
.acp-breadcrumb span { color: #ff6600; }
.acp-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.1;
}
.acp-hero h1 em { color: #ff6600; font-style: normal; }
.acp-hero p {
  color: rgba(255,255,255,.75);
  font-size: 15px;
  margin: 0 0 28px;
  max-width: 520px;
}
.acp-stats-row {
  display: flex;
  gap: 32px;
}
.acp-stat { color: #fff; }
.acp-stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ff6600;
  line-height: 1;
}
.acp-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* ── MAIN LAYOUT ── */
.acp-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ── FILTER BAR ── */
.acp-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.acp-search-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.acp-search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid #dde;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Nunito Sans', sans-serif;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color .2s;
}
.acp-search-wrap input:focus { border-color: #1a1a6e; }
.acp-search-wrap .acp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}
.acp-search-wrap .acp-search-icon svg { width: 16px; height: 16px; display: block; }
.acp-sort {
  padding: 11px 14px;
  border: 1.5px solid #dde;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Nunito Sans', sans-serif;
  background: #fff;
  color: #555;
  cursor: pointer;
  outline: none;
}
.acp-count-text {
  font-size: 13px;
  color: #888;
  white-space: nowrap;
}
.acp-count-text strong { color: #1a1a6e; }

/* ── CATEGORY PILLS ── */
.acp-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.acp-pill {
  padding: 7px 16px;
  border-radius: 24px;
  border: 1.5px solid #dde;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.acp-pill:hover { border-color: #1a1a6e; color: #1a1a6e; }
.acp-pill.active {
  background: #1a1a6e;
  border-color: #1a1a6e;
  color: #fff;
}

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

/* ── COURSE CARD ── */
.acp-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8f0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
  position: relative;
}
.acp-card:hover {
  box-shadow: 0 8px 32px rgba(26,26,110,.13);
  transform: translateY(-3px);
}

/* image */
.acp-card-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
  background: #e8e8f5;
}
.acp-card-img-placeholder {
  width: 100%;
  height: 165px;
  background: linear-gradient(135deg, #e8e8f5 0%, #d4d4ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.acp-card-img-placeholder svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #9999cc;
  stroke-width: 1.5;
  opacity: .7;
}

/* popular badge */
.acp-popular-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6600;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  letter-spacing: .3px;
}
/* category tag */
.acp-cat-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(26,26,110,.82);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* card body */
.acp-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.acp-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a6e;
  margin-bottom: 6px;
  line-height: 1.25;
}
.acp-card-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.acp-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.acp-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
}
.acp-duration svg { width: 13px; height: 13px; fill: none; stroke: #888; stroke-width: 2; }
.acp-topics-count {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.acp-topics-count svg { width: 13px; height: 13px; fill: none; stroke: #888; stroke-width: 2; }

/* CTA row */
.acp-card-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.acp-btn-view {
  flex: 1;
  text-align: center;
  background: #1a1a6e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .18s;
  font-family: 'Nunito Sans', sans-serif;
}
.acp-btn-view:hover { background: #ff6600; }
.acp-btn-wish {
  width: 36px;
  height: 36px;
  border: 1.5px solid #e0e0ee;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  background: #fff;
}
.acp-btn-wish:hover { border-color: #ff6600; background: #fff3ec; }
.acp-btn-wish svg { width: 16px; height: 16px; fill: none; stroke: #aaa; stroke-width: 2; transition: stroke .18s; }
.acp-btn-wish:hover svg { stroke: #ff6600; }

/* ── EMPTY STATE ── */
.acp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}
.acp-empty svg { width: 56px; height: 56px; fill: none; stroke: #ccc; stroke-width: 1.5; margin-bottom: 14px; }
.acp-empty h3 { font-size: 17px; color: #999; margin-bottom: 6px; }
.acp-empty p { font-size: 13px; }

/* ── NO-RESULTS ── */
.acp-no-results {
  display: none;
  text-align: center;
  padding: 50px 20px;
  color: #aaa;
}
.acp-no-results.visible { display: block; }

/* ── RESPONSIVE ── */
@media(max-width: 640px){
  .acp-hero { padding: 32px 16px 40px; }
  .acp-hero h1 { font-size: 30px; }
  .acp-stats-row { gap: 20px; }
  .acp-body { padding: 20px 12px 40px; }
  .acp-grid { grid-template-columns: 1fr; }
  .acp-filterbar { flex-direction: column; align-items: stretch; }
}
