/* ==========================================================================
   MUNICIPAL PORTAL - ACCESSIBLE LIGHT THEME STYLE SHEET
   (Custom Styled matching Haryana Govt Portal layout)
   ========================================================================== */

:root {
  --primary-color: #0f172a;       /* Slate 900 */
  --primary-hover: #1e293b;      /* Slate 800 */
  --accent-color: #f59e0b;       /* Orange / Gold (matches Haryana Active State) */
  --accent-hover: #d97706;       /* Darker Amber */
  --accent-blue: #1d4ed8;        /* Royal Blue */
  --accent-blue-hover: #1e40af;  /* Dark Royal Blue */
  --accent-gold: #b45309;        /* Amber 700 - for focus states and warnings */
  
  --bg-main: #f8fafc;            /* Slate 50 - page background */
  --bg-card: #ffffff;            /* White */
  --bg-header: #ffffff;          /* White */
  
  --text-main: #0f172a;          /* Slate 900 - high contrast text */
  --text-muted: #334155;         /* Slate 700 - subheaders & body content */
  --text-light: #64748b;         /* Slate 500 - meta text */
  
  --border-color: #e2e8f0;       /* Slate 200 */
  --border-focus: #1d4ed8;       /* Royal Blue */
  
  --success-color: #15803d;      /* Green 700 */
  --success-bg: #f0fdf4;
  --danger-color: #b91c1c;       /* Red 700 */
  --danger-bg: #fef2f2;
  --warning-color: #a16207;      /* Yellow 700 */
  --warning-bg: #fef9c3;
  
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-speed: 0.25s;
  --box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --box-shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Keyboard Navigation Outlines */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent-blue);
  color: white;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--accent-blue-hover);
  text-decoration: underline;
}

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

/* Hide Google Translate tooltip */
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
}

/* Remove the yellow highlight */
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* Prevent Google Translate from shifting the page */
body {
    top: 0 !important;
}
.goog-te-balloon-frame {
    display: none !important;
}

.skiptranslate iframe {
    display: none !important;
}
/* ==========================================================================
   HARYANA GOVERNMENT CUSTOM HEADER STYLING
   ========================================================================== */

