/* ============================================================
   Raj Excise Lottery Portal - Main Stylesheet
   Rajasthan Excise Department | आबकारी विभाग, राजस्थान
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-saffron: #FF9933;
  --color-navy: #1a2a5e;
  --color-navy-dark: #0f1d45;
  --color-crimson: #BD0039;
  --color-teal: #00816A;
  --color-teal-dark: #006854;
  --color-bg-light: #F3F7F9;
  --color-bg-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-text-muted: #777777;
  --color-border: #d0d5dd;
  --color-border-light: #e8ecf0;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gold: #c5930a;
  --color-red-notice: #cc0000;
  --color-green-success: #28a745;
  --color-yellow-warn: #ffc107;
  --font-hindi: 'Noto Sans Devanagari', 'Mangal', 'Kokila', sans-serif;
  --font-english: 'Noto Sans', 'Segoe UI', 'Arial', sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --max-width: 1200px;
  --header-height: 140px;
  --nav-height: 48px;
  --transition: 0.2s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-system);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus {
  color: var(--color-crimson);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--color-saffron);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

button:focus-visible {
  outline: 3px solid var(--color-saffron);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

.text-center { text-align: center; }
.text-hindi { font-family: var(--font-hindi); }
.text-crimson { color: var(--color-crimson); }
.text-navy { color: var(--color-navy); }
.text-teal { color: var(--color-teal); }
.text-small { font-size: 0.875rem; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 10px;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 20px;
  z-index: 10000;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
  text-decoration: none;
}

/* --- Top Bar (Saffron stripe) --- */
.top-bar {
  background: linear-gradient(90deg, var(--color-saffron), #e68a00);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 4px 0;
  position: relative;
  z-index: 100;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar a {
  color: var(--color-white);
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--color-navy-dark);
  text-decoration: underline;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition);
}

.lang-switch:hover {
  background: rgba(255,255,255,0.35);
}

.font-size-controls {
  display: flex;
  gap: 4px;
}

.font-size-controls button {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
}

.font-size-controls button:hover {
  background: rgba(255,255,255,0.4);
}

/* --- Header --- */
.site-header {
  background: linear-gradient(180deg, var(--color-white) 0%, #f0f4f8 100%);
  border-bottom: 3px solid var(--color-navy);
  padding: 12px 0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-emblem {
  width: 60px;
  height: 75px;
  flex-shrink: 0;
}

.header-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-title {
  display: flex;
  flex-direction: column;
}

.header-title .dept-name-hi {
  font-family: var(--font-hindi);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}

.header-title .dept-name-en {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.header-title .portal-name {
  font-size: 0.85rem;
  color: var(--color-crimson);
  font-weight: 600;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-right .rajasthan-govt {
  text-align: right;
}

.header-right .rajasthan-govt .govt-text-hi {
  font-family: var(--font-hindi);
  font-size: 1rem;
  color: var(--color-navy);
  font-weight: 600;
}

.header-right .rajasthan-govt .govt-text-en {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.header-emblem-right {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
}

/* --- Main Navigation --- */
.main-nav {
  background: linear-gradient(180deg, var(--color-navy), var(--color-navy-dark));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-menu {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}

.nav-menu > li:first-child > a {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus,
.nav-menu > li > a[aria-current="page"] {
  background: rgba(255,255,255,0.15);
  color: var(--color-saffron);
  text-decoration: none;
}

.nav-menu > li > a[aria-current="page"] {
  border-bottom: 3px solid var(--color-saffron);
}

/* Dropdown */
.nav-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--color-saffron);
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-menu li:hover .dropdown-menu,
.nav-menu li:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: var(--color-bg-light);
  color: var(--color-crimson);
  text-decoration: none;
}

.dropdown-arrow {
  font-size: 0.6em;
  margin-left: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  color: var(--color-white);
  padding: 10px 14px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Notice Ticker --- */
.notice-ticker-bar {
  background: linear-gradient(90deg, #fff3cd, #ffeeba);
  border-bottom: 1px solid #e0c36a;
  overflow: hidden;
  position: relative;
  height: 36px;
}

.ticker-label {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--color-crimson);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 2;
  white-space: nowrap;
}

.ticker-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  border-left: 12px solid var(--color-crimson);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

.ticker-content {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 140px;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 30px;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

.ticker-item a {
  color: var(--color-crimson);
  font-weight: 600;
}

.ticker-new-badge {
  display: inline-block;
  background: var(--color-crimson);
  color: var(--color-white);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  text-transform: uppercase;
  animation: blink-badge 1s infinite;
}

@keyframes blink-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Hero / Banner --- */
.hero-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, #243b73 50%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="p" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect fill="url(%23p)" width="200" height="200"/></svg>');
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-text {
  max-width: 620px;
}

.hero-text h1 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.hero-text h1 .hi {
  font-family: var(--font-hindi);
  display: block;
  font-size: 1.6rem;
  color: var(--color-saffron);
}

.hero-text p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
  min-width: 100px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-saffron);
  display: block;
}

.stat-label {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--color-saffron);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-crimson {
  background: var(--color-crimson);
  color: var(--color-white);
  border-color: var(--color-crimson);
}

.btn-crimson:hover {
  background: #a00030;
  border-color: #a00030;
  color: var(--color-white);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-icon {
  font-size: 1.1em;
}

/* --- Section Styles --- */
.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--color-bg-white);
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 1.5rem;
  color: var(--color-navy);
  font-weight: 700;
  margin-bottom: 4px;
}

.section-title .hi {
  font-family: var(--font-hindi);
  font-size: 1.3rem;
  color: var(--color-crimson);
  display: block;
}

.section-title p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin: 8px auto 0;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-crimson));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* --- Quick Links Grid --- */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.quick-link-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quick-link-card:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.quick-link-card:hover .ql-icon {
  background: var(--color-navy);
  color: var(--color-white);
}

.ql-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
  flex-shrink: 0;
}

.ql-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ql-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-navy);
}

