
:root {
  --primary: #0056b3;
  --primary-dark: #003d82;
  --primary-light: #e6f0ff;
  --secondary: #ffcc00;
  --accent: #00a896;
  --dark: #1a2b3c;
  --light: #f8f9fa;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --white: #ffffff;
  --black: #212529;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Skip link (keyboard accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 2000;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:active {
  left: 1rem;
  top: 1rem;
}

/* PDF icon color inside cards */
.update-card .fa-file-pdf,
.document-card .fa-file-pdf,
.notification-card .fa-file-pdf,
.content-card .fa-file-pdf,
.sidebar-card .fa-file-pdf,
.contact-card .fa-file-pdf,
.service-card .fa-file-pdf {
  color: #e53e3e;
}

/* Uniform card hover/focus (matches Home Updates cards) */
@media (hover: hover) and (pointer: fine) {
  .update-card,
  .document-card,
  .notification-card,
  .contact-card,
  .service-card,
  .sidebar-card {
    transition: all 0.3s ease;
  }

  .update-card:hover,
  .update-card:focus-within,
  .document-card:hover,
  .document-card:focus-within,
  .notification-card:hover,
  .notification-card:focus-within,
  .contact-card:hover,
  .contact-card:focus-within,
  .service-card:hover,
  .service-card:focus-within,
  .sidebar-card:hover,
  .sidebar-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
  }
}

/* Contrast Themes */
body.contrast-yellow-black, body.contrast-yellow-black * {
  background-color: #000 !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
}
body.contrast-yellow-black a,
body.contrast-yellow-black h1,
body.contrast-yellow-black h2,
body.contrast-yellow-black h3,
body.contrast-yellow-black h4,
body.contrast-yellow-black h5,
body.contrast-yellow-black h6 {
  color: #ff0 !important;
}
body.contrast-black-white, body.contrast-black-white * {
  background-color: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}
body.contrast-black-white a,
body.contrast-black-white h1,
body.contrast-black-white h2,
body.contrast-black-white h3,
body.contrast-black-white h4,
body.contrast-black-white h5,
body.contrast-black-white h6 {
  color: #000 !important;
}

/* Container */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
}

body.wide-spacing,
body.wide-spacing * {
  letter-spacing: 0.12em !important;
  word-spacing: 0.2em !important;
}

body.text-small {
  font-size: 0.875rem;
}
body.text-large {
  font-size: 1.125rem;
}

.hindi-content {
  font-family: var(--font-hindi);
}

/* Utility Bar */
.utility-bar {
  background-color: var(--white);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--light-gray);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}
.utility-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
.utility-group {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.utility-label {
  font-size: 0.875rem;
  color: var(--black);
}
.utility-btn, .search-btn {
  background: var(--light-gray);
  color: var(--dark);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.utility-btn:hover, .search-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-light);
}
.search-input {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-xs);
  background: var(--primary);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1001;
  text-decoration: none;
}
.skip-link:focus {
  left: var(--space-xs);
}

.contrast-default-btn {
  background: var(--white);
  color: var(--dark);
  border: 1px solid var(--light-gray);
}
.contrast-yellow-black-btn {
  background: #000;
  color: #ff0;
  border: 1px solid #ff0;
}
.contrast-black-white-btn {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}
.main-header{
  position: sticky;
  top: 0;
  z-index: 999;
}
.topbar {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--light-gray);
}
.topbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.logo-title-container {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.logo {
  height: 60px;
  width: auto;
}
.title-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.title-container h1 span {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

nav {
  position: relative;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}
nav li {
  margin: 0 var(--space-xs);
}
nav a {
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  display: block;
  position: relative;
  transition: 0.2s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: 0.2s;
}
nav a:hover::after,
nav a.active::after {
  width: calc(100% - 2rem);
}
nav a.active {
  color: var(--secondary);
}
nav a:hover,
nav a:focus {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,86,179,0.08);
  outline: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,86,179,0.10);
  border-radius: var(--radius-md);
  z-index: 100;
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  animation: fadeInDropdown 0.25s;
  border: 1px solid var(--primary-light);
}

@keyframes fadeInDropdown {
  from { opacity: 0; transform: translateY(-8px);}
  to { opacity: 1; transform: translateY(0);}
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--dark);
  text-decoration: none;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  position: relative;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background: linear-gradient(90deg, var(--primary-light) 60%, #fff 100%);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,86,179,0.08);
  outline: none;
}

