/* ==========================================================================
   NATIONAL BUILDING FIRE & SAFETY AUTHORITY (NBFSA)
   CORE PRODUCTION STYLESHEET (css/style.css)
   GIGW 3.0 & WCAG 2.1 Level AA Compliant
   ========================================================================== */

:root {
  /* Government & Safety Color System */
  --gov-navy: #0a2540;            /* Sovereign Deep Navy */
  --gov-navy-dark: #051424;       /* Base / Footer Background */
  --gov-primary: #0d47a1;         /* Primary Authority Blue */
  --gov-primary-light: #1976d2;   /* Interactive Hover Blue */
  --gov-saffron: #e65100;         /* National Saffron Accent */
  --gov-saffron-dark: #bf360c;    /* Deep Saffron */
  --gov-saffron-light: #fff3e0;   /* Light Saffron tint */
  --gov-fire-red: #d32f2f;        /* Emergency Fire & Hazard Red */
  --gov-fire-dark: #b71c1c;       /* Dark Fire Red */
  --gov-green: #1b5e20;          /* Verified / Safety Green */
  --gov-green-light: #e8f5e9;    /* Light Green background */
  
  /* Surfaces & Neutrals */
  --gov-bg: #f8fafc;             /* Page Background */
  --gov-surface: #ffffff;        /* Cards & White Containers */
  --gov-surface-secondary: #f1f5f9;
  --gov-text: #1e293b;           /* High-contrast Slate Text */
  --gov-text-muted: #526071;     /* Secondary Label Text */
  --gov-border: #cbd5e1;         /* Standard Dividers */
  --gov-border-light: #e2e8f0;
  
  /* Accessibility & Focus */
  --gov-focus: #ff6d00;          /* 3px High-visibility focus ring */
  --gov-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --gov-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --gov-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  
  /* Typography & Layout */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hindi: "Noto Sans Devanagari", "Mangal", "Nirmala UI", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1280px;
  --transition-speed: 0.2s;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  background-color: var(--gov-bg);
  color: var(--gov-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[lang="hi"] {
  font-family: var(--font-hindi), var(--font-base);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   1. GIGW Skip to Main Content Link
   -------------------------------------------------------------------------- */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--gov-saffron);
  color: #ffffff;
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  z-index: 99999;
  transition: top 0.2s ease-in-out;
  box-shadow: var(--gov-shadow-lg);
  border: 2px solid #ffffff;
}

.skip-to-content:focus {
  top: 12px;
  outline: 3px solid var(--gov-focus);
}

/* --------------------------------------------------------------------------
   2. Top Accessibility & Sovereign Identity Bar
   -------------------------------------------------------------------------- */
.top-gov-bar {
  background-color: var(--gov-navy-dark);
  color: #e2e8f0;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 6px 0;
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gov-identity-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.flag-icon {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  vertical-align: middle;
}

.gov-tools-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.gov-tool-btn, .gov-tool-link {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition-speed), color var(--transition-speed);
}

.gov-tool-btn:hover, .gov-tool-link:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.font-resizer-group {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
}

.font-btn {
  background: transparent;
  color: #e2e8f0;
  border: none;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.font-btn:last-child { border-right: none; }
.font-btn:hover, .font-btn.active {
  background: var(--gov-saffron);
  color: #ffffff;
}

.lang-switch-btn {
  background: var(--gov-saffron);
  color: #ffffff;
  border-color: var(--gov-saffron);
  font-weight: 700;
  padding: 3px 10px;
}

.lang-switch-btn:hover {
  background: var(--gov-saffron-dark);
}

/* --------------------------------------------------------------------------
   3. Main Branding Header & Emergency Helpline
   -------------------------------------------------------------------------- */
.main-header {
  background: var(--gov-surface);
  border-bottom: 3px solid var(--gov-saffron);
  padding: 0.85rem 0;
  box-shadow: var(--gov-shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.header-branding {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.emblem-svg, .nbfsa-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform var(--transition-speed);
}

.header-branding:hover .nbfsa-logo-img,
.header-branding:hover .emblem-svg {
  transform: scale(1.04);
}

.titles-wrapper {
  display: flex;
  flex-direction: column;
}

.ministry-title {
  font-size: 0.75rem;
  color: var(--gov-text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.board-title-hi {
  font-size: 1.15rem;
  color: var(--gov-navy);
  font-weight: 700;
  line-height: 1.2;
}

.board-title-en {
  font-size: 1.25rem;
  color: var(--gov-navy);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Emergency Helpline High-Visibility Card */
.emergency-helpline-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fef2f2;
  border: 2px solid var(--gov-fire-red);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--gov-text);
  animation: pulse-border 2s infinite;
}

.emergency-icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--gov-fire-red);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.emergency-text small {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--gov-fire-red);
  font-weight: 800;
}

.emergency-text strong {
  font-size: 1rem;
  color: var(--gov-fire-dark);
  font-weight: 900;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

.header-search {
  position: relative;
  width: 260px;
}

.header-search-form {
  display: flex;
  border: 2px solid var(--gov-navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.search-input {
  width: 100%;
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
}

.search-submit-btn {
  background: var(--gov-navy);
  color: #ffffff;
  border: none;
  padding: 0 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   4. Primary Navigation Bar (Complete 12 Required Header Sections)
   -------------------------------------------------------------------------- */
.main-nav {
  background: var(--gov-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--gov-shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-size: 1.1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  text-decoration: none;
  padding: 0.8rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition-speed), color var(--transition-speed);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active, .nav-item:hover > .nav-link {
  background: var(--gov-navy-dark);
  border-bottom-color: var(--gov-saffron);
}

.dropdown-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition-speed);
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #ffffff;
  list-style: none;
  box-shadow: var(--gov-shadow-lg);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border-top: 3px solid var(--gov-saffron);
  z-index: 1001;
  padding: 0.5rem 0;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--gov-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--gov-border-light);
  transition: background var(--transition-speed), padding-left var(--transition-speed);
}

.dropdown-item:last-child a {
  border-bottom: none;
}

.dropdown-item a:hover {
  background: var(--gov-surface-secondary);
  color: var(--gov-primary);
  padding-left: 1.45rem;
}

.nav-cta-reg {
  background: var(--gov-saffron);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem !important;
  margin: 0 4px;
}

.nav-cta-reg:hover {
  background: var(--gov-saffron-dark) !important;
}

.nav-cta-complaint {
  background: var(--gov-fire-red);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem !important;
  margin: 0 4px;
}

.nav-cta-complaint:hover {
  background: var(--gov-fire-dark) !important;
}

/* --------------------------------------------------------------------------
   5. News Ticker Bar & Emergency Flash
   -------------------------------------------------------------------------- */
.news-ticker-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--gov-border);
  padding: 0.35rem 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gov-fire-red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ticker-content-area {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 24px;
}

.ticker-list {
  display: inline-block;
  list-style: none;
  animation: ticker-scroll 28s linear infinite;
}

.ticker-list:hover, .ticker-list.paused {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  margin-right: 3rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.ticker-item a {
  color: var(--gov-text);
  text-decoration: none;
}

.ticker-item a:hover {
  color: var(--gov-primary);
  text-decoration: underline;
}

.new-tag {
  background: var(--gov-green);
  color: #ffffff;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 4px;
  font-weight: 700;
}

.ticker-control-btn {
  background: transparent;
  border: 1px solid var(--gov-border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--gov-text-muted);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* --------------------------------------------------------------------------
   6. Inner Page Hero Banner & Breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0d47a1 100%);
  color: #ffffff;
  padding: 2.5rem 0 2rem 0;
  border-bottom: 3px solid var(--gov-saffron);
}

.page-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.page-hero-desc {
  font-size: 1rem;
  color: #cbd5e1;
  max-width: 850px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  list-style: none;
}

.breadcrumb a {
  color: #ffbe76;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #64748b;
}

/* --------------------------------------------------------------------------
   7. Page Layout with Sidebar
   -------------------------------------------------------------------------- */
.page-container {
  padding: 3rem 0;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.page-sidebar {
  background: var(--gov-surface);
  border: 1px solid var(--gov-border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--gov-shadow-sm);
  position: sticky;
  top: 90px;
}

.sidebar-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gov-saffron);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-link {
  display: block;
  padding: 0.6rem 0.85rem;
  color: var(--gov-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
  transition: all var(--transition-speed);
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--gov-saffron-light);
  color: var(--gov-saffron-dark);
  font-weight: 700;
  padding-left: 1.1rem;
}

.page-content {
  background: var(--gov-surface);
  border: 1px solid var(--gov-border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--gov-shadow-sm);
}

.content-lead {
  font-size: 1.1rem;
  color: var(--gov-navy);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gov-border-light);
}

/* --------------------------------------------------------------------------
   8. Buttons, Badges & Interactive Components
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gov-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--gov-navy);
  transform: translateY(-2px);
  box-shadow: var(--gov-shadow-md);
}

.btn-saffron {
  background: var(--gov-saffron);
  color: #ffffff;
}

.btn-saffron:hover {
  background: var(--gov-saffron-dark);
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--gov-fire-red);
  color: #ffffff;
}

.btn-danger:hover {
  background: var(--gov-fire-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gov-navy);
  border-color: var(--gov-navy);
}

.btn-outline:hover {
  background: var(--gov-navy);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.badge-danger { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }
.badge-warning { background: #fff8e1; color: #f57f17; border: 1px solid #ffecb3; }
.badge-info { background: #e1f5fe; color: #0277bd; border: 1px solid #b3e5fc; }

/* --------------------------------------------------------------------------
   9. Forms, Inputs & Multi-Step Wizards
   -------------------------------------------------------------------------- */
.form-card {
  background: #ffffff;
  border: 1px solid var(--gov-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--gov-shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gov-navy);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--gov-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--gov-text);
  transition: border-color var(--transition-speed);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: 3px solid var(--gov-focus);
  border-color: var(--gov-primary);
}

.form-help {
  font-size: 0.75rem;
  color: var(--gov-text-muted);
  margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   10. Searchable Tables & Directory Lists
   -------------------------------------------------------------------------- */
.table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.gov-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--gov-border-light);
  border-radius: var(--radius-md);
}

.gov-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.gov-table th {
  background: var(--gov-surface-secondary);
  color: var(--gov-navy);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--gov-border);
}