.ql-title-hi {
  font-family: var(--font-hindi);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* --- Notice Board --- */
.notice-board {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.notice-board-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list {
  max-height: 350px;
  overflow-y: auto;
}

.notice-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
  align-items: flex-start;
}

.notice-item:hover {
  background: #f8fafb;
}

.notice-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  min-width: 55px;
}

.notice-date .day {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-crimson);
  display: block;
}

.notice-date .month {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.notice-content h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 3px;
  line-height: 1.4;
}

.notice-content p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.notice-new {
  display: inline-block;
  background: var(--color-crimson);
  color: var(--color-white);
  font-size: 0.6rem;
  padding: 1px 5px;
  border-radius: 2px;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 6px;
  animation: blink-badge 1s infinite;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Info Cards --- */
.info-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-size: 1.05rem;
  color: var(--color-navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-saffron);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.info-card ul {
  margin-top: 10px;
}

.info-card li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--color-text-light);
  padding-left: 16px;
  position: relative;
}

.info-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-saffron);
  font-weight: 700;
}

/* --- Process Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step-counter;
}

.step-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  counter-increment: step-counter;
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step-card h4 {
  font-size: 0.92rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- District Cards / Filter --- */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}

.filter-bar label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-navy);
}

.filter-bar select,
.filter-bar input[type="text"],
.filter-bar input[type="search"] {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: var(--color-bg-white);
  min-width: 200px;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--color-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,42,94,0.1);
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.district-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.district-card:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.district-card h4 {
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.district-card .district-hi {
  font-family: var(--font-hindi);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.district-card .district-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}

.district-card .district-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.district-card .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* --- Results Table --- */
.results-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.results-table {
  min-width: 700px;
  font-size: 0.88rem;
}

.results-table thead {
  background: var(--color-navy);
  color: var(--color-white);
}

.results-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}

.results-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.results-table tbody tr:nth-child(even) {
  background: #f8fafb;
}

.results-table tbody tr:hover {
  background: #eff4f8;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-allotted {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-rejected {
  background: #f8d7da;
  color: #721c24;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-navy);
  background: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--color-bg-light);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-navy);
  transition: transform var(--transition);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(180deg);
  background: var(--color-navy);
  color: var(--color-white);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
  border-top: 1px solid var(--color-border-light);
  padding-top: 14px;
}

.faq-item.active .faq-answer {
  display: block;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--color-crimson);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-bg-white);
}

.form-control:focus {
  border-color: var(--color-navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,42,94,0.1);
}

.form-control.error {
  border-color: var(--color-crimson);
  box-shadow: 0 0 0 3px rgba(189,0,57,0.1);
}

.form-error {
  color: var(--color-crimson);
  font-size: 0.78rem;
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 0 auto;
}

.form-card h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-saffron);
}

/* --- Downloads List --- */
.download-list {
  display: grid;
  gap: 12px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.download-item:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.download-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: #fce4e4;
  color: var(--color-crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.download-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.download-info {
  flex: 1;
}

.download-info h4 {
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 600;
}

.download-info p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.download-size {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0;
  line-height: 1;
}

.breadcrumb-list li + li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 6px;
  background: var(--color-text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  vertical-align: middle;
}

.breadcrumb-list li:first-child .bc-icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  color: var(--color-navy);
  flex-shrink: 0;
}

.breadcrumb-list a {
  color: var(--color-navy);
  font-weight: 500;
  padding: 2px 0;
  transition: color var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--color-crimson);
  text-decoration: underline;
}