/* Top bar details & accessibility toolbar */
.top-bar-haryana {
  background-color: #ebe7e0;
  border-bottom: 1.5px solid #dcd8d0;
  padding: 4px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
}
.top-bar-haryana .bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gov-title {
  display: flex;
  gap: 12px;
}
.gov-title span {
  padding-right: 12px;
  border-right: 1px solid #c5c1b9;
}
.gov-title span:last-child {
  border-right: none;
}
.access-tools-haryana {
  display: flex;
  align-items: center;
  gap: 14px;
}
.access-tools-haryana a, .access-tools-haryana button {
  color: #333;
  text-decoration: none;
  font-size: 13.5px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.access-tools-haryana a:hover, .access-tools-haryana button:hover {
  color: var(--accent-blue);
}

/* Logo Bar */
.logo-bar-haryana {
  background-color: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}
.logo-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-left-box {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-left-box img {
  height: 70px;
  width: auto;
}
.logo-text-box h1 {
  font-size: 13.5px;
  color: #c2410c; /* Rust Orange */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.logo-text-box h2 {
  font-size: 21px;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.2;
}
.logo-text-box p {
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 600;
}
.logo-right-box {
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-right-box img {
  height: 60px;
  width: auto;
}

/* Dynamic Dropdown Navigation Bar */
.nav-bar-haryana {
  background-color: #f1ebd9; /* Cream Warm Background */
  border-bottom: 3px solid var(--accent-color);
  /*position: sticky;*/
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nav-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links-haryana {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item-link {
  color: #1e293b;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  border-right: 1px solid rgba(0,0,0,0.04);
  white-space: nowrap;
}
.nav-item-link:hover, .nav-item-link.active {
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
}
.nav-item-link.home-btn {
  background-color: var(--accent-color);
  color: white;
}
.nav-item-link.home-btn:hover {
  background-color: var(--accent-hover);
}

/* Dropdown styling */
.nav-dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  list-style: none;
  padding: 8px 0;
  min-width: 220px;
  display: none;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
}
.dropdown-menu li a {
  color: var(--text-muted);
  padding: 10px 18px;
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.dropdown-menu li a:hover {
  background-color: #f8fafc;
  color: var(--accent-blue);
  padding-left: 22px;
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Third-level flyout submenu (e.g. Library > Town Planning > Town Planning Policies) */
.nav-dropdown-sub {
  position: relative;
}
.nav-dropdown-sub > a {
  padding-right: 26px !important;
}
.dropdown-menu-flyout {
  top: -9px;
  left: 100%;
  border-radius: 6px;
}
.nav-dropdown-sub:hover > .dropdown-menu-flyout {
  display: block;
}
@media (max-width: 900px) {
  .dropdown-menu-flyout {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 12px;
    display: block;
  }
}

/* ==========================================================================
   MODERN POLISHED SLIDER
   ========================================================================== */
.modern-slider-section {
  position: relative;
  height: 440px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 35px;
  background-color: #0f172a;
}
.modern-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.modern-slide.active {
  opacity: 1;
  z-index: 2;
}
.modern-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modern-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
  padding: 40px;
  color: white;
  z-index: 10;
}
.modern-slide-caption h2 {
  font-size: 24px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.modern-slide-caption p {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  line-height: 1.5;
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}
.slider-nav:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.05);
}
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-indicators {
  position: absolute;
  bottom: 20px;
  right: 40px;
  z-index: 20;
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.4);
  border: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: all 0.2s;
}
.slider-dot.active {
  background-color: var(--accent-color);
  width: 24px;
  border-radius: 6px;
}

/* ==========================================================================
   GRID COMPONENTS & FORMS
   ========================================================================== */
.split-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 768px) {
  .split-sections {
    grid-template-columns: 1fr;
  }
  .logo-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .logo-left-box {
    flex-direction: column;
  }
  .nav-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
  }
  .nav-links-haryana {
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links-haryana.mobile-open {
    max-height: 2000px; /* generous cap so the whole menu can fully expand */
  }
  .nav-item-link {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    background-color: #f5f0e3;
    padding-left: 20px;
  }
  .triple-grid {
    grid-template-columns: 1fr !important;
  }
  .citizen-form-grid {
    grid-template-columns: 1fr !important;
  }
}

.about-dept-panel, .tabs-panel-card, .widget-card, .gallery-section-card, .form-section-card, .card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
}

/* Tabs list */
.tabs-list {
  display: flex;
  gap: 15px;
  border-bottom: 2px solid var(--border-color);
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.tab-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 3px solid transparent;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
}
.tab-link.active {
  color: var(--accent-blue);
  border-bottom: 3px solid var(--accent-blue);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* Form Styles */
.citizen-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.citizen-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.citizen-form-row label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.citizen-form-row input, .citizen-form-row select, .citizen-form-row textarea {
  font-family: inherit;
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: white;
  color: var(--text-main);
  transition: border-color var(--transition-speed);
}
.citizen-form-row input:focus, .citizen-form-row select:focus, .citizen-form-row textarea:focus {
  border-color: var(--border-focus);
}
.citizen-btn-submit {
  font-family: inherit;
  font-weight: 600;
  padding: 12px 24px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}
.citizen-btn-submit:hover {
  opacity: 0.9;
}

/* Rating Stars */
.feedback-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
}
.feedback-stars input {
  display: none;
}
.feedback-stars label {
  cursor: pointer;
  font-size: 24px;
  color: #cbd5e1;
}
.feedback-stars label:hover,
.feedback-stars label:hover ~ label,
.feedback-stars input:checked ~ label {
  color: #eab308;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background-color: var(--accent-blue);
  color: white;
}
.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  text-decoration: none;
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-muted);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: #f1f5f9;
  text-decoration: none;
}
.btn-danger {
  background-color: var(--danger-color);
  color: white;
}
.btn-danger:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success {
  background-color: var(--success-bg);
  border: 1px solid var(--success-color);
  color: var(--success-color);
}
.alert-danger {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-color);
  color: var(--danger-color);
}
.alert-warning {
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-color);
  color: var(--warning-color);
}

