/* ============================================================
   Sarkari Yojana & Jobs — Premium UI Stylesheet v2
   Mobile-first | EN / HI / GU trilingual
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600;700&family=Noto+Sans+Gujarati:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --saffron:       #FF6B00;
  --saffron-light: #FFF3E8;
  --navy:          #0A2463;
  --navy-mid:      #1a3a7c;
  --green:         #138808;
  --green-light:   #E8F5E9;
  --gold:          #D4A017;
  --gold-light:    #FFF8E1;
  --surface:       #FFFFFF;
  --bg:            #F4F6FB;
  --border:        #DDE3EE;
  --text:          #1A1A2E;
  --text-muted:    #5A6478;
  --error:         #D32F2F;
  --whatsapp:      #25D366;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --shadow-sm:     0 2px 8px rgba(10,36,99,0.08);
  --shadow-md:     0 6px 24px rgba(10,36,99,0.12);
  --shadow-lg:     0 12px 40px rgba(10,36,99,0.16);
  --font-en:       'Noto Sans', system-ui, sans-serif;
  --font-hi:       'Noto Sans Devanagari', sans-serif;
  --font-gu:       'Noto Sans Gujarati', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  padding-top: 112px;
}

body.lang-hi { font-family: var(--font-hi); }
body.lang-gu { font-family: var(--font-gu); }

/* Language visibility — default hide all lang spans */
[data-lang] { display: none !important; }
body.lang-en [data-lang="en"] { display: inline !important; }
body.lang-hi [data-lang="hi"] { display: inline !important; }
body.lang-gu [data-lang="gu"] { display: inline !important; }
.block-lang { display: none !important; }
body.lang-en .block-lang[data-lang="en"] { display: block !important; }
body.lang-hi .block-lang[data-lang="hi"] { display: block !important; }
body.lang-gu .block-lang[data-lang="gu"] { display: block !important; }

/* ── TOP HEADER BAR ─────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 950;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  box-shadow: var(--shadow-md);
}

.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 3px solid var(--saffron);
}

.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header-logo img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); }
.header-logo-text { color: #fff; }
.header-logo-text .site-name { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.header-logo-text .site-tagline { font-size: 0.7rem; color: #b8c8f0; }

.lang-switcher { display: flex; align-items: center; gap: 6px; }
.lang-select {
  padding: 6px 28px 6px 10px;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s;
}
.lang-select:hover, .lang-select:focus { background-color: var(--saffron); border-color: var(--saffron); }
.lang-select option { background: var(--navy); color: #fff; font-weight: 600; }

/* ── PROGRESS BAR ───────────────────────────────────────────── */
.progress-bar-container {
  background: rgba(255,255,255,0.08);
  padding: 6px 16px 8px;
}
.progress-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; position: relative;
}
.progress-step:not(:last-child)::after {
  content: ''; position: absolute; top: 12px; left: 50%; width: 100%;
  height: 2px; background: rgba(255,255,255,0.2); z-index: 0;
}
.progress-step.done:not(:last-child)::after { background: var(--saffron); }
.step-dot {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff; z-index: 1;
  transition: all 0.3s;
}
.progress-step.done .step-dot { background: var(--saffron); border-color: var(--saffron); }
.progress-step.active .step-dot { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
.step-name { font-size: 0.55rem; color: rgba(255,255,255,0.6); text-align: center; line-height: 1.2; }
.progress-step.active .step-name { color: #fff; font-weight: 600; }

/* ── MAIN LAYOUT ────────────────────────────────────────────── */
main { max-width: 900px; margin: 0 auto; padding: 16px; }

/* ── HERO BANNER ────────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1e4db7 60%, var(--saffron) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-banner::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero-banner::after {
  content: ''; position: absolute; bottom: -60px; left: -20px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,107,0,0.15);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--saffron); color: #fff;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-title { font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.hero-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-stat {
  background: rgba(255,255,255,0.12); border-radius: var(--radius-md);
  padding: 10px 12px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-value { font-size: 1.2rem; font-weight: 700; color: #fff; }
.hero-stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.7); }

/* ── NOTICE BAR ─────────────────────────────────────────────── */
.notice-bar {
  background: var(--gold-light); border: 1.5px solid var(--gold);
  border-radius: var(--radius-md); padding: 10px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px; font-size: 0.85rem; color: #7a5800;
}
.notice-bar .notice-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  margin-bottom: 20px; overflow: hidden;
}
.card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
}
.card-header-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.card-header-icon.orange { background: var(--saffron-light); }
.card-header-icon.blue   { background: #E8EEFF; }
.card-header-icon.green  { background: var(--green-light); }
.card-header-icon.gold   { background: var(--gold-light); }
.card-header h2 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; }
.card-header p  { font-size: 0.75rem; color: var(--text-muted); margin: 0; }
.card-body { padding: 16px 18px; }

