/* ================= RojgarNest — styles ================= */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f0f3fa; --text: #141a2e; --muted: #5b6480; --line: #e2e7f2;
  --brand: #1f3f94; --brand-2: #14a8a3; --accent: #f7931e; --ok: #10a36b; --danger: #e5484d;
  --state: #0f9f6e; --central: #7c3aed; --private: #e07b00;
  --shadow: 0 1px 2px rgba(20,26,46,.05), 0 8px 24px -12px rgba(20,26,46,.18);
  --shadow-lg: 0 24px 60px -20px rgba(20,26,46,.35);
  --r: 16px; --ease: cubic-bezier(.2,.8,.2,1);
}
[data-theme="dark"] {
  --bg: #0b1020; --surface: #121a2f; --surface-2: #19223b; --text: #e8ecf8; --muted: #97a1bf; --line: #243052;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6);
  --brand: #4a78f0; --brand-2: #1cc0b9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); transition: background .4s, color .4s; -webkit-font-smoothing: antialiased; }
:lang(hi) body, body:lang(hi) { font-family: "Noto Sans Devanagari", "Plus Jakarta Sans", system-ui, sans-serif; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.4); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 12px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo-box { display: inline-flex; align-items: center; padding: 0; background: transparent; transition: transform .3s var(--ease), box-shadow .3s; }
[data-theme="dark"] .logo-box img { filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.logo:hover .logo-box { transform: translateY(-1px) scale(1.02); }
.logo-full { height: 50px; width: auto; display: block; }
.logo-mini { display: none; height: 38px; width: 38px; }
.foot-logo { width: 22px; height: 22px; vertical-align: -5px; margin-right: 6px; border-radius: 6px; }
@media (max-width: 520px) { .logo-full { display: none; } .logo-mini { display: block; } }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; height: 38px; min-width: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; transition: transform .2s var(--ease), border-color .2s; }
.icon-btn:hover { transform: translateY(-1px); border-color: var(--brand); }
.icon-btn .dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; animation: pop .4s var(--ease); }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; transition: color .25s; }
.seg button.active { color: var(--text); }
.seg .pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); transition: left .35s var(--ease), width .35s var(--ease); }