/* Footer layout */
.footer-section {
  background-color: var(--primary-color);
  color: #e2e8f0;
  padding: 0 0 20px;
  margin-top: 50px;
  border-top: 4px solid var(--accent-blue);
}
.footer-section .footer-grid {
  padding-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.footer-col h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid #334155;
  padding-bottom: 8px;
}
.footer-col p, .footer-col ul {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #94a3b8;
}
.footer-col ul li a:hover {
  color: white;
}
.footer-col .text-link {
  color: var(--accent-color);
}
.footer-col .text-link:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* Modal flash banner: see the flexible, content-aware rule set further below */

/* Administrative layout styles */
.admin-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
@media (max-width: 992px) {
  .admin-wrapper {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static !important;
    height: auto !important;
  }
}
.admin-sidebar {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 24px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 #0f172a;
}
.admin-sidebar::-webkit-scrollbar { width: 6px; }
.admin-sidebar::-webkit-scrollbar-track { background: #0f172a; }
.admin-sidebar::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 6px; }
.admin-logo {
  font-size: 18px;
  color: white;
  font-weight: 700;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 15px;
}
.admin-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-menu a {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.admin-menu a:hover, .admin-menu li.active a {
  color: white;
  background-color: #1e293b;
}
.admin-menu li.active a {
  background-color: var(--accent-blue);
  color: white;
}
.admin-main {
  background-color: #f8fafc;
  padding: 40px;
}
.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.admin-stat-card {
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-stat-card .val {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}
.admin-stat-card .lbl {
  font-size: 13px;
  color: var(--text-muted);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.admin-table th, .admin-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}
.admin-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: var(--text-main);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-pending { background-color: var(--warning-bg); color: var(--warning-color); }
.badge-progress { background-color: #eff6ff; color: var(--accent-blue); }
.badge-resolved { background-color: var(--success-bg); color: var(--success-color); }

/* Welcome Card style in Dashboard */
.welcome-card {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 12px;
  padding: 25px;
  color: #fff;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}
.welcome-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: white;
}
.welcome-card p {
  opacity: 0.9;
  font-size: 14px;
  line-height: 1.5;
}
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* ==========================================================================
   MEDIA SHOWCASE — Photo & Video Gallery (homepage, above footer)
   ========================================================================== */
.media-showcase-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.media-showcase-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.media-showcase-heading h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.media-showcase-heading h2 i { color: var(--accent-color); }
.media-showcase-heading p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* Single-line auto-sliding carousel viewport (shared by photo & video galleries) */
.media-slider-viewport {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.media-slider-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: mediaSlideLeft 40s linear infinite;
}
.media-slider-viewport:hover .media-slider-track {
  animation-play-state: paused;
}
@keyframes mediaSlideLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* track content is duplicated once, so -50% = one full loop */
}

.photo-gallery-item {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  width: 240px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}
.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.photo-gallery-item:hover img {
  transform: scale(1.09);
}
.photo-gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0));
}

.video-gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
  width: 320px;
}
.video-gallery-item iframe,
.video-gallery-item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
  background: #000;
}
.video-gallery-caption {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.latest-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--accent-color);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Helpline Numbers ticker — scrolls bottom to top, seamless loop */
.helpline-ticker-viewport {
  height: calc(100% - 45px);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.helpline-ticker-track {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  animation: helplineScrollUp 18s linear infinite;
}
.helpline-ticker-viewport:hover .helpline-ticker-track {
  animation-play-state: paused;
}
@keyframes helplineScrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); } /* list is duplicated once, so -50% = one full loop */
}
.helpline-ticker-track li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--border-color);
}
.helpline-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}
.helpline-label i { color: #16a34a; font-size: 8px; margin-right: 6px; }
.helpline-number {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent-color);
  text-decoration: none;
  white-space: nowrap;
}
.helpline-number:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .photo-gallery-item { width: 180px; }
  .video-gallery-item { width: 260px; }
}

/* ==========================================================================
   CONTACT / GRIEVANCE CTA BANNER (homepage)
   ========================================================================== */
