/* Saptari Next — shared stylesheet */
:root {
  --pink: #c2185b;          /* Rajbiraj, the Pink City */
  --pink-dark: #8e0e3e;
  --pink-light: #fce4ec;
  --green: #1b5e20;         /* Terai fields & Koshi Tappu */
  --green-light: #e8f5e9;
  --ink: #212121;
  --muted: #616161;
  --bg: #fffdfb;
  --card: #ffffff;
  --border: #eee2e6;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(140, 20, 70, 0.08);
  --font: "Inter", "Noto Sans", "Noto Sans Devanagari", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header — warm golden bar, distinct from the browser chrome */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #f2b565, #e69544);
  border-bottom: 2px solid #c67a26;
  box-shadow: 0 2px 8px rgba(150, 85, 15, 0.2);
}
.nav { display: flex; align-items: center; gap: 18px; padding: 10px 20px; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--pink-dark); }
.nav .brand img { height: 40px; width: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin-left: auto; flex-wrap: wrap; }
.nav ul a { padding: 8px 12px; border-radius: 8px; color: #4a2c07; font-weight: 600; font-size: 0.95rem; }
.nav ul a:hover, .nav ul a.active { background: rgba(255, 255, 255, 0.75); color: var(--pink-dark); text-decoration: none; }
.lang-toggle { border: 1px solid #c67a26; border-radius: 20px; padding: 4px 12px; background: rgba(255,255,255,0.85); cursor: pointer; font-weight: 700; color: var(--pink-dark); }

/* Hero */
.hero { position: relative; color: #fff; text-align: center; padding: 90px 20px; background: linear-gradient(rgba(70, 5, 35, 0.65), rgba(27, 60, 30, 0.65)), url("../img/cover.jpg") center/cover; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero p.tag { max-width: 760px; margin: 18px auto 0; font-size: 1.15rem; opacity: 0.95; }
.hero .horizons { margin-top: 14px; font-weight: 700; letter-spacing: 2px; color: #ffd9e6; }
.hero .cta { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--pink-light); }
section.block.green { background: var(--green-light); }
h2.title { font-size: 1.9rem; color: var(--pink-dark); margin-bottom: 8px; }
p.subtitle { color: var(--muted); margin-bottom: 28px; max-width: 720px; }
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { color: var(--pink-dark); margin-bottom: 8px; font-size: 1.15rem; }
.card .pill-num { display: inline-block; background: var(--pink); color: #fff; font-weight: 800; border-radius: 50%; width: 34px; height: 34px; line-height: 34px; text-align: center; margin-bottom: 10px; }
.stat { text-align: center; padding: 18px 10px; }
.stat .n { font-size: 1.8rem; font-weight: 800; color: var(--pink-dark); }
.stat .l { color: var(--muted); font-size: 0.9rem; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 30px; font-weight: 700; border: none; cursor: pointer; font-size: 1rem; }
.btn.primary { background: var(--pink); color: #fff; }
.btn.primary:hover { background: var(--pink-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.btn.ghost:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn.green { background: var(--green); color: #fff; }

/* Tables */
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
table.data th { background: var(--pink-light); color: var(--pink-dark); }
.table-scroll { overflow-x: auto; }

/* Progress bars */
.progress-track { background: #f0e3e8; border-radius: 20px; height: 12px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--pink), var(--green)); height: 100%; border-radius: 20px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.78rem; font-weight: 700; }
.badge.planned { background: #fff3e0; color: #e65100; }
.badge.ongoing { background: var(--green-light); color: var(--green); }
.badge.completed { background: #e3f2fd; color: #0d47a1; }

/* Forms */
form.sn label { display: block; font-weight: 600; margin: 14px 0 4px; }
form.sn input, form.sn select, form.sn textarea { width: 100%; padding: 10px 12px; border: 1px solid #d9c2cc; border-radius: 8px; font-family: inherit; font-size: 1rem; background: #fff; }
form.sn textarea { min-height: 120px; }
.notice { padding: 12px 16px; border-radius: 8px; margin: 14px 0; font-size: 0.95rem; }
.notice.info { background: #e3f2fd; color: #0d47a1; }
.notice.ok { background: var(--green-light); color: var(--green); }
.notice.warn { background: #fff3e0; color: #e65100; }

/* Convener profile */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.profile img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px) { .profile { grid-template-columns: 1fr; } }

/* Footer */
footer.site { background: var(--pink-dark); color: #f6dbe6; padding: 40px 20px 24px; margin-top: 60px; }
footer.site .cols { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site a { color: #ffd9e6; }
footer.site h4 { color: #fff; margin-bottom: 8px; }
footer.site ul { list-style: none; }
footer.site .fine { text-align: center; margin-top: 28px; font-size: 0.85rem; opacity: 0.8; }

/* Admin */
.admin-wrap { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.tabs button { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; }
.tabs button.active { background: var(--pink); color: #fff; border-color: var(--pink); }
.login-box { max-width: 400px; margin: 60px auto; }
