/* ==========================================================================
   Kisan Path — Agriculture Government-Job Preparation
   Shared design system.  Pure CSS, no external fonts/CDNs (robust & fast).
   ========================================================================== */

:root {
  /* Agriculture palette */
  --green-900: #14320f;
  --green-800: #1b4332;
  --green-700: #216c3a;
  --green-600: #2d8a4e;
  --green-500: #3aa564;
  --green-400: #62c185;
  --green-200: #b9e4c9;
  --green-50:  #eef7f0;

  --earth-700: #7a5230;
  --earth-500: #a9743f;
  --gold-500:  #e0a020;
  --gold-400:  #f0b840;

  --ink:       #16241b;
  --muted:     #5a6b60;
  --line:      #dce6de;
  --bg:        #f6faf5;
  --card:      #ffffff;
  --card-2:    #f0f6ef;

  --danger:    #c0392b;
  --warn:      #d98a00;
  --ok:        #2d8a4e;

  --shadow-sm: 0 1px 2px rgba(20, 50, 15, .06), 0 1px 3px rgba(20, 50, 15, .08);
  --shadow-md: 0 4px 14px rgba(20, 50, 15, .10);
  --shadow-lg: 0 12px 34px rgba(20, 50, 15, .16);

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:    #e7f0e8;
    --muted:  #9db3a4;
    --line:   #2a3a2f;
    --bg:     #0f1712;
    --card:   #16211a;
    --card-2: #1b2a20;
    --green-50: #16211a;
    --green-200: #285238;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 14px rgba(0,0,0,.4);
    --shadow-lg: 0 12px 34px rgba(0,0,0,.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800;
  color: var(--ink); font-size: 1.12rem; letter-spacing: -.2px; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  display: grid; place-items: center; color: #fff; font-size: 19px;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; letter-spacing: .3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: .93rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: var(--card-2); text-decoration: none; }
.nav-links a.active { color: var(--green-700); background: var(--green-50); }
@media (prefers-color-scheme: dark) { .nav-links a.active { color: var(--green-400); } }

.nav-toggle { display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 40px; cursor: pointer; color: var(--ink); font-size: 20px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 14px 16px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 1rem; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 340px at 88% -10%, rgba(224,160,32,.18), transparent 60%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-700) 46%, var(--green-600) 100%);
  color: #eafaef;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,.05) 26px 27px);
}
.hero .container { position: relative; padding: 68px 20px 74px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.15rem); line-height: 1.08; margin: 12px 0 14px;
  letter-spacing: -.6px; color: #fff; }
.hero p.lead { font-size: clamp(1.02rem, 2.1vw, 1.2rem); max-width: 720px; color: #d7f0de; margin: 0 0 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: .78rem; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gold-400); background: rgba(0,0,0,.18);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(240,184,64,.35);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .95rem; padding: 12px 20px;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold-500); color: #2b1c00; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--gold-400); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-solid { background: var(--green-700); color:#fff; box-shadow: var(--shadow-sm); }
.btn-solid:hover { background: var(--green-800); }

/* ---------------- Sections & headings ---------------- */
section { padding: 52px 0; }
.section-tight { padding: 34px 0; }
h2.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; letter-spacing: -.4px; }
.section-sub { color: var(--muted); max-width: 720px; margin: 0 0 30px; font-size: 1.02rem; }
.kicker { color: var(--green-600); font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; font-size: .75rem; }

/* ---------------- Cards & grids ---------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.card h3 { margin: 10px 0 6px; font-size: 1.16rem; }
.card p { color: var(--muted); margin: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-size: 23px; background: var(--green-50); color: var(--green-700);
  border: 1px solid var(--green-200);
}
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-weight: 700; color: var(--green-700); font-size: .9rem; }

/* ---------------- Stat tiles ---------------- */
.stat { text-align: center; }
.stat .n { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: var(--green-700);
  letter-spacing: -1px; line-height: 1; }
