/* ═══════════════════════════════════════
   UNIVERSITY NOTES — COURSES HUB (/courses)
   Sab kuch .courses-body / .courses-hub ke andar scoped:
   kisi aur page par asar nahi padta.
   Mobile: 2 cards per row | Desktop: 3 cards per row
═══════════════════════════════════════ */
.courses-hub { line-height: 1.6; max-width: 1100px; margin: 0 auto; padding: 14px 12px 40px; }
.courses-hub a { text-decoration: none; }

.courses-hub .crumbs { font-size: .85rem; color: #5a6b8c; margin-bottom: 10px; }
.courses-hub .crumbs a { color: #0d47a1; }
.courses-hub .crumbs span { margin: 0 3px; }

/* ── Hero ── */
.courses-hub .hub-hero { background: linear-gradient(135deg, #0b6ef6 0%, #0d47a1 100%); color: #fff; border-radius: 12px; padding: 20px 18px 18px; }
.courses-hub .hub-hero h1 { color: #fff; margin: 0 0 4px; font-size: clamp(1.35rem, 3.6vw, 1.8rem); line-height: 1.2; }
.courses-hub .hub-hero p { margin: 0 0 12px; max-width: 58ch; font-size: .95rem; opacity: .95; }
.courses-hub .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.courses-hub .chips a { background: rgba(255,255,255,.14); color: #fff; padding: 4px 12px; border-radius: 99px; font-weight: 600; font-size: .82rem; border: 1px solid rgba(255,255,255,.35); transition: background .15s, color .15s; }
.courses-hub .chips a:hover, .courses-hub .chips a:focus-visible { background: #fff; color: #0d47a1; }

/* ── Cards: mobile 2 / desktop 3 ── */
.courses-hub .crs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.courses-hub .crs-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #dbe4f3; border-radius: 10px; scroll-margin-top: 76px; transition: border-color .15s, box-shadow .15s; }
.courses-hub .crs-card[hidden] { display: none !important; }
.courses-hub .crs-card:hover { border-color: #8db4f2; box-shadow: 0 4px 14px rgba(13,71,161,.10); }
.courses-hub .card-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 11px 12px 0; }
.courses-hub .crs-card h2 { margin: 0; color: #0d47a1; font-size: 1.1rem; line-height: 1.2; }
.courses-hub .crs-card .cnt { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: #e8f4fd; color: #0d47a1; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }
.courses-hub .crs-card .full { margin: 2px 12px 6px; color: #5a6b8c; font-size: .74rem; line-height: 1.3; }
.courses-hub .crs-card ul { list-style: none; margin: 0; padding: 4px 6px 8px; flex: 1; border-top: 1px solid #eef2fa; }
.courses-hub .crs-card li a { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 7px; color: #1a2a4a; font-size: .82rem; line-height: 1.25; }
.courses-hub .crs-card li a i { flex: none; width: 15px; text-align: center; color: #0b6ef6; font-size: .8rem; }
.courses-hub .crs-card li a span { flex: 1; min-width: 0; }
.courses-hub .crs-card li a b { display: none; color: #90a4c8; font-weight: 400; }
.courses-hub .crs-card li a:hover, .courses-hub .crs-card li a:focus-visible { background: #e8f4fd; color: #0d47a1; }

.courses-hub .crs-empty { margin-top: 16px; background: #fff8e1; border-left: 5px solid #f9a825; border-radius: 8px; padding: 12px 16px; font-size: .92rem; }
.courses-hub .crs-empty[hidden] { display: none !important; }
.courses-hub .crs-empty a, .courses-hub .hub-help a { color: #0d47a1; font-weight: 700; text-decoration: underline; }
.courses-hub .hub-help { margin-top: 22px; background: #fff; border: 1px solid #dbe4f3; border-left: 5px solid #1565c0; border-radius: 8px; padding: 12px 16px; font-size: .92rem; }
.courses-hub .hub-help h2 { margin: 0 0 2px; color: #0d47a1; font-size: 1rem; }
.courses-hub .hub-help p { margin: 0; }

.courses-hub a:focus-visible, .courses-hub input:focus-visible { outline: 2px solid #0b6ef6; outline-offset: 2px; }

@media (min-width: 768px) {
  .courses-hub { padding: 20px 16px 56px; }
  .courses-hub .hub-hero { padding: 24px 26px 22px; }
  .courses-hub .crs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
  .courses-hub .card-head { padding: 14px 16px 0; }
  .courses-hub .crs-card h2 { font-size: 1.2rem; }
  .courses-hub .crs-card .full { margin: 2px 16px 8px; font-size: .8rem; }
  .courses-hub .crs-card ul { padding: 6px 8px 10px; }
  .courses-hub .crs-card li a { padding: 8px 8px; font-size: .88rem; }
  .courses-hub .crs-card li a b { display: block; }
}
@media (max-width: 359px) { .courses-hub .crs-card li a { font-size: .76rem; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .courses-hub * { transition: none !important; } }

/* ── Clickable option look (users ko pata chale ki tap karna hai) ── */
.courses-hub .grid-hint { display: flex; align-items: center; gap: 6px; margin: 14px 2px 0; font-size: .85rem; font-weight: 600; color: #0d47a1; }
.courses-hub .grid-hint svg { flex: none; }
.courses-hub .crs-grid { margin-top: 8px; }
.courses-hub .crs-card ul { padding: 8px 8px 10px; }
.courses-hub .crs-card li { margin: 0 0 5px; }
.courses-hub .crs-card li:last-child { margin-bottom: 0; }
.courses-hub .crs-card li a { background: #f2f7ff; border: 1px solid #d3e2fb; color: #0d47a1; font-weight: 600; padding: 8px 9px; }
.courses-hub .crs-card li a b { display: block; color: #0b6ef6; font-size: 1.1rem; line-height: 1; }
.courses-hub .crs-card li a:hover, .courses-hub .crs-card li a:focus-visible, .courses-hub .crs-card li a:active { background: #0b6ef6; border-color: #0b6ef6; color: #fff; }
.courses-hub .crs-card li a:hover i, .courses-hub .crs-card li a:hover b, .courses-hub .crs-card li a:focus-visible i, .courses-hub .crs-card li a:focus-visible b, .courses-hub .crs-card li a:active i, .courses-hub .crs-card li a:active b { color: #fff; }
@media (min-width: 768px) { .courses-hub .grid-hint { margin-top: 18px; font-size: .9rem; } .courses-hub .crs-card ul { padding: 10px 10px 12px; } .courses-hub .crs-card li a { padding: 9px 10px; } }
@media (max-width: 359px) { .courses-hub .crs-card li a { font-size: .74rem; padding: 7px 7px; } }
@media (max-width: 400px) { .courses-hub .crs-card li a { font-size: .74rem; gap: 5px; padding: 7px 6px; letter-spacing: -.1px; } .courses-hub .crs-card li a i { width: 13px; font-size: .74rem; } .courses-hub .crs-card li a b { font-size: 1rem; } }
/* ── Option par halka shade ── */
.courses-hub .crs-card li a { box-shadow: 0 1px 2px rgba(13,71,161,.12), 0 2px 6px rgba(13,71,161,.08); transition: background .15s, color .15s, box-shadow .15s, transform .15s; }
.courses-hub .crs-card li a:hover, .courses-hub .crs-card li a:focus-visible { box-shadow: 0 3px 10px rgba(11,110,246,.35); transform: translateY(-1px); }
.courses-hub .crs-card li a:active { box-shadow: 0 1px 3px rgba(11,110,246,.3); transform: none; }
@media (prefers-reduced-motion: reduce) { .courses-hub .crs-card li a { transform: none !important; } }

/* ── Hero: navbar ke blue se alag (light) ── */
.courses-hub .hub-hero { background: #eaf2ff; color: #1a2a4a; border: 1px solid #cfe0fb; }
.courses-hub .hub-hero h1 { color: #0d47a1; }
.courses-hub .hub-hero p { color: #44557a; opacity: 1; }

/* hero ke andar left-aligned (baaki pages par ye center me hota hai) */
.courses-hub .search-container-3 { margin: 4px 0 0; }

/* ── In-grid ads: index.css ka .grid-ad-wrapper use hota hai, yahan sirf grid span + label ── */
.courses-hub .ad-slot small { display: block; margin-bottom: 4px; font-size: .7rem; color: #7a88a6; }

/* index.css ke global `p` (margin/size/line-height) se bachav */
.courses-hub .hub-hero p { line-height: 1.5; }
.courses-hub .grid-hint { line-height: 1.4; }
.courses-hub .crs-empty { margin: 16px 0 0; line-height: 1.5; }
.courses-hub .hub-help p { margin: 0; font-size: inherit; line-height: 1.6; }

/* index.css ka global `a { underline }` rule (high specificity) option buttons par nahi chahiye */
.courses-hub .crs-card li a { text-decoration: none !important; }

/* no-JS fallback list */
.courses-hub .crs-plain { margin: 16px 0 0; padding-left: 20px; }
.courses-hub .crs-plain a { color: #0d47a1; font-weight: 600; text-decoration: underline; }

/* ── Compact + centered hero (search card) ── */
.courses-hub .hub-hero { padding: 14px 16px 16px; text-align: center; }
.courses-hub .hub-hero h1 { margin: 0 0 2px; font-size: clamp(1.25rem, 3.2vw, 1.55rem); }
.courses-hub .hub-hero p { max-width: none; margin: 0 auto 8px; font-size: .9rem; line-height: 1.4; }
.courses-hub .search-container-3 { max-width: 520px; margin: 0 auto; text-align: left; }
.courses-hub .search-label-3 { text-align: center; margin: 0 0 5px; font-size: .78rem; }
.courses-hub .search-input-3 { padding: 6px 10px; font-size: .9rem; line-height: 1.3; }
.courses-hub .search-box-wrapper { border-width: 1.5px; }
.courses-hub .search-box-wrapper::after { inset: 2px; }
.courses-hub .grid-hint { margin-top: 12px; }
@media (min-width: 768px) {
  .courses-hub .hub-hero { padding: 16px 24px 18px; }
  .courses-hub .grid-hint { margin-top: 14px; }
}

/* ── Hero v3: aur compact + text balanced wrap (koi akela/orphan word nahi) ── */
.courses-hub .hub-hero { padding: 10px 12px 12px; }
.courses-hub .hub-hero h1 { font-size: clamp(1.15rem, 3vw, 1.4rem); line-height: 1.2; margin: 0 0 1px; text-wrap: balance; }
.courses-hub .hub-hero p { font-size: .85rem; line-height: 1.35; margin: 0 auto 6px; max-width: 46ch; text-wrap: balance; }
.courses-hub .search-label-3 { font-size: .74rem; line-height: 1.3; margin: 0 0 4px; text-wrap: balance; }
.courses-hub .search-input-3 { padding: 5px 10px; }
.courses-hub .grid-hint { margin-top: 10px; font-size: .82rem; }
@media (min-width: 768px) {
  .courses-hub .hub-hero { padding: 12px 20px 14px; }
  .courses-hub .hub-hero p { max-width: none; font-size: .9rem; }
  .courses-hub .search-label-3 { font-size: .78rem; }
}
.courses-hub .grid-hint { text-wrap: balance; }

/* Multiplex ad: footer se theek upar, cards se door (courses-hub ke bahar) */
.hub-mplex { max-width: 1100px; margin: 0 auto; padding: 0 12px 28px; clear: both; }
.hub-mplex small { display: block; margin-bottom: 4px; font-size: .7rem; color: #7a88a6; }
@media (min-width: 768px) { .hub-mplex { padding: 0 16px 36px; } }

/* ── PC only: ek row ke cards same height + thode compact buttons (mobile unchanged) ── */
@media (min-width: 768px) {
  .courses-hub .crs-grid { align-items: stretch; }  /* ek row ke sab cards same height */
  .courses-hub .crs-card ul { padding: 8px 10px 10px; flex: 1; }
  .courses-hub .crs-card li { margin: 0 0 4px; }
  .courses-hub .crs-card li:last-child { margin-bottom: 0; }
  .courses-hub .crs-card li a { padding: 7px 10px; }
  .courses-hub .card-head { padding: 12px 16px 0; }
}

/* ── About + FAQ (SEO/AI ke liye visible text) ── */
.courses-hub .hub-about, .courses-hub .hub-faq { margin-top: 22px; background: #fff; border: 1px solid #dbe4f3; border-radius: 10px; padding: 14px 18px; font-size: .92rem; line-height: 1.6; color: #1a2a4a; }
.courses-hub .hub-about h2, .courses-hub .hub-faq h2 { margin: 0 0 6px; color: #0d47a1; font-size: 1.05rem; line-height: 1.3; }
.courses-hub .hub-about p { margin: 0 0 8px; font-size: inherit; line-height: inherit; }
.courses-hub .hub-about .hub-upd { margin: 4px 0 0; font-size: .8rem; color: #5a6b8c; }
.courses-hub .hub-faq h3 { margin: 12px 0 2px; font-size: .95rem; line-height: 1.35; color: #0d47a1; }
.courses-hub .hub-faq p { margin: 0; font-size: inherit; line-height: inherit; }
.courses-hub .hub-faq h3:first-of-type { margin-top: 0; }
