/* Sarkari Naukri Daily — professional light UI (neutral + teal accent) */

:root {
  --bg: #f4f6f9;
  --bg-subtle: #eef1f5;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --brand: #0f766e;
  --brand-hover: #0d9488;
  --brand-soft: #ecfdf5;
  --brand-ring: rgba(15, 118, 110, 0.2);
  --link: #0f766e;
  --link-hover: #115e59;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --warn-text: #92400e;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px;
}
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 999;
  background: var(--surface); color: var(--text); padding: .5rem 1rem;
  border-radius: 8px; box-shadow: var(--shadow-md); border: 1px solid var(--border);
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.15rem; }
.wrap--narrow { max-width: 640px; }

/* —— Header —— */
.site-header {
  background: var(--surface);
  color: var(--text);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: .75rem 1rem;
}
.brand {
  display: flex; flex-direction: column; gap: .2rem;
}
.logo {
  color: var(--text); font-weight: 700; text-decoration: none;
  font-size: clamp(1.05rem, 3vw, 1.15rem);
  letter-spacing: -0.02em; line-height: 1.2;
}
.tagline {
  font-size: .75rem; font-weight: 500;
  color: var(--muted);
  max-width: 260px; line-height: 1.35;
}

.nav {
  display: flex; align-items: center; gap: .35rem 1.25rem;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none; font-weight: 600;
  font-size: .9rem; padding: .4rem 0;
}
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: .5rem 1.1rem !important; border-radius: 8px;
  text-decoration: none !important; font-weight: 600 !important;
  font-size: .875rem !important;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.2);
}
.nav-cta:hover {
  background: var(--brand-hover) !important;
  text-decoration: none !important;
}

.main { padding: 1.25rem 0 3.5rem; min-height: 62vh; }

/* —— Hero (home) —— */
.hero-student {
  background: var(--surface);
  color: var(--text);
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--brand);
}
.hero-student::after {
  display: none;
}
.hero-student .inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
.hero-student h1 {
  margin: 0 0 .65rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-lead {
  margin: 0 0 1rem;
  font-size: .98rem;
  color: var(--text-secondary);
  max-width: 38em;
  line-height: 1.55;
}
.hero-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .5rem;
  font-size: .9rem;
  color: var(--text-secondary);
}
.hero-points li {
  padding-left: 1.4rem; position: relative;
}
.hero-points li::before {
  content: "✓"; position: absolute; left: 0;
  font-weight: 700; color: var(--brand);
  font-size: .85rem;
}

/* —— CTA strip —— */
.cta-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  background: var(--brand-soft);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}
.cta-strip p { margin: 0; font-weight: 600; color: var(--text); font-size: .95rem; }
.cta-strip .sub { font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: .2rem; }

/* —— Toolbar: search —— */
.list-toolbar { margin-bottom: 1rem; }
.search-wrap { position: relative; margin-bottom: 0; }
.search-wrap label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--muted); margin-bottom: .4rem; text-transform: uppercase;
  letter-spacing: .04em;
}
.search-input {
  width: 100%; padding: .7rem 1rem .7rem 2.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit; font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.search-wrap::before {
  content: "⌕"; position: absolute; left: .95rem; bottom: .72rem;
  font-size: 1.1rem; color: var(--muted); pointer-events: none;
  line-height: 1;
}

.list-heading {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.list-heading h2 {
  margin: 0; font-size: 1.125rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.list-count {
  font-size: .8125rem; font-weight: 500; color: var(--muted);
}
.list-sort-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 42rem;
}

.job-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .15s;
  overflow: hidden;
}
.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.job-card[hidden] { display: none !important; }

.job-card__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem 1rem;
  align-items: start;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 560px) {
  .job-card__link { grid-template-columns: 1fr; }
}

.job-card__title {
  color: var(--link);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 .35rem;
}
.job-card__link:hover .job-card__title { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }

.job-card__meta {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.45;
}
.job-card__meta strong { color: var(--text-secondary); font-weight: 600; }

.job-card__date {
  text-align: right;
  min-width: 7.5rem;
}
@media (max-width: 560px) {
  .job-card__date { text-align: left; }
}

.date-pill {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .3rem .5rem;
  border-radius: 6px;
  margin-bottom: .25rem;
}
.date-pill--muted {
  background: #f9fafb;
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  font-size: .78rem;
}
.date-pill--soon {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid var(--warn-border);
}

