:root {
  --primary-color: #0b3c5d;
  --accent-blue: #0056b3;
  --bg-light: #f4f7fb;
  --text-dark: #333333;
  --font-base: 16px;
}

html {
  font-size: var(--font-base);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* Header Styling */
.site-header {
  border-bottom: 1px solid #e0e0e0;
  background-color: #fff;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.emblem-logo {
  height: 48px;
  width: auto;
}

.govt-title {
  font-size: 0.82rem;
  color: #555;
  display: block;
}

.dept-title {
  margin: 0;
  font-size: 1.25rem;
  color: #111;
  font-weight: 700;
}

/* Header Right Utilities */
.header-right-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  display: flex;
  border: 1px solid #777;
  border-radius: 4px;
  overflow: hidden;
  width: 220px;
  height: 34px;
}

.search-box input {
  border: none;
  padding: 4px 10px;
  width: 100%;
  outline: none;
  font-size: 0.85rem;
}

.search-box button {
  background: transparent;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  color: #555;
}

.digital-india-logo {
  height: 30px;
  width: auto;
  margin: 0 4px;
}

.tool-divider {
  color: #cccccc;
  font-weight: 300;
}

.tool-btn {
  background: transparent;
  border: none;
  color: #0b3c5d;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.tool-btn:hover {
  color: #0056b3;
}

/* Specific styling for Accessibility Trigger Button */
.accessibility-trigger-btn {
  color: #1a365d;
  font-size: 1.25rem;
  border-radius: 50%;
  padding: 6px;
}

.accessibility-trigger-btn:hover {
  background-color: #edf2f7;
}

/* Navigation */
.main-nav {
  border-top: 1px solid #eeeeee;
  padding: 0 40px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 0;
  display: inline-block;
}

/* Slide-out Accessibility Drawer Animation & Visibility */
.accessibility-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  height: 100vh;
  background: #f4f6fa;
  box-shadow: -4px 0 16px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0);
}

.accessibility-drawer.hidden {
  transform: translateX(100%);
}

.drawer-header {
  background-color: #0b2545;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
  flex-grow: 1;
}

.acc-option {
  background: #ffffff;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.acc-option:hover {
  border-color: #b0c4de;
  background-color: #f8faff;
}

.acc-option i, .acc-text-icon {
  font-size: 1.2rem;
  color: #1a365d;
  font-weight: bold;
}

.acc-option span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #333333;
  text-align: center;
}

.drawer-footer {
  padding: 14px 16px;
  border-top: 1px solid #e0e0e0;
}

.reset-btn {
  width: 100%;
  background-color: #dbe4ff;
  color: #1a2a5e;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Accessibility State Modifiers */
body.dark-contrast {
  background-color: #121212 !important;
  color: #ffffff !important;
}

body.invert-mode {
  filter: invert(100%);
}

body.invert-mode .accessibility-drawer {
  filter: invert(100%);
}

body.low-saturation {
  filter: grayscale(100%);
}

body.highlight-links a {
  background-color: #ffeb3b !important;
  color: #000000 !important;
  outline: 2px dashed #d32f2f;
}

body.hide-images img {
  visibility: hidden !important;
}

body.default-cursor * {
  cursor: default !important;
}