/* =====================================================
   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: #105b7a;
  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: #b8e6dc;
  border: 1px solid #105b7a;
  border-radius: 5px;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  line-height: 1;
  height: 25px;
}

#dmerHeader .btn-access:hover,
#dmerHeader .btn-access:focus {
  background-color: #002d62;
  outline: 2px solid #FFD700;
color: #fff;
}

.skip-btn img {
    transition: 0.3s ease;
}

.skip-btn:hover img {
    filter: brightness(0) invert(1);
}

/* ------------------------------ 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: #000;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 25px;
  background-color: #b8e6dc;
border: 1px solid #105b7a;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

#dmerHeader .social-links a:hover,
#dmerHeader .social-links a:focus {
  background-color: #002d62;
  color: #fff;
  outline: 2px solid #FFD700;
}

/* ------------------------------ 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: #d9dee3;
  color: #000;
}

.search-result a
{
    color: #000 !important;
    background: #fff !important;
} */

.english-version {
    color: #fff;
    text-decoration: none;
    background: #002d62;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9rem;
}

.english-version:hover,
.english-version:focus {
    background: #d9dee3;
    color: #000;
}

/* ------------------------------ Main Header Section ------------------------------ */
#dmerHeader .main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  flex-wrap: wrap;
  gap: 12px;
  background: #b8e6dc;
}

#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: #09685a;
  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: #249080;
  padding: 20px 10px;
  border-top: 1px solid #107062;
}
.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: #fff;
  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: #fff;
  margin: 10px;
}

.slash-seprate::after {
    content: "|";
    color: #d7d7d7;
    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: #b7e5db;
  border: 1px solid #105b7a;
  border-radius: 10px;
  padding: 10px 20px;
  min-width: 150px;
  color: #fff;
  text-align: center;
}

.govt-stat-block dt {
  font-size: 14px;
  font-weight: 600;
  color: #105b7a;
  margin-bottom: 6px;
}

.govt-stat-block dd {
  font-size: 18px;
  color: #105b7a;
  font-weight: bold;
  margin: 0;
}

.govt-stat-block h4 {
  margin: 0;
  font-size: 14px;
  color: #105b7a;
}
.govt-stat-block p {
  margin: 5px 0 0;
  font-weight: bold;
  color: #105b7a;
}

* === Mobile & Small Devices === */
@media (max-width: 600px) {

  .govt-stat-block dt {
    font-size: 13px;
  }

  .govt-stat-block dd {
    font-size: 16px;
  }
}

/* Copyright & Info */
.govt-footer-info {
  margin-top: 30px;
  border-top: 1px solid #075b4e;
  padding-top: 20px;
}
.govt-footer-info p {
  margin: 0 0 10px;
  color: #fff;
}

/* तारीख 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 #ffcc00;
  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;
  }
}


/* === Accessible Responsive Logo List === */
.right-logos {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.logo-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.logo-list li a {
  display: inline-block;
  text-decoration: none;
}

.logo-list img {
  height: 55px;
  width: auto;
  transition: transform 0.2s ease-in-out, outline 0.2s ease-in-out;
}

/* Hover/Focus styles */
.logo-list img:hover,
.logo-list a:focus img {
  transform: scale(1.05);
  /*outline: 3px solid #ffbf47;
  outline-offset: 4px;*/
}

/* Screen reader text (visually hidden) */
.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;
}

/* === Responsive behavior === */
@media (max-width: 768px) {
  .right-logos {
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
  }

  .logo-list {
    justify-content: center;
    gap: 1rem;
  }

  .logo-list img {
    height: 45px;
  }

}

@media (max-width: 480px) {
  .logo-list {
    flex-direction: row; /* keep in a row */
    flex-wrap: wrap; /* allows logos to wrap if screen is too small */
    justify-content: center; /* center horizontally */
    gap: 0.8rem;
    align-items: center;
  }

  .logo-list img {
    height: 55px;
  }

}

/* ============================================================
 START  DMER Unique Table Styles (Scoped by .dmer-table-section)
   ============================================================ */
.dmer-table-section {
  --dmer-blue-dark: #305a91;
  --dmer-blue-light: #4f78b8;
  --dmer-alt-row: #f8faff;
  --dmer-border: #d8e1f1;
  --dmer-focus: #FFD700;
  --dmer-search-border: #444;
  --dmer-pdf-red: #c1121f;
  max-width: 1100px;
  margin: 0 auto;
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
  color: #222;
}

/* Controls */
.dmer-table-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
  gap: 10px;
}

.dmer-search-box {
  flex: 1;
  min-width: 200px;
}

.dmer-table-search {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--dmer-search-border);
  border-radius: 6px;
  font-size: 0.95em;
  transition: border-color 0.2s ease;
}

.dmer-table-search:focus {
  border-color: var(--dmer-blue-dark);
  outline: 3px solid var(--dmer-focus);
}

/* Table */
.dmer-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.dmer-gov-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.dmer-gov-table caption {
  background: linear-gradient(90deg, var(--dmer-blue-dark), var(--dmer-blue-light));
  color: #fff;
  font-weight: 600;
  padding: 12px;
  font-size: 1.1em;
  text-align: center;
}

.dmer-gov-table th,
.dmer-gov-table td {
  border: 1px solid var(--dmer-border);
  padding: 10px 14px;
  text-align: center;
}