.gov-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gov-border-light);
  color: var(--gov-text);
}

.gov-table tr:hover td {
  background: #f8fafc;
}

/* --------------------------------------------------------------------------
   11. Accordions for FAQs & Regulations
   -------------------------------------------------------------------------- */
.faq-accordion {
  border: 1px solid var(--gov-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--gov-border-light);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: #ffffff;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gov-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--gov-surface-secondary);
}

.faq-answer {
  display: none;
  padding: 1.25rem 1.5rem;
  background: #fcfdfe;
  color: var(--gov-text);
  font-size: 0.9375rem;
  border-top: 1px solid var(--gov-border-light);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  color: var(--gov-saffron-dark);
}

/* --------------------------------------------------------------------------
   12. Ultra-Dark Modern NGO Footer
   -------------------------------------------------------------------------- */
.pre-footer-cta {
  background: #0b1320 !important;
  background: linear-gradient(135deg, #09111c 0%, #0d1929 100%) !important;
  padding: 2.75rem 0 !important;
  border-top: 3px solid #10b981 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.pre-footer-flex {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
}

.pre-footer-text h3 {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.4rem !important;
}

.pre-footer-text p {
  color: #94a3b8 !important;
  font-size: 1rem !important;
  margin: 0 !important;
}

.pre-footer-actions {
  display: flex !important;
  gap: 1rem !important;
  flex-wrap: wrap !important;
}

.pre-footer-actions .btn-ngo-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.4rem !important;
  border-radius: 8px !important;
  font-size: 0.95rem !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

footer.main-footer,
.main-footer,
.gov-footer {
  background: #040810 !important;
  background: linear-gradient(180deg, #060c17 0%, #020408 100%) !important;
  color: #e2e8f0 !important;
  padding-top: 3.5rem !important;
  border-top: 4px solid #10b981 !important;
  display: block;
  width: 100%;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.25fr 0.95fr 1fr 1.1fr !important;
  gap: 2.5rem !important;
  padding-bottom: 3rem !important;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

.footer-brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  margin-bottom: 1rem !important;
}

.footer-logo-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  border-radius: 50% !important;
  padding: 4px !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25) !important;
}

