/* AISEE v2 — course hubs and course pages (loaded after main.css on /engineering-courses/, /medical-courses/, /other-courses/) */

/* ---------- hero ---------- */
.chero { padding-bottom: 30px; }
.chero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 44px; align-items: center; }
.chero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; margin-bottom: 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink); font-size: 13px; font-weight: 600; }
.chero__eyebrow i { color: var(--blue); }
.chero h1 small { font-size: .5em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.chero__tag { margin: -6px 0 12px; font-size: 17px; font-weight: 600; color: var(--blue); }
.chero .phero__lead { margin-bottom: 20px; }
.chero__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chero__chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chero__chips i { color: var(--blue); font-size: 12px; }
.chero__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chero__facts li { display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.chero__facts i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); margin-bottom: 6px; }
.chero__facts b { color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.chero__facts small { color: var(--muted); font-size: 12.5px; }
.chero__media { position: relative; margin: 0; isolation: isolate; }
.chero__media::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 22px; background: linear-gradient(135deg, rgba(48, 94, 255, .2), rgba(124, 92, 246, .2)); }
.chero__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); background: #fff; }
.chero__credit { position: absolute; right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: 999px; background: rgba(15, 23, 42, .55); color: rgba(255, 255, 255, .85); font-size: 10.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.chero__credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.chero__media--ph { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 18px; color: #fff; font-size: 64px;
  background: radial-gradient(circle at 20% 20%, rgba(79, 209, 255, .45), transparent 45%), radial-gradient(circle at 85% 80%, rgba(124, 92, 246, .55), transparent 50%), linear-gradient(135deg, #0a2463, #305eff); }

/* quick facts strip (course page) */
.cfacts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.cfacts li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.cfacts li:first-child { border-left: 0; }
.cfacts i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 14px; }
.cfacts small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cfacts b { display: block; color: var(--ink); font-size: 14px; line-height: 1.4; font-weight: 600; }

/* stream tabs + finder */
.ctabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.ctabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); font-weight: 600; font-size: 14px; }
.ctabs a:hover { border-color: var(--blue); color: var(--blue); }
.ctabs a.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.ctabs em { font-style: normal; font-size: 12px; opacity: .7; }
.cfind { display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 0 16px; height: 52px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); color: var(--muted); }
.cfind:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.cfind input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 15px; color: var(--ink); height: 100%; }
.cfind__none { padding: 18px; border-radius: 14px; background: #fff; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

/* ---------- hub grid ---------- */
.cgrid-wrap { padding: 34px 0 10px; background: var(--bg-soft); }
.cgroups { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 8px; }
.cgroups::-webkit-scrollbar { display: none; }
.cgroups a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; }
.cgroups a i { color: var(--blue); }
.cgroups a em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 12px; }
.cgroups a:hover { border-color: var(--blue); }
.cgroup { padding: 22px 0 8px; }
.cgroup[hidden] { display: none; }
.cgroup__t { display: flex; align-items: center; gap: 12px; font-size: 20px; margin: 0 0 14px; }
.cgroup__t span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 15px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.ccard[hidden] { display: none; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c9d7fb; }
.ccard__img { flex: none; width: 74px; height: 56px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 20px;
  background: radial-gradient(circle at 20% 20%, rgba(79, 209, 255, .45), transparent 50%), linear-gradient(135deg, #0a2463, #305eff); }
.ccard__img img { width: 100%; height: 100%; object-fit: cover; }
.ccard__txt { flex: 1; min-width: 0; }
.ccard__txt b { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; }
.ccard__txt small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.ccard__go { color: #b7c3d6; font-size: 13px; transition: transform .2s, color .2s; }
.ccard:hover .ccard__go { color: var(--blue); transform: translateX(3px); }
.chub-more { padding-top: 34px; }
.chub__img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin: 0 0 18px; }

/* ---------- sticky section bar (course page) ---------- */
.csub { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.csub nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.csub nav::-webkit-scrollbar { display: none; }
.csub a { flex: none; padding: 14px 14px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.csub a:hover, .csub a.is-on { color: var(--blue); border-bottom-color: var(--blue); }
.pmain > .pbox { scroll-margin-top: 0; } /* the site's html scroll-padding already clears the header + this bar */

/* ---------- content blocks ---------- */
.cticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cticks li { position: relative; padding-left: 28px; line-height: 1.6; }
.cticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23305eff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pbox ul:not([class]), .pbox ol:not([class]) { padding-left: 20px; line-height: 1.7; }
.pbox ul:not([class]) li, .pbox ol:not([class]) li { margin: 4px 0; }
.ctimeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: st; }
.ctimeline > li { position: relative; padding: 16px 16px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.ctimeline > li > b { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 12.5px; }
.ctimeline ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; }
.cchips { display: flex; flex-wrap: wrap; gap: 8px; }
.cchips span { padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: #23408f; font-size: 13.5px; font-weight: 600; }
.cchips--soft span { background: var(--bg-soft); color: var(--body); border: 1px solid var(--line); font-weight: 500; }
.csteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.csteps li { position: relative; padding: 2px 0 2px 44px; line-height: 1.6; counter-increment: s; }
.csteps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; }
.cexams { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cexams div { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.cexams b { display: block; color: var(--ink); }
.cexams small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.ctable { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.ctable table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ctable th { text-align: left; padding: 12px 14px; background: #f2f6ff; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ctable td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.ctable tbody tr:nth-child(even) td { background: #fafbfe; }
.cnote { display: flex; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.cnote i { margin-top: 3px; color: var(--blue); }
.croles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.croles div { padding: 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); }
.croles b { display: block; color: var(--ink); margin-bottom: 4px; }
.croles p { margin: 0; font-size: 14px; line-height: 1.6; }
.csalary { display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #f0fbf4, #fff); border: 1px solid #cfeedd; }
.csalary > i { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #12a150; color: #fff; }
.csalary p:last-child { margin-bottom: 0; }
.ccta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: 20px; color: #fff; background: var(--grad-dark); box-shadow: var(--shadow); }
.ccta b { display: block; font-size: 19px; margin-bottom: 4px; }
.ccta p { margin: 0; color: #c8d4f2; max-width: 520px; }
.ccta strong { color: #fff; }

/* sidebar */
.cside { display: grid; gap: 18px; align-self: start; position: sticky; top: calc(var(--header-h) + 70px); }
.crel h3 { font-size: 16px; margin: 0 0 10px; }
.crel a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; }
.crel a:first-of-type { border-top: 0; }
.crel a > span:nth-child(2) { flex: 1; }
.crel a > i { color: #b7c3d6; font-size: 11px; }
.crel a:hover { color: var(--blue); }
.crel__img { flex: none; width: 46px; height: 34px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0a2463, #305eff); font-size: 13px; }
.crel__img img { width: 100%; height: 100%; object-fit: cover; }
.crel .crel__all { justify-content: center; color: var(--blue); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .cfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cfacts li:nth-child(4) { border-left: 0; } .cfacts li:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 960px) {
  .chero__grid { grid-template-columns: 1fr; gap: 24px; }
  .chero--course .chero__media { order: -1; }
  .chero__media::before { display: none; }
  .cside { position: static; }
}
@media (max-width: 640px) {
  .chero__facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chero__facts li { padding: 12px; }
  .cfacts { grid-template-columns: 1fr; }
  .cfacts li { border-left: 0 !important; border-top: 1px solid var(--line); }
  .cfacts li:first-child { border-top: 0; }
  .cgrid { grid-template-columns: 1fr; }
  .ccta { padding: 20px; }
  .ccta .btn { width: 100%; justify-content: center; }
  .ctable table { font-size: 13.5px; }
}

/* ---------- course tiles v2: image on top, name below (long names no longer squeeze a tiny thumbnail) ---------- */
.cgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.ccard { position: relative; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 18px; }
.ccard__img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; font-size: 34px; }
.ccard__img img { transition: transform .5s var(--ease); filter: saturate(1.05); }
.ccard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 15, 44, 0) 45%, rgba(5, 15, 44, .45) 100%); pointer-events: none; }
.ccard:hover .ccard__img img { transform: scale(1.06); }
.ccard__txt { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.ccard__txt b { font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ccard__txt small { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); }
.ccard__go { position: absolute; right: 12px; top: 12px; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--blue); box-shadow: 0 4px 14px rgba(5, 15, 44, .2); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.ccard:hover .ccard__go, .ccard:focus-visible .ccard__go { opacity: 1; transform: none; }
@media (hover: none) { .ccard__go { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ccard { border-radius: 14px; }
  .ccard__txt { padding: 10px 12px 12px; }
  .ccard__txt b { font-size: 14px; }
  .ccard__txt small { font-size: 11.5px; }
  .ccard__go { width: 28px; height: 28px; right: 8px; top: 8px; font-size: 11px; }
}
.ccard__txt small { flex-wrap: wrap; gap: 6px; color: var(--body); }
.ccard__txt small em { font-style: normal; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: #23408f; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ccard__txt small em + em { background: var(--bg-soft); color: var(--body); border: 1px solid var(--line); }
.ccard__txt small em i { font-size: 10px; opacity: .7; }
.ccard__img > i { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: 28px; }
@media (max-width: 640px) { .ccard__txt small em { font-size: 11px; padding: 2px 7px; } }
