﻿/* ===== Sarkari Job Portal - main stylesheet ===== */
:root {
    --navy: #13294b;
    --navy-2: #1d3a66;
    --saffron: #e86f1c;
    --saffron-dark: #c45810;
    --green: #17804a;
    --red: #c0322b;
    --amber: #b7791f;
    --ink: #1b2330;
    --muted: #5d6878;
    --line: #e3e7ee;
    --bg: #f4f6f9;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 4px 14px rgba(19, 41, 75, .05);
    --font: "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--saffron-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ----- header ----- */
.site-header { background: var(--navy); color: #fff; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 10px; flex: none; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.brand-name { display: block; font-size: 1.3rem; font-weight: 700; }
.brand-tag { display: block; font-size: .82rem; opacity: .8; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; min-width: 260px; }
.search-box { display: flex; flex: 1; max-width: 380px; background: #fff; border-radius: 8px; overflow: hidden; }
.search-box input { flex: 1; border: 0; padding: 9px 12px; font: inherit; font-size: .95rem; min-width: 0; outline: none; }
.search-box button { border: 0; background: var(--saffron); color: #fff; padding: 0 14px; cursor: pointer; }
.search-box button:hover { background: var(--saffron-dark); }
.lang-switch { color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 7px 12px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.lang-switch:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }

/* ----- navigation ----- */
.main-nav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.08); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; padding: 12px 0; cursor: pointer; align-items: center; gap: 8px; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link { display: block; color: #fff; padding: 12px 14px; font-weight: 600; font-size: .95rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-link:hover, .nav-list > li.active > .nav-link { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-list > li.active > .nav-link { box-shadow: inset 0 -3px 0 var(--saffron); }
.caret { display: inline-block; width: 0; height: 0; margin-left: 6px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; vertical-align: middle; }
.caret-only { background: none; border: 0; color: #fff; padding: 12px 8px 12px 0; cursor: pointer; margin-left: -8px; }
.sub { display: none; position: absolute; top: 100%; left: 0; z-index: 50; min-width: 230px; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.sub-wide { min-width: 560px; display: none; grid-template-columns: repeat(3, 1fr); max-height: 70vh; overflow: auto; }
.sub a { display: block; padding: 7px 10px; color: var(--ink); border-radius: 6px; font-size: .92rem; }
.sub a:hover { background: var(--bg); color: var(--saffron-dark); text-decoration: none; }
@media (min-width: 901px) {
    .nav-list > li.has-sub:hover > .sub, .nav-list > li.has-sub:focus-within > .sub { display: block; }
    .nav-list > li.has-sub:hover > .sub-wide, .nav-list > li.has-sub:focus-within > .sub-wide { display: grid; }
    .nav-list > li:nth-last-child(-n+3) > .sub { left: auto; right: 0; }
}

/* ----- page layout ----- */
.page-body { padding-top: 20px; padding-bottom: 32px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.sidebar > * + * { margin-top: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 20px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.page-head { margin-bottom: 16px; }
.page-head p { margin: 0; color: var(--muted); }

/* ----- home ----- */
.hero-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: thin; }
.hero-strip a { flex: none; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--saffron); border-radius: 8px; padding: 10px 14px; max-width: 320px; font-weight: 600; font-size: .92rem; color: var(--ink); box-shadow: var(--shadow); }
.hero-strip a:hover { color: var(--saffron-dark); text-decoration: none; }
.update-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.update-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.update-box h2 { margin: 0; padding: 11px 16px; font-size: 1.05rem; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.update-box h2 a { color: #fff; font-size: .8rem; font-weight: 600; opacity: .9; }
.box-jobs h2 { background: var(--saffron); }
.box-admit h2 { background: var(--navy-2); }
.box-result h2 { background: var(--green); }
.box-key h2 { background: #6b3fa0; }
.box-soon h2 { background: var(--red); }
.update-list { list-style: none; margin: 0; padding: 4px 0; flex: 1; }
.update-list li { padding: 8px 16px; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.update-list li:last-child { border-bottom: 0; }
.update-list .meta { display: block; font-size: .78rem; color: var(--muted); }
.section-title { margin: 28px 0 12px; font-size: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; color: var(--ink); }
.chip:hover { border-color: var(--saffron); color: var(--saffron-dark); text-decoration: none; }
.tool-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tool-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--ink); }
.tool-card:hover { border-color: var(--saffron); text-decoration: none; color: var(--ink); }
.tool-card strong { display: block; font-size: 1.05rem; margin-bottom: 4px; color: var(--navy); }
.tool-card span { font-size: .9rem; color: var(--muted); }
.tool-icon { width: 38px; height: 38px; border-radius: 9px; background: #fff1e6; color: var(--saffron-dark); display: grid; place-items: center; margin-bottom: 10px; }

/* ----- list page ----- */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: 0; }
.post-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .84rem; color: var(--muted); }
.post-meta b { color: var(--ink); font-weight: 600; }
.type-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--saffron-dark); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .3px; }
.badge-new { background: #e4f5ec; color: var(--green); }
.badge-soon { background: #fdf0d9; color: var(--amber); }
.badge-closed { background: #f1f2f4; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.filter-tabs a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--ink); }
.filter-tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ----- detail page ----- */
.post-title { font-size: 1.5rem; }
.post-summary { font-size: 1.02rem; color: var(--muted); }
.info-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .95rem; }
.info-table th, .info-table td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
.info-table th { width: 38%; background: #f7f9fc; font-weight: 600; }
.links-table td:last-child { text-align: right; }
.post-content { overflow-wrap: anywhere; }
.post-content table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 7px 10px; }
.notice { background: #fff8ec; border: 1px solid #f3dcb3; border-radius: 8px; padding: 10px 14px; font-size: .9rem; margin: 14px 0; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* ----- buttons & forms ----- */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 9px 18px; font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; text-align: center; line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 5px 12px; font-size: .84rem; }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; color: #fff; }
.btn-tg { background: #2a8bc9; color: #fff; }
.btn-tg:hover { background: #2274a8; color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-row { display: flex; flex-direction: column; gap: 5px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-weight: 600; font-size: .9rem; }
.input, select.input, textarea.input { width: 100%; font: inherit; font-size: .95rem; padding: 9px 11px; border: 1px solid #cdd4df; border-radius: 8px; background: #fff; color: var(--ink); }
.input:focus { outline: 2px solid rgba(232,111,28,.35); border-color: var(--saffron); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.msg { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: .93rem; }
.msg-ok { background: #e4f5ec; color: #11613a; }
.msg-err { background: #fdecea; color: #92231d; }
.hp { position: absolute; left: -9999px; }

/* ----- tool results ----- */
.result-card { margin-top: 18px; background: #f7f9fc; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.big-number { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 1.3rem; color: var(--navy); }
.stat span { font-size: .8rem; color: var(--muted); }
.salary-table td:last-child, .salary-table th:last-child { text-align: right; }
.salary-table tr.total td { font-weight: 700; background: #fff1e6; }
.ok { color: var(--green); font-weight: 600; }
.bad { color: var(--red); font-weight: 600; }

/* ----- ads ----- */
.ad-slot { margin: 16px 0; text-align: center; min-height: 90px; }
.ad-label { font-size: .68rem; color: #9aa3b0; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.sidebar .ad-slot { min-height: 250px; margin: 0; }

/* ----- footer ----- */
.site-footer { background: var(--navy); color: #d5dceb; padding-top: 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 24px; }
.footer-brand { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-title { font-weight: 700; color: #fff; margin: 0 0 8px; }
.muted-light { color: #aeb9cd; margin-top: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 4px 0; }
.footer-links a { color: #d5dceb; }
.footer-links a:hover { color: #fff; }
.alert-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; padding-bottom: 18px; font-size: .84rem; color: #aeb9cd; }

/* ----- responsive ----- */
@media (max-width: 1000px) {
    .update-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .nav-toggle { display: inline-flex; }
    .nav-list { display: none; flex-direction: column; padding-bottom: 8px; }
    .nav-list.open { display: flex; }
    .nav-list > li { flex-wrap: wrap; }
    .nav-list > li > .nav-link { flex: 1; text-align: left; }
    .sub, .sub-wide { position: static; width: 100%; min-width: 0; box-shadow: none; border-radius: 8px; margin: 0 0 6px; max-height: none; }
    li.open > .sub { display: block; }
    li.open > .sub-wide { display: grid; grid-template-columns: 1fr 1fr; }
    .tool-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    h1, .post-title { font-size: 1.3rem; }
    .header-actions { min-width: 0; width: 100%; }
    .search-box { max-width: none; }
    .update-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .info-table th { width: 42%; }
    .info-table th, .info-table td { padding: 8px; }
}
