/* =====================================================
   DMER Accessible Header (Conflict-Free & GIGW Compliant)
   Fully Responsive + ARIA Optimized
===================================================== */

/* ------------------------------ Base & Skip Link ------------------------------ */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: #004080;
  color: #fff;
  font-weight: bold;
  z-index: 1000;
}

/* ------------------------------ Header Wrapper ------------------------------ */
#dmerHeader {
  background-color: #f9f9f9;
  border-bottom: 3px solid #305a91;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
  width: 100%;
  box-sizing: border-box;
}

/* ------------------------------ Top Bar ------------------------------ */
#dmerHeader .top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #305a91;
  color: #fff;
  padding: 8px 12px;
  gap: 10px;
  text-align: center;
}

#dmerHeader .gov-info {
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

#dmerHeader .email-link {
  color: #fff;
  text-decoration: none;
}

#dmerHeader .email-link:hover,
#dmerHeader .email-link:focus {
  text-decoration: underline;
}

/* ------------------------------ Accessibility Tools ------------------------------ */
#dmerHeader .accessibility-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

#dmerHeader .btn-access {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 14px;
  font-weight: bold;
  color: #000 !important;
  line-height: 1;
  height: 25px;
}

#dmerHeader .btn-access:hover,
#dmerHeader .btn-access:focus {
  background-color: #ffe;
  outline: 2px solid #000;
}

/* ------------------------------ Social Media Links ------------------------------ */
#dmerHeader .social-links ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

#dmerHeader .social-links a {
  color: #fff;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #214f8b;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

#dmerHeader .social-links a:hover,
#dmerHeader .social-links a:focus {
  background-color: #ffcc00;
  color: #000;
  outline: 2px solid #000;
}

/* ------------------------------ Language & Search ------------------------------ */
#dmerHeader .language-search {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

#dmerHeader .language-search a {
  color: #fff;
  text-decoration: none;
  background: #002d62;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: bold;
  font-size: 0.9rem;
}

#dmerHeader .language-search a:hover,
#dmerHeader .language-search a:focus {
  background: #ffcc00;
  color: #000;
}

.search-result a
{
    color: #000 !important;
    background: #fff !important;
}

/* ------------------------------ Main Header Section ------------------------------ */
#dmerHeader .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  flex-wrap: wrap;
  gap: 12px;
}

#dmerHeader .logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 10px;
}

#dmerHeader .emblem {
  width: 70px;
  height: auto;
}

#dmerHeader .title-text {
  display: flex;
  flex-direction: column;
}

#dmerHeader .title-text h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #000;
  font-weight: bold;
}

#dmerHeader .title-text h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #555;
}

#dmerHeader .right-logos {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 10px;
  flex: 1 1 10px;
  flex-wrap: wrap;
}

#dmerHeader .right-logos img {
  width: 80px;
  height: auto;
}

/* ------------------------------ Contrast Modes ------------------------------ */
body.high-contrast #dmerHeader,
body.high-contrast #dmerHeader .top-bar {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #ff0;
}

body.high-contrast #dmerHeader a {
  color: #ff0 !important;
  text-decoration: underline;
}

body.high-contrast #dmerHeader img {
  filter: brightness(0) invert(1);
}

body.blue-contrast #dmerHeader,
body.blue-contrast #dmerHeader .top-bar {
  background-color: #0a1a3c !important;
  color: #fff !important;
}

body.blue-contrast #dmerHeader a {
  color: #ffd700 !important;
}

body.blue-contrast #dmerHeader img {
  filter: brightness(0.85) invert(0.9);
}

/* ------------------------------ Screen Reader Only ------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ------------------------------ Focus Styles (Global) ------------------------------ */
a:focus,
button:focus {
  outline: 3px solid #ffcc00;
  outline-offset: 2px;
}

/* ------------------------------ Responsive Adjustments ------------------------------ */
@media (max-width: 992px) {
  #dmerHeader .main-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #dmerHeader .logo-section {
    justify-content: center;
  }

  #dmerHeader .title-text h1 {
    font-size: 1.2rem;
  }

  #dmerHeader .title-text h2 {
    font-size: 1rem;
  }

  #dmerHeader .right-logos img {
    width: 70px;
  }
}

@media (max-width: 768px) {
  #dmerHeader .top-bar {
    flex-direction: column;
    text-align: center;
  }

  #dmerHeader .gov-info,
  #dmerHeader .language-search,
  #dmerHeader .accessibility-tools,
  #dmerHeader .social-links {
    justify-content: center;
  }

  #dmerHeader .emblem {
    width: 60px;
  }

  #dmerHeader .title-text h1 {
    font-size: 1.05rem;
  }

  #dmerHeader .title-text h2 {
    font-size: 0.95rem;
  }

  #dmerHeader .right-logos {
    justify-content: center;
  }

  #dmerHeader .right-logos img {
    width: 60px;
  }
}