/* ── VACANCY GRID ───────────────────────────────────────────── */
.vacancy-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.vacancy-card {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1.5px solid var(--border); padding: 14px;
  cursor: pointer; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.vacancy-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--navy);
  border-radius: 4px 0 0 4px;
}
.vacancy-card.hot::before { background: var(--saffron); }
.vacancy-card.new::before { background: var(--green); }
.vacancy-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vacancy-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.vacancy-dept { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.vacancy-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.badge-hot  { background: #FFF0E6; color: var(--saffron); border: 1px solid #FFD0A8; }
.badge-new  { background: var(--green-light); color: var(--green); border: 1px solid #A5D6A7; }
.badge-open { background: #E8EEFF; color: var(--navy); border: 1px solid #B3C0F0; }
.vacancy-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.vacancy-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.meta-chip {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: var(--text-muted);
  background: var(--bg); padding: 3px 8px; border-radius: 20px;
}
.vacancy-footer { display: flex; justify-content: space-between; align-items: center; }
.vacancy-deadline { font-size: 0.72rem; color: var(--error); font-weight: 600; }
.btn-apply-sm {
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px;
  background: var(--navy); color: #fff; border: none;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: background 0.2s;
}
.btn-apply-sm:hover { background: var(--saffron); }

/* ── VACANCY DETAIL MODAL ───────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,36,99,0.55); z-index: 2000;
  align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: var(--surface); width: 100%; max-width: 680px;
  max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 12px auto 0; }
.modal-header {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--navy); flex: 1; padding-right: 12px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: var(--bg); cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-muted);
}
.modal-body { padding: 16px 18px; }
.modal-section { margin-bottom: 18px; }
.modal-section h3 { font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-item { background: var(--bg); border-radius: var(--radius-sm); padding: 8px 10px; }
.info-item .info-label { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.info-item .info-value { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.modal-cta { padding: 0 18px 20px; }

/* ── TABLES ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { background: var(--navy); color: #fff; padding: 10px 12px; text-align: left; font-size: 0.78rem; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: #f8f9ff; }
.data-table td:first-child { color: var(--text); font-weight: 600; }

/* ── CHECKLIST ──────────────────────────────────────────────── */
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; font-size: 0.9rem; }

/* ── STEP CARDS (selection process) ────────────────────────── */
.step-cards { display: flex; flex-direction: column; gap: 14px; }
.step-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); padding: 14px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(10,36,99,0.25);
}
.step-content h3 { font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-content p  { font-size: 0.83rem; color: var(--text-muted); margin: 0; }

/* ── SALARY HIGHLIGHT CARDS ─────────────────────────────────── */
.salary-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.salary-hl {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-md); padding: 14px; color: #fff; text-align: center;
}
.salary-hl.orange { background: linear-gradient(135deg, var(--saffron) 0%, #e55a00 100%); }
.salary-hl.green  { background: linear-gradient(135deg, var(--green) 0%, #0d6b06 100%); }
.salary-hl.gold   { background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%); }
.salary-hl-value { font-size: 1.3rem; font-weight: 700; }
.salary-hl-label { font-size: 0.7rem; opacity: 0.85; margin-top: 2px; }

/* ── DOCUMENT CATEGORY ──────────────────────────────────────── */
.doc-category { margin-bottom: 16px; }
.doc-category-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--saffron);
}

/* ── FORM ───────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--error); }
.form-input, .form-select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font-size: 0.92rem; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,36,99,0.1); }
.form-input.is-error, .form-select.is-error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(211,47,47,0.1); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6478' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field-error { font-size: 0.75rem; color: var(--error); font-weight: 500; }
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-option {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 0.88rem;
  transition: all 0.2s;
}
.radio-option:has(input:checked) { border-color: var(--navy); background: #E8EEFF; }
.radio-option input { accent-color: var(--navy); }
.checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; font-size: 0.83rem; color: var(--text); line-height: 1.5; cursor: pointer; }
.checkbox-wrap input { accent-color: var(--navy); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 12px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff; font-size: 1rem; font-weight: 700; font-family: inherit;
  border: none; border-radius: var(--radius-md); cursor: pointer;
  text-decoration: none; text-align: center;
  box-shadow: 0 4px 16px rgba(10,36,99,0.3);
  transition: all 0.25s; -webkit-appearance: none; appearance: none;
}
.btn-primary:hover { background: linear-gradient(135deg, var(--saffron) 0%, #e55a00 100%); box-shadow: 0 6px 20px rgba(255,107,0,0.35); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 10px 24px;
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy); border-radius: var(--radius-md);
  font-size: 0.92rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.cta-section { padding: 8px 0 20px; display: flex; flex-direction: column; gap: 10px; }

/* ── SUCCESS MESSAGE ────────────────────────────────────────── */
.success-message {
  display: none; text-align: center; padding: 32px 20px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 2px solid #86efac; border-radius: var(--radius-lg);
}
.success-message.is-visible { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.success-message h3 { color: var(--green); font-size: 1.3rem; margin-bottom: 8px; }
.success-message p { color: #166534; font-size: 0.9rem; margin: 0; }

/* ── AD SLOTS ───────────────────────────────────────────────── */
.ad-slot {
  width: 100%; min-height: 90px; background: #EEF0F5;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-muted); font-style: italic;
  margin: 16px 0; letter-spacing: 0.03em;
}
.ad-slot::before { content: "Advertisement"; }
.ad-slot:not(:empty)::before { display: none; }

/* ── WHATSAPP STICKY ────────────────────────────────────────── */
.whatsapp-sticky {
  position: fixed; bottom: 20px; right: 16px; z-index: 1000;
  background: var(--whatsapp); color: #fff;
  border-radius: var(--radius-xl); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none; font-weight: 700; font-size: 0.82rem;
  transition: all 0.25s; max-width: 200px;
}
.whatsapp-sticky:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(37,211,102,0.55); color: #fff; text-decoration: none; }
.wa-icon { width: 28px; height: 28px; flex-shrink: 0; }

/* ── VACANCY DETAIL PAGE ────────────────────────────────────── */
.vacancy-detail-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg); padding: 24px 20px; color: #fff; margin-bottom: 20px;
}
.vacancy-detail-dept { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.vacancy-detail-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.vacancy-detail-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vacancy-detail-chip { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 4px 12px; font-size: 0.75rem; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  text-align: center; padding: 20px 16px;
  font-size: 0.78rem; margin-top: 32px;
}
footer a { color: rgba(255,255,255,0.9); }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (min-width: 600px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .vacancy-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-group.full { grid-column: 1 / -1; }
  .info-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  body { padding-top: 108px; }
  main { padding: 24px 20px; }
  .vacancy-grid { grid-template-columns: repeat(3, 1fr); }
  .modal-overlay { align-items: center; }
  .modal-sheet { border-radius: var(--radius-lg); max-height: 85vh; }
  .salary-highlights { grid-template-columns: repeat(4, 1fr); }
}
