/* Website "Courses" page (Er Dk 2026-10-21 redesign). Brand red #F1181C / maroon #5E0A14 / navy #0A3868. Prefix cx-. */
.cx { --red: #F1181C; --red-d: #B3121F; --maroon: #5E0A14; --navy: #0A3868; color: var(--ink); }
.cx .cx-wrap { max-width: 1240px; margin: 0 auto; }
.cx .btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }

/* header */
.cx-hero { padding: 54px var(--gutter) 22px; background: radial-gradient(800px 380px at 90% 0%, rgba(241, 24, 28, .07), transparent 60%), linear-gradient(180deg, #fff, #fafbfd); border-bottom: 1px solid var(--line); }
.cx-hero-top { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.cx-kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.cx-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; }
.cx-hero p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.cx-hero-cta { display: grid; gap: 8px; justify-items: start; }
.cx-hero-cta span { font-size: 13px; color: var(--ink-mute); }
.cx-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.cx-search { flex: 1 1 340px; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 6px 22px rgba(16, 35, 63, .06); }
.cx-search:focus-within { border-color: var(--navy); }
.cx-search svg { width: 19px; height: 19px; fill: none; stroke: var(--ink-mute); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.cx-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; color: var(--ink); }
.cx-levels { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-levels button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink-soft); cursor: pointer; }
.cx-levels button b { font-weight: 700; color: var(--ink-faint); margin-left: 3px; }
.cx-levels button:hover { border-color: var(--navy); color: var(--navy); }
.cx-levels button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .cx-levels button.on b { color: rgba(255, 255, 255, .7); }
.cx-hero .cx-count { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-mute); }