@media (max-width: 480px) {
  #dmerHeader .title-text h1 {
    font-size: 1rem;
  }

  #dmerHeader .title-text h2 {
    font-size: 0.85rem;
  }

  #dmerHeader .top-bar {
    gap: 8px;
    padding: 6px;
  }

  #dmerHeader .accessibility-tools {
    gap: 4px;
  }

 #dmerHeader .right-logos {
    justify-content: center;
  }

  #dmerHeader .right-logos img {
    width: 50px;
  }
}

/* ------------------------------ Voice Search & Plugin Adjustments ------------------------------ */
#voice-search-btn2 {
  padding: 0 10px !important;
}

.bhashini-dropdown-btn {
  height: 25px;
  padding: 5px;
}


/* Skip button inside accessibility bar */
.skip-btn img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}


/* ALL FOOTER STYLE */
.divider-footer
{
    padding: 10px;;
}

/* ========================================
   GOVERNMENT FOOTER - DARK MODE STYLES
   Unique Classes (No Theme Conflict)
======================================== */

/* Footer Wrapper */
.govt-footer {
  background: #0c0c0c;
  color: #f0f0f0;
  text-align: center;
 /* padding: 30px 10px;*/
 padding-bottom: 30px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* Related Links Section */
.govt-related-links {
  background: #2a2a2a;
  padding: 20px 10px;
  border-top: 1px solid #444;
}
.govt-related-links img {
  filter: brightness(0.9);
  margin: 5px;
  transition: transform 0.3s ease;
}
.govt-related-links img:hover {
  transform: scale(1.05);
}

/* Footer Links */
.govt-footer-links {
  margin: 20px 0;
  text-align: center;
}
.govt-footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  /*margin: 0 10px;*/
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}
.govt-footer-links a:hover,
.govt-footer-links a:focus {
  color: #ffffff;
  text-decoration: underline;
}
.govt-footer-links a:not(:last-child)::after {
  content: "|";
  color: #666;
  margin: 10px;
}

/* Visitor Stats Section */
.govt-visitor-stats {
  margin-top: 25px;
}
.govt-stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}
.govt-stat-block {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px 20px;
  min-width: 150px;
  color: #fff;
  text-align: center;
}
.govt-stat-block h4 {
  margin: 0;
  font-size: 14px;
  color: #bbb;
}
.govt-stat-block p {
  margin: 5px 0 0;
  font-weight: bold;
  color: #fff;
}

/* Copyright & Info */
.govt-footer-info {
  margin-top: 30px;
  border-top: 1px solid #333;
  padding-top: 20px;
}
.govt-footer-info p {
  margin: 0 0 10px;
  color: #ddd;
}

/* तारीख and शेवटचे पुनरावलोकन (white) */
.govt-date-info strong {
  color: #ffffff;
}

/* Validation Logos */
.govt-validation img {
  margin: 5px 10px;
  vertical-align: middle;
  filter: brightness(1.1);
}

/* Accessibility Utility Class */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Focus outline */
a:focus-visible {
  outline: 2px solid #00bfff;
  outline-offset: 2px;
}

.govt-copyright a
{
    color: #fff;
}

/* Full-width accessible required field instruction */
#required-instruction {
  display: block;
  width: 100%;
  background-color: #f5f8fb;        /* soft light blue-gray background */
  border-left: 4px solid #003366;   /* dark navy blue accent bar */
  padding: 10px 14px;
  margin: 20px 0;
  font-size: 0.95em;
  color: #222;                      /* high-contrast text */
  font-weight: 500;
  border-radius: 4px;
  line-height: 1.5;
  box-sizing: border-box;
}

#required-instruction span[aria-hidden="true"] {
  color: #cc0000;                   /* red asterisk for emphasis */
  font-weight: bold;
  font-size: 1.1em;
  padding-right: 4px;
}

/* Subtle hover/focus for interactivity */
#required-instruction:hover,
#required-instruction:focus {
  background-color: #e9f0f9;
  border-left-color: #002147;       /* slightly darker navy */
}


/* Responsive */
@media (max-width: 768px) {
  .govt-stats-container {
    flex-direction: column;
    align-items: center;
  }
  .govt-footer-links {
    line-height: 2;
  }
}
