/*
Theme Name: सरकारी पथ
Author: सरकारी पथ
Description: हिंदी सरकारी नौकरी की साफ थीम। सामान्य पोस्ट और श्रेणियों पर चलती है, ताकि Jetpack से जुड़ा ChatGPT सूचना जोड़ और बदल सके। किसी विभाग की आधिकारिक थीम नहीं है।
Version: 2.3.6
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sarkari-path
*/

:root {
  --paper: #f3eee4;
  --sheet: #fffdf8;
  --ink: #1b2430;
  --muted: #5e6874;
  --line: #e3d9c8;
  --navy: #12304a;
  --navy-deep: #0c2236;
  --cream: #f7f3ea;
  --saffron: #d4781c;
  --sans: "Hind", "Nirmala UI", "Mangal", sans-serif;
  --display: "Tiro Devanagari Hindi", "Hind", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { background: var(--navy-deep); color: var(--cream); }
.top .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.92rem; }
.top p { margin: 0; }
.mast { background: var(--sheet); border-bottom: 4px solid var(--saffron); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; flex-wrap: wrap; }
.brand { text-decoration: none; }
.brand strong { display: block; font-family: var(--display); font-size: 2.2rem; font-weight: 400; color: var(--navy); line-height: 1; }
.brand span { color: var(--muted); font-size: 0.95rem; }
.search { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 10px 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: var(--navy); color: var(--cream); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.line { background: transparent; color: var(--navy); border: 1px solid var(--line); }

.nav { background: var(--sheet); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav .sp-main-menu { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; overflow: visible; }
.nav .sp-main-menu > li { position: relative; list-style: none; }
.nav a, .nav .sp-dropdown-toggle { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.nav a:hover, .nav a:focus, .nav .sp-dropdown-toggle:hover, .nav .sp-dropdown-toggle:focus { background: var(--paper); }
.nav .sp-dropdown-toggle { align-items: center; min-height: 48px; padding: 0 12px; border: 0; background: transparent; color: var(--navy); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.nav .sp-filter-menu > .sub-menu { display: none !important; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 210px; max-height: 65vh; overflow-y: auto; padding: 6px 0; margin: 0; list-style: none; background: var(--sheet); border: 1px solid var(--line); border-top: 3px solid var(--saffron); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.nav .sub-menu li { display: block; margin: 0; padding: 0; list-style: none; }
.nav .sub-menu a { display: flex; width: 100%; min-height: 40px; padding: 8px 14px; }
.nav .sp-filter-menu.is-open > .sub-menu { display: block !important; }
/* Keep dropdowns closed by default; override generic WordPress hover/focus menu rules. */
.nav .sp-filter-menu:not(.is-open):hover > .sub-menu,
.nav .sp-filter-menu:not(.is-open):focus-within > .sub-menu { display: none !important; }
.sp-menu-caret { margin-left: 6px; font-size: .8em; }

.main { padding: 28px 0 48px; }
.hero { background: var(--navy); color: var(--cream); padding: 28px; }
.hero h1 { font-size: 2.6rem; margin: 8px 0; }
.kicker { margin: 0; color: var(--saffron); font-weight: 700; }
.hero p { max-width: 40rem; color: rgba(247, 243, 234, 0.9); }
.grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--sheet); border: 1px solid var(--line); }
.panel h2 { margin: 0; padding: 14px 16px; border-bottom: 2px solid var(--navy); font-size: 1.6rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.panel h2 a { font-family: var(--sans); font-size: 0.9rem; font-weight: 700; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a { display: block; padding: 12px 16px; text-decoration: none; }
.rows a:hover { background: var(--paper); }
.rows strong { display: block; color: var(--navy); }
.meta { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.empty { margin: 0; padding: 16px; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.cats a { display: block; background: var(--sheet); border: 1px solid var(--line); padding: 14px; text-decoration: none; font-weight: 700; }
.cats a span { display: block; font-weight: 400; color: var(--muted); }

.sheet { background: var(--sheet); border: 1px solid var(--line); padding: 24px; }
.sheet h1 { font-size: 2.4rem; margin-top: 0; }
.facts { width: 100%; border-collapse: collapse; margin: 16px 0; }
.facts th, .facts td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 10px; vertical-align: top; }
.facts th { width: 34%; background: var(--paper); }
.entry { font-size: 1.05rem; }
.entry > *:first-child { margin-top: 0; }
.sp-ribbon { display: flex; align-items: stretch; background: #12304a; color: #f7f3ea; min-height: 42px; }
.sp-ribbon-label { margin: 0; display: flex; align-items: center; flex: none; background: #d4781c; color: #0c2236; font-weight: 800; padding: 0 16px; }
.sp-ticker { overflow: hidden; flex: 1; min-width: 0; }
.sp-ticker-track { display: flex; gap: 32px; width: max-content; padding: 10px 16px; animation: sp-tick 46s linear infinite; }
.sp-ticker a { color: #f7f3ea; text-decoration: none; white-space: nowrap; font-weight: 700; }
.sp-chip { background: #d4781c; color: #0c2236; font-size: 0.75rem; font-weight: 800; padding: 2px 6px; margin-right: 8px; }
@keyframes sp-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sp-ticker-track { animation: none; } }

.sp-boxes { display: grid; gap: 12px; margin-top: 12px; }
.sp-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 14px;
  background: #fffdf8;
  border: 2px solid #12304a;
  box-shadow: 4px 4px 0 #d4781c;
  color: #12304a;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}
.sp-box span { display: block; margin-top: 4px; color: #5e6874; font-weight: 400; font-size: 0.9rem; }
.sp-quals { grid-template-columns: repeat(4, 1fr); }
.sp-depts, .sp-states { grid-template-columns: repeat(5, 1fr); }
.sp-depts .sp-box { text-align: left; }
@media (max-width: 800px) {
  .sp-quals, .sp-depts, .sp-states { grid-template-columns: 1fr 1fr; }
}

.head { border-bottom: 2px solid var(--navy); margin: 28px 0 12px; }
.head h2 { margin: 0 0 8px; font-size: 1.8rem; }


.foot { background: var(--navy-deep); color: var(--cream); padding: 28px 0; margin-top: 8px; }
.foot a { color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.foot h2 { margin: 0 0 8px; color: var(--saffron); font-size: 1.3rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }

@media (max-width: 800px) {
  .nav .sp-main-menu { gap: 0; }
  .nav a { padding: 0 9px; font-size: .92rem; }
  .nav .sub-menu { min-width: 190px; }
  .grid, .foot-grid, .quals, .depts, .states { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2rem; }
  .hide-sm { display: none; }
}

/* WordPress Primary Menu dropdowns: open on click, not hover. */
.nav .menu-item-has-children { position: relative; }
.nav .menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 210px;
  max-height: 65vh;
  overflow-y: auto;
  padding: 6px 0;
  margin: 0;
  list-style: none;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-top: 3px solid var(--saffron);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.nav .menu-item-has-children.is-open > .sub-menu { display: block; }
.nav .menu-item-has-children > .sp-dropdown-toggle {
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  cursor: pointer;
}
.nav .menu-item-has-children > .sub-menu a {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
}
.nav .menu-item-has-children > .sub-menu .menu-item-has-children > .sub-menu {
  top: 0;
  left: 100%;
}
@media (max-width: 800px) {
  .nav .menu-item-has-children > .sub-menu { min-width: 190px; }
}