/* ---------- Latest updates marquee (right → left) ---------- */
.ticker { position: relative; z-index: 45; display: flex; align-items: stretch; height: 50px; background: linear-gradient(90deg, #141a2e, #1e2850); color: #fff; overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; font-weight: 800; font-size: 15px; letter-spacing: .3px; background: linear-gradient(135deg, #ff5e62, var(--accent)); color: #fff; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 26px; }
.ticker-label .live { background: #fff; }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; white-space: nowrap; height: 100%; align-items: center; animation: marquee var(--dur, 90s) linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { display: inline-flex; align-items: center; gap: 8px; padding: 0 26px; color: #dfe5ff; text-decoration: none; font-size: 16px; border-right: 1px solid rgba(255,255,255,.15); cursor: pointer; }
.ticker-move a:hover { color: #fff; text-decoration: underline; }
.ticker-move .tk { font-size: 12.5px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: rgba(255,255,255,.14); color: #fff; }
.ticker-move .tk.job { background: #3b5bfd; } .ticker-move .tk.admit { background: #0891b2; } .ticker-move .tk.result { background: #10a36b; } .ticker-move .tk.answerkey { background: #c026d3; } .ticker-move .tk.fair { background: #e07b00; } .ticker-move .tk.material { background: #6d28d9; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Card quick links ---------- */
.quick { display: flex; gap: 8px; }
.quick a { flex: 1; text-align: center; font-size: 13px; font-weight: 700; padding: 9px 8px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); color: var(--text); background: var(--surface-2); transition: transform .2s, border-color .2s, filter .2s; }
.quick a:hover { transform: translateY(-1px); border-color: var(--c); }
.quick a.apply { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.quick a.apply:hover { filter: brightness(1.1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 22px 0 18px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 14s ease-in-out infinite; pointer-events: none; }
.blob.b1 { width: 420px; height: 420px; background: #2f5bd0; top: -160px; left: -80px; }
.blob.b2 { width: 360px; height: 360px; background: #19b8b0; top: -60px; right: -100px; animation-delay: -4s; }
.blob.b3 { width: 300px; height: 300px; background: #f7931e; bottom: -180px; left: 40%; animation-delay: -8s; opacity: .35; }
[data-theme="dark"] .blob { opacity: .28; }
.hero .wrap { position: relative; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); box-shadow: var(--shadow); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(16,163,107,.6); animation: ping 1.8s infinite; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.1; letter-spacing: -1.5px; margin: 10px auto 16px; max-width: 900px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.hero p.sub { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0 auto 26px; }
.searchbox { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); transition: box-shadow .3s, transform .3s var(--ease); }
.searchbox:focus-within { transform: translateY(-2px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent), var(--shadow-lg); }
.searchbox input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font-size: 16px; font-family: inherit; padding: 10px 0; }
.searchbox .go { border: 0; border-radius: 12px; padding: 12px 20px; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transition: transform .2s, filter .2s; }
.searchbox .go:hover { filter: brightness(1.1); transform: scale(1.03); }
.stats { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.stat { min-width: 150px; padding: 14px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; }
.stat b { display: block; font-size: 26px; letter-spacing: -.5px; }
.stat small { color: var(--muted); font-size: 13px; }

/* ---------- Category tabs ---------- */
.tabs-wrap { position: sticky; top: 78px; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); padding: 10px 0; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: relative; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: all .25s var(--ease); }
.tab:hover { color: var(--text); transform: translateY(-1px); }
.tab.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 8px 20px -10px var(--brand); }
.tab .count { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tab.active .count { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.select { position: relative; }
.select select { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 10px 36px 10px 14px; border-radius: 12px; font-size: 14px; font-family: inherit; min-width: 190px; transition: border-color .2s; }
.select select:focus { outline: 0; border-color: var(--brand); }
.select::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 12px; }
.chip-clear { border: 0; background: none; color: var(--brand); font-weight: 600; font-size: 14px; padding: 8px; }
.result-line { color: var(--muted); font-size: 14px; margin: 6px 0 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Group headings ---------- */
.group { margin-bottom: 34px; }
.group-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.group-head .bar { width: 6px; height: 28px; border-radius: 4px; }
.group-head h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; }
.group-head .n { color: var(--muted); font-size: 13px; }
.g-state .bar { background: var(--state); } .g-central .bar { background: var(--central); } .g-private .bar { background: var(--private); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .3s, border-color .3s; }
.card.in { opacity: 1; transform: none; }
.card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c, var(--brand)); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.card.state { --c: var(--state); } .card.central { --c: var(--central); } .card.private { --c: var(--private); }
.card .org { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--c); }
.card h3 { margin: 0; font-size: 15.5px; line-height: 1.45; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-weight: 600; white-space: nowrap; }
.tag.k-job { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.tag.k-admit { background: color-mix(in srgb, #0891b2 14%, transparent); color: #0891b2; }
.tag.k-result { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag.k-answerkey { background: color-mix(in srgb, #c026d3 14%, transparent); color: #c026d3; }
.tag.k-notice { background: color-mix(in srgb, #64748b 16%, transparent); color: #64748b; }
.tag.last { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.new-badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #fff; padding: 3px 8px; border-radius: 6px; background: linear-gradient(135deg, #ff5e62, var(--accent)); animation: pulse 2s infinite; }
.card-foot { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12.5px; padding-top: 10px; border-top: 1px dashed var(--line); }
.card-foot .cta { color: var(--brand); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; transition: gap .2s; }
.card:hover .cta { gap: 9px; }

.more { display: block; margin: 22px auto 0; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 12px 26px; border-radius: 12px; font-weight: 700; transition: transform .2s, border-color .2s; }
.more:hover { transform: translateY(-2px); border-color: var(--brand); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); background: var(--surface); }
.empty .big { font-size: 44px; display: block; margin-bottom: 8px; animation: float 4s ease-in-out infinite; }

/* skeleton */
.skel { height: 170px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border: 1px solid var(--line); }

/* ---------- Portals (directory) ---------- */
.portal { cursor: default; }
.portal p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.portal .go-link { margin-top: auto; text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transition: filter .2s; }
.portal .go-link:hover { filter: brightness(1.12); }

/* ---------- Modal / drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,26,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: min(640px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(30px) scale(.96); transition: transform .4s var(--ease); }
.overlay.open .modal { transform: none; }
.modal-top { position: relative; padding: 24px 24px 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--brand)) 18%, transparent), transparent); border-bottom: 1px solid var(--line); }
.modal-top h2 { margin: 12px 0 0; font-size: 20px; line-height: 1.4; }
.close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 18px; transition: transform .2s; }
.close:hover { transform: rotate(90deg); }
.modal-body { padding: 20px 24px 24px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 18px; }
.fact { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.fact small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.fact b { font-size: 14px; }
.actions { display: grid; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .2s, filter .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn.primary { color: #fff; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px -12px var(--brand); }
.btn.primary:hover { filter: brightness(1.1); }
.warn { margin-top: 16px; font-size: 13px; color: var(--muted); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line); }

/* ---------- Alerts panel ---------- */
.panel h3 { margin: 0 0 6px; }
.panel p { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.panel label.row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .2s; }
.panel label.row:hover { border-color: var(--brand); }
.panel input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.panel .select select { width: 100%; }
.new-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.new-list li { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; cursor: pointer; }
.new-list li:hover { outline: 1px solid var(--brand); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 140%); padding: 14px 18px; border-radius: 14px; background: #141a2e; color: #fff; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: 14px; transition: transform .45s var(--ease); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast button { border: 0; border-radius: 9px; padding: 7px 12px; background: var(--accent); color: #141a2e; font-weight: 700; }

/* ---------- Footer ---------- */
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px; border-radius: 14px; border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: var(--shadow-lg); font-size: 18px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .35s var(--ease); }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Animations ---------- */
@keyframes float { 0%,100% { transform: translate(0,0) } 50% { transform: translate(20px,-24px) } }
@keyframes shine { to { background-position: 200% center } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,163,107,.6) } 80%,100% { box-shadow: 0 0 0 10px rgba(16,163,107,0) } }
@keyframes pulse { 0%,100% { transform: scale(1) } 50% { transform: scale(1.08) } }
@keyframes pop { from { transform: scale(0) } to { transform: scale(1) } }
@keyframes shimmer { to { background-position: -200% 0 } }
.fade-up { animation: fadeUp .7s var(--ease) both; }
.fade-up.d1 { animation-delay: .08s } .fade-up.d2 { animation-delay: .16s } .fade-up.d3 { animation-delay: .24s } .fade-up.d4 { animation-delay: .32s }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px) } to { opacity: 1; transform: none } }

@media (max-width: 640px) {
  .nav .lang-label { display: none; }
  .hero { padding-top: 16px; }
  .stat { min-width: 140px; flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .select select { min-width: 0; width: 100%; }
  .filters .select { flex: 1 1 45%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card { opacity: 1; transform: none; }
}

/* ---------- Category / qualification chips ---------- */
.chip-row { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 6px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-label { flex: none; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-right: 4px; min-width: 84px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: all .2s var(--ease); }
.chip small { color: var(--muted); font-weight: 700; margin-left: 2px; }
.chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.chip.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.chip.active small { color: rgba(255,255,255,.85); }
.qual-note { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.tag.q { background: color-mix(in srgb, var(--accent) 16%, transparent); color: #b45309; }
[data-theme="dark"] .tag.q { color: #fbbf24; }

/* ---------- Link cards (Study / Railway) ---------- */
.grid.links { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.link-card { flex-direction: row; align-items: flex-start; gap: 14px; text-decoration: none; color: var(--text); --c: var(--brand); }
.link-card .lc-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); transition: transform .3s var(--ease); }
.link-card:hover .lc-icon { transform: scale(1.12) rotate(-6deg); }
.link-card h3 { font-size: 15px; -webkit-line-clamp: 2; }
.link-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.link-card .cta { margin-left: auto; align-self: center; color: var(--brand); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* ---------- Horizontal scroll rows (chips / tabs) ---------- */
.chip-line { display: flex; align-items: center; gap: 8px; }
.hs { position: relative; flex: 1; min-width: 0; }
.hs-track { overflow-x: auto; scrollbar-width: none; cursor: grab; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track.dragging { cursor: grabbing; user-select: none; }
.hs-track.dragging * { pointer-events: none; }
.hs::before, .hs::after { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .25s; }
.hs::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.hs::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.hs.can-l::before, .hs.can-r::after { opacity: 1; }
.hs-btn { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.7); transition: opacity .25s, transform .25s var(--ease), border-color .2s; }
.hs-btn.l { left: 0; } .hs-btn.r { right: 0; }
.hs.can-l .hs-btn.l, .hs.can-r .hs-btn.r { opacity: 1; pointer-events: auto; transform: translateY(-50%) scale(1); }
.hs-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Footer ---------- */
footer { margin-top: 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; background: var(--surface); }
.foot-note { padding: 16px 20px; font-size: 13px; line-height: 1.6; border-bottom: 1px dashed var(--line); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px 26px; }
.foot-bar .copy { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--text); text-decoration: none; position: relative; padding: 2px 0; }
.foot-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--brand-2); border-radius: 2px; transition: right .3s var(--ease); }
.foot-links a:hover { color: var(--brand); }
.foot-links a:hover::after { right: 0; }

/* Bhasha ke hisaab se text dikhana/chhupana */
html[lang="hi"] .only-en, html[lang="en"] .only-hi { display: none !important; }

/* ---------- Info pages (About, Disclaimer...) ---------- */
.seg-simple button { padding: 6px 12px; }
.seg-simple button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.page-hero { position: relative; overflow: hidden; padding: 46px 0 26px; text-align: center; }
.page-hero h1 { font-size: clamp(26px, 4vw, 40px); margin: 10px 0 6px; letter-spacing: -1px; }
.page-hero p { color: var(--muted); margin: 0; }
.page-body { max-width: 860px; margin: 0 auto 20px; padding: 0 20px; }
.page-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px clamp(18px, 4vw, 40px); line-height: 1.75; animation: fadeUp .6s var(--ease) both; }
.page-card h2 { font-size: 19px; margin: 26px 0 8px; color: var(--brand); }
.page-card h2:first-child { margin-top: 0; }
.page-card ul { padding-left: 22px; }
.page-card li { margin: 4px 0; }
.page-card a { color: var(--brand); }
.callout { margin: 18px 0; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); font-weight: 600; }
.updated-on { color: var(--muted); font-size: 13px; margin-top: 22px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sitemap-grid h3 { margin: 0 0 6px; font-size: 15px; }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li { margin: 6px 0; }
.sitemap-grid a { text-decoration: none; }
.sitemap-grid a:hover { text-decoration: underline; }

/* ---------- Fraud alert box ---------- */
.fraud-box { margin-top: 28px; padding: 20px 24px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line)); background: color-mix(in srgb, var(--danger) 6%, var(--surface)); border-left: 5px solid var(--danger); }
.fraud-box h2 { color: var(--danger) !important; margin-top: 0 !important; scroll-margin-top: 100px; }
.fraud-box ol, .fraud-box ul { padding-left: 22px; }
.foot-note p { margin: 0 0 6px; }
.fraud-line { color: var(--text); }
.foot-note a { color: var(--brand); }

/* ---------- Flights list ---------- */
.fl-note { color: var(--muted); font-size: 13.5px; margin: -4px 0 12px; line-height: 1.55; }
.flights { display: grid; gap: 8px; margin-top: 10px; }
.flight { display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: fadeUp .45s var(--ease) both; transition: transform .2s var(--ease), border-color .2s; }
.flight:hover { transform: translateX(4px); border-color: var(--brand-2); }
.fl-no b { display: block; font-size: 15px; color: var(--brand); }
.fl-no small, .fl-time small { display: block; color: var(--muted); font-size: 12px; }
.fl-route { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fl-route b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-route em { color: var(--muted); font-weight: 600; font-style: normal; }
.fl-line { position: relative; flex: 1; min-width: 40px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.fl-line i { position: absolute; top: 50%; left: 0; transform: translate(-50%, -55%); font-style: normal; color: var(--accent); font-size: 14px; animation: fly 3.5s var(--ease) infinite; }
@keyframes fly { 0% { left: 0; opacity: 0 } 15% { opacity: 1 } 85% { opacity: 1 } 100% { left: 100%; opacity: 0 } }
.fl-time { text-align: right; font-size: 13.5px; font-weight: 600; }
@media (max-width: 640px) { .flight { grid-template-columns: 1fr; gap: 6px; } .fl-time { text-align: left; } }

/* ---------- Route finder ---------- */
.route-form { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 12px; }
.route-form input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.route-form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.route-swap { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); font-size: 18px; transition: transform .3s var(--ease); }
.route-swap:hover { transform: rotate(180deg); border-color: var(--brand); }
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.route { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: fadeUp .4s var(--ease) both; }
.route b { color: var(--brand); font-size: 15px; } .route small { color: var(--muted); margin-left: 6px; font-size: 12px; }
.route span { display: block; margin-top: 4px; font-size: 13.5px; }
.credit { color: var(--muted); font-size: 12.5px; margin-top: 12px; } .credit a { color: var(--brand); }
@media (max-width: 640px) { .route-form { grid-template-columns: 1fr; } .route-swap { justify-self: center; transform: rotate(90deg); } }

/* ---------- Main nav (Jobs / Railway / Flights) ---------- */
.main-nav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; transition: all .25s var(--ease); }
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px -8px var(--brand); }

/* ---------- Home page service cards ---------- */
.svc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1000px; margin: 14px auto 0; text-align: left; }
.svc { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; color: #fff; text-decoration: none; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), box-shadow .3s; }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s var(--ease); }
.svc:hover { transform: translateY(-4px) scale(1.01); }
.svc:hover::after { transform: translateX(100%); }
.svc.rail { background: linear-gradient(135deg, #1f3f94, #2f6fe0); }
.svc.air { background: linear-gradient(135deg, #0f8f8a, #19c2b8); }
.svc.study { background: linear-gradient(135deg, #e07b00, #f7a531); }
.svc-icon { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(255,255,255,.18); transition: transform .3s var(--ease); }
.svc:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
.svc-text b { display: block; font-size: 17px; }
.svc-text small { display: block; opacity: .9; font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.svc-go { margin-left: auto; font-size: 22px; font-weight: 800; transition: transform .25s var(--ease); }
.svc:hover .svc-go { transform: translateX(4px); }
@media (max-width: 860px) { .svc-row { grid-template-columns: 1fr; } }

/* ---------- Railway / Flights pages ---------- */
.page-wide { padding-top: 6px; padding-bottom: 20px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* ---------- Job detail facts ---------- */
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 700; color: var(--text); }
.card-facts span { display: inline-flex; align-items: center; gap: 4px; }
.detail-block { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.detail-block small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; font-weight: 700; }
.detail-block p { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.tab .count:empty { display: none; }

/* ---------- PDF se nikali jaankari ---------- */
.pdf-box { margin: 4px 0 16px; padding: 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand-2) 40%, var(--line)); background: color-mix(in srgb, var(--brand-2) 6%, var(--surface)); }
.pdf-box > b { display: block; margin-bottom: 12px; color: var(--brand); }
.pdf-box .facts { margin-bottom: 10px; }
.pdf-box .fact { background: var(--surface); }
.pdf-box .detail-block { background: var(--surface); }
.pdf-note { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- Why RojgarNest ---------- */
.why { margin-top: 40px; }
.why-head { text-align: center; max-width: 760px; margin: 0 auto 22px; }
.why-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; letter-spacing: -.5px; }
.why-head p { color: var(--muted); margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.why-card { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.why-card:hover { transform: translateY(-4px); border-color: var(--brand-2); }
.why-card:first-child { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface))); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.why-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.why-card h3 { margin: 0 0 6px; font-size: 16.5px; color: var(--brand); }
.why-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.why-in-page .why-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .why-in-page .why-grid { grid-template-columns: 1fr; } }

/* ---------- Browse + SEO pages ---------- */
.browse { margin-top: 36px; }
.browse h2 { font-size: 20px; margin: 0 0 12px; }
.seo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.seo-chips a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: all .2s var(--ease); }
.seo-chips a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.seo-page { max-width: 980px; }
.seo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.seo-item { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.seo-item h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.4; } .seo-item h3 a { color: var(--text); text-decoration: none; } .seo-item h3 a:hover { color: var(--brand); }
.seo-meta, .seo-facts, .seo-links { margin: 2px 0; font-size: 13.5px; color: var(--muted); }
.seo-facts { color: var(--text); font-weight: 600; }
.seo-updated, .seo-note { color: var(--muted); font-size: 13px; }
.seo-more { margin-top: 18px; } .seo-more h2 { font-size: 18px; margin: 0 0 10px; }
.seo-foot { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; } .seo-foot a { color: var(--brand); }

/* ---------- Service cards: 5 cards ---------- */
.svc-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1180px; }
.svc.news { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.svc.mock { background: linear-gradient(135deg, #be123c, #f43f5e); }
.svc { text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* ---------- Current affairs ---------- */
.ca-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ca-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 4px solid var(--brand-2); animation: fadeUp .45s var(--ease) both; transition: transform .25s var(--ease); }
.ca-card.in { border-left-color: var(--accent); }
.ca-card:hover { transform: translateY(-3px); }
.ca-card h3 { margin: 0; font-size: 15px; color: var(--brand); }
.ca-card p { margin: 0; font-size: 14px; line-height: 1.6; flex: 1; }
.ca-src { font-size: 12.5px; color: var(--muted); } .ca-src a { color: var(--brand); }

/* ---------- Mock test ---------- */
.mock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mock-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); box-shadow: var(--shadow); transition: transform .25s var(--ease), border-color .25s; }
.mock-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.mock-icon { font-size: 32px; } .mock-card b { font-size: 17px; } .mock-card small { color: var(--muted); font-size: 13px; }
.mock-best { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.mock-go { margin-top: 6px; font-weight: 800; color: var(--brand); }
.quiz { max-width: 760px; margin: 0 auto; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: fadeUp .4s var(--ease) both; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quiz-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--danger); }
.quiz-progress { height: 6px; border-radius: 6px; background: var(--surface-2); margin: 14px 0 6px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .4s var(--ease); }
.quiz-count { color: var(--muted); font-size: 13px; margin: 6px 0; }
.quiz-q { font-size: 19px; line-height: 1.5; margin: 6px 0 16px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; transition: all .2s var(--ease); }
.quiz-opt span { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); }
.quiz-opt:hover:not(:disabled) { border-color: var(--brand); transform: translateX(3px); }
.quiz-opt.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.quiz-opt.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.quiz-fb { margin: 14px 0; padding: 12px 14px; border-radius: 12px; animation: fadeUp .3s var(--ease) both; }
.quiz-fb.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); } .quiz-fb.no { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.quiz-fb p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.quiz-result { text-align: center; }
.score-ring { --p: 0; width: 140px; height: 140px; margin: 10px auto 14px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand-2) calc(var(--p) * 1%), var(--surface-2) 0); animation: pop .6s var(--ease); }
.score-ring span { width: 108px; height: 108px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 28px; font-weight: 800; }

/* ---------- Header: live data pill ---------- */
.nav-live { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .nav-live #updated { display: none; } .nav-live { padding: 0 12px; } }

/* ---------- Service cards: compact (5 ek line mein) ---------- */
.svc-row { grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 1180px; margin-top: 14px; }
.svc { gap: 10px; padding: 11px 12px; border-radius: 14px; }
.svc-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; }
.svc-text b { font-size: 14.5px; line-height: 1.25; }
.svc-text small { font-size: 11.5px; line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-go { font-size: 16px; }
@media (max-width: 1100px) { .svc-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .svc-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .svc { padding: 10px; } .svc-go { display: none; } .svc-text small { -webkit-line-clamp: 2; }
}

/* ---------- Advertisement ---------- */
.ad-slot { max-width: 1180px; margin: 14px auto 0; }
.ad-box { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ad-box img { display: block; width: 100%; height: auto; max-height: 160px; object-fit: cover; }
.ad-label { position: absolute; top: 6px; left: 6px; z-index: 1; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,.55); color: #fff; letter-spacing: .3px; }
.ad-house { display: block; text-align: center; padding: 10px 14px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); color: var(--text); font-size: 13.5px; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.ad-house:hover { border-color: var(--accent); transform: translateY(-1px); }
.ad-house b { color: var(--brand); }
.adv-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 14px; }
.adv-table th, .adv-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adv-table th { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.adv-ok, .adv-no { padding-left: 22px; }
.adv-ban{margin:18px 0;padding:14px 16px;border-radius:14px;background:rgba(220,38,38,.1);border:1.5px solid rgba(220,38,38,.55);color:inherit;line-height:1.6}
.adv-ban b{color:#dc2626}
[data-theme="dark"] .logo-full { content: url(assets/logo-header-dark.png?v=3); }