.stat .l { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* ---------------- Badges / pills ---------------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: .74rem; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; }
.pill-green { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-200); }
.pill-gold  { background: #fdf4dd; color: #8a6200; border: 1px solid #f0d68a; }
.pill-red   { background: #fbe9e7; color: #b3271b; border: 1px solid #f2c3bd; }
.pill-blue  { background: #e8f0fb; color: #1f5aa8; border: 1px solid #c4d8f2; }
.pill-gray  { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) {
  .pill-gold { background:#3a2e10; color:#f0c96a; border-color:#5a4718; }
  .pill-red  { background:#3a1f1c; color:#f0a49b; border-color:#5a2b26; }
  .pill-blue { background:#16283f; color:#8fb6ea; border-color:#264063; }
}

/* Fit / difficulty dots */
.tier-tag { font-weight: 800; font-size: .7rem; letter-spacing: 1px; padding: 4px 9px; border-radius: 6px; color:#fff; }
.t1 { background: var(--green-600); }
.t2 { background: var(--gold-500); color:#2b1c00; }
.t3 { background: var(--earth-500); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table { border-collapse: collapse; width: 100%; min-width: 640px; background: var(--card); font-size: .93rem; }
thead th { background: var(--green-800); color: #eafaef; text-align: left; padding: 13px 14px;
  font-weight: 700; font-size: .82rem; letter-spacing: .3px; position: sticky; top: 0; }
tbody td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--card-2); }
tbody tr:hover { background: var(--green-50); }

/* meter bar for probability */
.meter { position: relative; height: 9px; background: var(--card-2); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line); min-width: 90px; }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.m-hi  > span { background: linear-gradient(90deg, var(--green-500), var(--green-700)); }
.m-mid > span { background: linear-gradient(90deg, var(--gold-400), var(--gold-500)); }
.m-lo  > span { background: linear-gradient(90deg, #e8998c, var(--danger)); }

/* ---------------- Callouts ---------------- */
.callout { border-left: 4px solid var(--green-600); background: var(--card-2);
  padding: 16px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.callout.warn { border-color: var(--warn); }
.callout.info { border-color: #2f74c0; }
.callout h4 { margin: 0 0 6px; font-size: 1rem; }
.callout p { margin: 0; color: var(--muted); }

/* ---------------- Timeline (roadmap) ---------------- */
.timeline { position: relative; margin: 30px 0; padding-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--green-400), var(--green-700)); border-radius: 3px; }
.tl-item { position: relative; padding: 0 0 26px 60px; }
.tl-dot { position: absolute; left: 8px; top: 2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-600); color: #fff; display: grid; place-items: center; font-weight: 800;
  font-size: .82rem; box-shadow: 0 0 0 5px var(--bg), var(--shadow-sm); }
.tl-item h3 { margin: 0 0 3px; font-size: 1.15rem; }
.tl-item .when { color: var(--green-700); font-weight: 700; font-size: .85rem; }
.tl-item ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.tl-item ul li { margin: 4px 0; }

/* ---------------- Flow diagram primitives ---------------- */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; margin: 10px 0; }
.node {
  background: var(--card); border: 2px solid var(--green-600); color: var(--ink);
  border-radius: 12px; padding: 12px 18px; font-weight: 700; text-align: center;
  box-shadow: var(--shadow-sm); max-width: 460px;
}
.node.start { background: var(--green-700); color:#fff; border-color: var(--green-800); border-radius: 999px; }
.node.decision { background: #fdf4dd; border-color: var(--gold-500); color:#5a4200; }
.node.end { background: var(--green-600); color:#fff; border-color: var(--green-800); }
.node small { display:block; font-weight: 500; color: inherit; opacity:.85; font-size:.8rem; }
.arrow { width: 3px; height: 26px; background: var(--green-500); position: relative; }
.arrow::after { content:""; position:absolute; bottom:-1px; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color: var(--green-500); }
.branches { display:flex; gap: 28px; flex-wrap: wrap; justify-content: center; width:100%; }
.branch { display:flex; flex-direction: column; align-items:center; flex: 1 1 200px; max-width: 320px; }
.branch .lbl { font-size:.78rem; font-weight:800; color: var(--green-700); margin-bottom: 6px;
  background: var(--green-50); padding: 2px 10px; border-radius: 999px; border:1px solid var(--green-200); }

/* Funnel */
.funnel { display:flex; flex-direction: column; align-items:center; gap: 4px; }
.funnel .stage { color:#fff; text-align:center; padding: 14px 18px; border-radius: 10px; font-weight:700;
  box-shadow: var(--shadow-sm); }
.funnel .s1 { width: 100%; background: var(--green-600); }
.funnel .s2 { width: 74%; background: var(--green-700); }
.funnel .s3 { width: 50%; background: var(--green-800); }
.funnel .s4 { width: 30%; background: var(--gold-500); color:#2b1c00; }
.funnel .stage small { display:block; font-weight:500; opacity:.9; font-size:.8rem; }

/* Cycle */
.cycle { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; }
.cycle .step { background: var(--card); border:1px solid var(--line); border-radius: 12px; padding:16px;
  box-shadow: var(--shadow-sm); position: relative; }
.cycle .step .num { position:absolute; top:-11px; left:16px; width:26px; height:26px; border-radius:50%;
  background: var(--green-700); color:#fff; display:grid; place-items:center; font-weight:800; font-size:.8rem; }
.cycle .step h4 { margin: 6px 0 4px; font-size: 1rem; }
.cycle .step p { color: var(--muted); font-size:.88rem; margin:0; }

/* ---------------- Lists / feature rows ---------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 7px; color: var(--green-600); font-weight: 800; }

.def-list { display:grid; grid-template-columns: 150px 1fr; gap: 2px 16px; }
.def-list dt { font-weight: 700; color: var(--muted); font-size:.86rem; padding: 6px 0; }
.def-list dd { margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 560px){ .def-list { grid-template-columns: 1fr; } .def-list dd { padding-bottom: 12px; } }

/* Exam detail card */
.exam { border-top: 4px solid var(--green-600); }
.exam.tier2 { border-top-color: var(--gold-500); }
.exam.tier3 { border-top-color: var(--earth-500); }
.exam .head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.exam .head h3 { margin: 0; font-size: 1.2rem; }
.exam .code { color: var(--muted); font-weight: 600; font-size:.82rem; }
.tag-row { display:flex; flex-wrap:wrap; gap:6px; margin: 12px 0 4px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-900); color: #cfe6d5; margin-top: 40px; }
.site-footer .container { padding: 42px 20px 30px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color:#fff; font-size:.95rem; margin:0 0 12px; letter-spacing:.3px; }
.site-footer a { color:#a9d4b5; display:block; padding:3px 0; font-size:.92rem; }
.site-footer a:hover { color:#fff; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:26px; padding-top:18px;
  font-size:.82rem; color:#8fb89a; display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }

/* ---------------- Page header (interior) ---------------- */
.page-head { background:
    linear-gradient(160deg, var(--green-800), var(--green-700));
  color:#eafaef; padding: 46px 0 40px; }
.page-head h1 { margin: 8px 0 8px; font-size: clamp(1.7rem, 3.8vw, 2.6rem); color:#fff; letter-spacing:-.4px; }
.page-head p { max-width: 720px; color:#d7f0de; margin: 0; font-size: 1.03rem; }
.crumbs { font-size:.82rem; color:#a9d4b5; }
.crumbs a { color:#cfe6d5; }

/* utilities */
.center { text-align:center; }
.mt-0{margin-top:0}.mt-1{margin-top:10px}.mt-2{margin-top:22px}.mt-3{margin-top:34px}
.mb-0{margin-bottom:0}
.small { font-size:.86rem; color: var(--muted); }
.hr { height:1px; background: var(--line); border:0; margin: 30px 0; }
.anchor-offset { scroll-margin-top: 80px; }
