/* JAJ Courses page — builds on home.css (same colours, sections and cards). Mobile first; desktop from 900px. */

/* 1. Top */
.jcs-hero .jh-wrap { display: flex; flex-direction: column; gap: 12px; }
.jcs-hero .jaj-kicker { align-self: flex-start; margin-bottom: 0 !important; }
.jcs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.jcs-stats > span { display: flex; flex-direction: column; min-width: 0; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--soft); line-height: 1.3; }
.jcs-stats strong { font-size: 20px; color: var(--plum); }
.jcs-jump { display: flex; gap: 8px; overflow-x: auto; margin: 2px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.jcs-jump::-webkit-scrollbar { display: none; }
.jcs-jump a { flex: none; min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--plum); color: #fff !important; font-size: 14px; font-weight: 600; }
.jcs-jump a:last-child:not(:first-child)[href*="live"] { background: #fff; color: var(--plum) !important; border: 1.5px solid var(--plum); }

/* 2. Certificate courses */
.jcs-certs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.jcs-cert { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1.5px solid #E7CFDD; background: var(--cream); color: var(--ink) !important; }
.jcs-cert-img img { width: 100%; height: auto; display: block; } /* own shape, never cropped */
.jcs-cert-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.jcs-cert-body .jaj-chip { margin-bottom: 2px; }
.jcs-cert-body strong { font-size: 19px; line-height: 1.3; color: var(--plum); }
.jcs-go { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--pink-d); }

/* 3. All single designs */
.jcs-tools { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.jcs-search { position: relative; display: block; }
.jcs-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--soft); pointer-events: none; }
.jcs-search input { width: 100%; height: 50px; padding: 0 14px 0 44px !important; border-radius: 12px !important; border: 1.5px solid #E2CDBA !important; background: #fff !important; font: 16px 'Noto Sans', 'Noto Sans Devanagari', sans-serif; color: var(--ink); box-shadow: none !important; }
.jcs-search input:focus { outline: 2px solid var(--pink); outline-offset: 1px; border-color: transparent !important; }
.jcs-cats { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.jcs-cats::-webkit-scrollbar { display: none; }
.jcs-cat { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #E2CDBA; background: #fff; color: var(--plum); font: 600 14px/1 'Noto Sans', 'Noto Sans Devanagari', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.jcs-cat > span:last-child { font-size: 12px; font-weight: 700; color: var(--soft); }
.jcs-cat.is-on { background: var(--plum); border-color: var(--plum); color: #fff; }
.jcs-cat.is-on > span:last-child { color: var(--gold-l); }
.jcs-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.jcs-sel { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .4px; min-width: 0; }
.jcs-sel select { width: 100%; height: 44px; padding: 0 10px !important; border-radius: 10px !important; border: 1.5px solid #E2CDBA !important; background-color: #fff !important; font: 500 15px 'Noto Sans', 'Noto Sans Devanagari', sans-serif; color: var(--ink); text-transform: none; letter-spacing: 0; }
.jcs-count { margin: 14px 0 0 !important; font-size: 14px; color: var(--soft); }

.jcs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.jcs-card { display: flex; flex-direction: column; min-width: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.jcs-card[hidden] { display: none; }
.jcs-img { position: relative; display: block; aspect-ratio: 1; background: #FBF4EC; }
.jcs-img img { width: 100%; height: 100%; object-fit: contain; } /* never cropped */
.jcs-badge { position: absolute; left: 8px; top: 8px; padding: 2px 9px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; }
.jcs-badge-new { background: var(--green); }
.jcs-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 12px; }
.jcs-meta { font-size: 12px; color: var(--soft); line-height: 1.35; }
.jaj-home .jcs-title { font-size: 15px; line-height: 1.3; }
.jcs-title a { color: var(--plum) !important; font: inherit !important; }
.jaj-courses button { text-transform: none; letter-spacing: 0; }
.jcs-part { font-size: 12px; color: #8A1F55; line-height: 1.35; }
.jcs-rate { font-size: 13px; font-weight: 700; color: var(--ink); }
.jcs-rate > span:last-child { font-weight: 400; color: var(--soft); }
.jcs-price { margin-top: auto; padding-top: 4px; font-size: 17px; }
.jcs-btns { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.jcs-prev { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--pink-d); font: 700 14px/1.2 'Noto Sans', 'Noto Sans Devanagari', sans-serif; cursor: pointer; text-align: left; }
.jcs-view { width: 100%; min-height: 42px; font-size: 15px; padding: 0 10px; }
.jcs-more { margin-top: 18px; }
.jcs-empty { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 18px; border-radius: 14px; background: #fff; border: 1px dashed #D9C3B0; }
.jcs-empty[hidden] { display: none; }
.jcs-empty strong { color: var(--plum); font-size: 17px; }
.jcs-reset { align-self: flex-start; border: 0; background: none; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Free preview video in the pop-up */
.jaj-pop-card.jcs-vid-card { max-width: 900px; padding: 46px 12px 12px; }
.jcs-vid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.jcs-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jcs-vid-title { position: absolute; left: 16px; top: 14px; right: 56px; font-weight: 700; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 4. Bundles */
.jcs-bundle { width: 300px; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1.5px solid #E7CFDD; }
.jcs-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #F3E6EC; }
.jcs-collage img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #FBF4EC; }
.jcs-bundle-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.jcs-bundle-desc { font-size: 14px; color: var(--muted); }
.jcs-bundle-list summary { min-height: 36px; display: flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--pink-d); cursor: pointer; list-style: none; }
.jcs-bundle-list summary::-webkit-details-marker { display: none; }
.jcs-bundle-list summary::after { content: ' ▾'; margin-left: 4px; }
.jcs-bundle-list[open] summary::after { content: ' ▴'; }
.jcs-bundle-list ul { margin: 0 0 4px; padding-left: 18px; font-size: 14px; }
.jcs-bundle-list a { color: var(--ink) !important; text-decoration: underline; text-decoration-color: #E7B8CF; }
.jcs-bundle-price { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 20px; }
.jcs-save { font-size: 13px; font-weight: 700; color: var(--green-d); background: var(--green-l); padding: 2px 8px; border-radius: 999px; }
.jcs-addb { width: 100%; min-height: 48px; font-size: 16px; }
.jcs-addb[disabled] { opacity: .7; cursor: wait; }
.jcs-err { font-size: 14px; color: #B42318; }

/* 5. Master Course */
.jcs-master { margin-top: 16px; border-radius: 16px; }
.jcs-phases { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.jcs-phase { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); }
.jcs-phase strong { color: #fff; font-size: 16px; }
.jcs-phase > span { font-size: 14px; color: #F5E6EE; }
.jcs-bar { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; margin: 4px 0 2px; }
.jcs-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-l)); }
.jaj-home .jcs-phase-note { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(243,217,164,.18); color: var(--gold-l); font-size: 13px; font-weight: 700; }

/* 6. Coming soon */
.jcs-soon-item small { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green-d); }
.jcs-soon .jaj-mini img { object-fit: contain; background: #fff; }

/* 7. Help */
.jcs-help { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 14px 0 16px; }
.jcs-tip { display: flex; gap: 10px; padding: 14px; border-radius: 12px; background: var(--cream); }
.jcs-tip .jaj-ico { color: var(--pink); margin-top: 2px; }
.jcs-tip > span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.jcs-tip strong { color: var(--plum); }

@media (min-width: 600px) {
  .jcs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .jcs-btns { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .jcs-view { width: auto; }
}
@media (min-width: 900px) {
  .jcs-hero .jh-wrap { gap: 14px; }
  .jcs-stats > span { padding: 10px 18px; } .jcs-stats strong { font-size: 24px; }
  .jcs-jump { margin: 4px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .jcs-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .jcs-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 12px 16px; align-items: end; }
  .jcs-search { grid-column: 1; grid-row: 1; }
  .jcs-row2 { grid-column: 2; grid-row: 1; }
  .jcs-cats { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .jcs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .jcs-body { padding: 12px 14px 14px; }
  .jaj-home .jcs-title { font-size: 16px; }
  .jcs-more { align-self: center; width: auto; padding: 0 32px; display: flex; margin-left: auto; margin-right: auto; }
  .jcs-bundle { width: 340px; }
  .jcs-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .jcs-help { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* ===== Single-design course page ([jaj_course]) ===== */
.jsg-hero .jh-wrap { display: flex; flex-direction: column; gap: 12px; }
.jsg-crumbs { font-size: 13px; color: var(--soft); }
.jsg-crumbs a { color: var(--pink-d) !important; font-weight: 600; }
.jsg-top { display: flex; flex-direction: column; gap: 18px; }
.jsg-gallery { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.jsg-main { border-radius: 16px; overflow: hidden; background: #FBF4EC; aspect-ratio: 1; }
.jsg-main img { width: 100%; height: 100%; object-fit: contain; } /* never cropped */
.jsg-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.jsg-thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #FBF4EC; cursor: pointer; }
.jsg-thumb.is-on { border-color: var(--pink); }
.jsg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.jsg-prev { margin-top: 0; }
.jsg-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jsg-info .jaj-chip { margin: 0; }
.jsg-part { font-weight: 700; }
.jsg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.jsg-level { padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--plum); }
.jsg-meta .jcs-rate { font-size: 15px; color: var(--ink) !important; }
.jsg-note { font-size: 14px; color: var(--muted); padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px dashed #D9C3B0; }
.jsg-note a { color: var(--pink-d) !important; font-weight: 700; }
.jsg-disc { font-size: 15px; font-weight: 700; color: var(--green-d); background: var(--green-l); padding: 8px 12px; border-radius: 12px; }
.jsg-buy { display: flex; flex-direction: column; gap: 8px; }
.jsg-buy .jaj-btn-line { margin-top: 0; }
.jsg-soon { color: var(--muted); }
.jsg-learn { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.jsg-learn li { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--cream); font-weight: 600; color: var(--ink); }
.jsg-learn .jaj-ico { color: var(--green); margin-top: 1px; }
.jsg-desc { margin-top: 16px; color: var(--muted); line-height: 1.65; }
.jsg-desc p { margin: 0 0 12px !important; }
.jsg-desc strong { color: var(--ink); }
.jsg-bundle { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.jsg-bundle-list { display: flex; flex-direction: column; gap: 8px; }
.jsg-bundle-list .jaj-cat { background: #fff; }
.jsg-bundle-list .jaj-cat img { object-fit: contain; background: #FBF4EC; }
.jsg-bundle-buy { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px; background: #fff; border: 1.5px solid #E7CFDD; }
.jsg-small { font-size: 14px; color: var(--soft); }
.jsg-steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.jsg-steps li { counter-increment: s; position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 14px 58px; border-radius: 14px; background: #fff; border: 1px solid #EBD3DF; }
.jsg-steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.jsg-steps strong { color: var(--plum); font-size: 17px; }
.jsg-steps span { font-size: 15px; color: var(--muted); line-height: 1.45; }
.jsg-teacher { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important; margin-bottom: 22px; }
.jsg-teacher img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.jsg-teacher > span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.jsg-teacher small { font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: .4px; }
.jsg-teacher strong { font-size: 18px; color: var(--plum); }
.jsg-teacher em { font-style: normal; font-size: 14px; color: var(--muted); }
.jsg-teacher .jaj-ico { color: var(--pink-d); }
.jsg-faqs { margin-bottom: 16px; }
.jsg-more .jcs-card { width: 200px; }
.jsg-sticky-price { display: flex; flex-direction: column; justify-content: center; font-size: 20px; font-weight: 700; color: var(--plum); line-height: 1.1; }
.jsg-sticky-price s { font-size: 13px; font-weight: 400; color: var(--soft); }
@media (min-width: 900px) {
  .jsg-top { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 40px; align-items: start; }
  .jsg-buy { flex-direction: row; }
  .jsg-buy .jaj-btn { flex: 1; }
  .jsg-learn { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jsg-bundle { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .jsg-bundle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jsg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .jsg-more .jcs-card { width: 240px; }
}

/* Category and bundle pages */
.jcs-bundle-more { display: inline-block; margin: 2px 0 6px; font-size: 15px; }
.jcs-othercats { margin-top: 14px; }
.jcs-othercats a { font-size: 14px; }
.jaj-catpage .jsg-crumbs, .jaj-bundlepage .jsg-crumbs { margin-bottom: 10px; }
.jbd-collage { border-radius: 18px; overflow: hidden; }
.jbd-collage img { aspect-ratio: 1; }
.jaj-bundlepage .jaj-hero-price { margin: 12px 0 4px; font-size: 26px; font-weight: 700; }
.jaj-bundlepage .jaj-hero-price > span { font-size: 15px; font-weight: 500; color: #6B4A5E; }
.jaj-bundlepage .jaj-hero-price .jaj-price { font-size: 30px; color: var(--plum); }
.jaj-bundlepage .jaj-hero-price .jaj-was { font-size: 18px; font-weight: 500; color: #8A6B7D; }
.jaj-bundlepage .jcs-addb { width: 100%; max-width: 420px; margin-top: 12px; }
.jaj-bundlepage .jaj-sticky .jcs-addb { width: auto; max-width: none; margin: 0; flex: 1; }

/* Offers */
.jaj-offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 14px 0 4px; }
.jaj-offer { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1.5px dashed #E8B4CC; }
.jaj-offer.is-first { background: #FFF4DE; border-color: #F0C46A; }
.jaj-offer > b { flex: none; min-width: 64px; text-align: center; font-size: 20px; line-height: 1.1; color: var(--pink-d, #9C1450); font-weight: 800; }
.jaj-offer.is-first > b { color: #8A5A00; font-size: 26px; }
.jaj-offer > span { display: flex; flex-direction: column; gap: 1px; font-size: 14px; color: var(--muted, #6B4A5E); line-height: 1.4; }
.jaj-offer strong { font-size: 16px; color: var(--plum, #3B0A2D); }
.jaj-offer a { color: var(--pink-d, #9C1450) !important; font-weight: 600; }
.jsg-first { background: #FFF4DE; border: 1px solid #F0C46A; border-radius: 12px; padding: 10px 12px; color: #5A3A05; }
.jsg-first-tag { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 999px; background: #8A5A00; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.jsg-combo { margin: 6px 0 0; font-size: 14px; color: var(--muted, #6B4A5E); }
@media (min-width: 900px) { .jaj-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* 1.5.6: the "Bundles" category button shows the bundle cards in place of the single designs. */
.jcs-bundles-inline[hidden], .jcs-tools .jcs-sel[hidden] { display: none !important; }
.jcs-bundles-inline { margin-top: 8px; }
