/* JUPITER SCIENCE — COURSE ARCHIVE v28 */
.jsa-course-archive-page{
  width:100%;
  color:#101B4D;
  background:
    radial-gradient(circle at 6% 10%,rgba(138,43,239,.08),transparent 28%),
    radial-gradient(circle at 94% 16%,rgba(40,199,255,.10),transparent 30%),
    linear-gradient(180deg,#f9f7ff 0%,#f4fbff 48%,#fff 100%);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
.jsa-course-archive-page *{box-sizing:border-box}
.jsa-course-archive-page .jsa-wrap{width:min(1320px,calc(100% - 64px));margin:0 auto}
.jsa-course-archive-hero{
  padding:54px 0 48px;
  background:
    radial-gradient(circle at 8% 5%,rgba(255,61,127,.16),transparent 29%),
    radial-gradient(circle at 91% 10%,rgba(255,210,63,.22),transparent 31%),
    radial-gradient(circle at 80% 100%,rgba(40,199,255,.18),transparent 33%),
    linear-gradient(180deg,#fff7fa 0%,#f8f4ff 44%,#ebf9ff 100%);
}
.jsa-course-archive-page .jsa-eyebrow{
  display:inline-flex;align-items:center;min-height:30px;padding:6px 11px;border-radius:999px;
  background:linear-gradient(90deg,#002CD0,#7A35EC);color:#fff;font-size:10px;font-weight:800;
  letter-spacing:.1em;text-transform:uppercase
}
.jsa-course-archive-hero h1{
  margin:17px 0 12px;font-family:Sora,Inter,system-ui,sans-serif;
  font-size:clamp(40px,5.3vw,68px);line-height:1.04;letter-spacing:-.04em;color:#101B4D
}
.jsa-course-archive-intro{max-width:780px;color:#5A6684;font-size:17px;line-height:1.7}
.jsa-course-archive-intro p{margin:0}
.jsa-course-archive-section{padding:56px 0 76px}

/* Generic plugin course cards */
.jsa-course-archive-page .zcm-course-archive-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:28px!important;row-gap:30px!important;align-items:stretch!important
}
.jsa-course-archive-page .zcm-course-archive-card{
  position:relative;min-width:0;overflow:hidden;border:1px solid rgba(16,27,77,.10);
  border-radius:20px;background:rgba(255,255,255,.94);
  box-shadow:0 12px 30px rgba(16,27,77,.08);transition:.18s ease
}
.jsa-course-archive-page .zcm-course-archive-card::before{
  content:"";position:absolute;z-index:3;top:0;left:0;right:0;height:4px;
  background:linear-gradient(90deg,#002CD0 0%,#8A2BEF 48%,#FF3D7F 76%,#FFD23F 100%)
}
.jsa-course-archive-page .zcm-course-archive-card:hover{
  transform:translateY(-4px);box-shadow:0 20px 42px rgba(16,27,77,.13)
}
.jsa-course-archive-page .zcm-course-archive-card-link{
  display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none!important
}
.jsa-course-archive-page .zcm-course-archive-image{
  width:100%;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#eef3ff,#f8f2ff)
}
.jsa-course-archive-page .zcm-course-archive-image img{display:block;width:100%;height:100%;object-fit:cover}
.jsa-course-archive-page .zcm-course-archive-body{display:flex;flex-direction:column;flex:1;padding:20px}
.jsa-course-archive-page .zcm-course-archive-label{
  align-self:flex-start;display:inline-flex;min-height:28px;padding:5px 10px;border-radius:999px;
  background:linear-gradient(100deg,#fff0f5 0%,#fff5dc 52%,#ffe7a9 100%);
  border:1px solid rgba(213,146,28,.30);color:#d83b72;font-size:10px;font-weight:800;
  letter-spacing:.07em;text-transform:uppercase
}
.jsa-course-archive-page .zcm-course-archive-title{
  margin:14px 0 9px;color:#101B4D;font-family:Sora,Inter,system-ui,sans-serif;
  font-size:21px;line-height:1.26;letter-spacing:-.018em
}
.jsa-course-archive-page .zcm-course-archive-meta{
  margin:0 0 11px;color:#4d43df;font-size:11px;font-weight:800
}
.jsa-course-archive-page .zcm-course-archive-excerpt{
  margin:0 0 16px;color:#5A6684;font-size:14px;line-height:1.65
}
.jsa-course-archive-page .zcm-course-archive-open{
  margin-top:auto;color:#002CD0;font-size:12px;font-weight:800
}
.jsa-course-archive-page .zcm-course-archive-pagination{margin-top:38px}
.jsa-course-archive-page .zcm-course-archive-pagination ul{
  display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0;padding:0;list-style:none
}
.jsa-course-archive-page .zcm-course-archive-pagination a,
.jsa-course-archive-page .zcm-course-archive-pagination span{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;
  border:1px solid rgba(16,27,77,.11);border-radius:11px;background:#fff;color:#101B4D;
  font-size:12px;font-weight:800;text-decoration:none
}
.jsa-course-archive-page .zcm-course-archive-pagination .current{
  border-color:transparent;background:linear-gradient(90deg,#002CD0,#8A2BEF);color:#fff
}

@media(max-width:979px){
  .jsa-course-archive-page .jsa-wrap{width:calc(100% - 40px)}
  .jsa-course-archive-page .zcm-course-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
}
@media(max-width:766px){
  .jsa-course-archive-page .jsa-wrap{width:calc(100% - 28px)}
  .jsa-course-archive-hero{padding:38px 0 34px}
  .jsa-course-archive-hero h1{font-size:clamp(34px,10vw,48px)}
  .jsa-course-archive-intro{font-size:15px}
  .jsa-course-archive-section{padding:34px 0 48px}
  .jsa-course-archive-page .zcm-course-archive-grid{grid-template-columns:1fr!important;gap:16px!important}
  .jsa-course-archive-page .zcm-course-archive-body{padding:17px}
  .jsa-course-archive-page .zcm-course-archive-title{font-size:19px}
}

/* =========================================================
   v29 — AUTOMATIC VIRTUAL ARCHIVE HEADER
========================================================= */
.zcm-virtual-archive-header{
  width:min(1320px,calc(100% - 64px));
  margin:38px auto 34px;
  padding:30px 34px;
  border:1px solid rgba(16,27,77,.08);
  border-radius:22px;
  background:
    radial-gradient(circle at 8% 8%,rgba(255,61,127,.14),transparent 30%),
    radial-gradient(circle at 90% 10%,rgba(255,210,63,.18),transparent 32%),
    radial-gradient(circle at 82% 100%,rgba(40,199,255,.16),transparent 34%),
    linear-gradient(180deg,#fff8fb 0%,#f8f4ff 46%,#edfaff 100%);
  box-shadow:0 14px 34px rgba(16,27,77,.07);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:#101B4D;
}
.zcm-virtual-archive-kicker{
  display:inline-flex;align-items:center;min-height:28px;padding:6px 10px;border-radius:999px;
  background:linear-gradient(90deg,#002CD0,#7A35EC);color:#fff;font-size:10px;line-height:1;
  font-weight:800;letter-spacing:.10em;text-transform:uppercase;
}
.zcm-virtual-archive-title{
  margin:15px 0 9px!important;padding:0!important;
  font-family:Sora,Inter,system-ui,sans-serif!important;
  font-size:clamp(32px,4.4vw,54px)!important;line-height:1.06!important;
  letter-spacing:-.035em!important;color:#101B4D!important;
}
.zcm-virtual-archive-description{max-width:800px;color:#5A6684;font-size:15px;line-height:1.7}
.zcm-virtual-archive-description p{margin:0!important}

@media(max-width:979px){
  .zcm-virtual-archive-header{width:calc(100% - 40px);margin:30px auto 28px;padding:26px}
}
@media(max-width:766px){
  .zcm-virtual-archive-header{width:calc(100% - 28px);margin:22px auto;padding:22px 18px;border-radius:18px}
  .zcm-virtual-archive-title{font-size:clamp(28px,9vw,40px)!important}
  .zcm-virtual-archive-description{font-size:14px}
}

/* =========================================================
   v30 — DIRECT COURSE ARCHIVE SHORTCODE SUPPORT
   Makes [zartom_course_archive] fully styled even when Divi
   renders it directly without .jsa-course-archive-page.
========================================================= */

.zcm-course-archive{
  width:min(1320px,calc(100% - 64px))!important;
  max-width:1320px!important;
  margin:36px auto 72px!important;
  padding:0!important;
  box-sizing:border-box!important;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;
  color:#101B4D!important;
}

.zcm-course-archive *,
.zcm-course-archive *::before,
.zcm-course-archive *::after{
  box-sizing:border-box!important;
}

/* Grid */
.zcm-course-archive .zcm-course-archive-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:28px!important;
  row-gap:30px!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* Card */
.zcm-course-archive .zcm-course-archive-card{
  position:relative!important;
  display:block!important;
  min-width:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(16,27,77,.10)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 30px rgba(16,27,77,.08)!important;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;
}

.zcm-course-archive .zcm-course-archive-card::before{
  content:""!important;
  position:absolute!important;
  z-index:3!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:4px!important;
  background:linear-gradient(
    90deg,
    #002CD0 0%,
    #8A2BEF 48%,
    #FF3D7F 76%,
    #FFD23F 100%
  )!important;
}

.zcm-course-archive .zcm-course-archive-card:hover{
  transform:translateY(-4px)!important;
  border-color:rgba(0,44,208,.18)!important;
  box-shadow:0 20px 42px rgba(16,27,77,.13)!important;
}

/* Full card link */
.zcm-course-archive .zcm-course-archive-card-link{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:100%!important;
  color:inherit!important;
  text-decoration:none!important;
}

/* Image */
.zcm-course-archive .zcm-course-archive-image{
  position:relative!important;
  width:100%!important;
  aspect-ratio:16/9!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  background:
    radial-gradient(circle at 85% 15%,rgba(40,199,255,.16),transparent 36%),
    linear-gradient(135deg,#eef3ff,#f8f2ff)!important;
}

.zcm-course-archive .zcm-course-archive-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  border:0!important;
}

/* Body */
.zcm-course-archive .zcm-course-archive-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-width:0!important;
  padding:20px!important;
  background:transparent!important;
}

/* Course pill */
.zcm-course-archive .zcm-course-archive-label{
  align-self:flex-start!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:5px 10px!important;
  margin:0 0 12px!important;
  border-radius:999px!important;
  background:linear-gradient(100deg,#fff0f5 0%,#fff5dc 52%,#ffe7a9 100%)!important;
  border:1px solid rgba(213,146,28,.30)!important;
  color:#d83b72!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
}

/* Title */
.zcm-course-archive .zcm-course-archive-title{
  margin:0 0 10px!important;
  padding:0!important;
  color:#101B4D!important;
  font-family:Sora,Inter,system-ui,sans-serif!important;
  font-size:21px!important;
  line-height:1.28!important;
  font-weight:800!important;
  letter-spacing:-.018em!important;
}

/* Lesson count / metadata */
.zcm-course-archive .zcm-course-archive-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  margin:0 0 12px!important;
  padding:0!important;
  color:#4d43df!important;
  font-size:11px!important;
  line-height:1.3!important;
  font-weight:800!important;
}

.zcm-course-archive .zcm-course-archive-meta span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:#eef3ff!important;
  color:#4d43df!important;
}

/* Excerpt */
.zcm-course-archive .zcm-course-archive-excerpt{
  margin:0 0 17px!important;
  padding:0!important;
  color:#5A6684!important;
  font-size:14px!important;
  line-height:1.65!important;
  font-weight:400!important;
}

/* Open course link */
.zcm-course-archive .zcm-course-archive-open{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:auto!important;
  padding-top:2px!important;
  color:#002CD0!important;
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:800!important;
}

/* Pagination */
.zcm-course-archive-pagination{
  width:min(1320px,calc(100% - 64px))!important;
  max-width:1320px!important;
  margin:38px auto 64px!important;
}

.zcm-course-archive-pagination ul{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}

.zcm-course-archive-pagination a,
.zcm-course-archive-pagination span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:40px!important;
  height:40px!important;
  padding:0 12px!important;
  border:1px solid rgba(16,27,77,.11)!important;
  border-radius:11px!important;
  background:#fff!important;
  color:#101B4D!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:800!important;
  text-decoration:none!important;
}

.zcm-course-archive-pagination .current{
  border-color:transparent!important;
  background:linear-gradient(90deg,#002CD0,#8A2BEF)!important;
  color:#fff!important;
}

/* Empty state */
.zcm-course-archive-empty{
  width:min(1320px,calc(100% - 64px))!important;
  margin:34px auto 60px!important;
  padding:26px!important;
  border:1px solid rgba(16,27,77,.09)!important;
  border-radius:18px!important;
  background:#f7f9ff!important;
  color:#5A6684!important;
  text-align:center!important;
}

/* Tablet */
@media(max-width:979px){
  .zcm-course-archive,
  .zcm-course-archive-pagination,
  .zcm-course-archive-empty{
    width:calc(100% - 40px)!important;
  }

  .zcm-course-archive .zcm-course-archive-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:20px!important;
    row-gap:22px!important;
  }
}

/* Phone */
@media(max-width:766px){
  .zcm-course-archive,
  .zcm-course-archive-pagination,
  .zcm-course-archive-empty{
    width:calc(100% - 28px)!important;
  }

  .zcm-course-archive{
    margin:24px auto 44px!important;
  }

  .zcm-course-archive .zcm-course-archive-grid{
    grid-template-columns:1fr!important;
    gap:16px!important;
    row-gap:18px!important;
  }

  .zcm-course-archive .zcm-course-archive-body{
    padding:17px!important;
  }

  .zcm-course-archive .zcm-course-archive-title{
    font-size:19px!important;
  }
}

/* =========================================================
   v31 — GROUPED COURSE ARCHIVE
========================================================= */
.zcm-course-groups{
  width:min(1320px,calc(100% - 64px))!important;
  max-width:1320px!important;
  margin:36px auto 72px!important;
  padding:0!important;
}
.zcm-course-groups > .zcm-course-group{
  position:relative!important;
  width:100%!important;
  margin:0 0 58px!important;
  padding:0 0 48px!important;
}
.zcm-course-groups > .zcm-course-group:last-child{
  margin-bottom:0!important;
  padding-bottom:0!important;
}
.zcm-course-groups > .zcm-course-group:not(:last-child)::after{
  content:""!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;
  height:2px!important;
  border-radius:999px!important;
  background:linear-gradient(
    90deg,
    rgba(0,44,208,0) 0%,
    rgba(0,44,208,.40) 12%,
    rgba(138,43,239,.56) 38%,
    rgba(255,61,127,.50) 67%,
    rgba(255,210,63,.46) 88%,
    rgba(255,210,63,0) 100%
  )!important;
}
.zcm-course-groups .zcm-course-group-head{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  width:100%!important;
  margin:0 0 24px!important;
  padding:0 4px 10px!important;
}
.zcm-course-groups .zcm-course-group-head::before{
  content:""!important;
  width:5px!important;
  min-width:5px!important;
  min-height:38px!important;
  align-self:stretch!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#002CD0,#8A2BEF 52%,#FF3D7F)!important;
}
.zcm-course-groups .zcm-course-group-title{
  flex:1 1 auto!important;
  margin:0!important;
  padding:0!important;
  color:#101B4D!important;
  font-family:Sora,Inter,system-ui,sans-serif!important;
  font-size:clamp(22px,2vw,30px)!important;
  line-height:1.18!important;
  font-weight:800!important;
  letter-spacing:-.02em!important;
}
.zcm-course-groups .zcm-course-group-count{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  padding:6px 11px!important;
  border-radius:999px!important;
  background:linear-gradient(105deg,#fff2f6,#fff7df 52%,#ffe9b5)!important;
  border:1px solid rgba(218,154,35,.30)!important;
  color:#6A35E6!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
}
.zcm-course-groups .zcm-course-archive{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
@media(max-width:979px){
  .zcm-course-groups{
    width:calc(100% - 40px)!important;
  }
  .zcm-course-groups > .zcm-course-group{
    margin-bottom:46px!important;
    padding-bottom:38px!important;
  }
}
@media(max-width:766px){
  .zcm-course-groups{
    width:calc(100% - 28px)!important;
    margin:26px auto 42px!important;
  }
  .zcm-course-groups > .zcm-course-group{
    margin-bottom:36px!important;
    padding-bottom:30px!important;
  }
  .zcm-course-groups .zcm-course-group-head{
    align-items:flex-start!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    margin-bottom:16px!important;
  }
  .zcm-course-groups .zcm-course-group-title{
    font-size:21px!important;
  }
}

/* =========================================================
   v32 — MULTI-PALETTE ACADEMY COLLECTIONS
   Site-specific visual layer only.
   Course Manager remains generic.
========================================================= */

/* ---------------------------------------------------------
   Shared group palette variables
--------------------------------------------------------- */
.zcm-course-group,
.zcm-quiz-group{
  --grp-a:#002CD0;
  --grp-b:#28C7FF;
  --grp-soft:#eef6ff;
  --grp-soft2:#f8fbff;
  --grp-ink:#173a8d;
  --grp-border:rgba(0,44,208,.18);
}

/* 1 — cobalt / cyan */
.zcm-course-group:nth-child(6n+1),
.zcm-quiz-group:nth-child(6n+1){
  --grp-a:#002CD0;
  --grp-b:#28C7FF;
  --grp-soft:#edf5ff;
  --grp-soft2:#f7fcff;
  --grp-ink:#173a8d;
  --grp-border:rgba(0,44,208,.18);
}

/* 2 — violet / magenta */
.zcm-course-group:nth-child(6n+2),
.zcm-quiz-group:nth-child(6n+2){
  --grp-a:#7A35EC;
  --grp-b:#E94AC7;
  --grp-soft:#f6efff;
  --grp-soft2:#fff6fc;
  --grp-ink:#6530b8;
  --grp-border:rgba(122,53,236,.18);
}

/* 3 — teal / emerald */
.zcm-course-group:nth-child(6n+3),
.zcm-quiz-group:nth-child(6n+3){
  --grp-a:#008C83;
  --grp-b:#39C98F;
  --grp-soft:#ecfbf7;
  --grp-soft2:#f7fffb;
  --grp-ink:#08776f;
  --grp-border:rgba(0,140,131,.18);
}

/* 4 — amber / coral */
.zcm-course-group:nth-child(6n+4),
.zcm-quiz-group:nth-child(6n+4){
  --grp-a:#F28C18;
  --grp-b:#FF5E6C;
  --grp-soft:#fff6e8;
  --grp-soft2:#fff8f8;
  --grp-ink:#b6670c;
  --grp-border:rgba(242,140,24,.20);
}

/* 5 — indigo / rose */
.zcm-course-group:nth-child(6n+5),
.zcm-quiz-group:nth-child(6n+5){
  --grp-a:#4A4FC6;
  --grp-b:#FF3D7F;
  --grp-soft:#f1f2ff;
  --grp-soft2:#fff5f9;
  --grp-ink:#4448a6;
  --grp-border:rgba(74,79,198,.18);
}

/* 6 — green / lime */
.zcm-course-group:nth-child(6n),
.zcm-quiz-group:nth-child(6n){
  --grp-a:#3E8E41;
  --grp-b:#A7C943;
  --grp-soft:#f1faec;
  --grp-soft2:#fbfff5;
  --grp-ink:#39743c;
  --grp-border:rgba(62,142,65,.19);
}

/* ---------------------------------------------------------
   Group container: subtle tint, not a heavy box
--------------------------------------------------------- */
.zcm-course-groups > .zcm-course-group,
.zcm-quiz-groups > .zcm-quiz-group{
  border-radius:22px!important;
  background:
    radial-gradient(circle at 96% 2%,color-mix(in srgb,var(--grp-b) 10%,transparent),transparent 32%),
    linear-gradient(180deg,var(--grp-soft2) 0%,rgba(255,255,255,.62) 26%,rgba(255,255,255,0) 72%)!important;
  padding:22px 22px 48px!important;
}

/* heading accent follows the group palette */
.zcm-course-groups .zcm-course-group-head::before,
.zcm-quiz-groups .zcm-quiz-group-head::before{
  background:linear-gradient(180deg,var(--grp-a),var(--grp-b))!important;
  box-shadow:0 0 14px color-mix(in srgb,var(--grp-a) 18%,transparent)!important;
}

.zcm-course-groups .zcm-course-group-title,
.zcm-quiz-groups .zcm-quiz-group-title{
  color:var(--grp-ink)!important;
}

.zcm-course-groups .zcm-course-group-count,
.zcm-quiz-groups .zcm-quiz-group-count{
  background:linear-gradient(105deg,var(--grp-soft),#fff)!important;
  border-color:var(--grp-border)!important;
  color:var(--grp-ink)!important;
}

/* divider follows each collection instead of repeating one global gradient */
.zcm-course-groups > .zcm-course-group:not(:last-child)::after,
.zcm-quiz-groups > .zcm-quiz-group:not(:last-child)::after{
  left:22px!important;
  right:22px!important;
  background:linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb,var(--grp-a) 62%,transparent) 18%,
    color-mix(in srgb,var(--grp-b) 68%,transparent) 70%,
    transparent 100%
  )!important;
}

/* ---------------------------------------------------------
   Cards inherit the palette of their parent group
--------------------------------------------------------- */
.zcm-course-group .zcm-course-archive-card::before,
.zcm-quiz-group .zcm-quiz-archive-card::before{
  background:linear-gradient(90deg,var(--grp-a),var(--grp-b))!important;
}

.zcm-course-group .zcm-course-archive-label,
.zcm-quiz-group .zcm-quiz-archive-label{
  background:linear-gradient(105deg,var(--grp-soft),#fff)!important;
  border-color:var(--grp-border)!important;
  color:var(--grp-ink)!important;
}

.zcm-course-group .zcm-course-archive-open,
.zcm-quiz-group .zcm-quiz-archive-open{
  color:var(--grp-a)!important;
}

.zcm-course-group .zcm-course-archive-card:hover,
.zcm-quiz-group .zcm-quiz-archive-card:hover{
  border-color:var(--grp-border)!important;
  box-shadow:
    0 16px 38px rgba(16,27,77,.11),
    0 0 0 1px color-mix(in srgb,var(--grp-a) 8%,transparent)!important;
}

/* course lesson-count badge */
.zcm-course-group .zcm-course-archive-meta span{
  background:var(--grp-soft)!important;
  color:var(--grp-ink)!important;
}

/* quiz course/lesson metadata badges */
.zcm-quiz-group .zcm-quiz-archive-course,
.zcm-quiz-group .zcm-quiz-archive-lesson{
  background:var(--grp-soft)!important;
  color:var(--grp-ink)!important;
}

/* image placeholders also vary */
.zcm-course-group .zcm-course-archive-image,
.zcm-quiz-group .zcm-quiz-archive-image{
  background:
    radial-gradient(circle at 82% 12%,color-mix(in srgb,var(--grp-b) 17%,transparent),transparent 38%),
    linear-gradient(135deg,var(--grp-soft),#fff)!important;
}

/* ---------------------------------------------------------
   Non-grouped / subject-filtered archive pages
   use a clean blue-cyan default so single-category pages
   still look intentional without hard-coding taxonomy names.
--------------------------------------------------------- */
.zcm-course-archive:not(.zcm-course-group .zcm-course-archive) .zcm-course-archive-card::before,
.zcm-quiz-archive:not(.zcm-quiz-group .zcm-quiz-archive) .zcm-quiz-archive-card::before{
  background:linear-gradient(90deg,#002CD0,#28C7FF)!important;
}

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media(max-width:979px){
  .zcm-course-groups > .zcm-course-group,
  .zcm-quiz-groups > .zcm-quiz-group{
    padding:18px 18px 38px!important;
    border-radius:18px!important;
  }

  .zcm-course-groups > .zcm-course-group:not(:last-child)::after,
  .zcm-quiz-groups > .zcm-quiz-group:not(:last-child)::after{
    left:18px!important;
    right:18px!important;
  }
}

@media(max-width:766px){
  .zcm-course-groups > .zcm-course-group,
  .zcm-quiz-groups > .zcm-quiz-group{
    padding:15px 14px 30px!important;
    border-radius:16px!important;
  }

  .zcm-course-groups > .zcm-course-group:not(:last-child)::after,
  .zcm-quiz-groups > .zcm-quiz-group:not(:last-child)::after{
    left:14px!important;
    right:14px!important;
  }
}

/* =========================================================
   v34 — EXPLORE MORE COURSES (UNASSIGNED GROUP)
========================================================= */
.zcm-course-group-unassigned{
  --grp-a:#48556A!important;
  --grp-b:#8B9CB7!important;
  --grp-soft:#F1F4F8!important;
  --grp-soft2:#FBFCFE!important;
  --grp-ink:#354257!important;
  --grp-border:rgba(72,85,106,.18)!important;
}
.zcm-course-group-unassigned .zcm-course-group-title::after{
  content:" · uncategorized";
  font-size:.44em;
  font-weight:700;
  letter-spacing:.04em;
  color:#7C8799;
  vertical-align:middle;
}
@media(max-width:766px){
  .zcm-course-group-unassigned .zcm-course-group-title::after{display:none}
}