.contact-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: linear-gradient(120deg, var(--accent-blue) 0%, #1e3a8a 100%);
  border-radius: 14px;
  padding: 30px 36px;
  color: #fff;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.25);
}
.contact-cta-text h2 {
  font-size: 21px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.contact-cta-text p {
  font-size: 13.5px;
  opacity: 0.9;
  margin: 0;
}
.contact-cta-btn {
  background: #fff !important;
  color: var(--accent-blue) !important;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}
.contact-cta-btn:hover { transform: translateY(-2px); }

/* ==========================================================================
   FLASH ANNOUNCEMENT MODAL — redesigned, supports image + custom HTML
   ========================================================================== */
.flash-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: flashFadeIn 0.25s ease;
}
@keyframes flashFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.flash-window {
  background: #fff;
  border-radius: 14px;
  max-width: 405px;
  width: 100%;
  max-height: 90vh;          /* leave a little breathing room from the viewport edge */
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: flashPopIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.flash-window img {
  display: block;
  width: 100%;
  height: auto;              /* let the image keep its natural aspect ratio */
  max-height: 80vh;          /* cap so a very tall image still fits on screen */
  object-fit: contain;       /* show the whole image, no cropping */
  margin: 0 auto;
}   
@keyframes flashPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Small floating close button — works whether the window shows an image, text, or both */
.flash-close-btn-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  border: none;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.flash-close-btn-x:hover { background: rgba(15, 23, 42, 0.8); }

/* Image-only banner: no padding/border chrome at all, just the image + close button */
.flash-window-image-only { border-radius: 14px; overflow: hidden; }
.flash-window-image-only .flash-window-image { border-radius: 14px; max-height: 80vh; }

.flash-window-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.flash-window-body {
  padding: 26px 28px;
}
.flash-window-text {
  color: #334155;
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
  text-align: left;
}
.flash-window-text:last-child { margin-bottom: 0; }
.flash-window-html { text-align: left; margin: 12px 0 0; }
.flash-window-html:first-child { margin-top: 0; }

/* ==========================================================================
   TEXT-LINK HIGHLIGHT UTILITY — makes key inline text read clearly as a link
   ========================================================================== */
.content-body a,
.text-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.content-body a:hover,
.text-link:hover {
  color: var(--accent-blue-hover);
  text-decoration-color: currentColor;
}

/* ==========================================================================
   THIRD-LOGO BRANDING SLOT (right side of the middle logo bar)
   ========================================================================== */
.logo-right-box {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo-right-box img {
  max-height: 60px;
  width: auto;
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher { position: relative; display: inline-block; }
.lang-switcher-btn {
  background: none;
  border: none;
  border-left: 1px solid #c5c1b9;
  padding-left: 10px;
  font-weight: 700;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-switcher-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  min-width: 110px;
  z-index: 500;
  overflow: hidden;
  margin-top: 8px;
}
.lang-switcher-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
}
.lang-switcher-note i { color: var(--accent-blue); margin-top: 1px; }
.lang-switcher.open .lang-switcher-menu { display: block; }
.lang-switcher-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
}
.lang-switcher-menu button:hover { background: #f1f5f9; color: var(--accent-blue); }

/* Language Change Confirmation Popup */
.lang-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10500; /* above the floating notice marquee (9500) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lang-confirm-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px 26px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  text-align: center;
}
.lang-confirm-box p {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 18px;
}
.lang-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.lang-confirm-actions .btn { min-width: 90px; }
/* Hide Google's default injected banner/branding for a cleaner UI */
.goog-te-banner-frame, .skiptranslate > iframe { display: none !important; }
body { top: 0 !important; }
#google_translate_element { display: none !important; }

@media (max-width: 900px) {
  .contact-cta-banner { flex-direction: column; text-align: center; }
  .logo-right-box { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   DASHBOARD SECTION DIVIDERS — clearly separates each block from the next
   ========================================================================== */
.dashboard-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 14px;
  padding-top: 24px;
  border-top: 2px dashed var(--border-color);
}
.dashboard-section-title:first-of-type {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}
.dashboard-section {
  margin-bottom: 10px;
}

/* ==========================================================================
   SCROLLING NOTICE MARQUEE — persistent ticker below the top bar (separate
   from the popup flash-message announcement)
   ========================================================================== */
/* Theme Switcher — 4 colour presets, applied via [data-theme] on <html> */
.access-tools-haryana .theme-switcher .theme-swatch {
  background: var(--swatch-color) !important;
  border: 2px solid rgba(255,255,255,0.85) !important;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  padding: 0;
  display: inline-block;
}
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(0,0,0,0.15);
}
.theme-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch-color);
  border: 2px solid rgba(255,255,255,0.85);
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition-speed);
}
.theme-swatch:hover,
.theme-swatch:focus-visible {
  transform: scale(1.2);
}
.theme-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--swatch-color);
}