.upcoming-block {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.15rem 1.25rem;
  background: #f0fdf9;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.upcoming-block__title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.upcoming-block__hint {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 40rem;
}

.job-card--upcoming {
  border-color: #99f6e4;
}

.list-count__total {
  font-weight: 500;
  color: var(--muted);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  padding: 0 1rem;
}
.pagination__status {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.pagination__link--nav {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pagination__link--nav:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  text-decoration: none;
}
.pagination__spacer {
  min-width: 7rem;
  visibility: hidden;
}

.badge {
  display: inline-block; font-size: .65rem; font-weight: 700;
  padding: .2rem .45rem; border-radius: 4px;
  background: #eff6ff; color: #1e40af;
  margin-right: .35rem; vertical-align: middle;
  letter-spacing: .02em;
}
.badge--state { background: #eef2ff; color: #3730a3; }
.badge--contract { background: #f5f3ff; color: #5b21b6; }

.empty-list {
  text-align: center; padding: 2rem 1rem;
  color: var(--muted); font-size: .95rem;
}

/* —— Detail page —— */
.back-row { margin-bottom: 1rem; }
.back-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .9rem; font-weight: 600;
  color: var(--link);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; color: var(--link-hover); }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  padding: .65rem 1.35rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
  border: 1px solid var(--brand);
  cursor: pointer; font-size: .95rem;
  font-family: inherit;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn:active { transform: scale(.98); }
.btn-secondary {
  background: var(--surface) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-strong) !important;
}
.btn-secondary:hover {
  background: #f9fafb !important;
  border-color: var(--muted) !important;
}

.form { max-width: 520px; }
.form label { display: block; font-weight: 600; margin: .85rem 0 .3rem; font-size: .9rem; color: var(--text); }
.form input, .form textarea {
  width: 100%; padding: .65rem .85rem;
  border: 1px solid var(--border);
  border-radius: 8px; font: inherit;
  background: var(--surface);
  color: var(--text);
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.form .hint { font-size: .84rem; color: var(--muted); margin: .3rem 0 0; line-height: 1.4; }

.alert-msg { padding: .85rem 1rem; border-radius: 8px; margin: 1rem 0; font-size: .9rem; }
.alert-msg.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-msg.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem 2.25rem;
  font-size: .875rem;
  color: var(--muted);
}
.site-footer a { color: var(--link); font-weight: 600; }
.site-footer a:hover { color: var(--link-hover); }

.small { font-size: .82rem; }

.job-detail h1 { font-size: clamp(1.25rem, 3.5vw, 1.5rem); margin-top: 0; line-height: 1.25; font-weight: 700; color: var(--text); }
.detail-grid { display: grid; gap: .55rem; margin: 1rem 0; }
.detail-row { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; font-size: .94rem; }
@media (max-width: 520px) {
  .detail-row { grid-template-columns: 1fr; }
  .detail-row strong { display: block; color: var(--muted); font-size: .8rem; }
}
.prose { font-size: .98rem; line-height: 1.65; color: var(--text-secondary); }
.prose p { margin: 0 0 .85rem; }
.prose a {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .15em;
}
.prose a:hover { color: var(--link-hover); }
.actions { margin-top: 1.35rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.url-plain { user-select: all; }

/* Legacy hero (alerts etc.) */
.hero {
  background: var(--surface);
  color: var(--text);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--brand);
}
.hero h1 { margin: 0 0 .5rem; font-size: clamp(1.25rem, 4vw, 1.65rem); font-weight: 700; }
.hero p { margin: 0; color: var(--text-secondary); font-size: .98rem; }

.page-intro h1 { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.page-intro > p { margin: 0 0 1rem; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* —— Month planner (deadlines in the next N months) —— */
.timeline-planner {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.15rem 1.35rem;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf9 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline-planner__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}
.timeline-planner__intro {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 40rem;
}

.month-bucket {
  margin-bottom: 1.35rem;
}
.month-bucket:last-child { margin-bottom: 0; }
.month-bucket__title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.month-bucket__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.month-bucket__item[hidden] { display: none !important; }

.month-bucket__link {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.month-bucket__link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.month-bucket__line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1 1 12rem;
}
.month-bucket__name {
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.35;
  color: var(--link);
}
.month-bucket__link:hover .month-bucket__name {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.month-bucket__org {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}
.month-bucket__when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .month-bucket__when { align-items: flex-start; text-align: left; }
}
.month-bucket__deadline {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.month-bucket__countdown {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--warn-text);
  background: var(--warn-bg);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--warn-border);
}