.dmer-gov-table th {
  background: linear-gradient(90deg, var(--dmer-blue-dark), var(--dmer-blue-light));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.dmer-gov-table th:hover {
  filter: brightness(1.1);
}

/* Alternate Rows */
.dmer-gov-table tbody tr:nth-child(even) {
  background: var(--dmer-alt-row);
}

.dmer-gov-table tbody tr:hover {
  background: #eef4ff;
}

/* Sort icon */
.dmer-sort-icon {
  margin-left: 6px;
  font-size: 0.8em;
}

/* PDF Link */
.dmer-pdf-link {
  color: var(--dmer-pdf-red);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.dmer-pdf-link i {
  color: var(--dmer-pdf-red);
  margin-right: 4px;
}

.dmer-pdf-link:hover,
.dmer-pdf-link:focus {
  color: #a00;
  text-decoration: underline;
  transform: scale(1.05);
}

/* Accessibility */
.dmer-gov-table th:focus,
.dmer-gov-table td:focus {
  outline: 3px solid var(--dmer-focus);
  outline-offset: 2px;
}

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

/* 🎤 Voice Search Button */
.dmer-mic-btn {
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.dmer-mic-btn i {
  color: #444;
  font-size: 1rem;
}

.dmer-mic-btn:hover {
  background: #eaeaea;
}

.dmer-mic-btn.listening {
  background: #c1121f;
  border-color: #c1121f;
}

.dmer-mic-btn.listening i {
  color: #fff;
  animation: micPulse 1s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================================
END DMER Unique Table Styles (Scoped by .dmer-table-section)
   ============================================================ */

/* =========================================================
   Inner Page Header - WCAG 2.1 & GIGW Compliant
   ========================================================= */
.inner-page-header {
  position: relative;
  background: url('https://www.pwdivisionpalghar.org/wp-content/uploads/2025/12/header_inner_graphic.jpg')
    no-repeat center center;
  background-size: cover;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

/* Overlay ensures contrast ratio above 4.5:1 */
.inner-page-header .inner-header-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25); /* DMER blue overlay for identity + contrast */
  z-index: 1;
}

/* Title container above overlay */
.inner-header-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

/* Title Styling (Readable, Responsive, Semantic) */
.inner-page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* Screen Reader Only (for extra description) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ========================
   Responsive Adjustments
   ======================== */
@media (max-width: 992px) {
  .inner-page-header {
    min-height: 180px;
  }
  .inner-page-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .inner-page-header {
    min-height: 160px;
  }
  .inner-page-title {
    font-size: 1.5rem !important;
  }
}

/* ============================
   DMER SPECIAL TABLE – ACCESSIBLE
=============================== */

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .table_dmer_special tr {
    transition: none !important;
    transform: none !important;
  }
}

/* Wrapper for responsiveness */
.table_dmer_wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table styling */
.table_dmer_special {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Caption styling */
.table_dmer_special caption {
  font-weight: bold;
  font-size: 16px;
  padding: 12px;
  text-align: center;
  background: #f1f4f9;
  color: #000;
}

/* Header */
.table_dmer_special thead th {
  background: #305a91;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  background-clip: padding-box;
}

/* Rounded top corners */
.table_dmer_special thead th:first-child {
  border-top-left-radius: 8px;
}
.table_dmer_special thead th:last-child {
  border-top-right-radius: 8px;
}

/* Cells */
.table_dmer_special td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
}

/* Zebra striping */
.table_dmer_special tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover – accessible contrast */
.table_dmer_special tbody tr:hover {
  background-color: #eef5ff;
}

/* Bold names */
.table_dmer_special td strong {
  font-weight: 700;
  color: #000;
}

/* ============================
   RESPONSIVE STACKED VIEW (MOBILE)
=============================== */

@media (max-width: 600px) {
  .table_dmer_special thead {
    display: none;
  }

  .table_dmer_special, 
  .table_dmer_special tbody, 
  .table_dmer_special tr, 
  .table_dmer_special td {
    display: block;
    width: 100%;
  }

  .table_dmer_special tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
  }

  .table_dmer_special td {
    border: none;
    padding-left: 45%;
    position: relative;
  }

  /* Responsive labels */
  .table_dmer_special td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
    color: #305a91;
  }
}

/* ================================
   RTI SECTION – GIGW + STQC + ACCESSIBLE
================================ */

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Section wrapper */
#rti-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 15px;
}

section[aria-labelledby="rti-title"] {
  padding: 20px;
  background: #f7f9fc;
  border: 1px solid #dce3eb;
  border-radius: 10px;
  line-height: 1.7;
  color: #000;
}

/* Paragraph styling */
section[aria-labelledby="rti-title"] p {
  font-size: 1rem;
  color: #1a1a1a;
  margin-top: 10px;
  text-align: justify;
}

/* Improve readability for large screens */
@media (min-width: 768px) {
  section[aria-labelledby="rti-title"] {
    padding: 28px;
  }

  section[aria-labelledby="rti-title"] p {
    font-size: 1.05rem;
  }
}

/* Responsive mobile adjustments */
@media (max-width: 600px) {
  #rti-title {
    font-size: 1.3rem;
    text-align: center !important;
  }

  section[aria-labelledby="rti-title"] {
    padding: 15px;
  }

  section[aria-labelledby="rti-title"] p {
    font-size: 0.95rem;
    text-align: left;
  }
}

/* Accessible focus outline (GIGW requirement) */
section[aria-labelledby="rti-title"]:focus-within {
  outline: 3px solid #305a91;
  outline-offset: 4px;
}
