/* Sarkari Naukri Hai shared styles. Classic job-portal look: maroon header, navy menu, ticker, colour-headed boxes. */
:root {
  --bg: #e9ecf1;
  --surface: #ffffff;
  --ink: #1b1b1f;
  --muted: #5b6270;
  --line: #c9cfd8;
  --brand: #9b1030;
  --brand-ink: #ffffff;
  --nav: #14224a;
  --accent: #d4121f;
  --link: #0a3fa6;
  --good: #157a3d;
  --warn: #a85a00;
  --tint: #fff3bf;
  --ticker: #fff6c9;
  --c-result: #157a3d;
  --c-admit: #0a58ca;
  --c-jobs: #b3122b;
  --c-key: #7432b0;
  --c-syllabus: #b85c00;
  --c-admission: #00767f;
  --c-paper: #c2255c;
  --c-services: #364fc7;
  --font-display: "Rajdhani", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11141b; --surface: #1b1f29; --ink: #e9eaee; --muted: #a2a9b7; --line: #333a49;
    --brand: #b3203f; --nav: #0c1530; --accent: #ff6b5e; --link: #8db4ff; --good: #5cd39a; --warn: #f0b15a;
    --tint: #3b3418; --ticker: #2c2a17;
    --c-result: #1a8a48; --c-admit: #2a6fdb; --c-jobs: #c0243d; --c-key: #8a46c7; --c-syllabus: #c26a0a; --c-admission: #11888f; --c-paper: #d6336c; --c-services: #5c7cfa;
    color-scheme: dark;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.5; padding: 0; }
img { max-width: 100%; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 920px; margin-inline: auto; padding-inline: 16px; padding-block: 0 40px; }
.wrap.wide { max-width: 1366px; }
.c-result { --c: var(--c-result); } .c-admit { --c: var(--c-admit); } .c-jobs { --c: var(--c-jobs); }
.c-key { --c: var(--c-key); } .c-syllabus { --c: var(--c-syllabus); } .c-admission { --c: var(--c-admission); }
.c-paper { --c: var(--c-paper); } .c-services { --c: var(--c-services); }