[data-theme="green"] {
  --accent-color: #15803d;
  --accent-hover: #166534;
  --accent-blue: #0d9488;
  --accent-blue-hover: #0f766e;
  --border-focus: #15803d;
  --accent-gold: #166534;
}
[data-theme="maroon"] {
  --accent-color: #b91c1c;
  --accent-hover: #991b1b;
  --accent-blue: #9f1239;
  --accent-blue-hover: #881337;
  --border-focus: #b91c1c;
  --accent-gold: #9f1239;
}
[data-theme="purple"] {
  --accent-color: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-blue: #4c1d95;
  --accent-blue-hover: #3b0764;
  --border-focus: #6d28d9;
  --accent-gold: #5b21b6;
}

.notice-marquee-bar {
  display: flex;
  align-items: stretch;
  background: #fef3c7;
  border-top: 1px solid #fde68a;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9500; /* floats above normal page content, below modals/lightboxes (10000+) */
  width: 100%;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.12);
}
.notice-marquee-close {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  color: #78350f;
  font-size: 14px;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
@keyframes noticeMarqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* track holds the text twice back-to-back, so -50% = one full loop */
}
.notice-marquee-tag {
  flex: 0 0 auto;
  background: var(--accent-color);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.notice-marquee-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.notice-marquee-track {
  display: flex;
  width: max-content;
  animation: noticeMarqueeLeft 28s linear infinite;
}
.notice-marquee-viewport:hover .notice-marquee-track {
  animation-play-state: paused;
}
.notice-marquee-track span {
  white-space: nowrap;
  padding: 8px 40px 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #78350f;
  display: flex;
  align-items: center;
}
@media (max-width: 480px) {
  .notice-marquee-tag {
    font-size: 10.5px;
    padding: 8px 10px;
  }
  .notice-marquee-tag span { display: none; } /* keep just the icon on very narrow screens */
  .notice-marquee-track span {
    font-size: 12px;
    padding: 8px 24px 8px 10px;
  }
}


/* ==========================================================================
   PHOTO LIGHTBOX (click a gallery photo to zoom in)
   ========================================================================== */
.photo-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 30px;
  animation: flashFadeIn 0.2s ease;
}
.photo-lightbox-backdrop img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.photo-lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* ==========================================================================
   FOOTER UTILITY BAR — Track Grievance | Sitemap | Feedback | Website
   Policies | Contact Us | Help | Web Information Manager
   ========================================================================== */
.footer-utility-bar {
  background: #0b1220;
  border-bottom: 1px solid #1e293b;
}
.footer-utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 20px;
}
.footer-utility-bar a {
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 14px;
  border-right: 1px solid #334155;
  white-space: nowrap;
}
.footer-utility-bar a:first-child { padding-left: 0; }
.footer-utility-bar a:last-child { border-right: none; }
.footer-utility-bar a:hover { color: #fff; text-decoration: underline; }

/* ==========================================================================
   VISITOR COUNTER (footer)
   ========================================================================== */
.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
}
.visitor-counter i { color: #22c55e; }
.visitor-counter b { color: #fff; font-size: 13.5px; }

/* ==========================================================================
   FOOTER "CONNECT WITH US" SOCIAL ICONS
   ========================================================================== */
.socials {
  display: flex;
  gap: 10px;
}
.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.socials a:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}
