/*
Theme Name: GovSathi
Theme URI: https://govsathi.com
Author: GovSathi
Description: Hindi government-jobs theme for GovSathi. Uses the existing posts, categories, and sp_qual, sp_dept and sp_state taxonomies without changing permalinks.
Version: 1.0.0
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: govsathi
*/

:root {
  --ink: #172033;
  --muted: #526072;
  --paper: #f4f1ea;
  --sheet: #fffcf7;
  --line: #ddd4c4;
  --navy: #10243a;
  --navy-2: #0b1b2c;
  --saffron: #c56a12;
  --cream: #f6f1e6;
  --link: #123a5c;
  --sans: "Nirmala UI", "Noto Sans Devanagari", "Mangal", "Segoe UI", sans-serif;
  --display: "Nirmala UI", "Noto Serif Devanagari", "Mangal", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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(--link); }
a:hover { color: var(--saffron); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.25; }
button, input, select { font: inherit; }
.gs-wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.gs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gs-skip { position: absolute; left: 12px; top: -40px; background: var(--navy); color: var(--cream); padding: 8px 12px; z-index: 50; }
.gs-skip:focus { top: 8px; }

.gs-top { background: var(--navy-2); color: var(--cream); font-size: 0.92rem; }
.gs-top .gs-wrap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.gs-top p { margin: 0; }
.gs-mast { background: var(--sheet); border-bottom: 4px solid var(--saffron); }
.gs-mast-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; flex-wrap: wrap; }
.gs-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.gs-brand img { width: 72px; height: 72px; border-radius: 50%; }
.gs-brand strong { display: block; font-size: 1.8rem; line-height: 1; }
.gs-brand span { color: var(--muted); font-size: 0.92rem; }
.gs-search { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.gs-search input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 10px 12px; color: var(--ink); }
.gs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--navy); color: var(--cream); font-weight: 700; text-decoration: none; cursor: pointer; }
.gs-btn:hover { background: var(--navy-2); color: var(--cream); }
.gs-btn.gs-line { background: var(--sheet); color: var(--navy); border: 1px solid var(--line); }

.gs-nav { background: var(--sheet); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.gs-nav-row { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.gs-menu-btn { display: none; background: transparent; border: 0; font-weight: 700; min-height: 44px; color: var(--navy); }
.gs-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.gs-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }

.gs-ribbon { display: flex; align-items: stretch; background: #10243a; color: #f6f1e6; min-height: 44px; }
.gs-ribbon-label { margin: 0; display: flex; align-items: center; flex: none; background: #c56a12; color: #0b1b2c; font-weight: 800; padding: 0 14px; }
.gs-ticker { overflow: hidden; flex: 1; min-width: 0; }
.gs-ticker-track { display: flex; gap: 28px; width: max-content; padding: 10px 12px; animation: gs-tick 50s linear infinite; }
.gs-ticker a { color: #f6f1e6; text-decoration: none; white-space: nowrap; font-weight: 700; }
@keyframes gs-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gs-ticker-track { animation: none; } }

.gs-main { padding: 28px 0 56px; }
.gs-hero { background: var(--navy); color: var(--cream); padding: 28px; border-radius: 12px; }
.gs-hero h1 { margin: 8px 0; font-size: 2.4rem; }
.gs-kicker { margin: 0; color: #f0b46a; font-weight: 700; }
.gs-hero p { max-width: 40rem; }
.gs-hero .gs-search input { background: #fff; }
.gs-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gs-stats span { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 6px 10px; font-weight: 700; }

.gs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--navy); margin: 28px 0 12px; }
.gs-head h2 { margin: 0 0 8px; font-size: 1.7rem; }
.gs-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; }
.gs-cards { display: grid; gap: 12px; }
.gs-card { display: block; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--saffron); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; }
.gs-card:hover { border-color: var(--navy); }
.gs-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); }
.gs-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 0.92rem; }
.gs-meta b { color: var(--ink); font-weight: 700; }
.gs-boxes { display: grid; gap: 10px; }
.gs-box { display: flex; flex-direction: column; justify-content: center; min-height: 84px; padding: 12px; background: #fffcf7; border: 2px solid #10243a; box-shadow: 4px 4px 0 #c56a12; color: #10243a; text-decoration: none; font-weight: 700; text-align: center; border-radius: 8px; }
.gs-box small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; }
.gs-quals { grid-template-columns: repeat(4, 1fr); }
.gs-depts { grid-template-columns: repeat(5, 1fr); }
.gs-states { grid-template-columns: repeat(4, 1fr); }
.gs-crumbs { font-size: 0.92rem; color: var(--muted); margin: 0 0 12px; }
.gs-crumbs a { color: var(--muted); }
.gs-sheet { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.gs-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); gap: 16px; }
.gs-facts { width: 100%; border-collapse: collapse; margin: 12px 0; }
.gs-facts th, .gs-facts td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 10px; vertical-align: top; }
.gs-facts th { width: 34%; background: var(--paper); }
.gs-entry h2 { scroll-margin-top: 72px; font-size: 1.45rem; }
.gs-entry > *:first-child { margin-top: 0; }
.gs-toc { margin: 0 0 16px; padding: 12px 16px; background: var(--paper); border-radius: 8px; }
.gs-toc ol { margin: 8px 0 0; padding-left: 1.2rem; }
.gs-side { position: sticky; top: 68px; height: fit-content; }
.gs-note { color: var(--muted); font-size: 0.92rem; }
.navigation.pagination { margin-top: 20px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.navigation.pagination a, .navigation.pagination span { display: inline-flex; min-width: 40px; min-height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); text-decoration: none; padding: 0 8px; }
.navigation.pagination .current { background: var(--navy); color: var(--cream); }
.gs-foot { background: var(--navy-2); color: var(--cream); padding: 28px 0; margin-top: 12px; }
.gs-foot a { color: var(--cream); }
.gs-foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.gs-foot h2 { color: #f0b46a; font-size: 1.2rem; margin: 0 0 8px; }
.gs-foot ul { list-style: none; margin: 0; padding: 0; }
.gs-foot li { margin: 6px 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

@media (max-width: 800px) {
  .gs-menu-btn { display: inline-flex; }
  .gs-nav ul { display: none; flex-direction: column; padding-bottom: 8px; }
  .gs-nav.is-open ul { display: flex; }
  .gs-grid, .gs-layout, .gs-foot-grid, .gs-quals, .gs-depts, .gs-states { grid-template-columns: 1fr; }
  .gs-hero h1 { font-size: 1.8rem; }
  .gs-hide-sm { display: none; }
  .gs-side { position: static; }
}