/* Site header (also used by admin as .mast) */
.site, .mast { background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #000)); color: #fff; border-bottom: 3px solid #f5c518; }
.site-in, .mast-in { max-width: 1160px; margin-inline: auto; padding: 22px 16px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.logo, .brand { display: flex; align-items: center; gap: 18px; color: #fff; text-decoration: none; min-width: 0; }
.logo-img { flex: 0 0 auto; width: 84px; height: 84px; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.mark { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; background: #f5c518; color: #7a0c22; border-radius: 6px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; }
.nm { display: grid; line-height: 1.15; min-width: 0; }
.nm b, .brand h1 { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; margin: 0; letter-spacing: .02em; color: #fff; }
.nm small, .brand span { color: #ffe9a0; font-size: 1rem; }
.brand h1 { line-height: 1.05; }
.brand .nm { gap: 2px; }
.hsearch { flex: 1 1 280px; display: flex; min-width: 0; max-width: 480px; margin-left: auto; }
.hsearch input { flex: 1; min-width: 0; border: 0; border-radius: 8px 0 0 8px; padding: 14px 16px; font-size: 1.05rem; background: #fff; color: #1b1b1f; }
.hsearch button { border: 0; border-radius: 0 8px 8px 0; background: #f5c518; color: #4a0a16; font-weight: 700; padding: 0 22px; font-size: 1.05rem; }
.mast .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.mast .btn.ghost:hover { background: rgba(255,255,255,.15); }
.menu { background: var(--nav); border-bottom: 1px solid rgba(255,255,255,.12); }
.menu-in { max-width: 1160px; margin-inline: auto; padding-inline: 8px; display: flex; overflow-x: auto; scrollbar-width: thin; }
.menu a { flex: 0 0 auto; color: #fff; text-decoration: none; padding: 14px 20px; font-weight: 600; font-size: 1.08rem; border-right: 1px solid rgba(255,255,255,.1); white-space: nowrap; }
.menu a:hover { background: rgba(255,255,255,.12); }
.menu a[aria-current="page"] { background: #f5c518; color: #3d0a15; }
.ticker { background: var(--ticker); border-bottom: 1px solid var(--line); display: flex; align-items: stretch; overflow: hidden; }
.ticker .lab { flex: 0 0 auto; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; letter-spacing: .08em; padding: 5px 14px; display: flex; align-items: center; }
.ticker .vp { flex: 1; min-width: 0; overflow: hidden; }
.ticker .track { display: inline-flex; white-space: nowrap; animation: tick 60s linear infinite; padding-block: 5px; }
.ticker .track:hover { animation-play-state: paused; }
.ticker .grp { display: inline-flex; gap: 34px; padding-right: 34px; }
.ticker a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .92rem; }
.ticker a:hover { color: var(--accent); text-decoration: underline; }
.ticker a::before { content: "\25B6"; color: var(--accent); font-size: .6rem; margin-right: 8px; vertical-align: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker .track { animation: none; } .ticker .vp { overflow-x: auto; } }

/* Home: coloured boxes */
.adminbar { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; border: 1px dashed var(--brand); background: var(--surface); border-radius: 6px; padding: 8px 12px; font-size: .88rem; color: var(--muted); }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
@media (max-width: 960px) { .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .boxes { grid-template-columns: minmax(0, 1fr); } }
.box { background: var(--surface); border: 2px solid var(--c); border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.box > h2, .bar { margin: 0; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .05em; text-transform: uppercase; text-align: center; padding: 6px 10px; line-height: 1.25; }
.box > h2 small, .bar small { display: block; font-family: var(--font-body); font-size: .74rem; letter-spacing: 0; text-transform: none; font-weight: 500; opacity: .92; }
.links { list-style: none; margin: 0; padding: 4px 0; flex: 1; }
.links li { border-bottom: 1px dotted var(--line); }
.links li:last-child { border-bottom: 0; }
.links a { display: block; padding: 7px 12px 7px 26px; position: relative; text-decoration: none; color: var(--link); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.links a::before { content: "\25B6"; position: absolute; left: 11px; top: 12px; font-size: .55rem; color: var(--c); }
.links a:hover { background: var(--tint); text-decoration: underline; }
.links small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; margin-top: 1px; }
.links .empty { padding: 18px 12px; text-align: center; }
.new { display: inline-block; background: var(--accent); color: #fff; font-size: .62rem; font-weight: 700; letter-spacing: .06em; padding: 0 5px; border-radius: 3px; margin-left: 6px; vertical-align: 2px; }
.more { display: block; text-align: center; background: var(--c); color: #fff; font-weight: 700; text-decoration: none; padding: 7px; letter-spacing: .04em; }
.more:hover { filter: brightness(1.12); }

/* Category / search view */
.panel { background: var(--surface); border: 2px solid var(--c, var(--brand)); border-radius: 4px; margin-top: 16px; }
.panel .links a { padding-block: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--tint); }
.filters label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.filters select { background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--ink); max-width: 100%; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 5px 10px; }
.toggle[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.count { margin-left: auto; font-family: var(--font-data); font-size: .78rem; color: var(--muted); }
.chip { font-family: var(--font-data); font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.chip.urgent { color: var(--accent); } .chip.soon { color: var(--warn); } .chip.ok { color: var(--good); } .chip.done { color: var(--muted); }
.tag { font-family: var(--font-data); font-size: .72rem; border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--muted); white-space: nowrap; background: var(--surface); }
.org { color: var(--muted); font-size: .88rem; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.backrow { margin-top: 14px; }

/* Footer */
.foot { background: var(--nav); color: #cfd6ea; margin-top: 10px; }
.foot-in { max-width: 1160px; margin-inline: auto; padding: 18px 16px 26px; font-size: .84rem; display: grid; gap: 10px; }
.foot a { color: #ffe9a0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* Buttons */
.btn { display: inline-block; border: 1.5px solid var(--brand); background: var(--brand); color: var(--brand-ink); border-radius: 5px; padding: 8px 14px; font-weight: 600; text-decoration: none; line-height: 1.4; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.btn.danger { background: none; border-color: var(--accent); color: var(--accent); }
.btn.big { padding: 11px 22px; font-size: 1.05rem; background: var(--good); border-color: var(--good); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#toast { position: fixed; left: 50%; translate: -50% 0; bottom: 20px; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 6px; z-index: 30; font-size: .9rem; max-width: calc(100% - 32px); }

/* Job page */
.crumb { margin-top: 14px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumb a { color: var(--link); }
.job { margin-top: 12px; display: grid; gap: 14px; --c: var(--brand); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 0 20px 18px; min-width: 0; }
.card > h2 { margin: 0 -20px 14px; background: var(--c); color: #fff; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; padding: 7px 20px; }
.card p { margin: 0; }
.job-head { padding-top: 18px; border-top: 6px solid var(--c); }
.job-head h1 { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; margin: 0; color: var(--c); overflow-wrap: anywhere; text-wrap: balance; }
.job-head .org { margin: 6px 0 0; font-size: 1rem; }
.status { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 0; }
.facts div { padding: 10px 12px; min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.tbl th { width: 42%; font-weight: 600; background: color-mix(in srgb, var(--c) 9%, var(--surface)); font-size: .95rem; }
.tbl td { font-family: var(--font-data); font-size: .9rem; overflow-wrap: anywhere; }
.tbl td.txt { font-family: var(--font-body); font-size: 1rem; }
.tbl td a { font-family: var(--font-body); font-weight: 700; }
.tbl td .na { color: var(--muted); font-family: var(--font-body); }
.tbl.grid th { width: auto; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: 6px; }
.related { display: grid; gap: 0; border: 1px solid var(--line); }
.related a { display: block; text-decoration: none; color: var(--link); font-weight: 600; padding: 8px 12px; overflow-wrap: anywhere; border-bottom: 1px dotted var(--line); }
.related a:last-child { border-bottom: 0; }
.related a:hover { background: var(--tint); }
.related small { display: block; color: var(--muted); font-weight: 400; }
.note { font-size: .82rem; color: var(--muted); }
.draftbar { background: var(--tint); border: 1px dashed var(--warn); border-radius: 6px; padding: 8px 12px; font-size: .9rem; margin-top: 14px; }
.para { white-space: pre-line; }
.kv { margin: 0; padding-left: 1.2em; }
.kv li { margin-bottom: 4px; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 12px; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld > label, .fld > .lb { font-size: .8rem; font-weight: 600; }
.fld input, .fld select, .fld textarea { background: var(--bg); border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 10px; width: 100%; min-width: 0; }
.fld small { color: var(--muted); font-size: .75rem; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; gap: 6px; align-items: center; border: 1.5px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: .9rem; }
.checks input { width: auto; }
.err { color: var(--accent); font-size: .88rem; min-height: 1.3em; }

@media (max-width: 520px) {
  .site-in, .mast-in { padding: 16px 14px; }
  .logo, .brand { gap: 12px; }
  .logo-img { width: 60px; height: 60px; }
  .nm b, .brand h1 { font-size: 1.85rem; }
  .nm small { font-size: .78rem; }
  .menu a { padding: 12px 14px; font-size: 1rem; }
  .hsearch { max-width: none; margin-left: 0; flex-basis: 100%; }
  .count { margin-left: 0; width: 100%; }
  .job-head h1 { font-size: 1.55rem; }
  .card { padding: 0 16px 16px; }
  .card > h2 { margin-inline: -16px; padding-inline: 16px; }
  .tbl th { width: 38%; }
}

/* Admin panel */
.login { max-width: 420px; margin: 40px auto 0; }
.login h2 { margin-bottom: 4px; }
.sub { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.adm-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 18px; }
.adm-head h2 { font-family: var(--font-display); font-size: 1.7rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.stat b { display: block; font-family: var(--font-data); font-size: 1.5rem; font-weight: 500; }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.toolbar input, .toolbar select { background: var(--surface); border: 1.5px solid var(--line); border-radius: 6px; padding: 7px 10px; min-width: 0; }
.toolbar input { flex: 1 1 220px; }
.dash { width: 100%; border-collapse: collapse; background: var(--surface); }
.dash th, .dash td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
.dash th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.dash td.t { min-width: 220px; overflow-wrap: anywhere; }
.dash td.t b { font-weight: 600; }
.dash td.t div { color: var(--muted); font-size: .82rem; }
.dash td.d { font-family: var(--font-data); font-size: .82rem; white-space: nowrap; }
.dash-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 12px; }
.rowact { display: flex; flex-wrap: wrap; gap: 6px; }
.btn.sm { padding: 3px 9px; font-size: .82rem; font-weight: 500; border-radius: 5px; }
.badge { font-family: var(--font-data); font-size: .72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.badge.pub { color: var(--good); }
.badge.draft { color: var(--warn); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; display: grid; gap: 14px; min-width: 0; }
.sec > h3 { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin: 0; }
.sec > .sub { margin: -8px 0 0; }
.rep { display: grid; gap: 8px; }
.rep-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) auto; align-items: center; }
.rep-row input { background: var(--bg); border: 1.5px solid var(--line); border-radius: 6px; padding: 7px 9px; width: 100%; min-width: 0; }
.x { background: none; border: 1.5px solid var(--line); border-radius: 6px; width: 34px; height: 34px; font-size: 1.1rem; line-height: 1; }
.form-actions { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); margin-inline: -16px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.form-actions > div { max-width: 920px; width: 100%; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fld textarea { resize: vertical; }
.draftbar { background: var(--tint); border: 1px dashed var(--warn); border-radius: 6px; padding: 8px 12px; font-size: .9rem; margin-top: 14px; }
.para { white-space: pre-line; }
.kv { margin: 0; padding-left: 1.2em; }
.kv li { margin-bottom: 4px; }
@media (max-width: 520px) {
  .rep-row { grid-template-columns: 1fr auto; }
  .rep-row input:not(:first-child) { grid-column: 1; }
  .dash td.t { min-width: 180px; }
}

/* Admin dashboard tabs */
.atabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 14px; border-bottom: 2px solid var(--line); scrollbar-width: thin; }
.atabs a { flex: 0 0 auto; padding: 8px 14px; text-decoration: none; color: var(--ink); font-weight: 600; border: 1px solid transparent; border-bottom: 0; border-radius: 5px 5px 0 0; white-space: nowrap; }
.atabs a:hover { background: var(--tint); }
.atabs a[aria-current="page"] { background: var(--surface); border-color: var(--line); color: var(--brand); margin-bottom: -2px; border-bottom: 2px solid var(--surface); }
.atabs .n { font-family: var(--font-data); font-size: .72rem; color: var(--muted); margin-left: 6px; }
.stagerow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 8px; border-bottom: 1px dotted var(--line); font-weight: 600; }
.stagerow:last-child { border-bottom: 0; padding-bottom: 0; }

/* Home sidebar tiles and plain list rows (theme aware) */
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border: 2px solid var(--brand); border-radius: 4px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .15s, background .15s; }
.tile:hover, .tile:focus-visible { transform: translateY(-2px); background: var(--tint); }
.tile strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--brand); }
.tile small { color: var(--muted); }