/* .dropdown-menu li a::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
  opacity: 0;
  transition: opacity 0.18s;
} */

.dropdown-menu li a:hover::before,
.dropdown-menu li a:focus::before {
  opacity: 1;
}

.dropdown-menu li:not(:last-child) a {
  border-bottom: 1px solid var(--primary-light);
}

.dropdown > a:hover,
.dropdown > a:focus {
  color: var(--primary);
  background: var(--primary-light);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  box-shadow: 0 2px 8px rgba(0,86,179,0.08);
  outline: none;
}
.breadcrumb {
  padding-top: 12px;
  margin: 0 auto;
  max-width: 1200px;
  font-size: 0.9rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: #2980b9;
  text-decoration: underline;
}
.breadcrumb .separator {
  margin: 0 8px;
  color: #666;
}
.breadcrumb [aria-current="page"] {
  color: #2c3e50;
  font-weight: 500;
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 12px 15px;
  }
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: var(--space-md);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
}
.footer-brand {
  flex: 1;
  min-width: 250px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.footer-logo {
  height: 80px;
  width: auto;
}
.footer-titles h3 {
  font-size: 1.25rem;
}
.footer-titles p {
  color: rgba(255,255,255,0.7);
}
.footer-address {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  line-height: 1.4;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}
.link-column {
  min-width: 150px;
  flex: 1;
}
.link-column h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--secondary);
}
.link-column ul {
  list-style: none;
}
.link-column li {
  margin-bottom: var(--space-xs);
}
.link-column a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.2s;
  font-size: 0.875rem;
}
.link-column a:hover {
  color: var(--white);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-md) 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}
.footer-credit {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.footer-credit p:first-child {
  margin-bottom: var(--space-xs);
}
.footer-credit strong {
  color: var(--white);
}
.nic-logo {
  height: 40px;
  width: auto;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 2rem; 
  flex-wrap: wrap;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
  padding: 0 0.5rem; 
}

.footer-logo-link:hover {
  transform: translateY(-2px);
}

.footer-logo-icon {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.nic-logo {
  height: 40px;
  width: auto;
}

@media (max-width: 768px) {
  .footer-logos {
    justify-content: center;
    margin-top: var(--space-md);
    gap: 1.2rem; 
  }
  .footer-logo-link {
    padding: 0 0.3rem;
  }
  .footer-logo-icon,
  .nic-logo {
    height: 35px;
  }
}

@media (max-width: 576px) {
  .footer-logos {
    gap: 0.7rem;
  }
  .footer-logo-link {
    padding: 0 0.15rem;
  }
  .footer-logo-icon,
  .nic-logo {
    height: 30px;
  }
}
.footer-last-updated {
  width: 100%;
  text-align: center;
  font-size: 0.93rem;
  color: #ffffff;
  border-top: 1px solid #e0e0e0;
  margin-top: 0.5rem;
  padding: 0.7rem 0 0.3rem 0;
  letter-spacing: 0.01em;
  background: var(--dark);
}

@media print {
  .utility-bar,
  nav,
  .hero-banner,
  .sidebar,
  .footer {
    display: none !important;
  }
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  .container {
    max-width: 100%;
    padding: 0;
  }
  .content-card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  a {
    text-decoration: none;
    color: #000;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}

.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  border-left: 4px solid var(--primary);
}
.sidebar-link.active i {
  color: var(--primary);
}

.load-pdf-btn, .download-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  min-width: 120px;
  justify-content: center;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.load-pdf-btn {
  background: #3498db;
  color: white;
}

.load-pdf-btn:hover,
.load-pdf-btn:focus {
  background: #2980b9;
  transform: translateY(-1px);
}

.download-btn {
  background: #27ae60;
  color: white;
}

.download-btn:hover,
.download-btn:focus {
  background: #219653;
  transform: translateY(-1px);
}

.close-viewer-btn {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.close-viewer-btn:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

/* PDF Viewer Modal (shared across pages) */
.pdf-viewer-modal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 2500;
  overflow: auto;
}

.pdf-viewer-container {
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  margin: 2% auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  animation: pdfViewerFadeIn 0.3s ease;
}

@keyframes pdfViewerFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pdf-viewer-toolbar {
  padding: var(--space-sm);
  background: var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pdf-viewer {
  flex-grow: 1;
  border: none;
  border-radius: 0 0 8px 8px;
  background: #f5f5f5;
}

@media (max-width: 768px) {
  .pdf-viewer-container {
    width: 95%;
    height: 85vh;
  }
}

.dropdown-btn {
  background: none;
  border: none;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  position: relative;
  transition: 0.2s;
  border-radius: var(--radius-sm);
  height: 100%;
  box-sizing: border-box;
}

.nav-link,
.dropdown-btn {
  min-height: 44px; 
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,86,179,0.10);
  border-radius: var(--radius-md);
  z-index: 100;
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  animation: fadeInDropdown 0.25s;
  border: 1px solid var(--primary-light);
}

@media (max-width: 768px) {
  .dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--light-gray);
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 1002;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  nav ul.active {
    display: flex;
  }
  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    position: absolute;
    right: 1rem;
    top: 1.2rem;
    z-index: 1100;
  }
}
@media (min-width: 769px) {
  .mobile-nav-toggle {
    display: none;
  }
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 140px;
}
.sidebar-section {
  margin-bottom: 25px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
}
.sidebar-section h3 {
  color: #003366;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1.2rem;
}
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  gap: 12px;
}
.sidebar-link i {
  color: #005aa7;
  width: 20px;
  text-align: center;
}
.sidebar-link:hover,
.sidebar-link.active {
  background-color: #e6f0fa;
  color: #005aa7;
}
.sidebar-link.active {
  font-weight: 600;
}
.sidebar-help {
  background-color: #e6f0fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 25px;
}
.sidebar-help h3 {
  color: #003366;
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.help-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #005aa7;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.help-button:hover {
  background-color: #003366;
}