.footer-brand-title {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
}

.footer-col h4 {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #38bdf8 !important;
  margin-bottom: 1.25rem !important;
  position: relative !important;
  padding-bottom: 0.55rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.footer-col h4::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 38px !important;
  height: 3px !important;
  background: #10b981 !important;
  border-radius: 2px !important;
}

.footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links li {
  margin-bottom: 0.75rem !important;
}

.footer-links a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.9375rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: all 0.2s ease !important;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff !important;
  transform: translateX(5px) !important;
}

.footer-contact-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-contact-list li {
  display: flex !important;
  gap: 0.75rem !important;
  margin-bottom: 1rem !important;
  font-size: 0.9rem !important;
  color: #cbd5e1 !important;
  line-height: 1.5 !important;
}

.contact-icon {
  font-size: 1.15rem !important;
  line-height: 1.3 !important;
}

.footer-contact-list a {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.footer-contact-list a:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

.footer-social-row {
  display: flex !important;
  gap: 0.75rem !important;
  margin-top: 1.5rem !important;
}

.social-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 1.05rem !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: all 0.2s ease !important;
}

.social-pill-btn:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.footer-bottom {
  background: #010307 !important;
  padding: 1.5rem 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
}

.footer-bottom-links a {
  color: #94a3b8 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.footer-bottom-links a:hover {
  color: #10b981 !important;
  text-decoration: underline !important;
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-bottom-links a:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

.stqc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   NEW BASIS FOR SOCIAL ACTION (NBFSA) NGO COMPONENTS
   ========================================================================== */

/* NGO Header Branding Enhancement */
.nbfsa-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.ngo-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e9;
  color: #1e7e34;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid #c8e6c9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* NGO Hero Banner */
.ngo-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0d47a1 60%, #1e7e34 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.ngo-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ngo-hero-content {
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.ngo-hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #a7f3d0;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
}