.breadcrumb-list .current {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* --- SVG Icon Utility --- */
.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.svg-icon-lg {
  width: 1.4em;
  height: 1.4em;
}

.svg-icon-xl {
  width: 1.6em;
  height: 1.6em;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
  color: var(--color-white);
  padding: 32px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.page-header .hi {
  font-family: var(--font-hindi);
  font-size: 1.3rem;
  color: var(--color-saffron);
}

.page-header p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* --- Login Box --- */
.login-box {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.login-box h3 {
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-saffron);
}

/* --- Important Notice Panel --- */
.important-notice {
  background: #fff8e1;
  border: 1px solid #f0d060;
  border-left: 4px solid var(--color-saffron);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.important-notice h4 {
  color: #8a6d00;
  font-size: 0.9rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.important-notice p {
  font-size: 0.85rem;
  color: #6d5700;
  line-height: 1.6;
}

/* --- Sidebar --- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-card-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
}

.sidebar-links {
  padding: 8px 0;
}

.sidebar-links a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}

.sidebar-links a:hover {
  background: var(--color-bg-light);
  text-decoration: none;
}

.sidebar-links a:last-child {
  border-bottom: none;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, var(--color-navy-dark), #0a1530);
  color: rgba(255,255,255,0.8);
  margin-top: auto;
}

.footer-top {
  padding: 40px 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand h3 {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.footer-brand .hi {
  font-family: var(--font-hindi);
  color: var(--color-saffron);
  font-size: 0.95rem;
  display: block;
}

.footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 12px;
  opacity: 0.7;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-saffron);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-saffron);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
}

.footer-bottom a {
  color: var(--color-saffron);
}

.footer-bottom .footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.footer-bottom .footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
}

.footer-bottom .footer-bottom-links a:hover {
  color: var(--color-saffron);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  border: 2px solid rgba(255,255,255,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-crimson);
  transform: translateY(-3px);
}

/* --- Content Prose --- */
.prose {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.prose h2 {
  color: var(--color-navy);
  font-size: 1.3rem;
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border-light);
}

.prose h3 {
  color: var(--color-navy);
  font-size: 1.1rem;
  margin: 22px 0 10px;
}

.prose p {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  margin: 12px 0;
  padding-left: 24px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 6px;
}

.prose table {
  margin: 16px 0;
  border: 1px solid var(--color-border);
}

.prose th,
.prose td {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.prose th {
  background: var(--color-bg-light);
  font-weight: 600;
}

/* --- Alert Boxes --- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert-info {
  background: #e8f4fd;
  border-color: #2196F3;
  color: #0d47a1;
}

.alert-success {
  background: #e8f5e9;
  border-color: var(--color-green-success);
  color: #1b5e20;
}

.alert-warning {
  background: #fff8e1;
  border-color: var(--color-yellow-warn);
  color: #8a6d00;
}

.alert-danger {
  background: #fce4ec;
  border-color: var(--color-crimson);
  color: #880e4f;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-card .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-light);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 12px;
}

.contact-card h4 {
  color: var(--color-navy);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: auto;
  }

  .top-bar .container {
    justify-content: center;
    font-size: 0.75rem;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .header-left {
    flex-direction: column;
    text-align: center;
  }

  .header-right {
    display: none;
  }

  .header-title .dept-name-hi {
    font-size: 1.15rem;
  }

  .header-title .dept-name-en {
    font-size: 0.95rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--color-navy-dark);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu > li > a {
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.2);
  }

  .dropdown-menu a {
    padding-left: 32px;
    color: rgba(255,255,255,0.8);
    border-bottom-color: rgba(255,255,255,0.05);
  }

  .dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-saffron);
  }

  .hero-text h1 {
    font-size: 1.4rem;
  }

  .hero-text h1 .hi {
    font-size: 1.2rem;
  }

  .section {
    padding: 32px 0;
  }

  .section-title h2 {
    font-size: 1.25rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.3rem;
  }

  .ticker-label {
    display: none;
  }

  .ticker-content {
    padding-left: 10px;
  }
}

@media (max-width: 480px) {
  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .container {
    padding: 0 14px;
  }

  .district-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select,
  .filter-bar input {
    min-width: auto;
    width: 100%;
  }
}

/* --- Print --- */
@media print {
  .top-bar,
  .main-nav,
  .notice-ticker-bar,
  .back-to-top,
  .nav-toggle {
    display: none !important;
  }

  .site-header {
    border-bottom: 2px solid #000;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 16px 0;
  }
}