/* body */
.cx-body { padding: 34px var(--gutter) 70px; background: #f6f7fb; }
.cx-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.cx-side { position: sticky; top: 16px; }
.cx-side-in { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  max-height: calc(100vh - 40px); overflow: auto; }
.cx-side-in b { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin: 2px 8px 8px; }
.cx-side a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.cx-side a span { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.cx-side a:hover { background: var(--bg-tint); color: var(--ink); }
.cx-side a.on { background: #fff1f1; color: var(--red-d); font-weight: 600; } .cx-side a.on span { color: var(--red); }
.cx-side a[hidden] { display: none; }
.cx-main { display: grid; gap: 18px; min-width: 0; }
.cx-jump { display: none; }

.cx-field { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; scroll-margin-top: 16px; }
.cx-field[hidden] { display: none; }
.cx-fhead { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cx-thumb { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; width: 150px; height: 92px; border-radius: 12px; overflow: hidden; background: #eef1f6; }
.cx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-thumb img:first-child { grid-row: span 2; }
.cx-thumb img:only-child { grid-column: span 2; }
.cx-thumb.none { display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), #123f75); color: #fff; font: 700 34px 'Space Grotesk', system-ui, sans-serif; }
.cx-ftitle h2 { margin: 0; font-size: 21px; letter-spacing: -.01em; } .cx-ftitle h2 a { color: inherit; text-decoration: none; } .cx-ftitle h2 a:hover { color: var(--red); }
.cx-fmeta { margin-top: 4px; font-size: 13.5px; color: var(--ink-mute); }
.cx-link { font-weight: 600; font-size: 14px; color: var(--navy); text-decoration: none; white-space: nowrap; } .cx-link:hover { color: var(--red); }

.cx-list { display: grid; }
.cx-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) 140px 96px; gap: 16px; align-items: center; padding: 13px 20px; border-top: 1px solid #f0f2f6; }
.cx-row:first-child { border-top: 0; }
.cx-th { padding-top: 10px; padding-bottom: 10px; background: #fafbfd; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.cx-row:not(.cx-th):hover { background: #fcfcfe; }
.cx-extra { display: none; } .cx-open .cx-extra, .cx-filtering .cx-extra { display: grid; }
.cx-hide, .cx-open .cx-hide, .cx-filtering .cx-hide { display: none; }
.cx-cname { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cx-cname b { font-size: 15px; line-height: 1.35; }
.cx-lv { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: #eef1f6; color: #4a5568; }
.cx-lv.lv-foundation { background: #e7f5ea; color: #1f6b2c; }
.cx-lv.lv-special, .cx-lv.lv-certificate { background: #fff4e0; color: #8a5300; }
.cx-lv.lv-associate { background: #e8f0fc; color: #1d4e89; }
.cx-lv.lv-diploma, .cx-lv.lv-advance { background: #f2ecfd; color: #5b3aa8; }
.cx-lv.lv-professional { background: #0A3868; color: #fff; }
.cx-lv.lv-other { background: #f1f5f9; color: #334155; }
.cx-lv.lv-master, .cx-lv.lv-pg { background: linear-gradient(110deg, #F1181C, #5E0A14); color: #fff; }
.cx-sw { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cx-sw span { font-size: 12.5px; padding: 3px 9px; border-radius: 8px; background: #f3f5f9; color: var(--ink-soft); border: 1px solid #e8ecf2; }
.cx-sw span.more { background: #fff; color: var(--ink-mute); }
.cx-sw em, .cx-dur em { font-style: normal; color: var(--ink-faint); font-size: 13px; }
.cx-dur { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.cx-dur svg { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; flex: none; }
.cx-enq { justify-self: end; font-size: 13.5px; font-weight: 700; color: var(--red); text-decoration: none; padding: 7px 12px; border-radius: 9px; border: 1px solid #fbd5d5; }
.cx-enq:hover { background: var(--red); color: #fff; border-color: var(--red); }
.cx-more { display: block; width: 100%; padding: 12px; border: 0; border-top: 1px solid var(--line); background: #fafbfd; font: inherit; font-size: 14px;
  font-weight: 600; color: var(--navy); cursor: pointer; }
.cx-more:hover { background: #f1f4f9; }
.cx-filtering .cx-more { display: none; }
.cx-soon { margin: 0; padding: 16px 20px; font-size: 14px; color: var(--ink-mute); }
.cx-empty { padding: 36px; text-align: center; background: #fff; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--ink-soft); }

/* final */
.cx-final { padding: 0 var(--gutter) 70px; background: #f6f7fb; }
.cx-final .cx-wrap { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; padding: 44px 44px; border-radius: 24px; color: #fff;
  background: linear-gradient(110deg, var(--red) 0%, var(--red-d) 40%, var(--maroon) 100%); }
.cx-final h2 { margin: 0; color: #fff; font-size: clamp(24px, 2.6vw, 32px); } .cx-final p { margin: 8px 0 0; color: rgba(255, 255, 255, .86); max-width: 560px; }
.cx-final .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.cx-btn-white { background: #fff; color: #F1181C; } .cx-btn-white:hover { background: #fff3f3; color: #B3121F; }
.cx-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); } .cx-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* course field page banner (when no banner is uploaded) */
.cd-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 0; margin: 14px 0 28px; border-radius: 22px; overflow: hidden;
  color: #fff; background: linear-gradient(110deg, #F1181C 0%, #B3121F 40%, #5E0A14 100%); min-height: 260px; }
.cd-hero-txt { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.cd-hero-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.cd-hero h1 { margin: 0; color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.02em; }
.cd-hero p { margin: 0; font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.cd-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cd-hero-pics { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: rgba(0, 0, 0, .2); }
.cd-hero-pics img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.cd-hero-pics.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.cd-hero-pics.n2 { grid-template-rows: 1fr; }
.cd-hero-pics.n3 img:first-child { grid-row: span 2; }
@media (max-width: 760px) {
  .cd-hero { grid-template-columns: 1fr; }
  .cd-hero-txt { padding: 26px 22px; }
  .cd-hero-pics { height: 200px; order: -1; }
}

/* responsive */
@media (max-width: 1080px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-side { display: none; }
  .cx-jump { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
  .cx-jump select { height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); background: #fff; }
}
@media (max-width: 760px) {
  .cx-hero { padding-top: 38px; }
  .cx-fhead { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .cx-thumb { width: 96px; height: 64px; }
  .cx-facts { grid-column: 1 / -1; }
  .cx-th { display: none; }
  .cx-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .cx-cname { grid-column: 1 / -1; }
  .cx-sw { grid-column: 1 / -1; }
  .cx-dur { font-size: 13.5px; }
  .cx-final .cx-wrap { padding: 32px 22px; }
}
/* AUTO SEO (2026-10-23): the field's questions + its live online batches */
.cd-faq-i { border: 1px solid var(--line, #e4e4e7); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.cd-faq-i summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; }
.cd-faq-i summary::-webkit-details-marker { display: none; }
.cd-faq-i summary::after { content: "+"; float: right; color: #999; } .cd-faq-i[open] summary::after { content: "–"; }
.cd-faq-i p { margin: 0; padding: 0 16px 14px; color: var(--ink-mute, #555); line-height: 1.6; }
.cd-online .ox-cards { padding: 0; }

/* 2026-10-30 (Er Dk: "buttons par click karte hain to pata hi nahi chalta, sab neeche update hota hai"): the search + level
   buttons sit right above the course list, stay on top while scrolling and say what is shown. */
.cx-hero-link { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.cx-body { padding-top: 0; }
.cx-bar { position: sticky; top: 0; z-index: 30; margin: 0 calc(-1 * var(--gutter)) 26px; padding: 14px var(--gutter) 10px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(10, 30, 60, .06); }
.cx-bar .cx-tools { margin-top: 0; gap: 12px; }
.cx-bar .cx-search { height: 46px; flex: 1 1 280px; max-width: 380px; }
.cx-bar .cx-levels { flex: 1 1 520px; }
.cx-result { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; min-height: 26px; }
.cx-bar .cx-count { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.cx-bar .cx-count b { color: var(--navy); }
.cx-bar.cx-active .cx-count { color: var(--ink); }
.cx-clear { font: inherit; font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1px solid #fecaca; background: #fff5f5; color: #b42318; cursor: pointer; }
.cx-clear:hover { background: #fee2e2; }
.cx-side { top: 150px; } .cx-side-in { max-height: calc(100vh - 170px); }
@media (max-width: 1080px) { .cx-side { top: 16px; } }
@media (max-width: 760px) {
  .cx-bar { padding: 10px var(--gutter) 8px; }
  .cx-bar .cx-search { max-width: none; height: 42px; }
  .cx-bar .cx-levels { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cx-bar .cx-levels::-webkit-scrollbar { display: none; }
  .cx-bar .cx-levels button { flex: none; }
}
.cx-quick { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 24px; }
.cx-quick .cx-search { flex: 1 1 320px; max-width: 460px; }
.cx-golv { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; }
.cx-golv span { color: var(--ink-mute); font-weight: 600; }
.cx-golv a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10, 56, 104, .3); }
.cx-golv a:hover { text-decoration-color: currentColor; }