.ngo-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.ngo-hero-desc {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 760px;
}

.ngo-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-ngo-primary {
  background: #2e7d32;
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
  transition: all var(--transition-speed);
}

.btn-ngo-primary:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.45);
}

.btn-ngo-secondary {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  transition: all var(--transition-speed);
}

.btn-ngo-secondary:hover {
  background: #ffffff;
  color: #0a2540;
  transform: translateY(-2px);
}

/* 6 Core Focus Areas Section */
.focus-areas-section {
  padding: 4rem 0;
  background-color: var(--gov-bg);
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  color: #1e7e34;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-main-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0a2540;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-subtext {
  font-size: 1.1rem;
  color: var(--gov-text-muted);
  line-height: 1.6;
}

/* 6 Focus Cards Grid */
.focus-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .focus-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .focus-cards-grid {
    grid-template-columns: 1fr;
  }
}

.focus-card {
  background: var(--gov-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gov-border-light);
  padding: 2rem 1.75rem;
  box-shadow: var(--gov-shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, #0d47a1);
}

.focus-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -4px rgba(10, 37, 64, 0.12);
  border-color: var(--card-accent, #0d47a1);
}

.focus-card-01 { --card-accent: #2e7d32; }
.focus-card-02 { --card-accent: #1565c0; }
.focus-card-03 { --card-accent: #00897b; }
.focus-card-04 { --card-accent: #7b1fa2; }
.focus-card-05 { --card-accent: #e65100; }
.focus-card-06 { --card-accent: #c62828; }

.focus-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.focus-num-badge {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--card-accent, #0a2540);
  background: rgba(0,0,0,0.04);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--font-base);
}

.focus-icon-wrap {
  font-size: 2rem;
}

.focus-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a2540;
  margin-bottom: 0.75rem;
}

.focus-card-desc {
  font-size: 0.975rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.focus-card-link {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--card-accent, #0d47a1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap var(--transition-speed);
}

.focus-card-link:hover {
  gap: 10px;
  text-decoration: underline;
}

/* Building Safety Spotlight Feature Card */
.building-safety-spotlight {
  margin-top: 3.5rem;
  background: linear-gradient(135deg, #0a2540 0%, #1565c0 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--gov-shadow-lg);
}

.safety-spotlight-text h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.safety-spotlight-text p {
  color: #cbd5e1;
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.safety-spotlight-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Volunteer & Impact Section */
.impact-metrics-bar {
  background: #ffffff;
  border-top: 1px solid var(--gov-border-light);
  border-bottom: 1px solid var(--gov-border-light);
  padding: 2.5rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-item strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: #0a2540;
  margin-bottom: 0.25rem;
}

.metric-item span {
  font-size: 0.925rem;
  color: var(--gov-text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. Career & Internship Portal, Status Pills & Dynamic Modal
   -------------------------------------------------------------------------- */
.career-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.career-filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.career-filter-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.career-filter-btn.active {
  background: #0d47a1;
  color: #ffffff;
  border-color: #0d47a1;
  box-shadow: 0 2px 6px rgba(13, 71, 161, 0.25);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-pill.open {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.status-pill.open::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.status-pill.closed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.status-pill.closed::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.status-pill.ending-soon {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.status-pill.ending-soon::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.deadline-text {
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
}

.deadline-countdown {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}

.deadline-countdown.urgent {
  color: #dc2626;
  font-weight: 700;
}

tr.row-closed {
  background-color: #fafaf9;
  opacity: 0.8;
}

.btn-apply-job {
  background: linear-gradient(135deg, #1e7e34, #15803d);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 5px rgba(21, 128, 61, 0.3);
  transition: all 0.2s ease;
}

.btn-apply-job:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.4);
}

.btn-job-closed {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  border: 1px solid #cbd5e1 !important;
  cursor: not-allowed !important;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Modal Popup Styles */
.career-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.career-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.career-modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.career-modal-backdrop.active .career-modal-dialog {
  transform: translateY(0) scale(1);
}

.career-modal-header {
  background: linear-gradient(135deg, #0b1e36 0%, #15325b 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #10b981;
}

.career-modal-header-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.35rem 0;
}

.career-modal-header-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #cbd5e1;
  flex-wrap: wrap;
}

.career-modal-header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.career-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
}

.modal-form-group {
  display: flex;
  flex-direction: column;
}

.modal-form-group.full-width {
  grid-column: 1 / -1;
}

.modal-form-group label {
  font-size: 0.825rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.modal-form-group label .req {
  color: #dc2626;
  font-weight: 800;
}

.modal-form-control {
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-form-control:focus {
  outline: none;
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.modal-form-control[readonly] {
  background: #f8fafc;
  color: #475569;
  cursor: not-allowed;
}

.modal-declaration {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.career-modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.career-success-state {
  text-align: center;
  padding: 2rem 1rem;
}

.career-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem auto;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.career-ack-card {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}

.career-ack-card table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
}

.career-ack-card td {
  padding: 0.4rem 0;
}

.career-ack-card td:first-child {
  color: #475569;
  font-weight: 600;
  width: 40%;
}

.career-ack-card td:last-child {
  color: #0f172a;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   15. Building Safety Mega Recruitment 2026 (All India District Cadre)
   -------------------------------------------------------------------------- */
.mega-recruitment-hero {
  background: linear-gradient(135deg, #06172e 0%, #0d3663 50%, #0a2540 100%);
  color: #ffffff;
  padding: 3rem 0 2.5rem 0;
  border-bottom: 4px solid #10b981;
  position: relative;
  overflow: hidden;
}

.mega-recruitment-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.mega-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.mega-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 1.25rem;
}

@media (max-width: 768px) {
  .mega-hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mega-stat-box {
  text-align: center;
}

.mega-stat-box strong {
  display: block;
  font-size: 1.85rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.2;
}

.mega-stat-box span {
  font-size: 0.8125rem;
  color: #cbd5e1;
  font-weight: 600;
}

/* Post Cadre Cards Grid */
.cadre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem 0;
}

.cadre-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cadre-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #0d47a1;
}

.cadre-badge-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 800;
  font-size: 0.775rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

.cadre-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.cadre-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.cadre-scale {
  font-size: 0.85rem;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 0.75rem;
}

.cadre-detail-list {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.cadre-detail-list li {
  margin-bottom: 0.4rem;
}

/* District Matrix Calculator Box */
.district-matrix-box {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 2px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.matrix-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
  .matrix-controls {
    grid-template-columns: 1fr;
  }
}

.matrix-result-card {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.matrix-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.matrix-result-table th, 
.matrix-result-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.matrix-result-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
}

.matrix-result-table tr:hover {
  background: #f8fafc;
}

/* --------------------------------------------------------------------------
   Recruitment Apply Modal & Form System
   -------------------------------------------------------------------------- */
.recruitment-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 20, 36, 0.75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
  overflow-y: auto;
}

.recruitment-modal-backdrop.active {
  display: flex;
}

.recruitment-modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--gov-primary);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.recruitment-modal-header {
  background: linear-gradient(135deg, #0a2540 0%, #0d47a1 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--gov-saffron);
}

.recruitment-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.recruitment-modal-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.recruitment-modal-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

.recruitment-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.recruitment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .recruitment-form-grid {
    grid-template-columns: 1fr;
  }
}

.recruitment-form-group {
  margin-bottom: 0.85rem;
}

.recruitment-form-group.full-width {
  grid-column: 1 / -1;
}

.recruitment-form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

.recruitment-form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.recruitment-form-control:focus {
  outline: none;
  border-color: #0d47a1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
}

.recruitment-fee-banner {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pulse-apply-btn {
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(230, 81, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 81, 0, 0);
  }
}