@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: 1.5rem;
  }
  .sidebar-right {
    order: 2;
  }
  .primary-content {
    order: 1;
  }
}


@media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
  
  .content-container {
    gap: var(--space-lg);
  }
}

@media (max-width: 992px) {
  .content-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: var(--space-lg);
  }
  
  .footer-top {
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  /* Header & Navigation */
  .logo-title-container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .title-container h1 {
    font-size: 1.25rem;
  }
  
  .title-container h1 span {
    font-size: 0.9rem;
  }
  
  /* Utility Bar */
  .utility-bar {
    padding: 0.25rem 0;
  }

  /* Single-line, compressed utility bar (mobile) */
  .utility-bar .container {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.35rem;
    align-items: center;
    overflow: hidden;
    padding: 0 var(--space-sm);
  }

  .utility-group {
    flex-wrap: nowrap !important;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .utility-label {
    display: none;
  }

  .utility-btn,
  .search-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  /* Keep ONLY: Screen Reader Access + Contrast + Language */
  #skip-to-main-content-btn,
  #skip-to-main-content-btn-hi,
  .text-size-btn,
  .spacing-btn {
    display: none;
  }

  /* Screen reader access stays visible, but must fit on one line */
  #screen-reader-access-btn,
  #screen-reader-access-btn-hi {
    display: inline-flex;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    justify-content: center;
  }
  
  /* Main Content */
  .main-wrapper {
    padding: var(--space-sm);
  }
  
  .rules-main-content {
    padding: 20px;
  }
  
  /* Footer */
  .footer-brand {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .link-column {
    min-width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
}

@media (max-width: 576px) {
  /* Mobile-first adjustments */
  .container {
    padding: 0 10px;
  }
  
  .main-wrapper {
    padding: var(--space-xs);
  }
  
  .rules-main-content {
    padding: 15px;
  }
  
  /* Document items */
  .document-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .document-meta, 
  .download-btn {
    margin-left: 0;
    align-self: stretch;
  }
  
  .download-btn {
    text-align: center;
  }
  
  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  /* Text size adjustments for mobile */
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for mobile */
  .utility-btn,
  .sidebar-link,
  nav a,
  .dropdown-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .document-link,
  .download-btn {
    padding: 12px 8px;
  }
  
  /* Remove hover effects on touch devices */
  .update-card:hover,
  .document-card:hover,
  .notification-card:hover,
  .contact-card:hover,
  .service-card:hover,
  .sidebar-card:hover {
    transform: none;
    box-shadow: none;
  }
  
  .sidebar-link:hover {
    background-color: transparent;
  }
  
  .sidebar-link.active {
    background-color: #e6f0fa;
  }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo,
  .footer-logo,
  .footer-logo-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print optimizations */
@media print {
  .utility-bar,
  nav,
  .sidebar,
  .footer-logos,
  .mobile-nav-toggle {
    display: none !important;
  }
  
  .main-content {
    width: 100%;
    margin: 0;
  }
  
  .document-actions {
    display: none;
  }
}
