/* Courses hub (Courses.aspx, URLs /courses, /courses-after-12th, /courses-after-graduation, /{category}-courses).
   Uses CSS/home.css (hm-) and CSS/about.css (ab-crumb, ab-local, ab-towns); this file adds the cr- parts.
   After editing, change ?v= in Courses.aspx so visitors get the new file. */

.cr .sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.cr-404 { background:#fff8eb; border-bottom:1px solid #f3d39a; padding:12px 0; font-size:14.5px; color:var(--ink); }
.cr-404 i { color:var(--gold2); margin-right:6px; }
.cr .hm-hero h1 { font-size:38px; }
.cr .hm-hero .hm-lead { margin-bottom:18px; }
.cr-picked { background:#fff8eb; border:1px solid #f3d39a; border-radius:10px; padding:8px 12px; font-size:13.5px; font-weight:600; color:var(--navy); margin:0 0 10px; }
.cr-picked i { color:var(--gold2); margin-right:4px; }
.cr-picked[hidden] { display:none; }

/* ---------- HERO SEARCH ---------- */
.cr-search { display:flex; gap:8px; background:#fff; border-radius:14px; padding:6px; max-width:560px; box-shadow:0 14px 30px rgba(0,10,40,.25); margin-bottom:20px; }
.cr-search input { flex:1; min-width:0; height:46px; border:0; border-radius:10px; padding:0 14px; font-size:15px; font-family:inherit; color:var(--ink); background:#fff; }
.cr-search input:focus { outline:2px solid rgba(245,166,35,.6); }
.cr-search .hm-btn { height:46px; padding:0 18px; }
.cr-stats { grid-template-columns:repeat(4,1fr); }

/* ---------- LEVEL TABS + CATEGORY CHIPS ---------- */
.cr-bar { background:#fff; border-bottom:1px solid var(--line); padding:18px 0 14px; scroll-margin-top:170px; }
.cr-levels { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.cr-levels a { display:inline-flex; align-items:center; gap:7px; height:42px; padding:0 16px; border-radius:11px; font-weight:800; font-size:14.5px;
    color:var(--navy); background:var(--soft); border:1.5px solid var(--line); }
.cr-levels a i { color:var(--gold2); }
.cr-levels a:hover { border-color:var(--navy); }
.cr-levels a.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.cr-levels a.on i { color:var(--gold); }
.cr-chips { display:flex; gap:7px; flex-wrap:wrap; }
.cr-chips a { font-size:13px; font-weight:600; color:var(--navy); background:#fff; border:1px solid var(--line); padding:6px 11px; border-radius:999px; }
.cr-chips a:hover { border-color:var(--gold); background:#fff8eb; }
.cr-chips a i { color:var(--gold2); margin-right:5px; }
.cr-chips a span { display:inline-block; min-width:20px; text-align:center; background:var(--soft); border-radius:999px; font-size:11.5px; padding:1px 6px; margin-left:2px; color:var(--muted); }
.cr-chips a.on { background:var(--navy); border-color:var(--navy); color:#fff; }
.cr-chips a.on i { color:var(--gold); }
.cr-chips a.on span { background:var(--gold); color:var(--navy); }

/* ---------- SECTIONS ---------- */
.cr-jump { display:flex; gap:6px; flex-wrap:wrap; margin:-8px 0 24px; }
.cr-jump a { font-size:12.5px; font-weight:700; color:var(--muted); padding:4px 10px; border-radius:8px; background:#fff; border:1px dashed var(--line); }
.cr-jump a:hover { color:var(--navy); border-color:var(--navy); }
.cr-jump a span { color:var(--gold2); }
.cr-cat { margin-bottom:30px; scroll-margin-top:170px; }
.cr-cat-head { display:flex; align-items:flex-start; gap:14px; margin-bottom:12px; }
.cr-cat-head > div { flex:1; min-width:0; }
.cr-ico { width:44px; height:44px; flex:0 0 44px; border-radius:12px; background:var(--navy); display:flex; align-items:center; justify-content:center; }
.cr-ico i { color:var(--gold); font-size:19px; }
.cr-cat-head h3 { font-size:20px; font-weight:800; margin:2px 0 4px; }
.cr-scope { font-size:14px; line-height:1.6; color:var(--muted); margin:0; }
.cr-scope b { color:var(--ink); }
.cr-cat-link { font-size:13.5px; font-weight:700; color:var(--navy); white-space:nowrap; padding-top:6px; }
.cr-cat-link:hover { color:var(--gold2); }
.cr-more { margin-top:10px; font-size:14px; }
.cr-all { margin:8px 0 0; text-align:center; }

/* ---------- COURSE TABLE ---------- */
.cr-table-wrap { background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.cr-table { width:100%; border-collapse:collapse; font-size:14px; }
.cr-table th, .cr-table td { padding:12px 14px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; line-height:1.55; }
.cr-table thead th { background:var(--navy); color:#fff; font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.cr-table thead th:first-child { width:26%; }
.cr-table tbody th { font-weight:700; }
.cr-table tbody th a:first-child { color:var(--navy); font-size:15px; font-weight:800; }
.cr-table tbody th a:first-child:hover { color:var(--gold2); text-decoration:underline; }
.cr-table tbody tr:last-child th, .cr-table tbody tr:last-child td { border-bottom:0; }
.cr-table tbody tr:hover { background:#fffaf0; }
.cr-table td { color:var(--ink); }
.cr-table td small { display:block; margin-top:5px; font-size:12.5px; color:var(--muted); }
.cr-table td small b { color:var(--navy); }
.cr-table td a { color:var(--navy); font-weight:600; text-decoration:underline; }
.cr-table td[data-l="Duration"] { white-space:nowrap; font-weight:700; color:var(--navy); }
.cr-ask { display:inline-flex; align-items:center; gap:4px; margin-top:6px; font-size:12px; font-weight:700; color:#a05a00; background:#fff8eb;
    border:1px solid #f3d39a; border-radius:999px; padding:2px 9px; width:max-content; }
.cr-table tbody th .cr-ask { display:flex; }
.cr-ask:hover { border-color:var(--gold2); color:var(--navy); }
/* Syllabus column (16 Nov 2026): Download button only when a PDF is uploaded in Admin > Manage Courses */
.cr-has-syl thead th:first-child { width:24%; }
.cr-table td[data-l="Syllabus"] { white-space:nowrap; width:1%; }
.cr-table td a.cr-pdf { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:8px; background:var(--navy); color:#fff;
  font-size:12.5px; font-weight:700; text-decoration:none; line-height:1.3; }
.cr-table td a.cr-pdf i { color:#ffb84d; font-size:14px; }
.cr-table td a.cr-pdf:hover, .cr-table td a.cr-pdf:focus { background:var(--gold2); color:#fff; }
.cr-table td a.cr-pdf:hover i, .cr-table td a.cr-pdf:focus i { color:#fff; }
.cr-nosyl { color:#b8c0cc; text-align:center !important; }

/* ---------- OTHER LEVELS + STREAMS ---------- */
.cr-other { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.cr-box, .cr-stream { background:#fff; border:1px solid var(--line); border-radius:18px; padding:22px; }
.cr-box h2 { font-size:21px; font-weight:800; margin:0 0 8px; }
.cr-box p, .cr-stream p { font-size:14.5px; line-height:1.65; color:var(--muted); margin:0 0 12px; }
.cr-box p a { color:var(--navy); font-weight:700; text-decoration:underline; }
.cr-links { display:flex; flex-wrap:wrap; gap:6px; }
.cr-links a { font-size:13px; font-weight:600; padding:5px 11px; border-radius:999px; background:var(--soft); border:1px solid var(--line); color:var(--navy); }
.cr-links a:hover { border-color:var(--gold2); background:#fff8eb; }
.cr-links a span { color:var(--muted); font-weight:500; margin-left:3px; }
.cr-streams { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.cr-stream h3 { font-size:18px; font-weight:800; margin:0 0 8px; }
.cr-stream h3 i { color:var(--gold2); margin-right:4px; }
.cr-empty { text-align:center; background:#fff; border:1px dashed var(--line); border-radius:16px; padding:36px 18px; }
.cr-empty i { font-size:34px; color:var(--line); }
.cr-empty h3 { font-size:19px; margin:10px 0 6px; }
.cr-empty p { color:var(--muted); margin:0 0 14px; }
.cr .hm-step p a { color:var(--navy); font-weight:700; text-decoration:underline; }

@media (max-width:991px) {
  .cr .hm-hero h1 { font-size:31px; }
  .cr-other, .cr-streams { grid-template-columns:1fr; }
}
@media (max-width:767px) {
  .cr .hm-hero h1 { font-size:27px; }
  .cr-stats { grid-template-columns:repeat(2,1fr); }
  .cr-search .hm-btn { padding:0 14px; }
  .cr-jump { flex-wrap:nowrap; overflow-x:auto; padding-bottom:6px; margin-bottom:18px; -webkit-overflow-scrolling:touch; }
  .cr-jump a { white-space:nowrap; }
  .cr-cat-head { display:grid; grid-template-columns:44px 1fr; gap:6px 14px; }
  .cr-cat-link { grid-column:2; padding-top:0; white-space:normal; }
  /* table becomes one card per course */
  .cr-table thead { display:none; }
  .cr-table, .cr-table tbody, .cr-table tr, .cr-table th, .cr-table td { display:block; width:100%; }
  .cr-table tr { border-bottom:1px solid var(--line); padding:12px 14px; }
  .cr-table tbody tr:last-child { border-bottom:0; }
  .cr-table th, .cr-table td { border:0; padding:3px 0; }
  .cr-table td::before { content:attr(data-l); display:block; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--gold2); }
  .cr-table td[data-l="Duration"] { white-space:normal; }
  .cr-table tbody th { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; }
  .cr-table tbody th .cr-ask { margin-top:0; }
  .cr-table td[data-l="Syllabus"] { width:100%; white-space:normal; padding-top:6px; }
  .cr-table td[data-l="Syllabus"]::before { display:none; }
  .cr-table td.cr-nosyl { display:none; }
}

/* 17 Nov 2026 SEO: "Last updated" line in the hero + category intro box (Courses.aspx.cs, App_Code/CourseCategoryIntro.cs) */
.cr-updated { margin:-8px 0 16px; font-size:13.5px; color:rgba(255,255,255,.82); }
.cr-updated i { color:var(--gold); margin-right:5px; }
.cr-updated time { font-weight:700; color:#fff; }
.cr-intro-sec { padding-bottom:0; }
.cr-intro { background:#fff; border:1px solid var(--line); border-left:4px solid var(--gold); border-radius:14px; padding:22px 24px; }
.cr-intro h2 { font-size:24px; margin:0 0 10px; }
.cr-intro p { font-size:16px; line-height:1.75; color:var(--ink); margin:0; }
@media (max-width:600px) {
  .cr-intro { padding:18px 16px; }
  .cr-intro h2 { font-size:20px; }
  .cr-intro p { font-size:15px; }
}
